hi6220.dtsi 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * dts file for Hisilicon Hi6220 SoC
  4. *
  5. * Copyright (C) 2015, HiSilicon Ltd.
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. #include <dt-bindings/reset/hisi,hi6220-resets.h>
  9. #include <dt-bindings/clock/hi6220-clock.h>
  10. #include <dt-bindings/pinctrl/hisi.h>
  11. #include <dt-bindings/thermal/thermal.h>
  12. / {
  13. compatible = "hisilicon,hi6220";
  14. interrupt-parent = <&gic>;
  15. #address-cells = <2>;
  16. #size-cells = <2>;
  17. psci {
  18. compatible = "arm,psci-0.2";
  19. method = "smc";
  20. };
  21. cpus {
  22. #address-cells = <2>;
  23. #size-cells = <0>;
  24. cpu-map {
  25. cluster0 {
  26. core0 {
  27. cpu = <&cpu0>;
  28. };
  29. core1 {
  30. cpu = <&cpu1>;
  31. };
  32. core2 {
  33. cpu = <&cpu2>;
  34. };
  35. core3 {
  36. cpu = <&cpu3>;
  37. };
  38. };
  39. cluster1 {
  40. core0 {
  41. cpu = <&cpu4>;
  42. };
  43. core1 {
  44. cpu = <&cpu5>;
  45. };
  46. core2 {
  47. cpu = <&cpu6>;
  48. };
  49. core3 {
  50. cpu = <&cpu7>;
  51. };
  52. };
  53. };
  54. idle-states {
  55. entry-method = "psci";
  56. CPU_SLEEP: cpu-sleep {
  57. compatible = "arm,idle-state";
  58. local-timer-stop;
  59. arm,psci-suspend-param = <0x0010000>;
  60. entry-latency-us = <700>;
  61. exit-latency-us = <250>;
  62. min-residency-us = <1000>;
  63. };
  64. CLUSTER_SLEEP: cluster-sleep {
  65. compatible = "arm,idle-state";
  66. local-timer-stop;
  67. arm,psci-suspend-param = <0x1010000>;
  68. entry-latency-us = <1000>;
  69. exit-latency-us = <700>;
  70. min-residency-us = <2700>;
  71. wakeup-latency-us = <1500>;
  72. };
  73. };
  74. cpu0: cpu@0 {
  75. compatible = "arm,cortex-a53";
  76. device_type = "cpu";
  77. reg = <0x0 0x0>;
  78. enable-method = "psci";
  79. next-level-cache = <&CLUSTER0_L2>;
  80. clocks = <&stub_clock 0>;
  81. operating-points-v2 = <&cpu_opp_table>;
  82. cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
  83. #cooling-cells = <2>; /* min followed by max */
  84. dynamic-power-coefficient = <311>;
  85. };
  86. cpu1: cpu@1 {
  87. compatible = "arm,cortex-a53";
  88. device_type = "cpu";
  89. reg = <0x0 0x1>;
  90. enable-method = "psci";
  91. next-level-cache = <&CLUSTER0_L2>;
  92. clocks = <&stub_clock 0>;
  93. operating-points-v2 = <&cpu_opp_table>;
  94. cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
  95. #cooling-cells = <2>; /* min followed by max */
  96. dynamic-power-coefficient = <311>;
  97. };
  98. cpu2: cpu@2 {
  99. compatible = "arm,cortex-a53";
  100. device_type = "cpu";
  101. reg = <0x0 0x2>;
  102. enable-method = "psci";
  103. next-level-cache = <&CLUSTER0_L2>;
  104. clocks = <&stub_clock 0>;
  105. operating-points-v2 = <&cpu_opp_table>;
  106. cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
  107. #cooling-cells = <2>; /* min followed by max */
  108. dynamic-power-coefficient = <311>;
  109. };
  110. cpu3: cpu@3 {
  111. compatible = "arm,cortex-a53";
  112. device_type = "cpu";
  113. reg = <0x0 0x3>;
  114. enable-method = "psci";
  115. next-level-cache = <&CLUSTER0_L2>;
  116. clocks = <&stub_clock 0>;
  117. operating-points-v2 = <&cpu_opp_table>;
  118. cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
  119. #cooling-cells = <2>; /* min followed by max */
  120. dynamic-power-coefficient = <311>;
  121. };
  122. cpu4: cpu@100 {
  123. compatible = "arm,cortex-a53";
  124. device_type = "cpu";
  125. reg = <0x0 0x100>;
  126. enable-method = "psci";
  127. next-level-cache = <&CLUSTER1_L2>;
  128. clocks = <&stub_clock 0>;
  129. operating-points-v2 = <&cpu_opp_table>;
  130. cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
  131. #cooling-cells = <2>; /* min followed by max */
  132. dynamic-power-coefficient = <311>;
  133. };
  134. cpu5: cpu@101 {
  135. compatible = "arm,cortex-a53";
  136. device_type = "cpu";
  137. reg = <0x0 0x101>;
  138. enable-method = "psci";
  139. next-level-cache = <&CLUSTER1_L2>;
  140. clocks = <&stub_clock 0>;
  141. operating-points-v2 = <&cpu_opp_table>;
  142. cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
  143. #cooling-cells = <2>; /* min followed by max */
  144. dynamic-power-coefficient = <311>;
  145. };
  146. cpu6: cpu@102 {
  147. compatible = "arm,cortex-a53";
  148. device_type = "cpu";
  149. reg = <0x0 0x102>;
  150. enable-method = "psci";
  151. next-level-cache = <&CLUSTER1_L2>;
  152. clocks = <&stub_clock 0>;
  153. operating-points-v2 = <&cpu_opp_table>;
  154. cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
  155. #cooling-cells = <2>; /* min followed by max */
  156. dynamic-power-coefficient = <311>;
  157. };
  158. cpu7: cpu@103 {
  159. compatible = "arm,cortex-a53";
  160. device_type = "cpu";
  161. reg = <0x0 0x103>;
  162. enable-method = "psci";
  163. next-level-cache = <&CLUSTER1_L2>;
  164. clocks = <&stub_clock 0>;
  165. operating-points-v2 = <&cpu_opp_table>;
  166. cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
  167. #cooling-cells = <2>; /* min followed by max */
  168. dynamic-power-coefficient = <311>;
  169. };
  170. CLUSTER0_L2: l2-cache0 {
  171. compatible = "cache";
  172. };
  173. CLUSTER1_L2: l2-cache1 {
  174. compatible = "cache";
  175. };
  176. };
  177. cpu_opp_table: opp-table-0 {
  178. compatible = "operating-points-v2";
  179. opp-shared;
  180. opp00 {
  181. opp-hz = /bits/ 64 <208000000>;
  182. opp-microvolt = <1040000>;
  183. clock-latency-ns = <500000>;
  184. };
  185. opp01 {
  186. opp-hz = /bits/ 64 <432000000>;
  187. opp-microvolt = <1040000>;
  188. clock-latency-ns = <500000>;
  189. };
  190. opp02 {
  191. opp-hz = /bits/ 64 <729000000>;
  192. opp-microvolt = <1090000>;
  193. clock-latency-ns = <500000>;
  194. };
  195. opp03 {
  196. opp-hz = /bits/ 64 <960000000>;
  197. opp-microvolt = <1180000>;
  198. clock-latency-ns = <500000>;
  199. };
  200. opp04 {
  201. opp-hz = /bits/ 64 <1200000000>;
  202. opp-microvolt = <1330000>;
  203. clock-latency-ns = <500000>;
  204. };
  205. };
  206. gic: interrupt-controller@f6801000 {
  207. compatible = "arm,gic-400";
  208. reg = <0x0 0xf6801000 0 0x1000>, /* GICD */
  209. <0x0 0xf6802000 0 0x2000>, /* GICC */
  210. <0x0 0xf6804000 0 0x2000>, /* GICH */
  211. <0x0 0xf6806000 0 0x2000>; /* GICV */
  212. #address-cells = <0>;
  213. #interrupt-cells = <3>;
  214. interrupt-controller;
  215. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
  216. };
  217. timer {
  218. compatible = "arm,armv8-timer";
  219. interrupt-parent = <&gic>;
  220. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  221. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  222. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  223. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
  224. };
  225. soc {
  226. compatible = "simple-bus";
  227. #address-cells = <2>;
  228. #size-cells = <2>;
  229. ranges;
  230. sram: sram@fff80000 {
  231. compatible = "hisilicon,hi6220-sramctrl", "syscon";
  232. reg = <0x0 0xfff80000 0x0 0x12000>;
  233. };
  234. ao_ctrl: ao_ctrl@f7800000 {
  235. compatible = "hisilicon,hi6220-aoctrl", "syscon";
  236. reg = <0x0 0xf7800000 0x0 0x2000>;
  237. #clock-cells = <1>;
  238. #reset-cells = <1>;
  239. };
  240. sys_ctrl: sys_ctrl@f7030000 {
  241. compatible = "hisilicon,hi6220-sysctrl", "syscon";
  242. reg = <0x0 0xf7030000 0x0 0x2000>;
  243. #clock-cells = <1>;
  244. #reset-cells = <1>;
  245. };
  246. media_ctrl: media_ctrl@f4410000 {
  247. compatible = "hisilicon,hi6220-mediactrl", "syscon";
  248. reg = <0x0 0xf4410000 0x0 0x1000>;
  249. #clock-cells = <1>;
  250. #reset-cells = <1>;
  251. };
  252. pm_ctrl: pm_ctrl@f7032000 {
  253. compatible = "hisilicon,hi6220-pmctrl", "syscon";
  254. reg = <0x0 0xf7032000 0x0 0x1000>;
  255. #clock-cells = <1>;
  256. };
  257. acpu_sctrl: acpu_sctrl@f6504000 {
  258. compatible = "hisilicon,hi6220-acpu-sctrl", "syscon";
  259. reg = <0x0 0xf6504000 0x0 0x1000>;
  260. #clock-cells = <1>;
  261. };
  262. medianoc_ade: medianoc_ade@f4520000 {
  263. compatible = "syscon";
  264. reg = <0x0 0xf4520000 0x0 0x4000>;
  265. };
  266. stub_clock: stub_clock {
  267. compatible = "hisilicon,hi6220-stub-clk";
  268. hisilicon,hi6220-clk-sram = <&sram>;
  269. #clock-cells = <1>;
  270. mbox-names = "mbox-tx";
  271. mboxes = <&mailbox 1 0 11>;
  272. };
  273. uart0: serial@f8015000 { /* console */
  274. compatible = "arm,pl011", "arm,primecell";
  275. reg = <0x0 0xf8015000 0x0 0x1000>;
  276. interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
  277. clocks = <&ao_ctrl HI6220_UART0_PCLK>,
  278. <&ao_ctrl HI6220_UART0_PCLK>;
  279. clock-names = "uartclk", "apb_pclk";
  280. };
  281. uart1: serial@f7111000 {
  282. compatible = "arm,pl011", "arm,primecell";
  283. reg = <0x0 0xf7111000 0x0 0x1000>;
  284. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  285. clocks = <&sys_ctrl HI6220_UART1_PCLK>,
  286. <&sys_ctrl HI6220_UART1_PCLK>;
  287. clock-names = "uartclk", "apb_pclk";
  288. pinctrl-names = "default";
  289. pinctrl-0 = <&uart1_pmx_func &uart1_cfg_func1 &uart1_cfg_func2>;
  290. dmas = <&dma0 8 &dma0 9>;
  291. dma-names = "rx", "tx";
  292. status = "disabled";
  293. };
  294. uart2: serial@f7112000 {
  295. compatible = "arm,pl011", "arm,primecell";
  296. reg = <0x0 0xf7112000 0x0 0x1000>;
  297. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  298. clocks = <&sys_ctrl HI6220_UART2_PCLK>,
  299. <&sys_ctrl HI6220_UART2_PCLK>;
  300. clock-names = "uartclk", "apb_pclk";
  301. pinctrl-names = "default";
  302. pinctrl-0 = <&uart2_pmx_func &uart2_cfg_func>;
  303. status = "disabled";
  304. };
  305. uart3: serial@f7113000 {
  306. compatible = "arm,pl011", "arm,primecell";
  307. reg = <0x0 0xf7113000 0x0 0x1000>;
  308. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  309. clocks = <&sys_ctrl HI6220_UART3_PCLK>,
  310. <&sys_ctrl HI6220_UART3_PCLK>;
  311. clock-names = "uartclk", "apb_pclk";
  312. pinctrl-names = "default";
  313. pinctrl-0 = <&uart3_pmx_func &uart3_cfg_func>;
  314. status = "disabled";
  315. };
  316. uart4: serial@f7114000 {
  317. compatible = "arm,pl011", "arm,primecell";
  318. reg = <0x0 0xf7114000 0x0 0x1000>;
  319. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
  320. clocks = <&sys_ctrl HI6220_UART4_PCLK>,
  321. <&sys_ctrl HI6220_UART4_PCLK>;
  322. clock-names = "uartclk", "apb_pclk";
  323. pinctrl-names = "default";
  324. pinctrl-0 = <&uart4_pmx_func &uart4_cfg_func>;
  325. status = "disabled";
  326. };
  327. dma0: dma@f7370000 {
  328. compatible = "hisilicon,k3-dma-1.0";
  329. reg = <0x0 0xf7370000 0x0 0x1000>;
  330. #dma-cells = <1>;
  331. dma-channels = <15>;
  332. dma-requests = <32>;
  333. interrupts = <0 84 4>;
  334. clocks = <&sys_ctrl HI6220_EDMAC_ACLK>;
  335. dma-no-cci;
  336. dma-type = "hi6220_dma";
  337. status = "okay";
  338. };
  339. dual_timer0: timer@f8008000 {
  340. compatible = "arm,sp804", "arm,primecell";
  341. reg = <0x0 0xf8008000 0x0 0x1000>;
  342. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
  343. <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
  344. clocks = <&ao_ctrl HI6220_TIMER0_PCLK>,
  345. <&ao_ctrl HI6220_TIMER0_PCLK>,
  346. <&ao_ctrl HI6220_TIMER0_PCLK>;
  347. clock-names = "timer1", "timer2", "apb_pclk";
  348. };
  349. rtc0: rtc@f8003000 {
  350. compatible = "arm,pl031", "arm,primecell";
  351. reg = <0x0 0xf8003000 0x0 0x1000>;
  352. interrupts = <0 12 4>;
  353. clocks = <&ao_ctrl HI6220_RTC0_PCLK>;
  354. clock-names = "apb_pclk";
  355. };
  356. rtc1: rtc@f8004000 {
  357. compatible = "arm,pl031", "arm,primecell";
  358. reg = <0x0 0xf8004000 0x0 0x1000>;
  359. interrupts = <0 8 4>;
  360. clocks = <&ao_ctrl HI6220_RTC1_PCLK>;
  361. clock-names = "apb_pclk";
  362. };
  363. pmx0: pinmux@f7010000 {
  364. compatible = "pinctrl-single";
  365. reg = <0x0 0xf7010000 0x0 0x27c>;
  366. #address-cells = <1>;
  367. #size-cells = <1>;
  368. #pinctrl-cells = <1>;
  369. #gpio-range-cells = <3>;
  370. pinctrl-single,register-width = <32>;
  371. pinctrl-single,function-mask = <7>;
  372. pinctrl-single,gpio-range = <
  373. &range 80 8 MUX_M0 /* gpio 3: [0..7] */
  374. &range 88 8 MUX_M0 /* gpio 4: [0..7] */
  375. &range 96 8 MUX_M0 /* gpio 5: [0..7] */
  376. &range 104 8 MUX_M0 /* gpio 6: [0..7] */
  377. &range 112 8 MUX_M0 /* gpio 7: [0..7] */
  378. &range 120 2 MUX_M0 /* gpio 8: [0..1] */
  379. &range 2 6 MUX_M1 /* gpio 8: [2..7] */
  380. &range 8 8 MUX_M1 /* gpio 9: [0..7] */
  381. &range 0 1 MUX_M1 /* gpio 10: [0] */
  382. &range 16 7 MUX_M1 /* gpio 10: [1..7] */
  383. &range 23 3 MUX_M1 /* gpio 11: [0..2] */
  384. &range 28 5 MUX_M1 /* gpio 11: [3..7] */
  385. &range 33 3 MUX_M1 /* gpio 12: [0..2] */
  386. &range 43 5 MUX_M1 /* gpio 12: [3..7] */
  387. &range 48 8 MUX_M1 /* gpio 13: [0..7] */
  388. &range 56 8 MUX_M1 /* gpio 14: [0..7] */
  389. &range 74 6 MUX_M1 /* gpio 15: [0..5] */
  390. &range 122 1 MUX_M1 /* gpio 15: [6] */
  391. &range 126 1 MUX_M1 /* gpio 15: [7] */
  392. &range 127 8 MUX_M1 /* gpio 16: [0..7] */
  393. &range 135 8 MUX_M1 /* gpio 17: [0..7] */
  394. &range 143 8 MUX_M1 /* gpio 18: [0..7] */
  395. &range 151 8 MUX_M1 /* gpio 19: [0..7] */
  396. >;
  397. range: gpio-range {
  398. #pinctrl-single,gpio-range-cells = <3>;
  399. };
  400. };
  401. pmx1: pinmux@f7010800 {
  402. compatible = "pinconf-single";
  403. reg = <0x0 0xf7010800 0x0 0x28c>;
  404. #address-cells = <1>;
  405. #size-cells = <1>;
  406. #pinctrl-cells = <1>;
  407. pinctrl-single,register-width = <32>;
  408. };
  409. pmx2: pinmux@f8001800 {
  410. compatible = "pinconf-single";
  411. reg = <0x0 0xf8001800 0x0 0x78>;
  412. #address-cells = <1>;
  413. #size-cells = <1>;
  414. #pinctrl-cells = <1>;
  415. pinctrl-single,register-width = <32>;
  416. };
  417. gpio0: gpio@f8011000 {
  418. compatible = "arm,pl061", "arm,primecell";
  419. reg = <0x0 0xf8011000 0x0 0x1000>;
  420. interrupts = <0 52 0x4>;
  421. gpio-controller;
  422. #gpio-cells = <2>;
  423. interrupt-controller;
  424. #interrupt-cells = <2>;
  425. clocks = <&ao_ctrl 2>;
  426. clock-names = "apb_pclk";
  427. };
  428. gpio1: gpio@f8012000 {
  429. compatible = "arm,pl061", "arm,primecell";
  430. reg = <0x0 0xf8012000 0x0 0x1000>;
  431. interrupts = <0 53 0x4>;
  432. gpio-controller;
  433. #gpio-cells = <2>;
  434. interrupt-controller;
  435. #interrupt-cells = <2>;
  436. clocks = <&ao_ctrl 2>;
  437. clock-names = "apb_pclk";
  438. };
  439. gpio2: gpio@f8013000 {
  440. compatible = "arm,pl061", "arm,primecell";
  441. reg = <0x0 0xf8013000 0x0 0x1000>;
  442. interrupts = <0 54 0x4>;
  443. gpio-controller;
  444. #gpio-cells = <2>;
  445. interrupt-controller;
  446. #interrupt-cells = <2>;
  447. clocks = <&ao_ctrl 2>;
  448. clock-names = "apb_pclk";
  449. };
  450. gpio3: gpio@f8014000 {
  451. compatible = "arm,pl061", "arm,primecell";
  452. reg = <0x0 0xf8014000 0x0 0x1000>;
  453. interrupts = <0 55 0x4>;
  454. gpio-controller;
  455. #gpio-cells = <2>;
  456. gpio-ranges = <&pmx0 0 80 8>;
  457. interrupt-controller;
  458. #interrupt-cells = <2>;
  459. clocks = <&ao_ctrl 2>;
  460. clock-names = "apb_pclk";
  461. };
  462. gpio4: gpio@f7020000 {
  463. compatible = "arm,pl061", "arm,primecell";
  464. reg = <0x0 0xf7020000 0x0 0x1000>;
  465. interrupts = <0 56 0x4>;
  466. gpio-controller;
  467. #gpio-cells = <2>;
  468. gpio-ranges = <&pmx0 0 88 8>;
  469. interrupt-controller;
  470. #interrupt-cells = <2>;
  471. clocks = <&ao_ctrl 2>;
  472. clock-names = "apb_pclk";
  473. };
  474. gpio5: gpio@f7021000 {
  475. compatible = "arm,pl061", "arm,primecell";
  476. reg = <0x0 0xf7021000 0x0 0x1000>;
  477. interrupts = <0 57 0x4>;
  478. gpio-controller;
  479. #gpio-cells = <2>;
  480. gpio-ranges = <&pmx0 0 96 8>;
  481. interrupt-controller;
  482. #interrupt-cells = <2>;
  483. clocks = <&ao_ctrl 2>;
  484. clock-names = "apb_pclk";
  485. };
  486. gpio6: gpio@f7022000 {
  487. compatible = "arm,pl061", "arm,primecell";
  488. reg = <0x0 0xf7022000 0x0 0x1000>;
  489. interrupts = <0 58 0x4>;
  490. gpio-controller;
  491. #gpio-cells = <2>;
  492. gpio-ranges = <&pmx0 0 104 8>;
  493. interrupt-controller;
  494. #interrupt-cells = <2>;
  495. clocks = <&ao_ctrl 2>;
  496. clock-names = "apb_pclk";
  497. };
  498. gpio7: gpio@f7023000 {
  499. compatible = "arm,pl061", "arm,primecell";
  500. reg = <0x0 0xf7023000 0x0 0x1000>;
  501. interrupts = <0 59 0x4>;
  502. gpio-controller;
  503. #gpio-cells = <2>;
  504. gpio-ranges = <&pmx0 0 112 8>;
  505. interrupt-controller;
  506. #interrupt-cells = <2>;
  507. clocks = <&ao_ctrl 2>;
  508. clock-names = "apb_pclk";
  509. };
  510. gpio8: gpio@f7024000 {
  511. compatible = "arm,pl061", "arm,primecell";
  512. reg = <0x0 0xf7024000 0x0 0x1000>;
  513. interrupts = <0 60 0x4>;
  514. gpio-controller;
  515. #gpio-cells = <2>;
  516. gpio-ranges = <&pmx0 0 120 2 &pmx0 2 2 6>;
  517. interrupt-controller;
  518. #interrupt-cells = <2>;
  519. clocks = <&ao_ctrl 2>;
  520. clock-names = "apb_pclk";
  521. };
  522. gpio9: gpio@f7025000 {
  523. compatible = "arm,pl061", "arm,primecell";
  524. reg = <0x0 0xf7025000 0x0 0x1000>;
  525. interrupts = <0 61 0x4>;
  526. gpio-controller;
  527. #gpio-cells = <2>;
  528. gpio-ranges = <&pmx0 0 8 8>;
  529. interrupt-controller;
  530. #interrupt-cells = <2>;
  531. clocks = <&ao_ctrl 2>;
  532. clock-names = "apb_pclk";
  533. };
  534. gpio10: gpio@f7026000 {
  535. compatible = "arm,pl061", "arm,primecell";
  536. reg = <0x0 0xf7026000 0x0 0x1000>;
  537. interrupts = <0 62 0x4>;
  538. gpio-controller;
  539. #gpio-cells = <2>;
  540. gpio-ranges = <&pmx0 0 0 1 &pmx0 1 16 7>;
  541. interrupt-controller;
  542. #interrupt-cells = <2>;
  543. clocks = <&ao_ctrl 2>;
  544. clock-names = "apb_pclk";
  545. };
  546. gpio11: gpio@f7027000 {
  547. compatible = "arm,pl061", "arm,primecell";
  548. reg = <0x0 0xf7027000 0x0 0x1000>;
  549. interrupts = <0 63 0x4>;
  550. gpio-controller;
  551. #gpio-cells = <2>;
  552. gpio-ranges = <&pmx0 0 23 3 &pmx0 3 28 5>;
  553. interrupt-controller;
  554. #interrupt-cells = <2>;
  555. clocks = <&ao_ctrl 2>;
  556. clock-names = "apb_pclk";
  557. };
  558. gpio12: gpio@f7028000 {
  559. compatible = "arm,pl061", "arm,primecell";
  560. reg = <0x0 0xf7028000 0x0 0x1000>;
  561. interrupts = <0 64 0x4>;
  562. gpio-controller;
  563. #gpio-cells = <2>;
  564. gpio-ranges = <&pmx0 0 33 3 &pmx0 3 43 5>;
  565. interrupt-controller;
  566. #interrupt-cells = <2>;
  567. clocks = <&ao_ctrl 2>;
  568. clock-names = "apb_pclk";
  569. };
  570. gpio13: gpio@f7029000 {
  571. compatible = "arm,pl061", "arm,primecell";
  572. reg = <0x0 0xf7029000 0x0 0x1000>;
  573. interrupts = <0 65 0x4>;
  574. gpio-controller;
  575. #gpio-cells = <2>;
  576. gpio-ranges = <&pmx0 0 48 8>;
  577. interrupt-controller;
  578. #interrupt-cells = <2>;
  579. clocks = <&ao_ctrl 2>;
  580. clock-names = "apb_pclk";
  581. };
  582. gpio14: gpio@f702a000 {
  583. compatible = "arm,pl061", "arm,primecell";
  584. reg = <0x0 0xf702a000 0x0 0x1000>;
  585. interrupts = <0 66 0x4>;
  586. gpio-controller;
  587. #gpio-cells = <2>;
  588. gpio-ranges = <&pmx0 0 56 8>;
  589. interrupt-controller;
  590. #interrupt-cells = <2>;
  591. clocks = <&ao_ctrl 2>;
  592. clock-names = "apb_pclk";
  593. };
  594. gpio15: gpio@f702b000 {
  595. compatible = "arm,pl061", "arm,primecell";
  596. reg = <0x0 0xf702b000 0x0 0x1000>;
  597. interrupts = <0 67 0x4>;
  598. gpio-controller;
  599. #gpio-cells = <2>;
  600. gpio-ranges = <
  601. &pmx0 0 74 6
  602. &pmx0 6 122 1
  603. &pmx0 7 126 1
  604. >;
  605. interrupt-controller;
  606. #interrupt-cells = <2>;
  607. clocks = <&ao_ctrl 2>;
  608. clock-names = "apb_pclk";
  609. };
  610. gpio16: gpio@f702c000 {
  611. compatible = "arm,pl061", "arm,primecell";
  612. reg = <0x0 0xf702c000 0x0 0x1000>;
  613. interrupts = <0 68 0x4>;
  614. gpio-controller;
  615. #gpio-cells = <2>;
  616. gpio-ranges = <&pmx0 0 127 8>;
  617. interrupt-controller;
  618. #interrupt-cells = <2>;
  619. clocks = <&ao_ctrl 2>;
  620. clock-names = "apb_pclk";
  621. };
  622. gpio17: gpio@f702d000 {
  623. compatible = "arm,pl061", "arm,primecell";
  624. reg = <0x0 0xf702d000 0x0 0x1000>;
  625. interrupts = <0 69 0x4>;
  626. gpio-controller;
  627. #gpio-cells = <2>;
  628. gpio-ranges = <&pmx0 0 135 8>;
  629. interrupt-controller;
  630. #interrupt-cells = <2>;
  631. clocks = <&ao_ctrl 2>;
  632. clock-names = "apb_pclk";
  633. };
  634. gpio18: gpio@f702e000 {
  635. compatible = "arm,pl061", "arm,primecell";
  636. reg = <0x0 0xf702e000 0x0 0x1000>;
  637. interrupts = <0 70 0x4>;
  638. gpio-controller;
  639. #gpio-cells = <2>;
  640. gpio-ranges = <&pmx0 0 143 8>;
  641. interrupt-controller;
  642. #interrupt-cells = <2>;
  643. clocks = <&ao_ctrl 2>;
  644. clock-names = "apb_pclk";
  645. };
  646. gpio19: gpio@f702f000 {
  647. compatible = "arm,pl061", "arm,primecell";
  648. reg = <0x0 0xf702f000 0x0 0x1000>;
  649. interrupts = <0 71 0x4>;
  650. gpio-controller;
  651. #gpio-cells = <2>;
  652. gpio-ranges = <&pmx0 0 151 8>;
  653. interrupt-controller;
  654. #interrupt-cells = <2>;
  655. clocks = <&ao_ctrl 2>;
  656. clock-names = "apb_pclk";
  657. };
  658. spi0: spi@f7106000 {
  659. compatible = "arm,pl022", "arm,primecell";
  660. reg = <0x0 0xf7106000 0x0 0x1000>;
  661. interrupts = <0 50 4>;
  662. bus-id = <0>;
  663. enable-dma = <0>;
  664. clocks = <&sys_ctrl HI6220_SPI_CLK>, <&sys_ctrl HI6220_SPI_CLK>;
  665. clock-names = "sspclk", "apb_pclk";
  666. pinctrl-names = "default";
  667. pinctrl-0 = <&spi0_pmx_func &spi0_cfg_func>;
  668. num-cs = <1>;
  669. cs-gpios = <&gpio6 2 0>;
  670. status = "disabled";
  671. };
  672. i2c0: i2c@f7100000 {
  673. compatible = "snps,designware-i2c";
  674. reg = <0x0 0xf7100000 0x0 0x1000>;
  675. interrupts = <0 44 4>;
  676. clocks = <&sys_ctrl HI6220_I2C0_CLK>;
  677. i2c-sda-hold-time-ns = <300>;
  678. pinctrl-names = "default";
  679. pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>;
  680. status = "disabled";
  681. };
  682. i2c1: i2c@f7101000 {
  683. compatible = "snps,designware-i2c";
  684. reg = <0x0 0xf7101000 0x0 0x1000>;
  685. clocks = <&sys_ctrl HI6220_I2C1_CLK>;
  686. interrupts = <0 45 4>;
  687. i2c-sda-hold-time-ns = <300>;
  688. pinctrl-names = "default";
  689. pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
  690. status = "disabled";
  691. };
  692. i2c2: i2c@f7102000 {
  693. compatible = "snps,designware-i2c";
  694. reg = <0x0 0xf7102000 0x0 0x1000>;
  695. clocks = <&sys_ctrl HI6220_I2C2_CLK>;
  696. interrupts = <0 46 4>;
  697. i2c-sda-hold-time-ns = <300>;
  698. pinctrl-names = "default";
  699. pinctrl-0 = <&i2c2_pmx_func &i2c2_cfg_func>;
  700. status = "disabled";
  701. };
  702. usb_phy: usbphy {
  703. compatible = "hisilicon,hi6220-usb-phy";
  704. #phy-cells = <0>;
  705. phy-supply = <&reg_5v_hub>;
  706. hisilicon,peripheral-syscon = <&sys_ctrl>;
  707. };
  708. usb: usb@f72c0000 {
  709. compatible = "hisilicon,hi6220-usb";
  710. reg = <0x0 0xf72c0000 0x0 0x40000>;
  711. phys = <&usb_phy>;
  712. phy-names = "usb2-phy";
  713. clocks = <&sys_ctrl HI6220_USBOTG_HCLK>;
  714. clock-names = "otg";
  715. dr_mode = "otg";
  716. g-rx-fifo-size = <512>;
  717. g-np-tx-fifo-size = <128>;
  718. g-tx-fifo-size = <128 128 128 128 128 128 128 128
  719. 16 16 16 16 16 16 16>;
  720. interrupts = <0 77 0x4>;
  721. };
  722. mailbox: mailbox@f7510000 {
  723. compatible = "hisilicon,hi6220-mbox";
  724. reg = <0x0 0xf7510000 0x0 0x1000>, /* IPC_S */
  725. <0x0 0x06dff800 0x0 0x0800>; /* Mailbox buffer */
  726. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
  727. #mbox-cells = <3>;
  728. };
  729. dwmmc_0: dwmmc0@f723d000 {
  730. compatible = "hisilicon,hi6220-dw-mshc";
  731. reg = <0x0 0xf723d000 0x0 0x1000>;
  732. interrupts = <0x0 0x48 0x4>;
  733. clocks = <&sys_ctrl 2>, <&sys_ctrl 1>;
  734. clock-names = "ciu", "biu";
  735. resets = <&sys_ctrl PERIPH_RSTDIS0_MMC0>;
  736. reset-names = "reset";
  737. pinctrl-names = "default";
  738. pinctrl-0 = <&emmc_pmx_func &emmc_clk_cfg_func
  739. &emmc_cfg_func &emmc_rst_cfg_func>;
  740. };
  741. dwmmc_1: dwmmc1@f723e000 {
  742. compatible = "hisilicon,hi6220-dw-mshc";
  743. hisilicon,peripheral-syscon = <&ao_ctrl>;
  744. reg = <0x0 0xf723e000 0x0 0x1000>;
  745. interrupts = <0x0 0x49 0x4>;
  746. #address-cells = <0x1>;
  747. #size-cells = <0x0>;
  748. clocks = <&sys_ctrl 4>, <&sys_ctrl 3>;
  749. clock-names = "ciu", "biu";
  750. resets = <&sys_ctrl PERIPH_RSTDIS0_MMC1>;
  751. reset-names = "reset";
  752. pinctrl-names = "default", "idle";
  753. pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>;
  754. pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>;
  755. };
  756. dwmmc_2: dwmmc2@f723f000 {
  757. compatible = "hisilicon,hi6220-dw-mshc";
  758. reg = <0x0 0xf723f000 0x0 0x1000>;
  759. interrupts = <0x0 0x4a 0x4>;
  760. clocks = <&sys_ctrl HI6220_MMC2_CIUCLK>, <&sys_ctrl HI6220_MMC2_CLK>;
  761. clock-names = "ciu", "biu";
  762. resets = <&sys_ctrl PERIPH_RSTDIS0_MMC2>;
  763. reset-names = "reset";
  764. pinctrl-names = "default", "idle";
  765. pinctrl-0 = <&sdio_pmx_func &sdio_clk_cfg_func &sdio_cfg_func>;
  766. pinctrl-1 = <&sdio_pmx_idle &sdio_clk_cfg_idle &sdio_cfg_idle>;
  767. };
  768. watchdog0: watchdog@f8005000 {
  769. compatible = "arm,sp805", "arm,primecell";
  770. reg = <0x0 0xf8005000 0x0 0x1000>;
  771. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  772. clocks = <&ao_ctrl HI6220_WDT0_PCLK>,
  773. <&ao_ctrl HI6220_WDT0_PCLK>;
  774. clock-names = "wdog_clk", "apb_pclk";
  775. };
  776. tsensor: tsensor@0,f7030700 {
  777. compatible = "hisilicon,tsensor";
  778. reg = <0x0 0xf7030700 0x0 0x1000>;
  779. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  780. clocks = <&sys_ctrl 22>;
  781. clock-names = "thermal_clk";
  782. #thermal-sensor-cells = <1>;
  783. };
  784. i2s0: i2s@f7118000{
  785. compatible = "hisilicon,hi6210-i2s";
  786. reg = <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */
  787. interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; /* 155 "DigACodec_intr"-32 */
  788. clocks = <&sys_ctrl HI6220_DACODEC_PCLK>,
  789. <&sys_ctrl HI6220_BBPPLL0_DIV>;
  790. clock-names = "dacodec", "i2s-base";
  791. dmas = <&dma0 15 &dma0 14>;
  792. dma-names = "rx", "tx";
  793. hisilicon,sysctrl-syscon = <&sys_ctrl>;
  794. #sound-dai-cells = <1>;
  795. };
  796. thermal-zones {
  797. cls0: cls0-thermal {
  798. polling-delay = <1000>;
  799. polling-delay-passive = <100>;
  800. sustainable-power = <3326>;
  801. /* sensor ID */
  802. thermal-sensors = <&tsensor 2>;
  803. trips {
  804. threshold: trip-point0 {
  805. temperature = <65000>;
  806. hysteresis = <0>;
  807. type = "passive";
  808. };
  809. target: trip-point1 {
  810. temperature = <75000>;
  811. hysteresis = <0>;
  812. type = "passive";
  813. };
  814. };
  815. cooling-maps {
  816. map0 {
  817. trip = <&target>;
  818. cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  819. <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  820. <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  821. <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  822. <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  823. <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  824. <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  825. <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  826. };
  827. };
  828. };
  829. };
  830. ade: ade@f4100000 {
  831. compatible = "hisilicon,hi6220-ade";
  832. reg = <0x0 0xf4100000 0x0 0x7800>;
  833. reg-names = "ade_base";
  834. hisilicon,noc-syscon = <&medianoc_ade>;
  835. resets = <&media_ctrl MEDIA_ADE>;
  836. interrupts = <0 115 4>; /* ldi interrupt */
  837. clocks = <&media_ctrl HI6220_ADE_CORE>,
  838. <&media_ctrl HI6220_CODEC_JPEG>,
  839. <&media_ctrl HI6220_ADE_PIX_SRC>;
  840. /*clock name*/
  841. clock-names = "clk_ade_core",
  842. "clk_codec_jpeg",
  843. "clk_ade_pix";
  844. assigned-clocks = <&media_ctrl HI6220_ADE_CORE>,
  845. <&media_ctrl HI6220_CODEC_JPEG>;
  846. assigned-clock-rates = <360000000>, <288000000>;
  847. dma-coherent;
  848. status = "disabled";
  849. port {
  850. ade_out: endpoint {
  851. remote-endpoint = <&dsi_in>;
  852. };
  853. };
  854. };
  855. dsi: dsi@f4107800 {
  856. compatible = "hisilicon,hi6220-dsi";
  857. reg = <0x0 0xf4107800 0x0 0x100>;
  858. clocks = <&media_ctrl HI6220_DSI_PCLK>;
  859. clock-names = "pclk";
  860. status = "disabled";
  861. ports {
  862. #address-cells = <1>;
  863. #size-cells = <0>;
  864. /* 0 for input port */
  865. port@0 {
  866. reg = <0>;
  867. dsi_in: endpoint {
  868. remote-endpoint = <&ade_out>;
  869. };
  870. };
  871. };
  872. };
  873. debug@f6590000 {
  874. compatible = "arm,coresight-cpu-debug","arm,primecell";
  875. reg = <0 0xf6590000 0 0x1000>;
  876. clocks = <&sys_ctrl HI6220_DAPB_CLK>;
  877. clock-names = "apb_pclk";
  878. cpu = <&cpu0>;
  879. };
  880. debug@f6592000 {
  881. compatible = "arm,coresight-cpu-debug","arm,primecell";
  882. reg = <0 0xf6592000 0 0x1000>;
  883. clocks = <&sys_ctrl HI6220_DAPB_CLK>;
  884. clock-names = "apb_pclk";
  885. cpu = <&cpu1>;
  886. };
  887. debug@f6594000 {
  888. compatible = "arm,coresight-cpu-debug","arm,primecell";
  889. reg = <0 0xf6594000 0 0x1000>;
  890. clocks = <&sys_ctrl HI6220_DAPB_CLK>;
  891. clock-names = "apb_pclk";
  892. cpu = <&cpu2>;
  893. };
  894. debug@f6596000 {
  895. compatible = "arm,coresight-cpu-debug","arm,primecell";
  896. reg = <0 0xf6596000 0 0x1000>;
  897. clocks = <&sys_ctrl HI6220_DAPB_CLK>;
  898. clock-names = "apb_pclk";
  899. cpu = <&cpu3>;
  900. };
  901. debug@f65d0000 {
  902. compatible = "arm,coresight-cpu-debug","arm,primecell";
  903. reg = <0 0xf65d0000 0 0x1000>;
  904. clocks = <&sys_ctrl HI6220_DAPB_CLK>;
  905. clock-names = "apb_pclk";
  906. cpu = <&cpu4>;
  907. };
  908. debug@f65d2000 {
  909. compatible = "arm,coresight-cpu-debug","arm,primecell";
  910. reg = <0 0xf65d2000 0 0x1000>;
  911. clocks = <&sys_ctrl HI6220_DAPB_CLK>;
  912. clock-names = "apb_pclk";
  913. cpu = <&cpu5>;
  914. };
  915. debug@f65d4000 {
  916. compatible = "arm,coresight-cpu-debug","arm,primecell";
  917. reg = <0 0xf65d4000 0 0x1000>;
  918. clocks = <&sys_ctrl HI6220_DAPB_CLK>;
  919. clock-names = "apb_pclk";
  920. cpu = <&cpu6>;
  921. };
  922. debug@f65d6000 {
  923. compatible = "arm,coresight-cpu-debug","arm,primecell";
  924. reg = <0 0xf65d6000 0 0x1000>;
  925. clocks = <&sys_ctrl HI6220_DAPB_CLK>;
  926. clock-names = "apb_pclk";
  927. cpu = <&cpu7>;
  928. };
  929. mali: gpu@f4080000 {
  930. compatible = "hisilicon,hi6220-mali", "arm,mali-450";
  931. reg = <0x0 0xf4080000 0x0 0x00040000>;
  932. interrupt-parent = <&gic>;
  933. interrupts = <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  934. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  935. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  936. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  937. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  938. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  939. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  940. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  941. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  942. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
  943. <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>;
  944. interrupt-names = "gp",
  945. "gpmmu",
  946. "pp",
  947. "pp0",
  948. "ppmmu0",
  949. "pp1",
  950. "ppmmu1",
  951. "pp2",
  952. "ppmmu2",
  953. "pp3",
  954. "ppmmu3";
  955. clocks = <&media_ctrl HI6220_G3D_CLK>,
  956. <&media_ctrl HI6220_G3D_PCLK>;
  957. clock-names = "bus", "core";
  958. assigned-clocks = <&media_ctrl HI6220_G3D_CLK>,
  959. <&media_ctrl HI6220_G3D_PCLK>;
  960. assigned-clock-rates = <500000000>, <144000000>;
  961. reset-names = "ao_g3d", "media_g3d";
  962. resets = <&ao_ctrl AO_G3D>, <&media_ctrl MEDIA_G3D>;
  963. };
  964. };
  965. };
  966. #include "hi6220-coresight.dtsi"