socfpga_arria10.dtsi 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright Altera Corporation (C) 2014. All rights reserved.
  4. */
  5. #include <dt-bindings/interrupt-controller/arm-gic.h>
  6. #include <dt-bindings/reset/altr,rst-mgr-a10.h>
  7. / {
  8. #address-cells = <1>;
  9. #size-cells = <1>;
  10. cpus {
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. enable-method = "altr,socfpga-a10-smp";
  14. cpu0: cpu@0 {
  15. compatible = "arm,cortex-a9";
  16. device_type = "cpu";
  17. reg = <0>;
  18. next-level-cache = <&L2>;
  19. };
  20. cpu1: cpu@1 {
  21. compatible = "arm,cortex-a9";
  22. device_type = "cpu";
  23. reg = <1>;
  24. next-level-cache = <&L2>;
  25. };
  26. };
  27. pmu: pmu@ff111000 {
  28. compatible = "arm,cortex-a9-pmu";
  29. interrupt-parent = <&intc>;
  30. interrupts = <0 124 4>, <0 125 4>;
  31. interrupt-affinity = <&cpu0>, <&cpu1>;
  32. reg = <0xff111000 0x1000>,
  33. <0xff113000 0x1000>;
  34. };
  35. intc: interrupt-controller@ffffd000 {
  36. compatible = "arm,cortex-a9-gic";
  37. #interrupt-cells = <3>;
  38. interrupt-controller;
  39. reg = <0xffffd000 0x1000>,
  40. <0xffffc100 0x100>;
  41. };
  42. soc {
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. compatible = "simple-bus";
  46. device_type = "soc";
  47. interrupt-parent = <&intc>;
  48. ranges;
  49. amba {
  50. compatible = "simple-bus";
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. ranges;
  54. pdma: pdma@ffda1000 {
  55. compatible = "arm,pl330", "arm,primecell";
  56. reg = <0xffda1000 0x1000>;
  57. interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>,
  58. <0 84 IRQ_TYPE_LEVEL_HIGH>,
  59. <0 85 IRQ_TYPE_LEVEL_HIGH>,
  60. <0 86 IRQ_TYPE_LEVEL_HIGH>,
  61. <0 87 IRQ_TYPE_LEVEL_HIGH>,
  62. <0 88 IRQ_TYPE_LEVEL_HIGH>,
  63. <0 89 IRQ_TYPE_LEVEL_HIGH>,
  64. <0 90 IRQ_TYPE_LEVEL_HIGH>,
  65. <0 91 IRQ_TYPE_LEVEL_HIGH>;
  66. #dma-cells = <1>;
  67. clocks = <&l4_main_clk>;
  68. clock-names = "apb_pclk";
  69. resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>;
  70. reset-names = "dma", "dma-ocp";
  71. };
  72. };
  73. base_fpga_region {
  74. #address-cells = <0x1>;
  75. #size-cells = <0x1>;
  76. compatible = "fpga-region";
  77. fpga-mgr = <&fpga_mgr>;
  78. };
  79. clkmgr@ffd04000 {
  80. compatible = "altr,clk-mgr";
  81. reg = <0xffd04000 0x1000>;
  82. clocks {
  83. #address-cells = <1>;
  84. #size-cells = <0>;
  85. cb_intosc_hs_div2_clk: cb_intosc_hs_div2_clk {
  86. #clock-cells = <0>;
  87. compatible = "fixed-clock";
  88. };
  89. cb_intosc_ls_clk: cb_intosc_ls_clk {
  90. #clock-cells = <0>;
  91. compatible = "fixed-clock";
  92. };
  93. f2s_free_clk: f2s_free_clk {
  94. #clock-cells = <0>;
  95. compatible = "fixed-clock";
  96. };
  97. osc1: osc1 {
  98. #clock-cells = <0>;
  99. compatible = "fixed-clock";
  100. };
  101. main_pll: main_pll@40 {
  102. #address-cells = <1>;
  103. #size-cells = <0>;
  104. #clock-cells = <0>;
  105. compatible = "altr,socfpga-a10-pll-clock";
  106. clocks = <&osc1>, <&cb_intosc_ls_clk>,
  107. <&f2s_free_clk>;
  108. reg = <0x40>;
  109. main_mpu_base_clk: main_mpu_base_clk {
  110. #clock-cells = <0>;
  111. compatible = "altr,socfpga-a10-perip-clk";
  112. clocks = <&main_pll>;
  113. div-reg = <0x140 0 11>;
  114. };
  115. main_noc_base_clk: main_noc_base_clk {
  116. #clock-cells = <0>;
  117. compatible = "altr,socfpga-a10-perip-clk";
  118. clocks = <&main_pll>;
  119. div-reg = <0x144 0 11>;
  120. };
  121. main_emaca_clk: main_emaca_clk@68 {
  122. #clock-cells = <0>;
  123. compatible = "altr,socfpga-a10-perip-clk";
  124. clocks = <&main_pll>;
  125. reg = <0x68>;
  126. };
  127. main_emacb_clk: main_emacb_clk@6c {
  128. #clock-cells = <0>;
  129. compatible = "altr,socfpga-a10-perip-clk";
  130. clocks = <&main_pll>;
  131. reg = <0x6C>;
  132. };
  133. main_emac_ptp_clk: main_emac_ptp_clk@70 {
  134. #clock-cells = <0>;
  135. compatible = "altr,socfpga-a10-perip-clk";
  136. clocks = <&main_pll>;
  137. reg = <0x70>;
  138. };
  139. main_gpio_db_clk: main_gpio_db_clk@74 {
  140. #clock-cells = <0>;
  141. compatible = "altr,socfpga-a10-perip-clk";
  142. clocks = <&main_pll>;
  143. reg = <0x74>;
  144. };
  145. main_sdmmc_clk: main_sdmmc_clk@78 {
  146. #clock-cells = <0>;
  147. compatible = "altr,socfpga-a10-perip-clk"
  148. ;
  149. clocks = <&main_pll>;
  150. reg = <0x78>;
  151. };
  152. main_s2f_usr0_clk: main_s2f_usr0_clk@7c {
  153. #clock-cells = <0>;
  154. compatible = "altr,socfpga-a10-perip-clk";
  155. clocks = <&main_pll>;
  156. reg = <0x7C>;
  157. };
  158. main_s2f_usr1_clk: main_s2f_usr1_clk@80 {
  159. #clock-cells = <0>;
  160. compatible = "altr,socfpga-a10-perip-clk";
  161. clocks = <&main_pll>;
  162. reg = <0x80>;
  163. };
  164. main_hmc_pll_ref_clk: main_hmc_pll_ref_clk@84 {
  165. #clock-cells = <0>;
  166. compatible = "altr,socfpga-a10-perip-clk";
  167. clocks = <&main_pll>;
  168. reg = <0x84>;
  169. };
  170. main_periph_ref_clk: main_periph_ref_clk@9c {
  171. #clock-cells = <0>;
  172. compatible = "altr,socfpga-a10-perip-clk";
  173. clocks = <&main_pll>;
  174. reg = <0x9C>;
  175. };
  176. };
  177. periph_pll: periph_pll@c0 {
  178. #address-cells = <1>;
  179. #size-cells = <0>;
  180. #clock-cells = <0>;
  181. compatible = "altr,socfpga-a10-pll-clock";
  182. clocks = <&osc1>, <&cb_intosc_ls_clk>,
  183. <&f2s_free_clk>, <&main_periph_ref_clk>;
  184. reg = <0xC0>;
  185. peri_mpu_base_clk: peri_mpu_base_clk {
  186. #clock-cells = <0>;
  187. compatible = "altr,socfpga-a10-perip-clk";
  188. clocks = <&periph_pll>;
  189. div-reg = <0x140 16 11>;
  190. };
  191. peri_noc_base_clk: peri_noc_base_clk {
  192. #clock-cells = <0>;
  193. compatible = "altr,socfpga-a10-perip-clk";
  194. clocks = <&periph_pll>;
  195. div-reg = <0x144 16 11>;
  196. };
  197. peri_emaca_clk: peri_emaca_clk@e8 {
  198. #clock-cells = <0>;
  199. compatible = "altr,socfpga-a10-perip-clk";
  200. clocks = <&periph_pll>;
  201. reg = <0xE8>;
  202. };
  203. peri_emacb_clk: peri_emacb_clk@ec {
  204. #clock-cells = <0>;
  205. compatible = "altr,socfpga-a10-perip-clk";
  206. clocks = <&periph_pll>;
  207. reg = <0xEC>;
  208. };
  209. peri_emac_ptp_clk: peri_emac_ptp_clk@f0 {
  210. #clock-cells = <0>;
  211. compatible = "altr,socfpga-a10-perip-clk";
  212. clocks = <&periph_pll>;
  213. reg = <0xF0>;
  214. };
  215. peri_gpio_db_clk: peri_gpio_db_clk@f4 {
  216. #clock-cells = <0>;
  217. compatible = "altr,socfpga-a10-perip-clk";
  218. clocks = <&periph_pll>;
  219. reg = <0xF4>;
  220. };
  221. peri_sdmmc_clk: peri_sdmmc_clk@f8 {
  222. #clock-cells = <0>;
  223. compatible = "altr,socfpga-a10-perip-clk";
  224. clocks = <&periph_pll>;
  225. reg = <0xF8>;
  226. };
  227. peri_s2f_usr0_clk: peri_s2f_usr0_clk@fc {
  228. #clock-cells = <0>;
  229. compatible = "altr,socfpga-a10-perip-clk";
  230. clocks = <&periph_pll>;
  231. reg = <0xFC>;
  232. };
  233. peri_s2f_usr1_clk: peri_s2f_usr1_clk@100 {
  234. #clock-cells = <0>;
  235. compatible = "altr,socfpga-a10-perip-clk";
  236. clocks = <&periph_pll>;
  237. reg = <0x100>;
  238. };
  239. peri_hmc_pll_ref_clk: peri_hmc_pll_ref_clk@104 {
  240. #clock-cells = <0>;
  241. compatible = "altr,socfpga-a10-perip-clk";
  242. clocks = <&periph_pll>;
  243. reg = <0x104>;
  244. };
  245. };
  246. mpu_free_clk: mpu_free_clk@60 {
  247. #clock-cells = <0>;
  248. compatible = "altr,socfpga-a10-perip-clk";
  249. clocks = <&main_mpu_base_clk>, <&peri_mpu_base_clk>,
  250. <&osc1>, <&cb_intosc_hs_div2_clk>,
  251. <&f2s_free_clk>;
  252. reg = <0x60>;
  253. };
  254. noc_free_clk: noc_free_clk@64 {
  255. #clock-cells = <0>;
  256. compatible = "altr,socfpga-a10-perip-clk";
  257. clocks = <&main_noc_base_clk>, <&peri_noc_base_clk>,
  258. <&osc1>, <&cb_intosc_hs_div2_clk>,
  259. <&f2s_free_clk>;
  260. reg = <0x64>;
  261. };
  262. s2f_user1_free_clk: s2f_user1_free_clk@104 {
  263. #clock-cells = <0>;
  264. compatible = "altr,socfpga-a10-perip-clk";
  265. clocks = <&main_s2f_usr1_clk>, <&peri_s2f_usr1_clk>,
  266. <&osc1>, <&cb_intosc_hs_div2_clk>,
  267. <&f2s_free_clk>;
  268. reg = <0x104>;
  269. };
  270. sdmmc_free_clk: sdmmc_free_clk@f8 {
  271. #clock-cells = <0>;
  272. compatible = "altr,socfpga-a10-perip-clk";
  273. clocks = <&main_sdmmc_clk>, <&peri_sdmmc_clk>,
  274. <&osc1>, <&cb_intosc_hs_div2_clk>,
  275. <&f2s_free_clk>;
  276. fixed-divider = <4>;
  277. reg = <0xF8>;
  278. };
  279. l4_sys_free_clk: l4_sys_free_clk {
  280. #clock-cells = <0>;
  281. compatible = "altr,socfpga-a10-perip-clk";
  282. clocks = <&noc_free_clk>;
  283. fixed-divider = <4>;
  284. };
  285. l4_main_clk: l4_main_clk {
  286. #clock-cells = <0>;
  287. compatible = "altr,socfpga-a10-gate-clk";
  288. clocks = <&noc_free_clk>;
  289. div-reg = <0xA8 0 2>;
  290. clk-gate = <0x48 1>;
  291. };
  292. l4_mp_clk: l4_mp_clk {
  293. #clock-cells = <0>;
  294. compatible = "altr,socfpga-a10-gate-clk";
  295. clocks = <&noc_free_clk>;
  296. div-reg = <0xA8 8 2>;
  297. clk-gate = <0x48 2>;
  298. };
  299. l4_sp_clk: l4_sp_clk {
  300. #clock-cells = <0>;
  301. compatible = "altr,socfpga-a10-gate-clk";
  302. clocks = <&noc_free_clk>;
  303. div-reg = <0xA8 16 2>;
  304. clk-gate = <0x48 3>;
  305. };
  306. mpu_periph_clk: mpu_periph_clk {
  307. #clock-cells = <0>;
  308. compatible = "altr,socfpga-a10-gate-clk";
  309. clocks = <&mpu_free_clk>;
  310. fixed-divider = <4>;
  311. clk-gate = <0x48 0>;
  312. };
  313. sdmmc_clk: sdmmc_clk {
  314. #clock-cells = <0>;
  315. compatible = "altr,socfpga-a10-gate-clk";
  316. clocks = <&sdmmc_free_clk>;
  317. clk-gate = <0xC8 5>;
  318. clk-phase = <0 135>;
  319. };
  320. qspi_clk: qspi_clk {
  321. #clock-cells = <0>;
  322. compatible = "altr,socfpga-a10-gate-clk";
  323. clocks = <&l4_main_clk>;
  324. clk-gate = <0xC8 11>;
  325. };
  326. nand_x_clk: nand_x_clk {
  327. #clock-cells = <0>;
  328. compatible = "altr,socfpga-a10-gate-clk";
  329. clocks = <&l4_mp_clk>;
  330. clk-gate = <0xC8 10>;
  331. };
  332. nand_ecc_clk: nand_ecc_clk {
  333. #clock-cells = <0>;
  334. compatible = "altr,socfpga-a10-gate-clk";
  335. clocks = <&nand_x_clk>;
  336. clk-gate = <0xC8 10>;
  337. };
  338. nand_clk: nand_clk {
  339. #clock-cells = <0>;
  340. compatible = "altr,socfpga-a10-gate-clk";
  341. clocks = <&nand_x_clk>;
  342. fixed-divider = <4>;
  343. clk-gate = <0xC8 10>;
  344. };
  345. spi_m_clk: spi_m_clk {
  346. #clock-cells = <0>;
  347. compatible = "altr,socfpga-a10-gate-clk";
  348. clocks = <&l4_main_clk>;
  349. clk-gate = <0xC8 9>;
  350. };
  351. usb_clk: usb_clk {
  352. #clock-cells = <0>;
  353. compatible = "altr,socfpga-a10-gate-clk";
  354. clocks = <&l4_mp_clk>;
  355. clk-gate = <0xC8 8>;
  356. };
  357. s2f_usr1_clk: s2f_usr1_clk {
  358. #clock-cells = <0>;
  359. compatible = "altr,socfpga-a10-gate-clk";
  360. clocks = <&peri_s2f_usr1_clk>;
  361. clk-gate = <0xC8 6>;
  362. };
  363. };
  364. };
  365. socfpga_axi_setup: stmmac-axi-config {
  366. snps,wr_osr_lmt = <0xf>;
  367. snps,rd_osr_lmt = <0xf>;
  368. snps,blen = <0 0 0 0 16 0 0>;
  369. };
  370. gmac0: ethernet@ff800000 {
  371. compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
  372. altr,sysmgr-syscon = <&sysmgr 0x44 0>;
  373. reg = <0xff800000 0x2000>;
  374. interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>;
  375. interrupt-names = "macirq";
  376. /* Filled in by bootloader */
  377. mac-address = [00 00 00 00 00 00];
  378. snps,multicast-filter-bins = <256>;
  379. snps,perfect-filter-entries = <128>;
  380. tx-fifo-depth = <4096>;
  381. rx-fifo-depth = <16384>;
  382. clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
  383. clock-names = "stmmaceth", "ptp_ref";
  384. resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
  385. reset-names = "stmmaceth", "stmmaceth-ocp";
  386. snps,axi-config = <&socfpga_axi_setup>;
  387. status = "disabled";
  388. };
  389. gmac1: ethernet@ff802000 {
  390. compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
  391. altr,sysmgr-syscon = <&sysmgr 0x48 8>;
  392. reg = <0xff802000 0x2000>;
  393. interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>;
  394. interrupt-names = "macirq";
  395. /* Filled in by bootloader */
  396. mac-address = [00 00 00 00 00 00];
  397. snps,multicast-filter-bins = <256>;
  398. snps,perfect-filter-entries = <128>;
  399. tx-fifo-depth = <4096>;
  400. rx-fifo-depth = <16384>;
  401. clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
  402. clock-names = "stmmaceth", "ptp_ref";
  403. resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
  404. reset-names = "stmmaceth", "stmmaceth-ocp";
  405. snps,axi-config = <&socfpga_axi_setup>;
  406. status = "disabled";
  407. };
  408. gmac2: ethernet@ff804000 {
  409. compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
  410. altr,sysmgr-syscon = <&sysmgr 0x4C 16>;
  411. reg = <0xff804000 0x2000>;
  412. interrupts = <0 94 IRQ_TYPE_LEVEL_HIGH>;
  413. interrupt-names = "macirq";
  414. /* Filled in by bootloader */
  415. mac-address = [00 00 00 00 00 00];
  416. snps,multicast-filter-bins = <256>;
  417. snps,perfect-filter-entries = <128>;
  418. tx-fifo-depth = <4096>;
  419. rx-fifo-depth = <16384>;
  420. clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
  421. clock-names = "stmmaceth", "ptp_ref";
  422. resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
  423. reset-names = "stmmaceth", "stmmaceth-ocp";
  424. snps,axi-config = <&socfpga_axi_setup>;
  425. status = "disabled";
  426. };
  427. gpio0: gpio@ffc02900 {
  428. #address-cells = <1>;
  429. #size-cells = <0>;
  430. compatible = "snps,dw-apb-gpio";
  431. reg = <0xffc02900 0x100>;
  432. resets = <&rst GPIO0_RESET>;
  433. status = "disabled";
  434. porta: gpio-controller@0 {
  435. compatible = "snps,dw-apb-gpio-port";
  436. gpio-controller;
  437. #gpio-cells = <2>;
  438. snps,nr-gpios = <29>;
  439. reg = <0>;
  440. interrupt-controller;
  441. #interrupt-cells = <2>;
  442. interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
  443. };
  444. };
  445. gpio1: gpio@ffc02a00 {
  446. #address-cells = <1>;
  447. #size-cells = <0>;
  448. compatible = "snps,dw-apb-gpio";
  449. reg = <0xffc02a00 0x100>;
  450. resets = <&rst GPIO1_RESET>;
  451. status = "disabled";
  452. portb: gpio-controller@0 {
  453. compatible = "snps,dw-apb-gpio-port";
  454. gpio-controller;
  455. #gpio-cells = <2>;
  456. snps,nr-gpios = <29>;
  457. reg = <0>;
  458. interrupt-controller;
  459. #interrupt-cells = <2>;
  460. interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
  461. };
  462. };
  463. gpio2: gpio@ffc02b00 {
  464. #address-cells = <1>;
  465. #size-cells = <0>;
  466. compatible = "snps,dw-apb-gpio";
  467. reg = <0xffc02b00 0x100>;
  468. resets = <&rst GPIO2_RESET>;
  469. status = "disabled";
  470. portc: gpio-controller@0 {
  471. compatible = "snps,dw-apb-gpio-port";
  472. gpio-controller;
  473. #gpio-cells = <2>;
  474. snps,nr-gpios = <27>;
  475. reg = <0>;
  476. interrupt-controller;
  477. #interrupt-cells = <2>;
  478. interrupts = <0 114 IRQ_TYPE_LEVEL_HIGH>;
  479. };
  480. };
  481. fpga_mgr: fpga-mgr@ffd03000 {
  482. compatible = "altr,socfpga-a10-fpga-mgr";
  483. reg = <0xffd03000 0x100
  484. 0xffcfe400 0x20>;
  485. clocks = <&l4_mp_clk>;
  486. resets = <&rst FPGAMGR_RESET>;
  487. reset-names = "fpgamgr";
  488. };
  489. i2c0: i2c@ffc02200 {
  490. #address-cells = <1>;
  491. #size-cells = <0>;
  492. compatible = "snps,designware-i2c";
  493. reg = <0xffc02200 0x100>;
  494. interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
  495. clocks = <&l4_sp_clk>;
  496. resets = <&rst I2C0_RESET>;
  497. status = "disabled";
  498. };
  499. i2c1: i2c@ffc02300 {
  500. #address-cells = <1>;
  501. #size-cells = <0>;
  502. compatible = "snps,designware-i2c";
  503. reg = <0xffc02300 0x100>;
  504. interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
  505. clocks = <&l4_sp_clk>;
  506. resets = <&rst I2C1_RESET>;
  507. status = "disabled";
  508. };
  509. i2c2: i2c@ffc02400 {
  510. #address-cells = <1>;
  511. #size-cells = <0>;
  512. compatible = "snps,designware-i2c";
  513. reg = <0xffc02400 0x100>;
  514. interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
  515. clocks = <&l4_sp_clk>;
  516. resets = <&rst I2C2_RESET>;
  517. status = "disabled";
  518. };
  519. i2c3: i2c@ffc02500 {
  520. #address-cells = <1>;
  521. #size-cells = <0>;
  522. compatible = "snps,designware-i2c";
  523. reg = <0xffc02500 0x100>;
  524. interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
  525. clocks = <&l4_sp_clk>;
  526. resets = <&rst I2C3_RESET>;
  527. status = "disabled";
  528. };
  529. i2c4: i2c@ffc02600 {
  530. #address-cells = <1>;
  531. #size-cells = <0>;
  532. compatible = "snps,designware-i2c";
  533. reg = <0xffc02600 0x100>;
  534. interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH>;
  535. clocks = <&l4_sp_clk>;
  536. resets = <&rst I2C4_RESET>;
  537. status = "disabled";
  538. };
  539. spi0: spi@ffda4000 {
  540. compatible = "snps,dw-apb-ssi";
  541. #address-cells = <1>;
  542. #size-cells = <0>;
  543. reg = <0xffda4000 0x100>;
  544. interrupts = <0 101 4>;
  545. num-cs = <4>;
  546. /*32bit_access;*/
  547. clocks = <&spi_m_clk>;
  548. resets = <&rst SPIM0_RESET>;
  549. reset-names = "spi";
  550. status = "disabled";
  551. };
  552. spi1: spi@ffda5000 {
  553. compatible = "snps,dw-apb-ssi";
  554. #address-cells = <1>;
  555. #size-cells = <0>;
  556. reg = <0xffda5000 0x100>;
  557. interrupts = <0 102 4>;
  558. num-cs = <4>;
  559. /*32bit_access;*/
  560. tx-dma-channel = <&pdma 16>;
  561. rx-dma-channel = <&pdma 17>;
  562. clocks = <&spi_m_clk>;
  563. resets = <&rst SPIM1_RESET>;
  564. reset-names = "spi";
  565. status = "disabled";
  566. };
  567. sdr: sdr@ffcfb100 {
  568. compatible = "altr,sdr-ctl", "syscon";
  569. reg = <0xffcfb100 0x80>;
  570. };
  571. L2: cache-controller@fffff000 {
  572. compatible = "arm,pl310-cache";
  573. reg = <0xfffff000 0x1000>;
  574. interrupts = <0 18 IRQ_TYPE_LEVEL_HIGH>;
  575. cache-unified;
  576. cache-level = <2>;
  577. prefetch-data = <1>;
  578. prefetch-instr = <1>;
  579. arm,shared-override;
  580. };
  581. mmc: dwmmc0@ff808000 {
  582. #address-cells = <1>;
  583. #size-cells = <0>;
  584. compatible = "altr,socfpga-dw-mshc";
  585. reg = <0xff808000 0x1000>;
  586. interrupts = <0 98 IRQ_TYPE_LEVEL_HIGH>;
  587. fifo-depth = <0x400>;
  588. clocks = <&l4_mp_clk>, <&sdmmc_clk>;
  589. clock-names = "biu", "ciu";
  590. resets = <&rst SDMMC_RESET>;
  591. status = "disabled";
  592. };
  593. nand: nand@ffb90000 {
  594. #address-cells = <1>;
  595. #size-cells = <0>;
  596. compatible = "altr,socfpga-denali-nand";
  597. reg = <0xffb90000 0x72000>,
  598. <0xffb80000 0x10000>;
  599. reg-names = "nand_data", "denali_reg";
  600. interrupts = <0 99 4>;
  601. clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>;
  602. clock-names = "nand", "nand_x", "ecc";
  603. resets = <&rst NAND_RESET>;
  604. status = "disabled";
  605. };
  606. ocram: sram@ffe00000 {
  607. compatible = "mmio-sram";
  608. reg = <0xffe00000 0x40000>;
  609. };
  610. eccmgr: eccmgr {
  611. compatible = "altr,socfpga-a10-ecc-manager";
  612. altr,sysmgr-syscon = <&sysmgr>;
  613. #address-cells = <1>;
  614. #size-cells = <1>;
  615. interrupts = <0 2 IRQ_TYPE_LEVEL_HIGH>,
  616. <0 0 IRQ_TYPE_LEVEL_HIGH>;
  617. interrupt-controller;
  618. #interrupt-cells = <2>;
  619. ranges;
  620. sdramedac {
  621. compatible = "altr,sdram-edac-a10";
  622. altr,sdr-syscon = <&sdr>;
  623. interrupts = <17 IRQ_TYPE_LEVEL_HIGH>,
  624. <49 IRQ_TYPE_LEVEL_HIGH>;
  625. };
  626. l2-ecc@ffd06010 {
  627. compatible = "altr,socfpga-a10-l2-ecc";
  628. reg = <0xffd06010 0x4>;
  629. interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
  630. <32 IRQ_TYPE_LEVEL_HIGH>;
  631. };
  632. ocram-ecc@ff8c3000 {
  633. compatible = "altr,socfpga-a10-ocram-ecc";
  634. reg = <0xff8c3000 0x400>;
  635. interrupts = <1 IRQ_TYPE_LEVEL_HIGH>,
  636. <33 IRQ_TYPE_LEVEL_HIGH>;
  637. };
  638. emac0-rx-ecc@ff8c0800 {
  639. compatible = "altr,socfpga-eth-mac-ecc";
  640. reg = <0xff8c0800 0x400>;
  641. altr,ecc-parent = <&gmac0>;
  642. interrupts = <4 IRQ_TYPE_LEVEL_HIGH>,
  643. <36 IRQ_TYPE_LEVEL_HIGH>;
  644. };
  645. emac0-tx-ecc@ff8c0c00 {
  646. compatible = "altr,socfpga-eth-mac-ecc";
  647. reg = <0xff8c0c00 0x400>;
  648. altr,ecc-parent = <&gmac0>;
  649. interrupts = <5 IRQ_TYPE_LEVEL_HIGH>,
  650. <37 IRQ_TYPE_LEVEL_HIGH>;
  651. };
  652. sdmmca-ecc@ff8c2c00 {
  653. compatible = "altr,socfpga-sdmmc-ecc";
  654. reg = <0xff8c2c00 0x400>;
  655. altr,ecc-parent = <&mmc>;
  656. interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,
  657. <47 IRQ_TYPE_LEVEL_HIGH>,
  658. <16 IRQ_TYPE_LEVEL_HIGH>,
  659. <48 IRQ_TYPE_LEVEL_HIGH>;
  660. };
  661. dma-ecc@ff8c8000 {
  662. compatible = "altr,socfpga-dma-ecc";
  663. reg = <0xff8c8000 0x400>;
  664. altr,ecc-parent = <&pdma>;
  665. interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
  666. <42 IRQ_TYPE_LEVEL_HIGH>;
  667. };
  668. usb0-ecc@ff8c8800 {
  669. compatible = "altr,socfpga-usb-ecc";
  670. reg = <0xff8c8800 0x400>;
  671. altr,ecc-parent = <&usb0>;
  672. interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
  673. <34 IRQ_TYPE_LEVEL_HIGH>;
  674. };
  675. };
  676. qspi: spi@ff809000 {
  677. compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
  678. #address-cells = <1>;
  679. #size-cells = <0>;
  680. reg = <0xff809000 0x100>,
  681. <0xffa00000 0x100000>;
  682. interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>;
  683. cdns,fifo-depth = <128>;
  684. cdns,fifo-width = <4>;
  685. cdns,trigger-address = <0x00000000>;
  686. clocks = <&qspi_clk>;
  687. resets = <&rst QSPI_RESET>, <&rst QSPI_OCP_RESET>;
  688. reset-names = "qspi", "qspi-ocp";
  689. status = "disabled";
  690. };
  691. rst: rstmgr@ffd05000 {
  692. #reset-cells = <1>;
  693. compatible = "altr,rst-mgr";
  694. reg = <0xffd05000 0x100>;
  695. altr,modrst-offset = <0x20>;
  696. };
  697. scu: snoop-control-unit@ffffc000 {
  698. compatible = "arm,cortex-a9-scu";
  699. reg = <0xffffc000 0x100>;
  700. };
  701. sysmgr: sysmgr@ffd06000 {
  702. compatible = "altr,sys-mgr", "syscon";
  703. reg = <0xffd06000 0x300>;
  704. cpu1-start-addr = <0xffd06230>;
  705. };
  706. /* Local timer */
  707. timer@ffffc600 {
  708. compatible = "arm,cortex-a9-twd-timer";
  709. reg = <0xffffc600 0x100>;
  710. interrupts = <1 13 0xf01>;
  711. clocks = <&mpu_periph_clk>;
  712. };
  713. timer0: timer0@ffc02700 {
  714. compatible = "snps,dw-apb-timer";
  715. interrupts = <0 115 IRQ_TYPE_LEVEL_HIGH>;
  716. reg = <0xffc02700 0x100>;
  717. clocks = <&l4_sp_clk>;
  718. clock-names = "timer";
  719. resets = <&rst SPTIMER0_RESET>;
  720. reset-names = "timer";
  721. };
  722. timer1: timer1@ffc02800 {
  723. compatible = "snps,dw-apb-timer";
  724. interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>;
  725. reg = <0xffc02800 0x100>;
  726. clocks = <&l4_sp_clk>;
  727. clock-names = "timer";
  728. resets = <&rst SPTIMER1_RESET>;
  729. reset-names = "timer";
  730. };
  731. timer2: timer2@ffd00000 {
  732. compatible = "snps,dw-apb-timer";
  733. interrupts = <0 117 IRQ_TYPE_LEVEL_HIGH>;
  734. reg = <0xffd00000 0x100>;
  735. clocks = <&l4_sys_free_clk>;
  736. clock-names = "timer";
  737. resets = <&rst L4SYSTIMER0_RESET>;
  738. reset-names = "timer";
  739. };
  740. timer3: timer3@ffd00100 {
  741. compatible = "snps,dw-apb-timer";
  742. interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>;
  743. reg = <0xffd00100 0x100>;
  744. clocks = <&l4_sys_free_clk>;
  745. clock-names = "timer";
  746. resets = <&rst L4SYSTIMER1_RESET>;
  747. reset-names = "timer";
  748. };
  749. uart0: serial0@ffc02000 {
  750. compatible = "snps,dw-apb-uart";
  751. reg = <0xffc02000 0x100>;
  752. interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
  753. reg-shift = <2>;
  754. reg-io-width = <4>;
  755. clocks = <&l4_sp_clk>;
  756. resets = <&rst UART0_RESET>;
  757. status = "disabled";
  758. };
  759. uart1: serial1@ffc02100 {
  760. compatible = "snps,dw-apb-uart";
  761. reg = <0xffc02100 0x100>;
  762. interrupts = <0 111 IRQ_TYPE_LEVEL_HIGH>;
  763. reg-shift = <2>;
  764. reg-io-width = <4>;
  765. clocks = <&l4_sp_clk>;
  766. resets = <&rst UART1_RESET>;
  767. status = "disabled";
  768. };
  769. usbphy0: usbphy {
  770. #phy-cells = <0>;
  771. compatible = "usb-nop-xceiv";
  772. status = "okay";
  773. };
  774. usb0: usb@ffb00000 {
  775. compatible = "snps,dwc2";
  776. reg = <0xffb00000 0xffff>;
  777. interrupts = <0 95 IRQ_TYPE_LEVEL_HIGH>;
  778. clocks = <&usb_clk>;
  779. clock-names = "otg";
  780. resets = <&rst USB0_RESET>;
  781. reset-names = "dwc2";
  782. phys = <&usbphy0>;
  783. phy-names = "usb2-phy";
  784. status = "disabled";
  785. };
  786. usb1: usb@ffb40000 {
  787. compatible = "snps,dwc2";
  788. reg = <0xffb40000 0xffff>;
  789. interrupts = <0 96 IRQ_TYPE_LEVEL_HIGH>;
  790. clocks = <&usb_clk>;
  791. clock-names = "otg";
  792. resets = <&rst USB1_RESET>;
  793. reset-names = "dwc2";
  794. phys = <&usbphy0>;
  795. phy-names = "usb2-phy";
  796. status = "disabled";
  797. };
  798. watchdog0: watchdog@ffd00200 {
  799. compatible = "snps,dw-wdt";
  800. reg = <0xffd00200 0x100>;
  801. interrupts = <0 119 IRQ_TYPE_LEVEL_HIGH>;
  802. clocks = <&l4_sys_free_clk>;
  803. resets = <&rst L4WD0_RESET>;
  804. status = "disabled";
  805. };
  806. watchdog1: watchdog@ffd00300 {
  807. compatible = "snps,dw-wdt";
  808. reg = <0xffd00300 0x100>;
  809. interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>;
  810. clocks = <&l4_sys_free_clk>;
  811. resets = <&rst L4WD1_RESET>;
  812. status = "disabled";
  813. };
  814. };
  815. };