socfpga_agilex5.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2023, Intel Corporation
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/reset/altr,rst-mgr-s10.h>
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. #include <dt-bindings/interrupt-controller/irq.h>
  10. #include <dt-bindings/clock/intel,agilex5-clkmgr.h>
  11. / {
  12. compatible = "intel,socfpga-agilex5";
  13. #address-cells = <2>;
  14. #size-cells = <2>;
  15. reserved-memory {
  16. #address-cells = <2>;
  17. #size-cells = <2>;
  18. ranges;
  19. service_reserved: svcbuffer@0 {
  20. compatible = "shared-dma-pool";
  21. reg = <0x0 0x80000000 0x0 0x2000000>;
  22. alignment = <0x1000>;
  23. no-map;
  24. };
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. cpu0: cpu@0 {
  30. compatible = "arm,cortex-a55";
  31. reg = <0x0>;
  32. device_type = "cpu";
  33. enable-method = "psci";
  34. };
  35. cpu1: cpu@1 {
  36. compatible = "arm,cortex-a55";
  37. reg = <0x100>;
  38. device_type = "cpu";
  39. enable-method = "psci";
  40. };
  41. cpu2: cpu@2 {
  42. compatible = "arm,cortex-a76";
  43. reg = <0x200>;
  44. device_type = "cpu";
  45. enable-method = "psci";
  46. };
  47. cpu3: cpu@3 {
  48. compatible = "arm,cortex-a76";
  49. reg = <0x300>;
  50. device_type = "cpu";
  51. enable-method = "psci";
  52. };
  53. };
  54. psci {
  55. compatible = "arm,psci-0.2";
  56. method = "smc";
  57. };
  58. intc: interrupt-controller@1d000000 {
  59. compatible = "arm,gic-v3";
  60. reg = <0x0 0x1d000000 0 0x10000>,
  61. <0x0 0x1d060000 0 0x100000>;
  62. ranges;
  63. #interrupt-cells = <3>;
  64. #address-cells = <2>;
  65. #size-cells = <2>;
  66. interrupt-controller;
  67. #redistributor-regions = <1>;
  68. redistributor-stride = <0x0 0x20000>;
  69. its: msi-controller@1d040000 {
  70. compatible = "arm,gic-v3-its";
  71. reg = <0x0 0x1d040000 0x0 0x20000>;
  72. msi-controller;
  73. #msi-cells = <1>;
  74. };
  75. };
  76. /* Clock tree 5 main sources*/
  77. clocks {
  78. cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
  79. #clock-cells = <0>;
  80. compatible = "fixed-clock";
  81. clock-frequency = <0>;
  82. };
  83. cb_intosc_ls_clk: cb-intosc-ls-clk {
  84. #clock-cells = <0>;
  85. compatible = "fixed-clock";
  86. clock-frequency = <0>;
  87. };
  88. f2s_free_clk: f2s-free-clk {
  89. #clock-cells = <0>;
  90. compatible = "fixed-clock";
  91. clock-frequency = <0>;
  92. };
  93. osc1: osc1 {
  94. #clock-cells = <0>;
  95. compatible = "fixed-clock";
  96. clock-frequency = <0>;
  97. };
  98. qspi_clk: qspi-clk {
  99. #clock-cells = <0>;
  100. compatible = "fixed-clock";
  101. clock-frequency = <200000000>;
  102. };
  103. };
  104. timer {
  105. compatible = "arm,armv8-timer";
  106. interrupt-parent = <&intc>;
  107. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  108. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  109. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  110. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  111. };
  112. usbphy0: usbphy {
  113. #phy-cells = <0>;
  114. compatible = "usb-nop-xceiv";
  115. };
  116. soc: soc@0 {
  117. compatible = "simple-bus";
  118. ranges = <0 0 0 0xffffffff>;
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. device_type = "soc";
  122. interrupt-parent = <&intc>;
  123. clkmgr: clock-controller@10d10000 {
  124. compatible = "intel,agilex5-clkmgr";
  125. reg = <0x10d10000 0x1000>;
  126. #clock-cells = <1>;
  127. };
  128. i2c0: i2c@10c02800 {
  129. compatible = "snps,designware-i2c";
  130. reg = <0x10c02800 0x100>;
  131. #address-cells = <1>;
  132. #size-cells = <0>;
  133. interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
  134. resets = <&rst I2C0_RESET>;
  135. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  136. status = "disabled";
  137. };
  138. i2c1: i2c@10c02900 {
  139. compatible = "snps,designware-i2c";
  140. reg = <0x10c02900 0x100>;
  141. #address-cells = <1>;
  142. #size-cells = <0>;
  143. interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
  144. resets = <&rst I2C1_RESET>;
  145. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  146. status = "disabled";
  147. };
  148. i2c2: i2c@10c02a00 {
  149. compatible = "snps,designware-i2c";
  150. reg = <0x10c02a00 0x100>;
  151. #address-cells = <1>;
  152. #size-cells = <0>;
  153. interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
  154. resets = <&rst I2C2_RESET>;
  155. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  156. status = "disabled";
  157. };
  158. i2c3: i2c@10c02b00 {
  159. compatible = "snps,designware-i2c";
  160. reg = <0x10c02b00 0x100>;
  161. #address-cells = <1>;
  162. #size-cells = <0>;
  163. interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
  164. resets = <&rst I2C3_RESET>;
  165. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  166. status = "disabled";
  167. };
  168. i2c4: i2c@10c02c00 {
  169. compatible = "snps,designware-i2c";
  170. reg = <0x10c02c00 0x100>;
  171. #address-cells = <1>;
  172. #size-cells = <0>;
  173. interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
  174. resets = <&rst I2C4_RESET>;
  175. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  176. status = "disabled";
  177. };
  178. i3c0: i3c@10da0000 {
  179. compatible = "snps,dw-i3c-master-1.00a";
  180. reg = <0x10da0000 0x1000>;
  181. #address-cells = <3>;
  182. #size-cells = <0>;
  183. interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
  184. clocks = <&clkmgr AGILEX5_L4_MP_CLK>;
  185. status = "disabled";
  186. };
  187. i3c1: i3c@10da1000 {
  188. compatible = "snps,dw-i3c-master-1.00a";
  189. reg = <0x10da1000 0x1000>;
  190. #address-cells = <3>;
  191. #size-cells = <0>;
  192. interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
  193. clocks = <&clkmgr AGILEX5_L4_MP_CLK>;
  194. status = "disabled";
  195. };
  196. gpio1: gpio@10c03300 {
  197. compatible = "snps,dw-apb-gpio";
  198. reg = <0x10c03300 0x100>;
  199. #address-cells = <1>;
  200. #size-cells = <0>;
  201. resets = <&rst GPIO1_RESET>;
  202. status = "disabled";
  203. portb: gpio-controller@0 {
  204. compatible = "snps,dw-apb-gpio-port";
  205. reg = <0>;
  206. gpio-controller;
  207. #gpio-cells = <2>;
  208. snps,nr-gpios = <24>;
  209. interrupt-controller;
  210. #interrupt-cells = <2>;
  211. interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
  212. };
  213. };
  214. nand: nand-controller@10b80000 {
  215. compatible = "cdns,hp-nfc";
  216. reg = <0x10b80000 0x10000>,
  217. <0x10840000 0x10000>;
  218. reg-names = "reg", "sdma";
  219. #address-cells = <1>;
  220. #size-cells = <0>;
  221. interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
  222. clocks = <&clkmgr AGILEX5_NAND_NF_CLK>;
  223. cdns,board-delay-ps = <4830>;
  224. status = "disabled";
  225. };
  226. ocram: sram@0 {
  227. compatible = "mmio-sram";
  228. reg = <0x00000000 0x80000>;
  229. ranges = <0 0 0x80000>;
  230. #address-cells = <1>;
  231. #size-cells = <1>;
  232. };
  233. dmac0: dma-controller@10db0000 {
  234. compatible = "snps,axi-dma-1.01a";
  235. reg = <0x10db0000 0x500>;
  236. clocks = <&clkmgr AGILEX5_L4_MAIN_CLK>,
  237. <&clkmgr AGILEX5_L4_MP_CLK>;
  238. clock-names = "core-clk", "cfgr-clk";
  239. interrupt-parent = <&intc>;
  240. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  241. #dma-cells = <1>;
  242. dma-channels = <4>;
  243. snps,dma-masters = <1>;
  244. snps,data-width = <2>;
  245. snps,block-size = <32767 32767 32767 32767>;
  246. snps,priority = <0 1 2 3>;
  247. snps,axi-max-burst-len = <8>;
  248. };
  249. dmac1: dma-controller@10dc0000 {
  250. compatible = "snps,axi-dma-1.01a";
  251. reg = <0x10dc0000 0x500>;
  252. clocks = <&clkmgr AGILEX5_L4_MAIN_CLK>,
  253. <&clkmgr AGILEX5_L4_MP_CLK>;
  254. clock-names = "core-clk", "cfgr-clk";
  255. interrupt-parent = <&intc>;
  256. interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
  257. #dma-cells = <1>;
  258. dma-channels = <4>;
  259. snps,dma-masters = <1>;
  260. snps,data-width = <2>;
  261. snps,block-size = <32767 32767 32767 32767>;
  262. snps,priority = <0 1 2 3>;
  263. snps,axi-max-burst-len = <8>;
  264. };
  265. rst: rstmgr@10d11000 {
  266. compatible = "altr,stratix10-rst-mgr", "altr,rst-mgr";
  267. reg = <0x10d11000 0x1000>;
  268. #reset-cells = <1>;
  269. };
  270. spi0: spi@10da4000 {
  271. compatible = "snps,dw-apb-ssi";
  272. reg = <0x10da4000 0x1000>;
  273. #address-cells = <1>;
  274. #size-cells = <0>;
  275. interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
  276. resets = <&rst SPIM0_RESET>;
  277. reset-names = "spi";
  278. reg-io-width = <4>;
  279. num-cs = <4>;
  280. clocks = <&clkmgr AGILEX5_L4_MAIN_CLK>;
  281. dmas = <&dmac0 2>, <&dmac0 3>;
  282. dma-names = "tx", "rx";
  283. status = "disabled";
  284. };
  285. spi1: spi@10da5000 {
  286. compatible = "snps,dw-apb-ssi";
  287. reg = <0x10da5000 0x1000>;
  288. #address-cells = <1>;
  289. #size-cells = <0>;
  290. interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
  291. resets = <&rst SPIM1_RESET>;
  292. reset-names = "spi";
  293. reg-io-width = <4>;
  294. num-cs = <4>;
  295. clocks = <&clkmgr AGILEX5_L4_MAIN_CLK>;
  296. status = "disabled";
  297. };
  298. sysmgr: sysmgr@10d12000 {
  299. compatible = "altr,sys-mgr-s10","altr,sys-mgr";
  300. reg = <0x10d12000 0x500>;
  301. };
  302. timer0: timer0@10c03000 {
  303. compatible = "snps,dw-apb-timer";
  304. reg = <0x10c03000 0x100>;
  305. interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
  306. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  307. clock-names = "timer";
  308. };
  309. timer1: timer1@10c03100 {
  310. compatible = "snps,dw-apb-timer";
  311. reg = <0x10c03100 0x100>;
  312. interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
  313. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  314. clock-names = "timer";
  315. };
  316. timer2: timer2@10d00000 {
  317. compatible = "snps,dw-apb-timer";
  318. reg = <0x10d00000 0x100>;
  319. interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
  320. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  321. clock-names = "timer";
  322. };
  323. timer3: timer3@10d00100 {
  324. compatible = "snps,dw-apb-timer";
  325. reg = <0x10d00100 0x100>;
  326. interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
  327. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  328. clock-names = "timer";
  329. };
  330. uart0: serial@10c02000 {
  331. compatible = "snps,dw-apb-uart";
  332. reg = <0x10c02000 0x100>;
  333. interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
  334. reg-shift = <2>;
  335. reg-io-width = <4>;
  336. resets = <&rst UART0_RESET>;
  337. status = "disabled";
  338. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  339. };
  340. uart1: serial@10c02100 {
  341. compatible = "snps,dw-apb-uart";
  342. reg = <0x10c02100 0x100>;
  343. interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
  344. reg-shift = <2>;
  345. reg-io-width = <4>;
  346. resets = <&rst UART1_RESET>;
  347. status = "disabled";
  348. clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
  349. };
  350. usb0: usb@10b00000 {
  351. compatible = "snps,dwc2";
  352. reg = <0x10b00000 0x40000>;
  353. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
  354. phys = <&usbphy0>;
  355. phy-names = "usb2-phy";
  356. resets = <&rst USB0_RESET>, <&rst USB0_OCP_RESET>;
  357. reset-names = "dwc2", "dwc2-ecc";
  358. clocks = <&clkmgr AGILEX5_USB2OTG_HCLK>;
  359. clock-names = "otg";
  360. status = "disabled";
  361. };
  362. watchdog0: watchdog@10d00200 {
  363. compatible = "snps,dw-wdt";
  364. reg = <0x10d00200 0x100>;
  365. interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
  366. resets = <&rst WATCHDOG0_RESET>;
  367. clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
  368. status = "disabled";
  369. };
  370. watchdog1: watchdog@10d00300 {
  371. compatible = "snps,dw-wdt";
  372. reg = <0x10d00300 0x100>;
  373. interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
  374. resets = <&rst WATCHDOG1_RESET>;
  375. clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
  376. status = "disabled";
  377. };
  378. watchdog2: watchdog@10d00400 {
  379. compatible = "snps,dw-wdt";
  380. reg = <0x10d00400 0x100>;
  381. interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
  382. resets = <&rst WATCHDOG2_RESET>;
  383. clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
  384. status = "disabled";
  385. };
  386. watchdog3: watchdog@10d00500 {
  387. compatible = "snps,dw-wdt";
  388. reg = <0x10d00500 0x100>;
  389. interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
  390. resets = <&rst WATCHDOG3_RESET>;
  391. clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
  392. status = "disabled";
  393. };
  394. watchdog4: watchdog@10d00600 {
  395. compatible = "snps,dw-wdt";
  396. reg = <0x10d00600 0x100>;
  397. interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
  398. resets = <&rst WATCHDOG4_RESET>;
  399. clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
  400. status = "disabled";
  401. };
  402. qspi: spi@108d2000 {
  403. compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
  404. reg = <0x108d2000 0x100>,
  405. <0x10900000 0x100000>;
  406. #address-cells = <1>;
  407. #size-cells = <0>;
  408. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  409. cdns,fifo-depth = <128>;
  410. cdns,fifo-width = <4>;
  411. cdns,trigger-address = <0x00000000>;
  412. clocks = <&qspi_clk>;
  413. status = "disabled";
  414. };
  415. };
  416. };