uniphier-sld8.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. // SPDX-License-Identifier: GPL-2.0+ OR MIT
  2. //
  3. // Device Tree Source for UniPhier sLD8 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-sld8";
  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 = <25000000>;
  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 = <(256 * 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. <&pinctrl 104 0 0>,
  120. <&pinctrl 112 0 0>;
  121. gpio-ranges-group-names = "gpio_range0",
  122. "gpio_range1",
  123. "gpio_range2";
  124. ngpios = <136>;
  125. socionext,interrupt-ranges = <0 48 13>, <14 62 2>;
  126. };
  127. i2c0: i2c@58400000 {
  128. compatible = "socionext,uniphier-i2c";
  129. status = "disabled";
  130. reg = <0x58400000 0x40>;
  131. #address-cells = <1>;
  132. #size-cells = <0>;
  133. interrupts = <GIC_SPI 41 IRQ_TYPE_EDGE_RISING>;
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&pinctrl_i2c0>;
  136. clocks = <&peri_clk 4>;
  137. resets = <&peri_rst 4>;
  138. clock-frequency = <100000>;
  139. };
  140. i2c1: i2c@58480000 {
  141. compatible = "socionext,uniphier-i2c";
  142. status = "disabled";
  143. reg = <0x58480000 0x40>;
  144. #address-cells = <1>;
  145. #size-cells = <0>;
  146. interrupts = <GIC_SPI 42 IRQ_TYPE_EDGE_RISING>;
  147. pinctrl-names = "default";
  148. pinctrl-0 = <&pinctrl_i2c1>;
  149. clocks = <&peri_clk 5>;
  150. resets = <&peri_rst 5>;
  151. clock-frequency = <100000>;
  152. };
  153. /* chip-internal connection for DMD */
  154. i2c2: i2c@58500000 {
  155. compatible = "socionext,uniphier-i2c";
  156. reg = <0x58500000 0x40>;
  157. #address-cells = <1>;
  158. #size-cells = <0>;
  159. interrupts = <GIC_SPI 43 IRQ_TYPE_EDGE_RISING>;
  160. pinctrl-names = "default";
  161. pinctrl-0 = <&pinctrl_i2c2>;
  162. clocks = <&peri_clk 6>;
  163. resets = <&peri_rst 6>;
  164. clock-frequency = <400000>;
  165. };
  166. i2c3: i2c@58580000 {
  167. compatible = "socionext,uniphier-i2c";
  168. status = "disabled";
  169. reg = <0x58580000 0x40>;
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. interrupts = <GIC_SPI 44 IRQ_TYPE_EDGE_RISING>;
  173. pinctrl-names = "default";
  174. pinctrl-0 = <&pinctrl_i2c3>;
  175. clocks = <&peri_clk 7>;
  176. resets = <&peri_rst 7>;
  177. clock-frequency = <100000>;
  178. };
  179. system_bus: system-bus@58c00000 {
  180. compatible = "socionext,uniphier-system-bus";
  181. status = "disabled";
  182. reg = <0x58c00000 0x400>;
  183. #address-cells = <2>;
  184. #size-cells = <1>;
  185. pinctrl-names = "default";
  186. pinctrl-0 = <&pinctrl_system_bus>;
  187. };
  188. smpctrl@59801000 {
  189. compatible = "socionext,uniphier-smpctrl";
  190. reg = <0x59801000 0x400>;
  191. };
  192. mioctrl@59810000 {
  193. compatible = "socionext,uniphier-sld8-mioctrl",
  194. "simple-mfd", "syscon";
  195. reg = <0x59810000 0x800>;
  196. mio_clk: clock {
  197. compatible = "socionext,uniphier-sld8-mio-clock";
  198. #clock-cells = <1>;
  199. };
  200. mio_rst: reset {
  201. compatible = "socionext,uniphier-sld8-mio-reset";
  202. #reset-cells = <1>;
  203. };
  204. };
  205. perictrl@59820000 {
  206. compatible = "socionext,uniphier-sld8-perictrl",
  207. "simple-mfd", "syscon";
  208. reg = <0x59820000 0x200>;
  209. peri_clk: clock {
  210. compatible = "socionext,uniphier-sld8-peri-clock";
  211. #clock-cells = <1>;
  212. };
  213. peri_rst: reset {
  214. compatible = "socionext,uniphier-sld8-peri-reset";
  215. #reset-cells = <1>;
  216. };
  217. };
  218. dmac: dma-controller@5a000000 {
  219. compatible = "socionext,uniphier-mio-dmac";
  220. reg = <0x5a000000 0x1000>;
  221. interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
  222. <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
  223. <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
  224. <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
  225. <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
  226. <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
  227. <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  228. clocks = <&mio_clk 7>;
  229. resets = <&mio_rst 7>;
  230. #dma-cells = <1>;
  231. };
  232. sd: mmc@5a400000 {
  233. compatible = "socionext,uniphier-sd-v2.91";
  234. status = "disabled";
  235. reg = <0x5a400000 0x200>;
  236. interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
  237. pinctrl-names = "default", "uhs";
  238. pinctrl-0 = <&pinctrl_sd>;
  239. pinctrl-1 = <&pinctrl_sd_uhs>;
  240. clocks = <&mio_clk 0>;
  241. reset-names = "host", "bridge";
  242. resets = <&mio_rst 0>, <&mio_rst 3>;
  243. dma-names = "rx-tx";
  244. dmas = <&dmac 4>;
  245. bus-width = <4>;
  246. cap-sd-highspeed;
  247. sd-uhs-sdr12;
  248. sd-uhs-sdr25;
  249. sd-uhs-sdr50;
  250. };
  251. emmc: mmc@5a500000 {
  252. compatible = "socionext,uniphier-sd-v2.91";
  253. status = "disabled";
  254. reg = <0x5a500000 0x200>;
  255. interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
  256. pinctrl-names = "default";
  257. pinctrl-0 = <&pinctrl_emmc>;
  258. clocks = <&mio_clk 1>;
  259. reset-names = "host", "bridge", "hw";
  260. resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>;
  261. dma-names = "rx-tx";
  262. dmas = <&dmac 6>;
  263. bus-width = <8>;
  264. cap-mmc-highspeed;
  265. cap-mmc-hw-reset;
  266. non-removable;
  267. };
  268. usb0: usb@5a800100 {
  269. compatible = "socionext,uniphier-ehci", "generic-ehci";
  270. status = "disabled";
  271. reg = <0x5a800100 0x100>;
  272. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
  273. pinctrl-names = "default";
  274. pinctrl-0 = <&pinctrl_usb0>;
  275. clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
  276. <&mio_clk 12>;
  277. resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
  278. <&mio_rst 12>;
  279. has-transaction-translator;
  280. };
  281. usb1: usb@5a810100 {
  282. compatible = "socionext,uniphier-ehci", "generic-ehci";
  283. status = "disabled";
  284. reg = <0x5a810100 0x100>;
  285. interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
  286. pinctrl-names = "default";
  287. pinctrl-0 = <&pinctrl_usb1>;
  288. clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
  289. <&mio_clk 13>;
  290. resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
  291. <&mio_rst 13>;
  292. has-transaction-translator;
  293. };
  294. usb2: usb@5a820100 {
  295. compatible = "socionext,uniphier-ehci", "generic-ehci";
  296. status = "disabled";
  297. reg = <0x5a820100 0x100>;
  298. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  299. pinctrl-names = "default";
  300. pinctrl-0 = <&pinctrl_usb2>;
  301. clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 10>,
  302. <&mio_clk 14>;
  303. resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
  304. <&mio_rst 14>;
  305. has-transaction-translator;
  306. };
  307. soc-glue@5f800000 {
  308. compatible = "socionext,uniphier-sld8-soc-glue",
  309. "simple-mfd", "syscon";
  310. reg = <0x5f800000 0x2000>;
  311. pinctrl: pinctrl {
  312. compatible = "socionext,uniphier-sld8-pinctrl";
  313. };
  314. };
  315. soc-glue@5f900000 {
  316. compatible = "socionext,uniphier-sld8-soc-glue-debug",
  317. "simple-mfd";
  318. #address-cells = <1>;
  319. #size-cells = <1>;
  320. ranges = <0 0x5f900000 0x2000>;
  321. efuse@100 {
  322. compatible = "socionext,uniphier-efuse";
  323. reg = <0x100 0x28>;
  324. };
  325. efuse@200 {
  326. compatible = "socionext,uniphier-efuse";
  327. reg = <0x200 0x14>;
  328. };
  329. };
  330. timer@60000200 {
  331. compatible = "arm,cortex-a9-global-timer";
  332. reg = <0x60000200 0x20>;
  333. interrupts = <GIC_PPI 11
  334. (GIC_CPU_MASK_RAW(1) | IRQ_TYPE_LEVEL_HIGH)>;
  335. clocks = <&arm_timer_clk>;
  336. };
  337. timer@60000600 {
  338. compatible = "arm,cortex-a9-twd-timer";
  339. reg = <0x60000600 0x20>;
  340. interrupts = <GIC_PPI 13
  341. (GIC_CPU_MASK_RAW(1) | IRQ_TYPE_LEVEL_HIGH)>;
  342. clocks = <&arm_timer_clk>;
  343. };
  344. intc: interrupt-controller@60001000 {
  345. compatible = "arm,cortex-a9-gic";
  346. reg = <0x60001000 0x1000>,
  347. <0x60000100 0x100>;
  348. #interrupt-cells = <3>;
  349. interrupt-controller;
  350. };
  351. aidet: interrupt-controller@61830000 {
  352. compatible = "socionext,uniphier-sld8-aidet";
  353. reg = <0x61830000 0x200>;
  354. interrupt-controller;
  355. #interrupt-cells = <2>;
  356. };
  357. sysctrl@61840000 {
  358. compatible = "socionext,uniphier-sld8-sysctrl",
  359. "simple-mfd", "syscon";
  360. reg = <0x61840000 0x10000>;
  361. sys_clk: clock {
  362. compatible = "socionext,uniphier-sld8-clock";
  363. #clock-cells = <1>;
  364. };
  365. sys_rst: reset {
  366. compatible = "socionext,uniphier-sld8-reset";
  367. #reset-cells = <1>;
  368. };
  369. };
  370. nand: nand-controller@68000000 {
  371. compatible = "socionext,uniphier-denali-nand-v5a";
  372. status = "disabled";
  373. reg-names = "nand_data", "denali_reg";
  374. reg = <0x68000000 0x20>, <0x68100000 0x1000>;
  375. #address-cells = <1>;
  376. #size-cells = <0>;
  377. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  378. pinctrl-names = "default";
  379. pinctrl-0 = <&pinctrl_nand>;
  380. clock-names = "nand", "nand_x", "ecc";
  381. clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
  382. reset-names = "nand", "reg";
  383. resets = <&sys_rst 2>, <&sys_rst 2>;
  384. };
  385. };
  386. };
  387. #include "uniphier-pinctrl.dtsi"