armada-375.dtsi 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. /*
  2. * Device Tree Include file for Marvell Armada 375 family SoC
  3. *
  4. * Copyright (C) 2014 Marvell
  5. *
  6. * Gregory CLEMENT <gregory.clement@free-electrons.com>
  7. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #include "skeleton.dtsi"
  14. #include <dt-bindings/interrupt-controller/arm-gic.h>
  15. #include <dt-bindings/interrupt-controller/irq.h>
  16. #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
  17. / {
  18. model = "Marvell Armada 375 family SoC";
  19. compatible = "marvell,armada375";
  20. aliases {
  21. gpio0 = &gpio0;
  22. gpio1 = &gpio1;
  23. gpio2 = &gpio2;
  24. ethernet0 = &eth0;
  25. ethernet1 = &eth1;
  26. };
  27. clocks {
  28. /* 2 GHz fixed main PLL */
  29. mainpll: mainpll {
  30. compatible = "fixed-clock";
  31. #clock-cells = <0>;
  32. clock-frequency = <2000000000>;
  33. };
  34. };
  35. cpus {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. enable-method = "marvell,armada-375-smp";
  39. cpu@0 {
  40. device_type = "cpu";
  41. compatible = "arm,cortex-a9";
  42. reg = <0>;
  43. };
  44. cpu@1 {
  45. device_type = "cpu";
  46. compatible = "arm,cortex-a9";
  47. reg = <1>;
  48. };
  49. };
  50. soc {
  51. compatible = "marvell,armada375-mbus", "marvell,armada370-mbus", "simple-bus";
  52. #address-cells = <2>;
  53. #size-cells = <1>;
  54. controller = <&mbusc>;
  55. interrupt-parent = <&gic>;
  56. pcie-mem-aperture = <0xe0000000 0x8000000>;
  57. pcie-io-aperture = <0xe8000000 0x100000>;
  58. bootrom {
  59. compatible = "marvell,bootrom";
  60. reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
  61. };
  62. devbus-bootcs {
  63. compatible = "marvell,mvebu-devbus";
  64. reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
  65. ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
  66. #address-cells = <1>;
  67. #size-cells = <1>;
  68. clocks = <&coreclk 0>;
  69. status = "disabled";
  70. };
  71. devbus-cs0 {
  72. compatible = "marvell,mvebu-devbus";
  73. reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
  74. ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. clocks = <&coreclk 0>;
  78. status = "disabled";
  79. };
  80. devbus-cs1 {
  81. compatible = "marvell,mvebu-devbus";
  82. reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
  83. ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
  84. #address-cells = <1>;
  85. #size-cells = <1>;
  86. clocks = <&coreclk 0>;
  87. status = "disabled";
  88. };
  89. devbus-cs2 {
  90. compatible = "marvell,mvebu-devbus";
  91. reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
  92. ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
  93. #address-cells = <1>;
  94. #size-cells = <1>;
  95. clocks = <&coreclk 0>;
  96. status = "disabled";
  97. };
  98. devbus-cs3 {
  99. compatible = "marvell,mvebu-devbus";
  100. reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
  101. ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
  102. #address-cells = <1>;
  103. #size-cells = <1>;
  104. clocks = <&coreclk 0>;
  105. status = "disabled";
  106. };
  107. internal-regs {
  108. compatible = "simple-bus";
  109. #address-cells = <1>;
  110. #size-cells = <1>;
  111. ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
  112. L2: cache-controller@8000 {
  113. compatible = "arm,pl310-cache";
  114. reg = <0x8000 0x1000>;
  115. cache-unified;
  116. cache-level = <2>;
  117. };
  118. scu@c000 {
  119. compatible = "arm,cortex-a9-scu";
  120. reg = <0xc000 0x58>;
  121. };
  122. timer@c600 {
  123. compatible = "arm,cortex-a9-twd-timer";
  124. reg = <0xc600 0x20>;
  125. interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
  126. clocks = <&coreclk 2>;
  127. };
  128. gic: interrupt-controller@d000 {
  129. compatible = "arm,cortex-a9-gic";
  130. #interrupt-cells = <3>;
  131. #size-cells = <0>;
  132. interrupt-controller;
  133. reg = <0xd000 0x1000>,
  134. <0xc100 0x100>;
  135. };
  136. mdio {
  137. #address-cells = <1>;
  138. #size-cells = <0>;
  139. compatible = "marvell,orion-mdio";
  140. reg = <0xc0054 0x4>;
  141. clocks = <&gateclk 19>;
  142. };
  143. /* Network controller */
  144. ethernet@f0000 {
  145. compatible = "marvell,armada-375-pp2";
  146. reg = <0xf0000 0xa000>, /* Packet Processor regs */
  147. <0xc0000 0x3060>, /* LMS regs */
  148. <0xc4000 0x100>, /* eth0 regs */
  149. <0xc5000 0x100>; /* eth1 regs */
  150. clocks = <&gateclk 3>, <&gateclk 19>;
  151. clock-names = "pp_clk", "gop_clk";
  152. status = "disabled";
  153. eth0: eth0@c4000 {
  154. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  155. port-id = <0>;
  156. status = "disabled";
  157. };
  158. eth1: eth1@c5000 {
  159. interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  160. port-id = <1>;
  161. status = "disabled";
  162. };
  163. };
  164. rtc@10300 {
  165. compatible = "marvell,orion-rtc";
  166. reg = <0x10300 0x20>;
  167. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  168. };
  169. spi0: spi@10600 {
  170. compatible = "marvell,orion-spi";
  171. reg = <0x10600 0x50>;
  172. #address-cells = <1>;
  173. #size-cells = <0>;
  174. cell-index = <0>;
  175. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  176. clocks = <&coreclk 0>;
  177. status = "disabled";
  178. };
  179. spi1: spi@10680 {
  180. compatible = "marvell,orion-spi";
  181. reg = <0x10680 0x50>;
  182. #address-cells = <1>;
  183. #size-cells = <0>;
  184. cell-index = <1>;
  185. interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
  186. clocks = <&coreclk 0>;
  187. status = "disabled";
  188. };
  189. i2c0: i2c@11000 {
  190. compatible = "marvell,mv64xxx-i2c";
  191. reg = <0x11000 0x20>;
  192. #address-cells = <1>;
  193. #size-cells = <0>;
  194. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  195. timeout-ms = <1000>;
  196. clocks = <&coreclk 0>;
  197. status = "disabled";
  198. };
  199. i2c1: i2c@11100 {
  200. compatible = "marvell,mv64xxx-i2c";
  201. reg = <0x11100 0x20>;
  202. #address-cells = <1>;
  203. #size-cells = <0>;
  204. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  205. timeout-ms = <1000>;
  206. clocks = <&coreclk 0>;
  207. status = "disabled";
  208. };
  209. serial@12000 {
  210. compatible = "snps,dw-apb-uart";
  211. reg = <0x12000 0x100>;
  212. reg-shift = <2>;
  213. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  214. reg-io-width = <1>;
  215. clocks = <&coreclk 0>;
  216. status = "disabled";
  217. };
  218. serial@12100 {
  219. compatible = "snps,dw-apb-uart";
  220. reg = <0x12100 0x100>;
  221. reg-shift = <2>;
  222. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  223. reg-io-width = <1>;
  224. clocks = <&coreclk 0>;
  225. status = "disabled";
  226. };
  227. pinctrl {
  228. compatible = "marvell,mv88f6720-pinctrl";
  229. reg = <0x18000 0x24>;
  230. i2c0_pins: i2c0-pins {
  231. marvell,pins = "mpp14", "mpp15";
  232. marvell,function = "i2c0";
  233. };
  234. i2c1_pins: i2c1-pins {
  235. marvell,pins = "mpp61", "mpp62";
  236. marvell,function = "i2c1";
  237. };
  238. nand_pins: nand-pins {
  239. marvell,pins = "mpp0", "mpp1", "mpp2",
  240. "mpp3", "mpp4", "mpp5",
  241. "mpp6", "mpp7", "mpp8",
  242. "mpp9", "mpp10", "mpp11",
  243. "mpp12", "mpp13";
  244. marvell,function = "nand";
  245. };
  246. sdio_pins: sdio-pins {
  247. marvell,pins = "mpp24", "mpp25", "mpp26",
  248. "mpp27", "mpp28", "mpp29";
  249. marvell,function = "sd";
  250. };
  251. spi0_pins: spi0-pins {
  252. marvell,pins = "mpp0", "mpp1", "mpp4",
  253. "mpp5", "mpp8", "mpp9";
  254. marvell,function = "spi0";
  255. };
  256. };
  257. gpio0: gpio@18100 {
  258. compatible = "marvell,orion-gpio";
  259. reg = <0x18100 0x40>;
  260. ngpios = <32>;
  261. gpio-controller;
  262. #gpio-cells = <2>;
  263. interrupt-controller;
  264. #interrupt-cells = <2>;
  265. interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  266. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  267. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  268. <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  269. };
  270. gpio1: gpio@18140 {
  271. compatible = "marvell,orion-gpio";
  272. reg = <0x18140 0x40>;
  273. ngpios = <32>;
  274. gpio-controller;
  275. #gpio-cells = <2>;
  276. interrupt-controller;
  277. #interrupt-cells = <2>;
  278. interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
  279. <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
  280. <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
  281. <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  282. };
  283. gpio2: gpio@18180 {
  284. compatible = "marvell,orion-gpio";
  285. reg = <0x18180 0x40>;
  286. ngpios = <3>;
  287. gpio-controller;
  288. #gpio-cells = <2>;
  289. interrupt-controller;
  290. #interrupt-cells = <2>;
  291. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  292. };
  293. system-controller@18200 {
  294. compatible = "marvell,armada-375-system-controller";
  295. reg = <0x18200 0x100>;
  296. };
  297. gateclk: clock-gating-control@18220 {
  298. compatible = "marvell,armada-375-gating-clock";
  299. reg = <0x18220 0x4>;
  300. clocks = <&coreclk 0>;
  301. #clock-cells = <1>;
  302. };
  303. mbusc: mbus-controller@20000 {
  304. compatible = "marvell,mbus-controller";
  305. reg = <0x20000 0x100>, <0x20180 0x20>;
  306. };
  307. mpic: interrupt-controller@20000 {
  308. compatible = "marvell,mpic";
  309. reg = <0x20a00 0x2d0>, <0x21070 0x58>;
  310. #interrupt-cells = <1>;
  311. #size-cells = <1>;
  312. interrupt-controller;
  313. msi-controller;
  314. interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
  315. };
  316. timer@20300 {
  317. compatible = "marvell,armada-375-timer", "marvell,armada-370-timer";
  318. reg = <0x20300 0x30>, <0x21040 0x30>;
  319. interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
  320. <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
  321. <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
  322. <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  323. <&mpic 5>,
  324. <&mpic 6>;
  325. clocks = <&coreclk 0>;
  326. };
  327. watchdog@20300 {
  328. compatible = "marvell,armada-375-wdt";
  329. reg = <0x20300 0x34>, <0x20704 0x4>, <0x18254 0x4>;
  330. clocks = <&coreclk 0>;
  331. };
  332. cpurst@20800 {
  333. compatible = "marvell,armada-370-cpu-reset";
  334. reg = <0x20800 0x10>;
  335. };
  336. coherency-fabric@21010 {
  337. compatible = "marvell,armada-375-coherency-fabric";
  338. reg = <0x21010 0x1c>;
  339. };
  340. usb@50000 {
  341. compatible = "marvell,orion-ehci";
  342. reg = <0x50000 0x500>;
  343. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  344. clocks = <&gateclk 18>;
  345. status = "disabled";
  346. };
  347. usb@54000 {
  348. compatible = "marvell,orion-ehci";
  349. reg = <0x54000 0x500>;
  350. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  351. clocks = <&gateclk 26>;
  352. status = "disabled";
  353. };
  354. usb3@58000 {
  355. compatible = "marvell,armada-375-xhci";
  356. reg = <0x58000 0x20000>,<0x5b880 0x80>;
  357. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  358. clocks = <&gateclk 16>;
  359. status = "disabled";
  360. };
  361. xor@60800 {
  362. compatible = "marvell,orion-xor";
  363. reg = <0x60800 0x100
  364. 0x60A00 0x100>;
  365. clocks = <&gateclk 22>;
  366. status = "okay";
  367. xor00 {
  368. interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  369. dmacap,memcpy;
  370. dmacap,xor;
  371. };
  372. xor01 {
  373. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  374. dmacap,memcpy;
  375. dmacap,xor;
  376. dmacap,memset;
  377. };
  378. };
  379. xor@60900 {
  380. compatible = "marvell,orion-xor";
  381. reg = <0x60900 0x100
  382. 0x60b00 0x100>;
  383. clocks = <&gateclk 23>;
  384. status = "okay";
  385. xor10 {
  386. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  387. dmacap,memcpy;
  388. dmacap,xor;
  389. };
  390. xor11 {
  391. interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  392. dmacap,memcpy;
  393. dmacap,xor;
  394. dmacap,memset;
  395. };
  396. };
  397. sata@a0000 {
  398. compatible = "marvell,orion-sata";
  399. reg = <0xa0000 0x5000>;
  400. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  401. clocks = <&gateclk 14>, <&gateclk 20>;
  402. clock-names = "0", "1";
  403. status = "disabled";
  404. };
  405. nand@d0000 {
  406. compatible = "marvell,armada370-nand";
  407. reg = <0xd0000 0x54>;
  408. #address-cells = <1>;
  409. #size-cells = <1>;
  410. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
  411. clocks = <&gateclk 11>;
  412. status = "disabled";
  413. };
  414. mvsdio@d4000 {
  415. compatible = "marvell,orion-sdio";
  416. reg = <0xd4000 0x200>;
  417. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  418. clocks = <&gateclk 17>;
  419. bus-width = <4>;
  420. cap-sdio-irq;
  421. cap-sd-highspeed;
  422. cap-mmc-highspeed;
  423. status = "disabled";
  424. };
  425. thermal@e8078 {
  426. compatible = "marvell,armada375-thermal";
  427. reg = <0xe8078 0x4>, <0xe807c 0x8>;
  428. status = "okay";
  429. };
  430. coreclk: mvebu-sar@e8204 {
  431. compatible = "marvell,armada-375-core-clock";
  432. reg = <0xe8204 0x04>;
  433. #clock-cells = <1>;
  434. };
  435. coredivclk: corediv-clock@e8250 {
  436. compatible = "marvell,armada-375-corediv-clock";
  437. reg = <0xe8250 0xc>;
  438. #clock-cells = <1>;
  439. clocks = <&mainpll>;
  440. clock-output-names = "nand";
  441. };
  442. };
  443. pcie-controller {
  444. compatible = "marvell,armada-370-pcie";
  445. status = "disabled";
  446. device_type = "pci";
  447. #address-cells = <3>;
  448. #size-cells = <2>;
  449. msi-parent = <&mpic>;
  450. bus-range = <0x00 0xff>;
  451. ranges =
  452. <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
  453. 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000
  454. 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0 MEM */
  455. 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0 IO */
  456. 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 1 MEM */
  457. 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 1 IO */>;
  458. pcie@1,0 {
  459. device_type = "pci";
  460. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  461. reg = <0x0800 0 0 0 0>;
  462. #address-cells = <3>;
  463. #size-cells = <2>;
  464. #interrupt-cells = <1>;
  465. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  466. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  467. interrupt-map-mask = <0 0 0 0>;
  468. interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  469. marvell,pcie-port = <0>;
  470. marvell,pcie-lane = <0>;
  471. clocks = <&gateclk 5>;
  472. status = "disabled";
  473. };
  474. pcie@2,0 {
  475. device_type = "pci";
  476. assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
  477. reg = <0x1000 0 0 0 0>;
  478. #address-cells = <3>;
  479. #size-cells = <2>;
  480. #interrupt-cells = <1>;
  481. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  482. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  483. interrupt-map-mask = <0 0 0 0>;
  484. interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  485. marvell,pcie-port = <0>;
  486. marvell,pcie-lane = <1>;
  487. clocks = <&gateclk 6>;
  488. status = "disabled";
  489. };
  490. };
  491. };
  492. };