hip05.dtsi 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /**
  3. * dts file for Hisilicon D02 Development Board
  4. *
  5. * Copyright (C) 2014,2015 HiSilicon Ltd.
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. / {
  9. compatible = "hisilicon,hip05-d02";
  10. interrupt-parent = <&gic>;
  11. #address-cells = <2>;
  12. #size-cells = <2>;
  13. psci {
  14. compatible = "arm,psci-0.2";
  15. method = "smc";
  16. };
  17. cpus {
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. cpu-map {
  21. cluster0 {
  22. core0 {
  23. cpu = <&cpu0>;
  24. };
  25. core1 {
  26. cpu = <&cpu1>;
  27. };
  28. core2 {
  29. cpu = <&cpu2>;
  30. };
  31. core3 {
  32. cpu = <&cpu3>;
  33. };
  34. };
  35. cluster1 {
  36. core0 {
  37. cpu = <&cpu4>;
  38. };
  39. core1 {
  40. cpu = <&cpu5>;
  41. };
  42. core2 {
  43. cpu = <&cpu6>;
  44. };
  45. core3 {
  46. cpu = <&cpu7>;
  47. };
  48. };
  49. cluster2 {
  50. core0 {
  51. cpu = <&cpu8>;
  52. };
  53. core1 {
  54. cpu = <&cpu9>;
  55. };
  56. core2 {
  57. cpu = <&cpu10>;
  58. };
  59. core3 {
  60. cpu = <&cpu11>;
  61. };
  62. };
  63. cluster3 {
  64. core0 {
  65. cpu = <&cpu12>;
  66. };
  67. core1 {
  68. cpu = <&cpu13>;
  69. };
  70. core2 {
  71. cpu = <&cpu14>;
  72. };
  73. core3 {
  74. cpu = <&cpu15>;
  75. };
  76. };
  77. };
  78. cpu0: cpu@20000 {
  79. device_type = "cpu";
  80. compatible = "arm,cortex-a57";
  81. reg = <0x20000>;
  82. enable-method = "psci";
  83. next-level-cache = <&cluster0_l2>;
  84. };
  85. cpu1: cpu@20001 {
  86. device_type = "cpu";
  87. compatible = "arm,cortex-a57";
  88. reg = <0x20001>;
  89. enable-method = "psci";
  90. next-level-cache = <&cluster0_l2>;
  91. };
  92. cpu2: cpu@20002 {
  93. device_type = "cpu";
  94. compatible = "arm,cortex-a57";
  95. reg = <0x20002>;
  96. enable-method = "psci";
  97. next-level-cache = <&cluster0_l2>;
  98. };
  99. cpu3: cpu@20003 {
  100. device_type = "cpu";
  101. compatible = "arm,cortex-a57";
  102. reg = <0x20003>;
  103. enable-method = "psci";
  104. next-level-cache = <&cluster0_l2>;
  105. };
  106. cpu4: cpu@20100 {
  107. device_type = "cpu";
  108. compatible = "arm,cortex-a57";
  109. reg = <0x20100>;
  110. enable-method = "psci";
  111. next-level-cache = <&cluster1_l2>;
  112. };
  113. cpu5: cpu@20101 {
  114. device_type = "cpu";
  115. compatible = "arm,cortex-a57";
  116. reg = <0x20101>;
  117. enable-method = "psci";
  118. next-level-cache = <&cluster1_l2>;
  119. };
  120. cpu6: cpu@20102 {
  121. device_type = "cpu";
  122. compatible = "arm,cortex-a57";
  123. reg = <0x20102>;
  124. enable-method = "psci";
  125. next-level-cache = <&cluster1_l2>;
  126. };
  127. cpu7: cpu@20103 {
  128. device_type = "cpu";
  129. compatible = "arm,cortex-a57";
  130. reg = <0x20103>;
  131. enable-method = "psci";
  132. next-level-cache = <&cluster1_l2>;
  133. };
  134. cpu8: cpu@20200 {
  135. device_type = "cpu";
  136. compatible = "arm,cortex-a57";
  137. reg = <0x20200>;
  138. enable-method = "psci";
  139. next-level-cache = <&cluster2_l2>;
  140. };
  141. cpu9: cpu@20201 {
  142. device_type = "cpu";
  143. compatible = "arm,cortex-a57";
  144. reg = <0x20201>;
  145. enable-method = "psci";
  146. next-level-cache = <&cluster2_l2>;
  147. };
  148. cpu10: cpu@20202 {
  149. device_type = "cpu";
  150. compatible = "arm,cortex-a57";
  151. reg = <0x20202>;
  152. enable-method = "psci";
  153. next-level-cache = <&cluster2_l2>;
  154. };
  155. cpu11: cpu@20203 {
  156. device_type = "cpu";
  157. compatible = "arm,cortex-a57";
  158. reg = <0x20203>;
  159. enable-method = "psci";
  160. next-level-cache = <&cluster2_l2>;
  161. };
  162. cpu12: cpu@20300 {
  163. device_type = "cpu";
  164. compatible = "arm,cortex-a57";
  165. reg = <0x20300>;
  166. enable-method = "psci";
  167. next-level-cache = <&cluster3_l2>;
  168. };
  169. cpu13: cpu@20301 {
  170. device_type = "cpu";
  171. compatible = "arm,cortex-a57";
  172. reg = <0x20301>;
  173. enable-method = "psci";
  174. next-level-cache = <&cluster3_l2>;
  175. };
  176. cpu14: cpu@20302 {
  177. device_type = "cpu";
  178. compatible = "arm,cortex-a57";
  179. reg = <0x20302>;
  180. enable-method = "psci";
  181. next-level-cache = <&cluster3_l2>;
  182. };
  183. cpu15: cpu@20303 {
  184. device_type = "cpu";
  185. compatible = "arm,cortex-a57";
  186. reg = <0x20303>;
  187. enable-method = "psci";
  188. next-level-cache = <&cluster3_l2>;
  189. };
  190. cluster0_l2: l2-cache0 {
  191. compatible = "cache";
  192. };
  193. cluster1_l2: l2-cache1 {
  194. compatible = "cache";
  195. };
  196. cluster2_l2: l2-cache2 {
  197. compatible = "cache";
  198. };
  199. cluster3_l2: l2-cache3 {
  200. compatible = "cache";
  201. };
  202. };
  203. gic: interrupt-controller@8d000000 {
  204. compatible = "arm,gic-v3";
  205. #interrupt-cells = <3>;
  206. #address-cells = <2>;
  207. #size-cells = <2>;
  208. ranges;
  209. interrupt-controller;
  210. #redistributor-regions = <1>;
  211. redistributor-stride = <0x0 0x30000>;
  212. reg = <0x0 0x8d000000 0 0x10000>, /* GICD */
  213. <0x0 0x8d100000 0 0x300000>, /* GICR */
  214. <0x0 0xfe000000 0 0x10000>, /* GICC */
  215. <0x0 0xfe010000 0 0x10000>, /* GICH */
  216. <0x0 0xfe020000 0 0x10000>; /* GICV */
  217. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  218. its_peri: msi-controller@8c000000 {
  219. compatible = "arm,gic-v3-its";
  220. msi-controller;
  221. #msi-cells = <1>;
  222. reg = <0x0 0x8c000000 0x0 0x40000>;
  223. };
  224. its_m3: msi-controller@a3000000 {
  225. compatible = "arm,gic-v3-its";
  226. msi-controller;
  227. #msi-cells = <1>;
  228. reg = <0x0 0xa3000000 0x0 0x40000>;
  229. };
  230. its_pcie: msi-controller@b7000000 {
  231. compatible = "arm,gic-v3-its";
  232. msi-controller;
  233. #msi-cells = <1>;
  234. reg = <0x0 0xb7000000 0x0 0x40000>;
  235. };
  236. its_dsa: msi-controller@c6000000 {
  237. compatible = "arm,gic-v3-its";
  238. msi-controller;
  239. #msi-cells = <1>;
  240. reg = <0x0 0xc6000000 0x0 0x40000>;
  241. };
  242. };
  243. timer {
  244. compatible = "arm,armv8-timer";
  245. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  246. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  247. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  248. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  249. };
  250. pmu {
  251. compatible = "arm,cortex-a57-pmu";
  252. interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
  253. };
  254. soc {
  255. compatible = "simple-bus";
  256. #address-cells = <2>;
  257. #size-cells = <2>;
  258. ranges;
  259. refclk200mhz: refclk200mhz {
  260. compatible = "fixed-clock";
  261. #clock-cells = <0>;
  262. clock-frequency = <200000000>;
  263. };
  264. uart0: serial@80300000 {
  265. compatible = "snps,dw-apb-uart";
  266. reg = <0x0 0x80300000 0x0 0x10000>;
  267. interrupts = <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH>;
  268. clocks = <&refclk200mhz>, <&refclk200mhz>;
  269. clock-names = "baudclk", "apb_pclk";
  270. reg-shift = <2>;
  271. reg-io-width = <4>;
  272. status = "disabled";
  273. };
  274. uart1: serial@80310000 {
  275. compatible = "snps,dw-apb-uart";
  276. reg = <0x0 0x80310000 0x0 0x10000>;
  277. interrupts = <GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH>;
  278. clocks = <&refclk200mhz>, <&refclk200mhz>;
  279. clock-names = "baudclk", "apb_pclk";
  280. reg-shift = <2>;
  281. reg-io-width = <4>;
  282. status = "disabled";
  283. };
  284. lbc: local-bus@80380000 {
  285. compatible = "hisilicon,hisi-localbus", "simple-bus";
  286. reg = <0x0 0x80380000 0x0 0x10000>;
  287. status = "disabled";
  288. };
  289. peri_gpio0: gpio@802e0000 {
  290. #address-cells = <1>;
  291. #size-cells = <0>;
  292. compatible = "snps,dw-apb-gpio";
  293. reg = <0x0 0x802e0000 0x0 0x10000>;
  294. status = "disabled";
  295. porta: gpio-controller@0 {
  296. compatible = "snps,dw-apb-gpio-port";
  297. gpio-controller;
  298. #gpio-cells = <2>;
  299. ngpios = <32>;
  300. reg = <0>;
  301. interrupt-controller;
  302. #interrupt-cells = <2>;
  303. interrupts = <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>;
  304. };
  305. };
  306. peri_gpio1: gpio@802f0000 {
  307. #address-cells = <1>;
  308. #size-cells = <0>;
  309. compatible = "snps,dw-apb-gpio";
  310. reg = <0x0 0x802f0000 0x0 0x10000>;
  311. status = "disabled";
  312. portb: gpio-controller@0 {
  313. compatible = "snps,dw-apb-gpio-port";
  314. gpio-controller;
  315. #gpio-cells = <2>;
  316. ngpios = <32>;
  317. reg = <0>;
  318. interrupt-controller;
  319. #interrupt-cells = <2>;
  320. interrupts = <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>;
  321. };
  322. };
  323. };
  324. };