uniphier-ld20.dtsi 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. /*
  2. * Device Tree Source for UniPhier LD20 SoC
  3. *
  4. * Copyright (C) 2015-2016 Socionext Inc.
  5. * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+ X11
  8. */
  9. /memreserve/ 0x80000000 0x00080000;
  10. / {
  11. compatible = "socionext,uniphier-ld20";
  12. #address-cells = <2>;
  13. #size-cells = <2>;
  14. interrupt-parent = <&gic>;
  15. cpus {
  16. #address-cells = <2>;
  17. #size-cells = <0>;
  18. cpu-map {
  19. cluster0 {
  20. core0 {
  21. cpu = <&cpu0>;
  22. };
  23. core1 {
  24. cpu = <&cpu1>;
  25. };
  26. };
  27. cluster1 {
  28. core0 {
  29. cpu = <&cpu2>;
  30. };
  31. core1 {
  32. cpu = <&cpu3>;
  33. };
  34. };
  35. };
  36. cpu0: cpu@0 {
  37. device_type = "cpu";
  38. compatible = "arm,cortex-a72", "arm,armv8";
  39. reg = <0 0x000>;
  40. clocks = <&sys_clk 32>;
  41. enable-method = "psci";
  42. operating-points-v2 = <&cluster0_opp>;
  43. };
  44. cpu1: cpu@1 {
  45. device_type = "cpu";
  46. compatible = "arm,cortex-a72", "arm,armv8";
  47. reg = <0 0x001>;
  48. clocks = <&sys_clk 32>;
  49. enable-method = "psci";
  50. operating-points-v2 = <&cluster0_opp>;
  51. };
  52. cpu2: cpu@100 {
  53. device_type = "cpu";
  54. compatible = "arm,cortex-a53", "arm,armv8";
  55. reg = <0 0x100>;
  56. clocks = <&sys_clk 33>;
  57. enable-method = "psci";
  58. operating-points-v2 = <&cluster1_opp>;
  59. };
  60. cpu3: cpu@101 {
  61. device_type = "cpu";
  62. compatible = "arm,cortex-a53", "arm,armv8";
  63. reg = <0 0x101>;
  64. clocks = <&sys_clk 33>;
  65. enable-method = "psci";
  66. operating-points-v2 = <&cluster1_opp>;
  67. };
  68. };
  69. cluster0_opp: opp_table0 {
  70. compatible = "operating-points-v2";
  71. opp-shared;
  72. opp@250000000 {
  73. opp-hz = /bits/ 64 <250000000>;
  74. clock-latency-ns = <300>;
  75. };
  76. opp@275000000 {
  77. opp-hz = /bits/ 64 <275000000>;
  78. clock-latency-ns = <300>;
  79. };
  80. opp@500000000 {
  81. opp-hz = /bits/ 64 <500000000>;
  82. clock-latency-ns = <300>;
  83. };
  84. opp@550000000 {
  85. opp-hz = /bits/ 64 <550000000>;
  86. clock-latency-ns = <300>;
  87. };
  88. opp@666667000 {
  89. opp-hz = /bits/ 64 <666667000>;
  90. clock-latency-ns = <300>;
  91. };
  92. opp@733334000 {
  93. opp-hz = /bits/ 64 <733334000>;
  94. clock-latency-ns = <300>;
  95. };
  96. opp@1000000000 {
  97. opp-hz = /bits/ 64 <1000000000>;
  98. clock-latency-ns = <300>;
  99. };
  100. opp@1100000000 {
  101. opp-hz = /bits/ 64 <1100000000>;
  102. clock-latency-ns = <300>;
  103. };
  104. };
  105. cluster1_opp: opp_table1 {
  106. compatible = "operating-points-v2";
  107. opp-shared;
  108. opp@250000000 {
  109. opp-hz = /bits/ 64 <250000000>;
  110. clock-latency-ns = <300>;
  111. };
  112. opp@275000000 {
  113. opp-hz = /bits/ 64 <275000000>;
  114. clock-latency-ns = <300>;
  115. };
  116. opp@500000000 {
  117. opp-hz = /bits/ 64 <500000000>;
  118. clock-latency-ns = <300>;
  119. };
  120. opp@550000000 {
  121. opp-hz = /bits/ 64 <550000000>;
  122. clock-latency-ns = <300>;
  123. };
  124. opp@666667000 {
  125. opp-hz = /bits/ 64 <666667000>;
  126. clock-latency-ns = <300>;
  127. };
  128. opp@733334000 {
  129. opp-hz = /bits/ 64 <733334000>;
  130. clock-latency-ns = <300>;
  131. };
  132. opp@1000000000 {
  133. opp-hz = /bits/ 64 <1000000000>;
  134. clock-latency-ns = <300>;
  135. };
  136. opp@1100000000 {
  137. opp-hz = /bits/ 64 <1100000000>;
  138. clock-latency-ns = <300>;
  139. };
  140. };
  141. psci {
  142. compatible = "arm,psci-1.0";
  143. method = "smc";
  144. };
  145. clocks {
  146. refclk: ref {
  147. compatible = "fixed-clock";
  148. #clock-cells = <0>;
  149. clock-frequency = <25000000>;
  150. };
  151. };
  152. timer {
  153. compatible = "arm,armv8-timer";
  154. interrupts = <1 13 4>,
  155. <1 14 4>,
  156. <1 11 4>,
  157. <1 10 4>;
  158. };
  159. soc {
  160. compatible = "simple-bus";
  161. #address-cells = <1>;
  162. #size-cells = <1>;
  163. ranges = <0 0 0 0xffffffff>;
  164. u-boot,dm-pre-reloc;
  165. serial0: serial@54006800 {
  166. compatible = "socionext,uniphier-uart";
  167. status = "disabled";
  168. reg = <0x54006800 0x40>;
  169. interrupts = <0 33 4>;
  170. pinctrl-names = "default";
  171. pinctrl-0 = <&pinctrl_uart0>;
  172. clocks = <&peri_clk 0>;
  173. clock-frequency = <58820000>;
  174. };
  175. serial1: serial@54006900 {
  176. compatible = "socionext,uniphier-uart";
  177. status = "disabled";
  178. reg = <0x54006900 0x40>;
  179. interrupts = <0 35 4>;
  180. pinctrl-names = "default";
  181. pinctrl-0 = <&pinctrl_uart1>;
  182. clocks = <&peri_clk 1>;
  183. clock-frequency = <58820000>;
  184. };
  185. serial2: serial@54006a00 {
  186. compatible = "socionext,uniphier-uart";
  187. status = "disabled";
  188. reg = <0x54006a00 0x40>;
  189. interrupts = <0 37 4>;
  190. pinctrl-names = "default";
  191. pinctrl-0 = <&pinctrl_uart2>;
  192. clocks = <&peri_clk 2>;
  193. clock-frequency = <58820000>;
  194. };
  195. serial3: serial@54006b00 {
  196. compatible = "socionext,uniphier-uart";
  197. status = "disabled";
  198. reg = <0x54006b00 0x40>;
  199. interrupts = <0 177 4>;
  200. pinctrl-names = "default";
  201. pinctrl-0 = <&pinctrl_uart3>;
  202. clocks = <&peri_clk 3>;
  203. clock-frequency = <58820000>;
  204. };
  205. i2c0: i2c@58780000 {
  206. compatible = "socionext,uniphier-fi2c";
  207. status = "disabled";
  208. reg = <0x58780000 0x80>;
  209. #address-cells = <1>;
  210. #size-cells = <0>;
  211. interrupts = <0 41 4>;
  212. pinctrl-names = "default";
  213. pinctrl-0 = <&pinctrl_i2c0>;
  214. clocks = <&peri_clk 4>;
  215. clock-frequency = <100000>;
  216. };
  217. i2c1: i2c@58781000 {
  218. compatible = "socionext,uniphier-fi2c";
  219. status = "disabled";
  220. reg = <0x58781000 0x80>;
  221. #address-cells = <1>;
  222. #size-cells = <0>;
  223. interrupts = <0 42 4>;
  224. pinctrl-names = "default";
  225. pinctrl-0 = <&pinctrl_i2c1>;
  226. clocks = <&peri_clk 5>;
  227. clock-frequency = <100000>;
  228. };
  229. i2c2: i2c@58782000 {
  230. compatible = "socionext,uniphier-fi2c";
  231. reg = <0x58782000 0x80>;
  232. #address-cells = <1>;
  233. #size-cells = <0>;
  234. interrupts = <0 43 4>;
  235. clocks = <&peri_clk 6>;
  236. clock-frequency = <400000>;
  237. };
  238. i2c3: i2c@58783000 {
  239. compatible = "socionext,uniphier-fi2c";
  240. status = "disabled";
  241. reg = <0x58783000 0x80>;
  242. #address-cells = <1>;
  243. #size-cells = <0>;
  244. interrupts = <0 44 4>;
  245. pinctrl-names = "default";
  246. pinctrl-0 = <&pinctrl_i2c3>;
  247. clocks = <&peri_clk 7>;
  248. clock-frequency = <100000>;
  249. };
  250. i2c4: i2c@58784000 {
  251. compatible = "socionext,uniphier-fi2c";
  252. status = "disabled";
  253. reg = <0x58784000 0x80>;
  254. #address-cells = <1>;
  255. #size-cells = <0>;
  256. interrupts = <0 45 4>;
  257. pinctrl-names = "default";
  258. pinctrl-0 = <&pinctrl_i2c4>;
  259. clocks = <&peri_clk 8>;
  260. clock-frequency = <100000>;
  261. };
  262. i2c5: i2c@58785000 {
  263. compatible = "socionext,uniphier-fi2c";
  264. reg = <0x58785000 0x80>;
  265. #address-cells = <1>;
  266. #size-cells = <0>;
  267. interrupts = <0 25 4>;
  268. clocks = <&peri_clk 9>;
  269. clock-frequency = <400000>;
  270. };
  271. system_bus: system-bus@58c00000 {
  272. compatible = "socionext,uniphier-system-bus";
  273. status = "disabled";
  274. reg = <0x58c00000 0x400>;
  275. #address-cells = <2>;
  276. #size-cells = <1>;
  277. pinctrl-names = "default";
  278. pinctrl-0 = <&pinctrl_system_bus>;
  279. };
  280. smpctrl@59800000 {
  281. compatible = "socionext,uniphier-smpctrl";
  282. reg = <0x59801000 0x400>;
  283. };
  284. sdctrl@59810000 {
  285. compatible = "socionext,uniphier-ld20-sdctrl",
  286. "simple-mfd", "syscon";
  287. reg = <0x59810000 0x800>;
  288. sd_clk: clock {
  289. compatible = "socionext,uniphier-ld20-sd-clock";
  290. #clock-cells = <1>;
  291. };
  292. sd_rst: reset {
  293. compatible = "socionext,uniphier-ld20-sd-reset";
  294. #reset-cells = <1>;
  295. };
  296. };
  297. perictrl@59820000 {
  298. compatible = "socionext,uniphier-ld20-perictrl",
  299. "simple-mfd", "syscon";
  300. reg = <0x59820000 0x200>;
  301. peri_clk: clock {
  302. compatible = "socionext,uniphier-ld20-peri-clock";
  303. #clock-cells = <1>;
  304. };
  305. peri_rst: reset {
  306. compatible = "socionext,uniphier-ld20-peri-reset";
  307. #reset-cells = <1>;
  308. };
  309. };
  310. emmc: sdhc@5a000000 {
  311. compatible = "cdns,sd4hc";
  312. reg = <0x5a000000 0x400>;
  313. interrupts = <0 78 4>;
  314. pinctrl-names = "default";
  315. pinctrl-0 = <&pinctrl_emmc_1v8>;
  316. clocks = <&sys_clk 4>;
  317. bus-width = <8>;
  318. mmc-ddr-1_8v;
  319. mmc-hs200-1_8v;
  320. /* mmc-hs400-1_8v; support depends on board design */
  321. };
  322. sd: sdhc@5a400000 {
  323. compatible = "socionext,uniphier-sdhc";
  324. status = "disabled";
  325. reg = <0x5a400000 0x800>;
  326. interrupts = <0 76 4>;
  327. pinctrl-names = "default";
  328. pinctrl-0 = <&pinctrl_sd>;
  329. clocks = <&sd_clk 0>;
  330. reset-names = "host";
  331. resets = <&sd_rst 0>;
  332. bus-width = <4>;
  333. cap-sd-highspeed;
  334. };
  335. soc-glue@5f800000 {
  336. compatible = "socionext,uniphier-ld20-soc-glue",
  337. "simple-mfd", "syscon";
  338. reg = <0x5f800000 0x2000>;
  339. u-boot,dm-pre-reloc;
  340. pinctrl: pinctrl {
  341. compatible = "socionext,uniphier-ld20-pinctrl";
  342. u-boot,dm-pre-reloc;
  343. };
  344. };
  345. aidet@5fc20000 {
  346. compatible = "simple-mfd", "syscon";
  347. reg = <0x5fc20000 0x200>;
  348. };
  349. gic: interrupt-controller@5fe00000 {
  350. compatible = "arm,gic-v3";
  351. reg = <0x5fe00000 0x10000>, /* GICD */
  352. <0x5fe80000 0x80000>; /* GICR */
  353. interrupt-controller;
  354. #interrupt-cells = <3>;
  355. interrupts = <1 9 4>;
  356. };
  357. sysctrl@61840000 {
  358. compatible = "socionext,uniphier-ld20-sysctrl",
  359. "simple-mfd", "syscon";
  360. reg = <0x61840000 0x10000>;
  361. sys_clk: clock {
  362. compatible = "socionext,uniphier-ld20-clock";
  363. #clock-cells = <1>;
  364. };
  365. sys_rst: reset {
  366. compatible = "socionext,uniphier-ld20-reset";
  367. #reset-cells = <1>;
  368. };
  369. };
  370. usb: usb@65b00000 {
  371. compatible = "socionext,uniphier-ld20-dwc3";
  372. reg = <0x65b00000 0x1000>;
  373. #address-cells = <1>;
  374. #size-cells = <1>;
  375. ranges;
  376. pinctrl-names = "default";
  377. pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>,
  378. <&pinctrl_usb2>, <&pinctrl_usb3>;
  379. dwc3@65a00000 {
  380. compatible = "snps,dwc3";
  381. reg = <0x65a00000 0x10000>;
  382. interrupts = <0 134 4>;
  383. tx-fifo-resize;
  384. };
  385. };
  386. nand: nand@68000000 {
  387. compatible = "socionext,denali-nand-v5b";
  388. status = "disabled";
  389. reg-names = "nand_data", "denali_reg";
  390. reg = <0x68000000 0x20>, <0x68100000 0x1000>;
  391. interrupts = <0 65 4>;
  392. pinctrl-names = "default";
  393. pinctrl-0 = <&pinctrl_nand>;
  394. clocks = <&sys_clk 2>;
  395. nand-ecc-strength = <8>;
  396. };
  397. };
  398. };
  399. /include/ "uniphier-pinctrl.dtsi"