berlin2cd.dtsi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Device Tree Include file for Marvell Armada 1500-mini (Berlin BG2CD) SoC
  4. *
  5. * Sebastian Hesselbarth <[email protected]>
  6. *
  7. * based on GPL'ed 2.6 kernel sources
  8. * (c) Marvell International Ltd.
  9. */
  10. #include <dt-bindings/clock/berlin2.h>
  11. #include <dt-bindings/interrupt-controller/arm-gic.h>
  12. / {
  13. model = "Marvell Armada 1500-mini (BG2CD) SoC";
  14. compatible = "marvell,berlin2cd", "marvell,berlin";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. aliases {
  18. serial0 = &uart0;
  19. serial1 = &uart1;
  20. };
  21. cpus {
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. cpu: cpu@0 {
  25. compatible = "arm,cortex-a9";
  26. device_type = "cpu";
  27. next-level-cache = <&l2>;
  28. reg = <0>;
  29. clocks = <&chip_clk CLKID_CPU>;
  30. clock-latency = <100000>;
  31. operating-points = <
  32. /* kHz uV */
  33. 800000 1200000
  34. 600000 1200000
  35. >;
  36. };
  37. };
  38. pmu {
  39. compatible = "arm,cortex-a9-pmu";
  40. interrupt-parent = <&gic>;
  41. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  42. };
  43. refclk: oscillator {
  44. compatible = "fixed-clock";
  45. #clock-cells = <0>;
  46. clock-frequency = <25000000>;
  47. };
  48. soc@f7000000 {
  49. compatible = "simple-bus";
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. interrupt-parent = <&gic>;
  53. ranges = <0 0xf7000000 0x1000000>;
  54. sdhci0: mmc@ab0000 {
  55. compatible = "mrvl,pxav3-mmc";
  56. reg = <0xab0000 0x200>;
  57. clocks = <&chip_clk CLKID_SDIO0XIN>, <&chip_clk CLKID_SDIO0>;
  58. clock-names = "io", "core";
  59. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  60. status = "disabled";
  61. };
  62. l2: cache-controller@ac0000 {
  63. compatible = "arm,pl310-cache";
  64. reg = <0xac0000 0x1000>;
  65. cache-unified;
  66. cache-level = <2>;
  67. };
  68. snoop-control-unit@ad0000 {
  69. compatible = "arm,cortex-a9-scu";
  70. reg = <0xad0000 0x100>;
  71. };
  72. gic: interrupt-controller@ad1000 {
  73. compatible = "arm,cortex-a9-gic";
  74. reg = <0xad1000 0x1000>, <0xad0100 0x0100>;
  75. interrupt-controller;
  76. #interrupt-cells = <3>;
  77. };
  78. global-timer@ad0200 {
  79. compatible = "arm,cortex-a9-global-timer";
  80. reg = <0xad0200 0x20>;
  81. interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>;
  82. clocks = <&chip_clk CLKID_TWD>;
  83. };
  84. local-timer@ad0600 {
  85. compatible = "arm,cortex-a9-twd-timer";
  86. reg = <0xad0600 0x20>;
  87. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>;
  88. clocks = <&chip_clk CLKID_TWD>;
  89. };
  90. local-wdt@ad0620 {
  91. compatible = "arm,cortex-a9-twd-wdt";
  92. reg = <0xad0620 0x20>;
  93. interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>;
  94. clocks = <&chip_clk CLKID_TWD>;
  95. };
  96. usb_phy0: usb-phy@b74000 {
  97. compatible = "marvell,berlin2cd-usb-phy";
  98. reg = <0xb74000 0x128>;
  99. #phy-cells = <0>;
  100. resets = <&chip_rst 0x178 23>;
  101. status = "disabled";
  102. };
  103. usb_phy1: usb-phy@b78000 {
  104. compatible = "marvell,berlin2cd-usb-phy";
  105. reg = <0xb78000 0x128>;
  106. #phy-cells = <0>;
  107. resets = <&chip_rst 0x178 24>;
  108. status = "disabled";
  109. };
  110. eth1: ethernet@b90000 {
  111. compatible = "marvell,pxa168-eth";
  112. reg = <0xb90000 0x10000>;
  113. clocks = <&chip_clk CLKID_GETH1>;
  114. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  115. /* set by bootloader */
  116. local-mac-address = [00 00 00 00 00 00];
  117. #address-cells = <1>;
  118. #size-cells = <0>;
  119. phy-connection-type = "mii";
  120. phy-handle = <&ethphy1>;
  121. status = "disabled";
  122. ethphy1: ethernet-phy@0 {
  123. reg = <0>;
  124. };
  125. };
  126. eth0: ethernet@e50000 {
  127. compatible = "marvell,pxa168-eth";
  128. reg = <0xe50000 0x10000>;
  129. clocks = <&chip_clk CLKID_GETH0>;
  130. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  131. /* set by bootloader */
  132. local-mac-address = [00 00 00 00 00 00];
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. phy-connection-type = "mii";
  136. phy-handle = <&ethphy0>;
  137. status = "disabled";
  138. ethphy0: ethernet-phy@0 {
  139. reg = <0>;
  140. };
  141. };
  142. apb@e80000 {
  143. compatible = "simple-bus";
  144. #address-cells = <1>;
  145. #size-cells = <1>;
  146. ranges = <0 0xe80000 0x10000>;
  147. interrupt-parent = <&aic>;
  148. gpio0: gpio@400 {
  149. compatible = "snps,dw-apb-gpio";
  150. reg = <0x0400 0x400>;
  151. #address-cells = <1>;
  152. #size-cells = <0>;
  153. porta: gpio-port@0 {
  154. compatible = "snps,dw-apb-gpio-port";
  155. gpio-controller;
  156. #gpio-cells = <2>;
  157. ngpios = <8>;
  158. reg = <0>;
  159. interrupt-controller;
  160. #interrupt-cells = <2>;
  161. interrupts = <0>;
  162. };
  163. };
  164. gpio1: gpio@800 {
  165. compatible = "snps,dw-apb-gpio";
  166. reg = <0x0800 0x400>;
  167. #address-cells = <1>;
  168. #size-cells = <0>;
  169. portb: gpio-port@1 {
  170. compatible = "snps,dw-apb-gpio-port";
  171. gpio-controller;
  172. #gpio-cells = <2>;
  173. ngpios = <8>;
  174. reg = <0>;
  175. interrupt-controller;
  176. #interrupt-cells = <2>;
  177. interrupts = <1>;
  178. };
  179. };
  180. gpio2: gpio@c00 {
  181. compatible = "snps,dw-apb-gpio";
  182. reg = <0x0c00 0x400>;
  183. #address-cells = <1>;
  184. #size-cells = <0>;
  185. portc: gpio-port@2 {
  186. compatible = "snps,dw-apb-gpio-port";
  187. gpio-controller;
  188. #gpio-cells = <2>;
  189. ngpios = <8>;
  190. reg = <0>;
  191. interrupt-controller;
  192. #interrupt-cells = <2>;
  193. interrupts = <2>;
  194. };
  195. };
  196. gpio3: gpio@1000 {
  197. compatible = "snps,dw-apb-gpio";
  198. reg = <0x1000 0x400>;
  199. #address-cells = <1>;
  200. #size-cells = <0>;
  201. portd: gpio-port@3 {
  202. compatible = "snps,dw-apb-gpio-port";
  203. gpio-controller;
  204. #gpio-cells = <2>;
  205. ngpios = <8>;
  206. reg = <0>;
  207. interrupt-controller;
  208. #interrupt-cells = <2>;
  209. interrupts = <3>;
  210. };
  211. };
  212. i2c0: i2c@1400 {
  213. compatible = "snps,designware-i2c";
  214. #address-cells = <1>;
  215. #size-cells = <0>;
  216. reg = <0x1400 0x100>;
  217. interrupts = <16>;
  218. clocks = <&chip_clk CLKID_CFG>;
  219. status = "disabled";
  220. };
  221. i2c1: i2c@1800 {
  222. compatible = "snps,designware-i2c";
  223. #address-cells = <1>;
  224. #size-cells = <0>;
  225. reg = <0x1800 0x100>;
  226. interrupts = <17>;
  227. clocks = <&chip_clk CLKID_CFG>;
  228. status = "disabled";
  229. };
  230. spi0: spi@1c00 {
  231. compatible = "snps,dw-apb-ssi";
  232. #address-cells = <1>;
  233. #size-cells = <0>;
  234. reg = <0x1c00 0x100>;
  235. interrupts = <4>;
  236. clocks = <&chip_clk CLKID_CFG>;
  237. status = "disabled";
  238. };
  239. wdt4: watchdog@2000 {
  240. compatible = "snps,dw-wdt";
  241. reg = <0x2000 0x100>;
  242. clocks = <&chip_clk CLKID_CFG>;
  243. interrupts = <5>;
  244. status = "disabled";
  245. };
  246. wdt5: watchdog@2400 {
  247. compatible = "snps,dw-wdt";
  248. reg = <0x2400 0x100>;
  249. clocks = <&chip_clk CLKID_CFG>;
  250. interrupts = <6>;
  251. status = "disabled";
  252. };
  253. wdt6: watchdog@2800 {
  254. compatible = "snps,dw-wdt";
  255. reg = <0x2800 0x100>;
  256. clocks = <&chip_clk CLKID_CFG>;
  257. interrupts = <7>;
  258. status = "disabled";
  259. };
  260. timer0: timer@2c00 {
  261. compatible = "snps,dw-apb-timer";
  262. reg = <0x2c00 0x14>;
  263. interrupts = <8>;
  264. clocks = <&chip_clk CLKID_CFG>;
  265. clock-names = "timer";
  266. status = "okay";
  267. };
  268. timer1: timer@2c14 {
  269. compatible = "snps,dw-apb-timer";
  270. reg = <0x2c14 0x14>;
  271. interrupts = <9>;
  272. clocks = <&chip_clk CLKID_CFG>;
  273. clock-names = "timer";
  274. status = "okay";
  275. };
  276. timer2: timer@2c28 {
  277. compatible = "snps,dw-apb-timer";
  278. reg = <0x2c28 0x14>;
  279. interrupts = <10>;
  280. clocks = <&chip_clk CLKID_CFG>;
  281. clock-names = "timer";
  282. status = "disabled";
  283. };
  284. timer3: timer@2c3c {
  285. compatible = "snps,dw-apb-timer";
  286. reg = <0x2c3c 0x14>;
  287. interrupts = <11>;
  288. clocks = <&chip_clk CLKID_CFG>;
  289. clock-names = "timer";
  290. status = "disabled";
  291. };
  292. timer4: timer@2c50 {
  293. compatible = "snps,dw-apb-timer";
  294. reg = <0x2c50 0x14>;
  295. interrupts = <12>;
  296. clocks = <&chip_clk CLKID_CFG>;
  297. clock-names = "timer";
  298. status = "disabled";
  299. };
  300. timer5: timer@2c64 {
  301. compatible = "snps,dw-apb-timer";
  302. reg = <0x2c64 0x14>;
  303. interrupts = <13>;
  304. clocks = <&chip_clk CLKID_CFG>;
  305. clock-names = "timer";
  306. status = "disabled";
  307. };
  308. timer6: timer@2c78 {
  309. compatible = "snps,dw-apb-timer";
  310. reg = <0x2c78 0x14>;
  311. interrupts = <14>;
  312. clocks = <&chip_clk CLKID_CFG>;
  313. clock-names = "timer";
  314. status = "disabled";
  315. };
  316. timer7: timer@2c8c {
  317. compatible = "snps,dw-apb-timer";
  318. reg = <0x2c8c 0x14>;
  319. interrupts = <15>;
  320. clocks = <&chip_clk CLKID_CFG>;
  321. clock-names = "timer";
  322. status = "disabled";
  323. };
  324. aic: interrupt-controller@3000 {
  325. compatible = "snps,dw-apb-ictl";
  326. reg = <0x3000 0xc00>;
  327. interrupt-controller;
  328. #interrupt-cells = <1>;
  329. interrupt-parent = <&gic>;
  330. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  331. };
  332. };
  333. chip: chip-control@ea0000 {
  334. compatible = "simple-mfd", "syscon";
  335. reg = <0xea0000 0x400>;
  336. chip_clk: clock {
  337. compatible = "marvell,berlin2-clk";
  338. #clock-cells = <1>;
  339. clocks = <&refclk>;
  340. clock-names = "refclk";
  341. };
  342. soc_pinctrl: pin-controller {
  343. compatible = "marvell,berlin2cd-soc-pinctrl";
  344. uart0_pmux: uart0-pmux {
  345. groups = "G6";
  346. function = "uart0";
  347. };
  348. };
  349. chip_rst: reset {
  350. compatible = "marvell,berlin2-reset";
  351. #reset-cells = <2>;
  352. };
  353. };
  354. usb0: usb@ed0000 {
  355. compatible = "chipidea,usb2";
  356. reg = <0xed0000 0x200>;
  357. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  358. clocks = <&chip_clk CLKID_USB0>;
  359. phys = <&usb_phy0>;
  360. phy-names = "usb-phy";
  361. status = "disabled";
  362. };
  363. usb1: usb@ee0000 {
  364. compatible = "chipidea,usb2";
  365. reg = <0xee0000 0x200>;
  366. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  367. clocks = <&chip_clk CLKID_USB1>;
  368. phys = <&usb_phy1>;
  369. phy-names = "usb-phy";
  370. status = "disabled";
  371. };
  372. pwm: pwm@f20000 {
  373. compatible = "marvell,berlin-pwm";
  374. reg = <0xf20000 0x40>;
  375. clocks = <&chip_clk CLKID_CFG>;
  376. #pwm-cells = <3>;
  377. };
  378. apb@fc0000 {
  379. compatible = "simple-bus";
  380. #address-cells = <1>;
  381. #size-cells = <1>;
  382. ranges = <0 0xfc0000 0x10000>;
  383. interrupt-parent = <&sic>;
  384. wdt0: watchdog@1000 {
  385. compatible = "snps,dw-wdt";
  386. reg = <0x1000 0x100>;
  387. clocks = <&refclk>;
  388. interrupts = <0>;
  389. };
  390. wdt1: watchdog@2000 {
  391. compatible = "snps,dw-wdt";
  392. reg = <0x2000 0x100>;
  393. clocks = <&refclk>;
  394. interrupts = <1>;
  395. status = "disabled";
  396. };
  397. wdt2: watchdog@3000 {
  398. compatible = "snps,dw-wdt";
  399. reg = <0x3000 0x100>;
  400. clocks = <&refclk>;
  401. interrupts = <2>;
  402. status = "disabled";
  403. };
  404. sm_gpio1: gpio@5000 {
  405. compatible = "snps,dw-apb-gpio";
  406. reg = <0x5000 0x400>;
  407. #address-cells = <1>;
  408. #size-cells = <0>;
  409. portf: gpio-port@5 {
  410. compatible = "snps,dw-apb-gpio-port";
  411. gpio-controller;
  412. #gpio-cells = <2>;
  413. ngpios = <8>;
  414. reg = <0>;
  415. };
  416. };
  417. spi1: spi@6000 {
  418. compatible = "snps,dw-apb-ssi";
  419. #address-cells = <1>;
  420. #size-cells = <0>;
  421. reg = <0x6000 0x100>;
  422. clocks = <&refclk>;
  423. interrupts = <5>;
  424. status = "disabled";
  425. };
  426. i2c2: i2c@7000 {
  427. compatible = "snps,designware-i2c";
  428. #address-cells = <1>;
  429. #size-cells = <0>;
  430. reg = <0x7000 0x100>;
  431. interrupts = <6>;
  432. clocks = <&refclk>;
  433. status = "disabled";
  434. };
  435. i2c3: i2c@8000 {
  436. compatible = "snps,designware-i2c";
  437. #address-cells = <1>;
  438. #size-cells = <0>;
  439. reg = <0x8000 0x100>;
  440. interrupts = <7>;
  441. clocks = <&refclk>;
  442. status = "disabled";
  443. };
  444. sm_gpio0: gpio@c000 {
  445. compatible = "snps,dw-apb-gpio";
  446. reg = <0xc000 0x400>;
  447. #address-cells = <1>;
  448. #size-cells = <0>;
  449. porte: gpio-port@4 {
  450. compatible = "snps,dw-apb-gpio-port";
  451. gpio-controller;
  452. #gpio-cells = <2>;
  453. ngpios = <8>;
  454. reg = <0>;
  455. };
  456. };
  457. uart0: serial@9000 {
  458. compatible = "snps,dw-apb-uart";
  459. reg = <0x9000 0x100>;
  460. reg-shift = <2>;
  461. reg-io-width = <1>;
  462. interrupts = <8>;
  463. clocks = <&refclk>;
  464. pinctrl-0 = <&uart0_pmux>;
  465. pinctrl-names = "default";
  466. status = "disabled";
  467. };
  468. uart1: serial@a000 {
  469. compatible = "snps,dw-apb-uart";
  470. reg = <0xa000 0x100>;
  471. reg-shift = <2>;
  472. reg-io-width = <1>;
  473. interrupts = <9>;
  474. clocks = <&refclk>;
  475. status = "disabled";
  476. };
  477. uart2: serial@b000 {
  478. compatible = "snps,dw-apb-uart";
  479. reg = <0xb000 0x100>;
  480. reg-shift = <2>;
  481. reg-io-width = <1>;
  482. interrupts = <10>;
  483. clocks = <&refclk>;
  484. status = "disabled";
  485. };
  486. sysctrl: system-controller@d000 {
  487. compatible = "simple-mfd", "syscon";
  488. reg = <0xd000 0x100>;
  489. sys_pinctrl: pin-controller {
  490. compatible = "marvell,berlin2cd-system-pinctrl";
  491. };
  492. adc: adc {
  493. compatible = "marvell,berlin2-adc";
  494. interrupts = <12>, <14>;
  495. interrupt-names = "adc", "tsen";
  496. };
  497. };
  498. sic: interrupt-controller@e000 {
  499. compatible = "snps,dw-apb-ictl";
  500. reg = <0xe000 0x400>;
  501. interrupt-controller;
  502. #interrupt-cells = <1>;
  503. interrupt-parent = <&gic>;
  504. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
  505. };
  506. };
  507. };
  508. };