dove.dtsi 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. /include/ "skeleton.dtsi"
  2. #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
  3. / {
  4. compatible = "marvell,dove";
  5. model = "Marvell Armada 88AP510 SoC";
  6. interrupt-parent = <&intc>;
  7. aliases {
  8. gpio0 = &gpio0;
  9. gpio1 = &gpio1;
  10. gpio2 = &gpio2;
  11. };
  12. cpus {
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. cpu0: cpu@0 {
  16. compatible = "marvell,pj4a", "marvell,sheeva-v7";
  17. device_type = "cpu";
  18. next-level-cache = <&l2>;
  19. reg = <0>;
  20. };
  21. };
  22. l2: l2-cache {
  23. compatible = "marvell,tauros2-cache";
  24. marvell,tauros2-cache-features = <0>;
  25. };
  26. mbus {
  27. compatible = "marvell,dove-mbus", "marvell,mbus", "simple-bus";
  28. #address-cells = <2>;
  29. #size-cells = <1>;
  30. controller = <&mbusc>;
  31. pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256M MEM space */
  32. pcie-io-aperture = <0xf2000000 0x00200000>; /* 2M I/O space */
  33. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x0100000 /* MBUS regs 1M */
  34. MBUS_ID(0xf0, 0x02) 0 0xf1800000 0x1000000 /* AXI regs 16M */
  35. MBUS_ID(0x01, 0xfd) 0 0xf8000000 0x8000000 /* BootROM 128M */
  36. MBUS_ID(0x03, 0x01) 0 0xc8000000 0x0100000 /* CESA SRAM 1M */
  37. MBUS_ID(0x0d, 0x00) 0 0xf0000000 0x0100000>; /* PMU SRAM 1M */
  38. pcie: pcie-controller {
  39. compatible = "marvell,dove-pcie";
  40. status = "disabled";
  41. device_type = "pci";
  42. #address-cells = <3>;
  43. #size-cells = <2>;
  44. msi-parent = <&intc>;
  45. bus-range = <0x00 0xff>;
  46. ranges = <0x82000000 0x0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x2000
  47. 0x82000000 0x0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x2000
  48. 0x82000000 0x1 0x0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 Mem */
  49. 0x81000000 0x1 0x0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 I/O */
  50. 0x82000000 0x2 0x0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 Mem */
  51. 0x81000000 0x2 0x0 MBUS_ID(0x08, 0xe0) 0 1 0>; /* Port 1.0 I/O */
  52. pcie-port@0 {
  53. device_type = "pci";
  54. status = "disabled";
  55. assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
  56. reg = <0x0800 0 0 0 0>;
  57. clocks = <&gate_clk 4>;
  58. marvell,pcie-port = <0>;
  59. #address-cells = <3>;
  60. #size-cells = <2>;
  61. ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
  62. 0x81000000 0 0 0x81000000 0x1 0 1 0>;
  63. #interrupt-cells = <1>;
  64. interrupt-map-mask = <0 0 0 0>;
  65. interrupt-map = <0 0 0 0 &intc 16>;
  66. };
  67. pcie-port@1 {
  68. device_type = "pci";
  69. status = "disabled";
  70. assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
  71. reg = <0x1000 0 0 0 0>;
  72. clocks = <&gate_clk 5>;
  73. marvell,pcie-port = <1>;
  74. #address-cells = <3>;
  75. #size-cells = <2>;
  76. ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
  77. 0x81000000 0 0 0x81000000 0x2 0 1 0>;
  78. #interrupt-cells = <1>;
  79. interrupt-map-mask = <0 0 0 0>;
  80. interrupt-map = <0 0 0 0 &intc 18>;
  81. };
  82. };
  83. internal-regs {
  84. compatible = "simple-bus";
  85. #address-cells = <1>;
  86. #size-cells = <1>;
  87. ranges = <0x00000000 MBUS_ID(0xf0, 0x01) 0 0x0100000 /* MBUS regs 1M */
  88. 0x00800000 MBUS_ID(0xf0, 0x02) 0 0x1000000 /* AXI regs 16M */
  89. 0xffffe000 MBUS_ID(0x03, 0x01) 0 0x0000800 /* CESA SRAM 2k */
  90. 0xfffff000 MBUS_ID(0x0d, 0x00) 0 0x0000800>; /* PMU SRAM 2k */
  91. mbusc: mbus-ctrl@20000 {
  92. compatible = "marvell,mbus-controller";
  93. reg = <0x20000 0x80>, <0x800100 0x8>;
  94. };
  95. timer: timer@20300 {
  96. compatible = "marvell,orion-timer";
  97. reg = <0x20300 0x20>;
  98. interrupt-parent = <&bridge_intc>;
  99. interrupts = <1>, <2>;
  100. clocks = <&core_clk 0>;
  101. };
  102. intc: main-interrupt-ctrl@20200 {
  103. compatible = "marvell,orion-intc";
  104. interrupt-controller;
  105. #interrupt-cells = <1>;
  106. reg = <0x20200 0x10>, <0x20210 0x10>;
  107. };
  108. bridge_intc: bridge-interrupt-ctrl@20110 {
  109. compatible = "marvell,orion-bridge-intc";
  110. interrupt-controller;
  111. #interrupt-cells = <1>;
  112. reg = <0x20110 0x8>;
  113. interrupts = <0>;
  114. marvell,#interrupts = <5>;
  115. };
  116. core_clk: core-clocks@d0214 {
  117. compatible = "marvell,dove-core-clock";
  118. reg = <0xd0214 0x4>;
  119. #clock-cells = <1>;
  120. };
  121. gate_clk: clock-gating-ctrl@d0038 {
  122. compatible = "marvell,dove-gating-clock";
  123. reg = <0xd0038 0x4>;
  124. clocks = <&core_clk 0>;
  125. #clock-cells = <1>;
  126. };
  127. thermal: thermal-diode@d001c {
  128. compatible = "marvell,dove-thermal";
  129. reg = <0xd001c 0x0c>, <0xd005c 0x08>;
  130. };
  131. uart0: serial@12000 {
  132. compatible = "ns16550a";
  133. reg = <0x12000 0x100>;
  134. reg-shift = <2>;
  135. interrupts = <7>;
  136. clocks = <&core_clk 0>;
  137. status = "disabled";
  138. };
  139. uart1: serial@12100 {
  140. compatible = "ns16550a";
  141. reg = <0x12100 0x100>;
  142. reg-shift = <2>;
  143. interrupts = <8>;
  144. clocks = <&core_clk 0>;
  145. pinctrl-0 = <&pmx_uart1>;
  146. pinctrl-names = "default";
  147. status = "disabled";
  148. };
  149. uart2: serial@12200 {
  150. compatible = "ns16550a";
  151. reg = <0x12000 0x100>;
  152. reg-shift = <2>;
  153. interrupts = <9>;
  154. clocks = <&core_clk 0>;
  155. status = "disabled";
  156. };
  157. uart3: serial@12300 {
  158. compatible = "ns16550a";
  159. reg = <0x12100 0x100>;
  160. reg-shift = <2>;
  161. interrupts = <10>;
  162. clocks = <&core_clk 0>;
  163. status = "disabled";
  164. };
  165. gpio0: gpio-ctrl@d0400 {
  166. compatible = "marvell,orion-gpio";
  167. #gpio-cells = <2>;
  168. gpio-controller;
  169. reg = <0xd0400 0x20>;
  170. ngpios = <32>;
  171. interrupt-controller;
  172. #interrupt-cells = <2>;
  173. interrupts = <12>, <13>, <14>, <60>;
  174. };
  175. gpio1: gpio-ctrl@d0420 {
  176. compatible = "marvell,orion-gpio";
  177. #gpio-cells = <2>;
  178. gpio-controller;
  179. reg = <0xd0420 0x20>;
  180. ngpios = <32>;
  181. interrupt-controller;
  182. #interrupt-cells = <2>;
  183. interrupts = <61>;
  184. };
  185. gpio2: gpio-ctrl@e8400 {
  186. compatible = "marvell,orion-gpio";
  187. #gpio-cells = <2>;
  188. gpio-controller;
  189. reg = <0xe8400 0x0c>;
  190. ngpios = <8>;
  191. };
  192. pinctrl: pin-ctrl@d0200 {
  193. compatible = "marvell,dove-pinctrl";
  194. reg = <0xd0200 0x10>;
  195. clocks = <&gate_clk 22>;
  196. pmx_gpio_0: pmx-gpio-0 {
  197. marvell,pins = "mpp0";
  198. marvell,function = "gpio";
  199. };
  200. pmx_gpio_1: pmx-gpio-1 {
  201. marvell,pins = "mpp1";
  202. marvell,function = "gpio";
  203. };
  204. pmx_gpio_2: pmx-gpio-2 {
  205. marvell,pins = "mpp2";
  206. marvell,function = "gpio";
  207. };
  208. pmx_gpio_3: pmx-gpio-3 {
  209. marvell,pins = "mpp3";
  210. marvell,function = "gpio";
  211. };
  212. pmx_gpio_4: pmx-gpio-4 {
  213. marvell,pins = "mpp4";
  214. marvell,function = "gpio";
  215. };
  216. pmx_gpio_5: pmx-gpio-5 {
  217. marvell,pins = "mpp5";
  218. marvell,function = "gpio";
  219. };
  220. pmx_gpio_6: pmx-gpio-6 {
  221. marvell,pins = "mpp6";
  222. marvell,function = "gpio";
  223. };
  224. pmx_gpio_7: pmx-gpio-7 {
  225. marvell,pins = "mpp7";
  226. marvell,function = "gpio";
  227. };
  228. pmx_gpio_8: pmx-gpio-8 {
  229. marvell,pins = "mpp8";
  230. marvell,function = "gpio";
  231. };
  232. pmx_gpio_9: pmx-gpio-9 {
  233. marvell,pins = "mpp9";
  234. marvell,function = "gpio";
  235. };
  236. pmx_gpio_10: pmx-gpio-10 {
  237. marvell,pins = "mpp10";
  238. marvell,function = "gpio";
  239. };
  240. pmx_gpio_11: pmx-gpio-11 {
  241. marvell,pins = "mpp11";
  242. marvell,function = "gpio";
  243. };
  244. pmx_gpio_12: pmx-gpio-12 {
  245. marvell,pins = "mpp12";
  246. marvell,function = "gpio";
  247. };
  248. pmx_gpio_13: pmx-gpio-13 {
  249. marvell,pins = "mpp13";
  250. marvell,function = "gpio";
  251. };
  252. pmx_audio1_extclk: pmx-audio1-extclk {
  253. marvell,pins = "mpp13";
  254. marvell,function = "audio1";
  255. };
  256. pmx_gpio_14: pmx-gpio-14 {
  257. marvell,pins = "mpp14";
  258. marvell,function = "gpio";
  259. };
  260. pmx_gpio_15: pmx-gpio-15 {
  261. marvell,pins = "mpp15";
  262. marvell,function = "gpio";
  263. };
  264. pmx_gpio_16: pmx-gpio-16 {
  265. marvell,pins = "mpp16";
  266. marvell,function = "gpio";
  267. };
  268. pmx_gpio_17: pmx-gpio-17 {
  269. marvell,pins = "mpp17";
  270. marvell,function = "gpio";
  271. };
  272. pmx_gpio_18: pmx-gpio-18 {
  273. marvell,pins = "mpp18";
  274. marvell,function = "gpio";
  275. };
  276. pmx_gpio_19: pmx-gpio-19 {
  277. marvell,pins = "mpp19";
  278. marvell,function = "gpio";
  279. };
  280. pmx_gpio_20: pmx-gpio-20 {
  281. marvell,pins = "mpp20";
  282. marvell,function = "gpio";
  283. };
  284. pmx_gpio_21: pmx-gpio-21 {
  285. marvell,pins = "mpp21";
  286. marvell,function = "gpio";
  287. };
  288. pmx_camera: pmx-camera {
  289. marvell,pins = "mpp_camera";
  290. marvell,function = "camera";
  291. };
  292. pmx_camera_gpio: pmx-camera-gpio {
  293. marvell,pins = "mpp_camera";
  294. marvell,function = "gpio";
  295. };
  296. pmx_sdio0: pmx-sdio0 {
  297. marvell,pins = "mpp_sdio0";
  298. marvell,function = "sdio0";
  299. };
  300. pmx_sdio0_gpio: pmx-sdio0-gpio {
  301. marvell,pins = "mpp_sdio0";
  302. marvell,function = "gpio";
  303. };
  304. pmx_sdio1: pmx-sdio1 {
  305. marvell,pins = "mpp_sdio1";
  306. marvell,function = "sdio1";
  307. };
  308. pmx_sdio1_gpio: pmx-sdio1-gpio {
  309. marvell,pins = "mpp_sdio1";
  310. marvell,function = "gpio";
  311. };
  312. pmx_audio1_gpio: pmx-audio1-gpio {
  313. marvell,pins = "mpp_audio1";
  314. marvell,function = "gpio";
  315. };
  316. pmx_audio1_i2s1_spdifo: pmx-audio1-i2s1-spdifo {
  317. marvell,pins = "mpp_audio1";
  318. marvell,function = "i2s1/spdifo";
  319. };
  320. pmx_spi0: pmx-spi0 {
  321. marvell,pins = "mpp_spi0";
  322. marvell,function = "spi0";
  323. };
  324. pmx_spi0_gpio: pmx-spi0-gpio {
  325. marvell,pins = "mpp_spi0";
  326. marvell,function = "gpio";
  327. };
  328. pmx_uart1: pmx-uart1 {
  329. marvell,pins = "mpp_uart1";
  330. marvell,function = "uart1";
  331. };
  332. pmx_uart1_gpio: pmx-uart1-gpio {
  333. marvell,pins = "mpp_uart1";
  334. marvell,function = "gpio";
  335. };
  336. pmx_nand: pmx-nand {
  337. marvell,pins = "mpp_nand";
  338. marvell,function = "nand";
  339. };
  340. pmx_nand_gpo: pmx-nand-gpo {
  341. marvell,pins = "mpp_nand";
  342. marvell,function = "gpo";
  343. };
  344. };
  345. spi0: spi-ctrl@10600 {
  346. compatible = "marvell,orion-spi";
  347. #address-cells = <1>;
  348. #size-cells = <0>;
  349. cell-index = <0>;
  350. interrupts = <6>;
  351. reg = <0x10600 0x28>;
  352. clocks = <&core_clk 0>;
  353. pinctrl-0 = <&pmx_spi0>;
  354. pinctrl-names = "default";
  355. status = "disabled";
  356. };
  357. spi1: spi-ctrl@14600 {
  358. compatible = "marvell,orion-spi";
  359. #address-cells = <1>;
  360. #size-cells = <0>;
  361. cell-index = <1>;
  362. interrupts = <5>;
  363. reg = <0x14600 0x28>;
  364. clocks = <&core_clk 0>;
  365. status = "disabled";
  366. };
  367. i2c0: i2c-ctrl@11000 {
  368. compatible = "marvell,mv64xxx-i2c";
  369. reg = <0x11000 0x20>;
  370. #address-cells = <1>;
  371. #size-cells = <0>;
  372. interrupts = <11>;
  373. clock-frequency = <400000>;
  374. timeout-ms = <1000>;
  375. clocks = <&core_clk 0>;
  376. status = "disabled";
  377. };
  378. ehci0: usb-host@50000 {
  379. compatible = "marvell,orion-ehci";
  380. reg = <0x50000 0x1000>;
  381. interrupts = <24>;
  382. clocks = <&gate_clk 0>;
  383. status = "okay";
  384. };
  385. ehci1: usb-host@51000 {
  386. compatible = "marvell,orion-ehci";
  387. reg = <0x51000 0x1000>;
  388. interrupts = <25>;
  389. clocks = <&gate_clk 1>;
  390. status = "okay";
  391. };
  392. sdio0: sdio-host@92000 {
  393. compatible = "marvell,dove-sdhci";
  394. reg = <0x92000 0x100>;
  395. interrupts = <35>, <37>;
  396. clocks = <&gate_clk 8>;
  397. pinctrl-0 = <&pmx_sdio0>;
  398. pinctrl-names = "default";
  399. status = "disabled";
  400. };
  401. sdio1: sdio-host@90000 {
  402. compatible = "marvell,dove-sdhci";
  403. reg = <0x90000 0x100>;
  404. interrupts = <36>, <38>;
  405. clocks = <&gate_clk 9>;
  406. pinctrl-0 = <&pmx_sdio1>;
  407. pinctrl-names = "default";
  408. status = "disabled";
  409. };
  410. sata0: sata-host@a0000 {
  411. compatible = "marvell,orion-sata";
  412. reg = <0xa0000 0x2400>;
  413. interrupts = <62>;
  414. clocks = <&gate_clk 3>;
  415. nr-ports = <1>;
  416. status = "disabled";
  417. };
  418. rtc: real-time-clock@d8500 {
  419. compatible = "marvell,orion-rtc";
  420. reg = <0xd8500 0x20>;
  421. };
  422. crypto: crypto-engine@30000 {
  423. compatible = "marvell,orion-crypto";
  424. reg = <0x30000 0x10000>,
  425. <0xffffe000 0x800>;
  426. reg-names = "regs", "sram";
  427. interrupts = <31>;
  428. clocks = <&gate_clk 15>;
  429. status = "okay";
  430. };
  431. xor0: dma-engine@60800 {
  432. compatible = "marvell,orion-xor";
  433. reg = <0x60800 0x100
  434. 0x60a00 0x100>;
  435. clocks = <&gate_clk 23>;
  436. status = "okay";
  437. channel0 {
  438. interrupts = <39>;
  439. dmacap,memcpy;
  440. dmacap,xor;
  441. };
  442. channel1 {
  443. interrupts = <40>;
  444. dmacap,memcpy;
  445. dmacap,xor;
  446. };
  447. };
  448. xor1: dma-engine@60900 {
  449. compatible = "marvell,orion-xor";
  450. reg = <0x60900 0x100
  451. 0x60b00 0x100>;
  452. clocks = <&gate_clk 24>;
  453. status = "okay";
  454. channel0 {
  455. interrupts = <42>;
  456. dmacap,memcpy;
  457. dmacap,xor;
  458. };
  459. channel1 {
  460. interrupts = <43>;
  461. dmacap,memcpy;
  462. dmacap,xor;
  463. };
  464. };
  465. mdio: mdio-bus@72004 {
  466. compatible = "marvell,orion-mdio";
  467. #address-cells = <1>;
  468. #size-cells = <0>;
  469. reg = <0x72004 0x84>;
  470. interrupts = <30>;
  471. clocks = <&gate_clk 2>;
  472. status = "disabled";
  473. ethphy: ethernet-phy {
  474. device-type = "ethernet-phy";
  475. /* set phy address in board file */
  476. };
  477. };
  478. eth: ethernet-ctrl@72000 {
  479. compatible = "marvell,orion-eth";
  480. #address-cells = <1>;
  481. #size-cells = <0>;
  482. reg = <0x72000 0x4000>;
  483. clocks = <&gate_clk 2>;
  484. marvell,tx-checksum-limit = <1600>;
  485. status = "disabled";
  486. ethernet-port@0 {
  487. device_type = "network";
  488. compatible = "marvell,orion-eth-port";
  489. reg = <0>;
  490. interrupts = <29>;
  491. /* overwrite MAC address in bootloader */
  492. local-mac-address = [00 00 00 00 00 00];
  493. phy-handle = <&ethphy>;
  494. };
  495. };
  496. audio0: audio-controller@b0000 {
  497. compatible = "marvell,dove-audio";
  498. reg = <0xb0000 0x2210>;
  499. interrupts = <19>, <20>;
  500. clocks = <&gate_clk 12>;
  501. clock-names = "internal";
  502. status = "disabled";
  503. };
  504. audio1: audio-controller@b4000 {
  505. compatible = "marvell,dove-audio";
  506. reg = <0xb4000 0x2210>;
  507. interrupts = <21>, <22>;
  508. clocks = <&gate_clk 13>;
  509. clock-names = "internal";
  510. status = "disabled";
  511. };
  512. };
  513. };
  514. };