r9a06g032.dtsi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Base Device Tree Source for the Renesas RZ/N1D (R9A06G032)
  4. *
  5. * Copyright (C) 2018 Renesas Electronics Europe Limited
  6. *
  7. */
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. #include <dt-bindings/clock/r9a06g032-sysctrl.h>
  10. / {
  11. compatible = "renesas,r9a06g032";
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. cpus {
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. cpu@0 {
  18. device_type = "cpu";
  19. compatible = "arm,cortex-a7";
  20. reg = <0>;
  21. clocks = <&sysctrl R9A06G032_CLK_A7MP>;
  22. };
  23. cpu@1 {
  24. device_type = "cpu";
  25. compatible = "arm,cortex-a7";
  26. reg = <1>;
  27. clocks = <&sysctrl R9A06G032_CLK_A7MP>;
  28. enable-method = "renesas,r9a06g032-smp";
  29. cpu-release-addr = <0 0x4000c204>;
  30. };
  31. };
  32. ext_jtag_clk: extjtagclk {
  33. #clock-cells = <0>;
  34. compatible = "fixed-clock";
  35. clock-frequency = <0>;
  36. };
  37. ext_mclk: extmclk {
  38. #clock-cells = <0>;
  39. compatible = "fixed-clock";
  40. clock-frequency = <40000000>;
  41. };
  42. ext_rgmii_ref: extrgmiiref {
  43. #clock-cells = <0>;
  44. compatible = "fixed-clock";
  45. clock-frequency = <0>;
  46. };
  47. ext_rtc_clk: extrtcclk {
  48. #clock-cells = <0>;
  49. compatible = "fixed-clock";
  50. clock-frequency = <0>;
  51. };
  52. soc {
  53. compatible = "simple-bus";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. interrupt-parent = <&gic>;
  57. ranges;
  58. rtc0: rtc@40006000 {
  59. compatible = "renesas,r9a06g032-rtc", "renesas,rzn1-rtc";
  60. reg = <0x40006000 0x1000>;
  61. interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>,
  62. <GIC_SPI 67 IRQ_TYPE_EDGE_RISING>,
  63. <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>;
  64. interrupt-names = "alarm", "timer", "pps";
  65. clocks = <&sysctrl R9A06G032_HCLK_RTC>;
  66. clock-names = "hclk";
  67. power-domains = <&sysctrl>;
  68. status = "disabled";
  69. };
  70. wdt0: watchdog@40008000 {
  71. compatible = "renesas,r9a06g032-wdt", "renesas,rzn1-wdt";
  72. reg = <0x40008000 0x1000>;
  73. interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
  74. clocks = <&sysctrl R9A06G032_CLK_WATCHDOG>;
  75. status = "disabled";
  76. };
  77. wdt1: watchdog@40009000 {
  78. compatible = "renesas,r9a06g032-wdt", "renesas,rzn1-wdt";
  79. reg = <0x40009000 0x1000>;
  80. interrupts = <GIC_SPI 74 IRQ_TYPE_EDGE_RISING>;
  81. clocks = <&sysctrl R9A06G032_CLK_WATCHDOG>;
  82. status = "disabled";
  83. };
  84. sysctrl: system-controller@4000c000 {
  85. compatible = "renesas,r9a06g032-sysctrl";
  86. reg = <0x4000c000 0x1000>;
  87. status = "okay";
  88. #clock-cells = <1>;
  89. #power-domain-cells = <0>;
  90. clocks = <&ext_mclk>, <&ext_rtc_clk>,
  91. <&ext_jtag_clk>, <&ext_rgmii_ref>;
  92. clock-names = "mclk", "rtc", "jtag", "rgmii_ref_ext";
  93. #address-cells = <1>;
  94. #size-cells = <1>;
  95. dmamux: dma-router@a0 {
  96. compatible = "renesas,rzn1-dmamux";
  97. reg = <0xa0 4>;
  98. #dma-cells = <6>;
  99. dma-requests = <32>;
  100. dma-masters = <&dma0 &dma1>;
  101. };
  102. };
  103. pci_usb: pci@40030000 {
  104. compatible = "renesas,pci-r9a06g032", "renesas,pci-rzn1";
  105. device_type = "pci";
  106. clocks = <&sysctrl R9A06G032_HCLK_USBH>,
  107. <&sysctrl R9A06G032_HCLK_USBPM>,
  108. <&sysctrl R9A06G032_CLK_PCI_USB>;
  109. clock-names = "hclkh", "hclkpm", "pciclk";
  110. power-domains = <&sysctrl>;
  111. reg = <0x40030000 0xc00>,
  112. <0x40020000 0x1100>;
  113. interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  114. status = "disabled";
  115. bus-range = <0 0>;
  116. #address-cells = <3>;
  117. #size-cells = <2>;
  118. #interrupt-cells = <1>;
  119. ranges = <0x02000000 0 0x40020000 0x40020000 0 0x00010000>;
  120. /* Should map all possible DDR as inbound ranges, but
  121. * the IP only supports a 256MB, 512MB, or 1GB window.
  122. * flags, PCI addr (64-bit), CPU addr, PCI size (64-bit)
  123. */
  124. dma-ranges = <0x42000000 0 0x80000000 0x80000000 0 0x40000000>;
  125. interrupt-map-mask = <0xf800 0 0 0x7>;
  126. interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH
  127. 0x0800 0 0 1 &gic GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH
  128. 0x1000 0 0 2 &gic GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  129. usb@1,0 {
  130. reg = <0x800 0 0 0 0>;
  131. phys = <&usbphy>;
  132. phy-names = "usb";
  133. };
  134. usb@2,0 {
  135. reg = <0x1000 0 0 0 0>;
  136. phys = <&usbphy>;
  137. phy-names = "usb";
  138. };
  139. };
  140. uart0: serial@40060000 {
  141. compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart", "snps,dw-apb-uart";
  142. reg = <0x40060000 0x400>;
  143. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  144. reg-shift = <2>;
  145. reg-io-width = <4>;
  146. clocks = <&sysctrl R9A06G032_CLK_UART0>, <&sysctrl R9A06G032_HCLK_UART0>;
  147. clock-names = "baudclk", "apb_pclk";
  148. status = "disabled";
  149. };
  150. uart1: serial@40061000 {
  151. compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart", "snps,dw-apb-uart";
  152. reg = <0x40061000 0x400>;
  153. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  154. reg-shift = <2>;
  155. reg-io-width = <4>;
  156. clocks = <&sysctrl R9A06G032_CLK_UART1>, <&sysctrl R9A06G032_HCLK_UART1>;
  157. clock-names = "baudclk", "apb_pclk";
  158. status = "disabled";
  159. };
  160. uart2: serial@40062000 {
  161. compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart", "snps,dw-apb-uart";
  162. reg = <0x40062000 0x400>;
  163. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  164. reg-shift = <2>;
  165. reg-io-width = <4>;
  166. clocks = <&sysctrl R9A06G032_CLK_UART2>, <&sysctrl R9A06G032_HCLK_UART2>;
  167. clock-names = "baudclk", "apb_pclk";
  168. status = "disabled";
  169. };
  170. uart3: serial@50000000 {
  171. compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart";
  172. reg = <0x50000000 0x400>;
  173. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  174. reg-shift = <2>;
  175. reg-io-width = <4>;
  176. clocks = <&sysctrl R9A06G032_CLK_UART3>, <&sysctrl R9A06G032_HCLK_UART3>;
  177. clock-names = "baudclk", "apb_pclk";
  178. dmas = <&dmamux 0 0 0 0 0 1>, <&dmamux 1 0 0 0 1 1>;
  179. dma-names = "rx", "tx";
  180. status = "disabled";
  181. };
  182. uart4: serial@50001000 {
  183. compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart";
  184. reg = <0x50001000 0x400>;
  185. interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
  186. reg-shift = <2>;
  187. reg-io-width = <4>;
  188. clocks = <&sysctrl R9A06G032_CLK_UART4>, <&sysctrl R9A06G032_HCLK_UART4>;
  189. clock-names = "baudclk", "apb_pclk";
  190. dmas = <&dmamux 2 0 0 0 2 1>, <&dmamux 3 0 0 0 3 1>;
  191. dma-names = "rx", "tx";
  192. status = "disabled";
  193. };
  194. uart5: serial@50002000 {
  195. compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart";
  196. reg = <0x50002000 0x400>;
  197. interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
  198. reg-shift = <2>;
  199. reg-io-width = <4>;
  200. clocks = <&sysctrl R9A06G032_CLK_UART5>, <&sysctrl R9A06G032_HCLK_UART5>;
  201. clock-names = "baudclk", "apb_pclk";
  202. dmas = <&dmamux 4 0 0 0 4 1>, <&dmamux 5 0 0 0 5 1>;
  203. dma-names = "rx", "tx";
  204. status = "disabled";
  205. };
  206. uart6: serial@50003000 {
  207. compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart";
  208. reg = <0x50003000 0x400>;
  209. interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
  210. reg-shift = <2>;
  211. reg-io-width = <4>;
  212. clocks = <&sysctrl R9A06G032_CLK_UART6>, <&sysctrl R9A06G032_HCLK_UART6>;
  213. clock-names = "baudclk", "apb_pclk";
  214. dmas = <&dmamux 6 0 0 0 6 1>, <&dmamux 7 0 0 0 7 1>;
  215. dma-names = "rx", "tx";
  216. status = "disabled";
  217. };
  218. uart7: serial@50004000 {
  219. compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart";
  220. reg = <0x50004000 0x400>;
  221. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
  222. reg-shift = <2>;
  223. reg-io-width = <4>;
  224. clocks = <&sysctrl R9A06G032_CLK_UART7>, <&sysctrl R9A06G032_HCLK_UART7>;
  225. clock-names = "baudclk", "apb_pclk";
  226. dmas = <&dmamux 4 0 0 0 20 1>, <&dmamux 5 0 0 0 21 1>;
  227. dma-names = "rx", "tx";
  228. status = "disabled";
  229. };
  230. pinctrl: pinctrl@40067000 {
  231. compatible = "renesas,r9a06g032-pinctrl", "renesas,rzn1-pinctrl";
  232. reg = <0x40067000 0x1000>, <0x51000000 0x480>;
  233. clocks = <&sysctrl R9A06G032_HCLK_PINCONFIG>;
  234. clock-names = "bus";
  235. status = "okay";
  236. };
  237. nand_controller: nand-controller@40102000 {
  238. compatible = "renesas,r9a06g032-nandc", "renesas,rzn1-nandc";
  239. reg = <0x40102000 0x2000>;
  240. interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
  241. clocks = <&sysctrl R9A06G032_HCLK_NAND>, <&sysctrl R9A06G032_CLK_NAND>;
  242. clock-names = "hclk", "eclk";
  243. power-domains = <&sysctrl>;
  244. #address-cells = <1>;
  245. #size-cells = <0>;
  246. status = "disabled";
  247. };
  248. dma0: dma-controller@40104000 {
  249. compatible = "renesas,r9a06g032-dma", "renesas,rzn1-dma";
  250. reg = <0x40104000 0x1000>;
  251. interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  252. clock-names = "hclk";
  253. clocks = <&sysctrl R9A06G032_HCLK_DMA0>;
  254. dma-channels = <8>;
  255. dma-requests = <16>;
  256. dma-masters = <1>;
  257. #dma-cells = <3>;
  258. block_size = <0xfff>;
  259. data-width = <8>;
  260. };
  261. dma1: dma-controller@40105000 {
  262. compatible = "renesas,r9a06g032-dma", "renesas,rzn1-dma";
  263. reg = <0x40105000 0x1000>;
  264. interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
  265. clock-names = "hclk";
  266. clocks = <&sysctrl R9A06G032_HCLK_DMA1>;
  267. dma-channels = <8>;
  268. dma-requests = <16>;
  269. dma-masters = <1>;
  270. #dma-cells = <3>;
  271. block_size = <0xfff>;
  272. data-width = <8>;
  273. };
  274. gmac2: ethernet@44002000 {
  275. compatible = "renesas,r9a06g032-gmac", "renesas,rzn1-gmac", "snps,dwmac";
  276. reg = <0x44002000 0x2000>;
  277. interrupt-parent = <&gic>;
  278. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
  279. <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
  280. <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  281. interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
  282. clocks = <&sysctrl R9A06G032_HCLK_GMAC1>;
  283. clock-names = "stmmaceth";
  284. power-domains = <&sysctrl>;
  285. snps,multicast-filter-bins = <256>;
  286. snps,perfect-filter-entries = <128>;
  287. tx-fifo-depth = <2048>;
  288. rx-fifo-depth = <4096>;
  289. status = "disabled";
  290. };
  291. eth_miic: eth-miic@44030000 {
  292. compatible = "renesas,r9a06g032-miic", "renesas,rzn1-miic";
  293. #address-cells = <1>;
  294. #size-cells = <0>;
  295. reg = <0x44030000 0x10000>;
  296. clocks = <&sysctrl R9A06G032_CLK_MII_REF>,
  297. <&sysctrl R9A06G032_CLK_RGMII_REF>,
  298. <&sysctrl R9A06G032_CLK_RMII_REF>,
  299. <&sysctrl R9A06G032_HCLK_SWITCH_RG>;
  300. clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk";
  301. power-domains = <&sysctrl>;
  302. status = "disabled";
  303. mii_conv1: mii-conv@1 {
  304. reg = <1>;
  305. status = "disabled";
  306. };
  307. mii_conv2: mii-conv@2 {
  308. reg = <2>;
  309. status = "disabled";
  310. };
  311. mii_conv3: mii-conv@3 {
  312. reg = <3>;
  313. status = "disabled";
  314. };
  315. mii_conv4: mii-conv@4 {
  316. reg = <4>;
  317. status = "disabled";
  318. };
  319. mii_conv5: mii-conv@5 {
  320. reg = <5>;
  321. status = "disabled";
  322. };
  323. };
  324. switch: switch@44050000 {
  325. compatible = "renesas,r9a06g032-a5psw", "renesas,rzn1-a5psw";
  326. reg = <0x44050000 0x10000>;
  327. clocks = <&sysctrl R9A06G032_HCLK_SWITCH>,
  328. <&sysctrl R9A06G032_CLK_SWITCH>;
  329. clock-names = "hclk", "clk";
  330. power-domains = <&sysctrl>;
  331. status = "disabled";
  332. ethernet-ports {
  333. #address-cells = <1>;
  334. #size-cells = <0>;
  335. switch_port0: port@0 {
  336. reg = <0>;
  337. pcs-handle = <&mii_conv5>;
  338. status = "disabled";
  339. };
  340. switch_port1: port@1 {
  341. reg = <1>;
  342. pcs-handle = <&mii_conv4>;
  343. status = "disabled";
  344. };
  345. switch_port2: port@2 {
  346. reg = <2>;
  347. pcs-handle = <&mii_conv3>;
  348. status = "disabled";
  349. };
  350. switch_port3: port@3 {
  351. reg = <3>;
  352. pcs-handle = <&mii_conv2>;
  353. status = "disabled";
  354. };
  355. switch_port4: port@4 {
  356. reg = <4>;
  357. ethernet = <&gmac2>;
  358. label = "cpu";
  359. phy-mode = "internal";
  360. status = "disabled";
  361. fixed-link {
  362. speed = <1000>;
  363. full-duplex;
  364. };
  365. };
  366. };
  367. };
  368. gic: interrupt-controller@44101000 {
  369. compatible = "arm,gic-400", "arm,cortex-a7-gic";
  370. interrupt-controller;
  371. #interrupt-cells = <3>;
  372. reg = <0x44101000 0x1000>, /* Distributer */
  373. <0x44102000 0x2000>, /* CPU interface */
  374. <0x44104000 0x2000>, /* Virt interface control */
  375. <0x44106000 0x2000>; /* Virt CPU interface */
  376. interrupts =
  377. <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
  378. };
  379. can0: can@52104000 {
  380. compatible = "renesas,r9a06g032-sja1000","renesas,rzn1-sja1000";
  381. reg = <0x52104000 0x800>;
  382. reg-io-width = <4>;
  383. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  384. clocks = <&sysctrl R9A06G032_HCLK_CAN0>;
  385. power-domains = <&sysctrl>;
  386. status = "disabled";
  387. };
  388. can1: can@52105000 {
  389. compatible = "renesas,r9a06g032-sja1000", "renesas,rzn1-sja1000";
  390. reg = <0x52105000 0x800>;
  391. reg-io-width = <4>;
  392. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
  393. clocks = <&sysctrl R9A06G032_HCLK_CAN1>;
  394. power-domains = <&sysctrl>;
  395. status = "disabled";
  396. };
  397. };
  398. timer {
  399. compatible = "arm,armv7-timer";
  400. interrupt-parent = <&gic>;
  401. arm,cpu-registers-not-fw-configured;
  402. always-on;
  403. interrupts =
  404. <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  405. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  406. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  407. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
  408. };
  409. usbphy: usb-phy {
  410. #phy-cells = <0>;
  411. compatible = "usb-nop-xceiv";
  412. status = "disabled";
  413. };
  414. };