hi6220.dtsi 26 KB

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