uniphier-ld4.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. // SPDX-License-Identifier: GPL-2.0+ OR MIT
  2. //
  3. // Device Tree Source for UniPhier LD4 SoC
  4. //
  5. // Copyright (C) 2015-2016 Socionext Inc.
  6. // Author: Masahiro Yamada <[email protected]>
  7. #include <dt-bindings/gpio/uniphier-gpio.h>
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. / {
  10. compatible = "socionext,uniphier-ld4";
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. cpus {
  14. #address-cells = <1>;
  15. #size-cells = <0>;
  16. cpu@0 {
  17. device_type = "cpu";
  18. compatible = "arm,cortex-a9";
  19. reg = <0>;
  20. enable-method = "psci";
  21. next-level-cache = <&l2>;
  22. };
  23. };
  24. psci {
  25. compatible = "arm,psci-0.2";
  26. method = "smc";
  27. };
  28. clocks {
  29. refclk: ref {
  30. compatible = "fixed-clock";
  31. #clock-cells = <0>;
  32. clock-frequency = <24576000>;
  33. };
  34. arm_timer_clk: arm-timer {
  35. #clock-cells = <0>;
  36. compatible = "fixed-clock";
  37. clock-frequency = <50000000>;
  38. };
  39. };
  40. soc {
  41. compatible = "simple-bus";
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. ranges;
  45. interrupt-parent = <&intc>;
  46. l2: cache-controller@500c0000 {
  47. compatible = "socionext,uniphier-system-cache";
  48. reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
  49. <0x506c0000 0x400>;
  50. interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>,
  51. <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
  52. cache-unified;
  53. cache-size = <(512 * 1024)>;
  54. cache-sets = <256>;
  55. cache-line-size = <128>;
  56. cache-level = <2>;
  57. };
  58. spi: spi@54006000 {
  59. compatible = "socionext,uniphier-scssi";
  60. status = "disabled";
  61. reg = <0x54006000 0x100>;
  62. #address-cells = <1>;
  63. #size-cells = <0>;
  64. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&pinctrl_spi0>;
  67. clocks = <&peri_clk 11>;
  68. resets = <&peri_rst 11>;
  69. };
  70. serial0: serial@54006800 {
  71. compatible = "socionext,uniphier-uart";
  72. status = "disabled";
  73. reg = <0x54006800 0x40>;
  74. interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&pinctrl_uart0>;
  77. clocks = <&peri_clk 0>;
  78. resets = <&peri_rst 0>;
  79. };
  80. serial1: serial@54006900 {
  81. compatible = "socionext,uniphier-uart";
  82. status = "disabled";
  83. reg = <0x54006900 0x40>;
  84. interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
  85. pinctrl-names = "default";
  86. pinctrl-0 = <&pinctrl_uart1>;
  87. clocks = <&peri_clk 1>;
  88. resets = <&peri_rst 1>;
  89. };
  90. serial2: serial@54006a00 {
  91. compatible = "socionext,uniphier-uart";
  92. status = "disabled";
  93. reg = <0x54006a00 0x40>;
  94. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  95. pinctrl-names = "default";
  96. pinctrl-0 = <&pinctrl_uart2>;
  97. clocks = <&peri_clk 2>;
  98. resets = <&peri_rst 2>;
  99. };
  100. serial3: serial@54006b00 {
  101. compatible = "socionext,uniphier-uart";
  102. status = "disabled";
  103. reg = <0x54006b00 0x40>;
  104. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&pinctrl_uart3>;
  107. clocks = <&peri_clk 3>;
  108. resets = <&peri_rst 3>;
  109. };
  110. gpio: gpio@55000000 {
  111. compatible = "socionext,uniphier-gpio";
  112. reg = <0x55000000 0x200>;
  113. interrupt-parent = <&aidet>;
  114. interrupt-controller;
  115. #interrupt-cells = <2>;
  116. gpio-controller;
  117. #gpio-cells = <2>;
  118. gpio-ranges = <&pinctrl 0 0 0>;
  119. gpio-ranges-group-names = "gpio_range";
  120. ngpios = <136>;
  121. socionext,interrupt-ranges = <0 48 13>, <14 62 2>;
  122. };
  123. i2c0: i2c@58400000 {
  124. compatible = "socionext,uniphier-i2c";
  125. status = "disabled";
  126. reg = <0x58400000 0x40>;
  127. #address-cells = <1>;
  128. #size-cells = <0>;
  129. interrupts = <GIC_SPI 41 IRQ_TYPE_EDGE_RISING>;
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&pinctrl_i2c0>;
  132. clocks = <&peri_clk 4>;
  133. resets = <&peri_rst 4>;
  134. clock-frequency = <100000>;
  135. };
  136. i2c1: i2c@58480000 {
  137. compatible = "socionext,uniphier-i2c";
  138. status = "disabled";
  139. reg = <0x58480000 0x40>;
  140. #address-cells = <1>;
  141. #size-cells = <0>;
  142. interrupts = <GIC_SPI 42 IRQ_TYPE_EDGE_RISING>;
  143. pinctrl-names = "default";
  144. pinctrl-0 = <&pinctrl_i2c1>;
  145. clocks = <&peri_clk 5>;
  146. resets = <&peri_rst 5>;
  147. clock-frequency = <100000>;
  148. };
  149. /* chip-internal connection for DMD */
  150. i2c2: i2c@58500000 {
  151. compatible = "socionext,uniphier-i2c";
  152. reg = <0x58500000 0x40>;
  153. #address-cells = <1>;
  154. #size-cells = <0>;
  155. interrupts = <GIC_SPI 43 IRQ_TYPE_EDGE_RISING>;
  156. pinctrl-names = "default";
  157. pinctrl-0 = <&pinctrl_i2c2>;
  158. clocks = <&peri_clk 6>;
  159. resets = <&peri_rst 6>;
  160. clock-frequency = <400000>;
  161. };
  162. i2c3: i2c@58580000 {
  163. compatible = "socionext,uniphier-i2c";
  164. status = "disabled";
  165. reg = <0x58580000 0x40>;
  166. #address-cells = <1>;
  167. #size-cells = <0>;
  168. interrupts = <GIC_SPI 44 IRQ_TYPE_EDGE_RISING>;
  169. pinctrl-names = "default";
  170. pinctrl-0 = <&pinctrl_i2c3>;
  171. clocks = <&peri_clk 7>;
  172. resets = <&peri_rst 7>;
  173. clock-frequency = <100000>;
  174. };
  175. system_bus: system-bus@58c00000 {
  176. compatible = "socionext,uniphier-system-bus";
  177. status = "disabled";
  178. reg = <0x58c00000 0x400>;
  179. #address-cells = <2>;
  180. #size-cells = <1>;
  181. pinctrl-names = "default";
  182. pinctrl-0 = <&pinctrl_system_bus>;
  183. };
  184. smpctrl@59801000 {
  185. compatible = "socionext,uniphier-smpctrl";
  186. reg = <0x59801000 0x400>;
  187. };
  188. mioctrl@59810000 {
  189. compatible = "socionext,uniphier-ld4-mioctrl",
  190. "simple-mfd", "syscon";
  191. reg = <0x59810000 0x800>;
  192. mio_clk: clock {
  193. compatible = "socionext,uniphier-ld4-mio-clock";
  194. #clock-cells = <1>;
  195. };
  196. mio_rst: reset {
  197. compatible = "socionext,uniphier-ld4-mio-reset";
  198. #reset-cells = <1>;
  199. };
  200. };
  201. perictrl@59820000 {
  202. compatible = "socionext,uniphier-ld4-perictrl",
  203. "simple-mfd", "syscon";
  204. reg = <0x59820000 0x200>;
  205. peri_clk: clock {
  206. compatible = "socionext,uniphier-ld4-peri-clock";
  207. #clock-cells = <1>;
  208. };
  209. peri_rst: reset {
  210. compatible = "socionext,uniphier-ld4-peri-reset";
  211. #reset-cells = <1>;
  212. };
  213. };
  214. dmac: dma-controller@5a000000 {
  215. compatible = "socionext,uniphier-mio-dmac";
  216. reg = <0x5a000000 0x1000>;
  217. interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
  218. <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
  219. <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
  220. <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
  221. <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
  222. <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
  223. <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  224. clocks = <&mio_clk 7>;
  225. resets = <&mio_rst 7>;
  226. #dma-cells = <1>;
  227. };
  228. sd: mmc@5a400000 {
  229. compatible = "socionext,uniphier-sd-v2.91";
  230. status = "disabled";
  231. reg = <0x5a400000 0x200>;
  232. interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
  233. pinctrl-names = "default", "uhs";
  234. pinctrl-0 = <&pinctrl_sd>;
  235. pinctrl-1 = <&pinctrl_sd_uhs>;
  236. clocks = <&mio_clk 0>;
  237. reset-names = "host", "bridge";
  238. resets = <&mio_rst 0>, <&mio_rst 3>;
  239. dma-names = "rx-tx";
  240. dmas = <&dmac 4>;
  241. bus-width = <4>;
  242. cap-sd-highspeed;
  243. sd-uhs-sdr12;
  244. sd-uhs-sdr25;
  245. sd-uhs-sdr50;
  246. };
  247. emmc: mmc@5a500000 {
  248. compatible = "socionext,uniphier-sd-v2.91";
  249. status = "disabled";
  250. reg = <0x5a500000 0x200>;
  251. interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
  252. pinctrl-names = "default";
  253. pinctrl-0 = <&pinctrl_emmc>;
  254. clocks = <&mio_clk 1>;
  255. reset-names = "host", "bridge", "hw";
  256. resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>;
  257. dma-names = "rx-tx";
  258. dmas = <&dmac 6>;
  259. bus-width = <8>;
  260. cap-mmc-highspeed;
  261. cap-mmc-hw-reset;
  262. non-removable;
  263. };
  264. usb0: usb@5a800100 {
  265. compatible = "socionext,uniphier-ehci", "generic-ehci";
  266. status = "disabled";
  267. reg = <0x5a800100 0x100>;
  268. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
  269. pinctrl-names = "default";
  270. pinctrl-0 = <&pinctrl_usb0>;
  271. clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
  272. <&mio_clk 12>;
  273. resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
  274. <&mio_rst 12>;
  275. has-transaction-translator;
  276. };
  277. usb1: usb@5a810100 {
  278. compatible = "socionext,uniphier-ehci", "generic-ehci";
  279. status = "disabled";
  280. reg = <0x5a810100 0x100>;
  281. interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
  282. pinctrl-names = "default";
  283. pinctrl-0 = <&pinctrl_usb1>;
  284. clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
  285. <&mio_clk 13>;
  286. resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
  287. <&mio_rst 13>;
  288. has-transaction-translator;
  289. };
  290. usb2: usb@5a820100 {
  291. compatible = "socionext,uniphier-ehci", "generic-ehci";
  292. status = "disabled";
  293. reg = <0x5a820100 0x100>;
  294. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  295. pinctrl-names = "default";
  296. pinctrl-0 = <&pinctrl_usb2>;
  297. clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 10>,
  298. <&mio_clk 14>;
  299. resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
  300. <&mio_rst 14>;
  301. has-transaction-translator;
  302. };
  303. soc-glue@5f800000 {
  304. compatible = "socionext,uniphier-ld4-soc-glue",
  305. "simple-mfd", "syscon";
  306. reg = <0x5f800000 0x2000>;
  307. pinctrl: pinctrl {
  308. compatible = "socionext,uniphier-ld4-pinctrl";
  309. };
  310. };
  311. soc-glue@5f900000 {
  312. compatible = "socionext,uniphier-ld4-soc-glue-debug",
  313. "simple-mfd";
  314. #address-cells = <1>;
  315. #size-cells = <1>;
  316. ranges = <0 0x5f900000 0x2000>;
  317. efuse@100 {
  318. compatible = "socionext,uniphier-efuse";
  319. reg = <0x100 0x28>;
  320. };
  321. efuse@130 {
  322. compatible = "socionext,uniphier-efuse";
  323. reg = <0x130 0x8>;
  324. };
  325. };
  326. timer@60000200 {
  327. compatible = "arm,cortex-a9-global-timer";
  328. reg = <0x60000200 0x20>;
  329. interrupts = <GIC_PPI 11
  330. (GIC_CPU_MASK_RAW(1) | IRQ_TYPE_LEVEL_HIGH)>;
  331. clocks = <&arm_timer_clk>;
  332. };
  333. timer@60000600 {
  334. compatible = "arm,cortex-a9-twd-timer";
  335. reg = <0x60000600 0x20>;
  336. interrupts = <GIC_PPI 13
  337. (GIC_CPU_MASK_RAW(1) | IRQ_TYPE_LEVEL_HIGH)>;
  338. clocks = <&arm_timer_clk>;
  339. };
  340. intc: interrupt-controller@60001000 {
  341. compatible = "arm,cortex-a9-gic";
  342. reg = <0x60001000 0x1000>,
  343. <0x60000100 0x100>;
  344. #interrupt-cells = <3>;
  345. interrupt-controller;
  346. };
  347. aidet: interrupt-controller@61830000 {
  348. compatible = "socionext,uniphier-ld4-aidet";
  349. reg = <0x61830000 0x200>;
  350. interrupt-controller;
  351. #interrupt-cells = <2>;
  352. };
  353. sysctrl@61840000 {
  354. compatible = "socionext,uniphier-ld4-sysctrl",
  355. "simple-mfd", "syscon";
  356. reg = <0x61840000 0x10000>;
  357. sys_clk: clock {
  358. compatible = "socionext,uniphier-ld4-clock";
  359. #clock-cells = <1>;
  360. };
  361. sys_rst: reset {
  362. compatible = "socionext,uniphier-ld4-reset";
  363. #reset-cells = <1>;
  364. };
  365. };
  366. nand: nand-controller@68000000 {
  367. compatible = "socionext,uniphier-denali-nand-v5a";
  368. status = "disabled";
  369. reg-names = "nand_data", "denali_reg";
  370. reg = <0x68000000 0x20>, <0x68100000 0x1000>;
  371. #address-cells = <1>;
  372. #size-cells = <0>;
  373. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  374. pinctrl-names = "default";
  375. pinctrl-0 = <&pinctrl_nand>;
  376. clock-names = "nand", "nand_x", "ecc";
  377. clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
  378. reset-names = "nand", "reg";
  379. resets = <&sys_rst 2>, <&sys_rst 2>;
  380. };
  381. };
  382. };
  383. #include "uniphier-pinctrl.dtsi"