armada-38x.dtsi 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. /*
  2. * Device Tree Include file for Marvell Armada 38x family of SoCs.
  3. *
  4. * Copyright (C) 2014 Marvell
  5. *
  6. * Lior Amsalem <alior@marvell.com>
  7. * Gregory CLEMENT <gregory.clement@free-electrons.com>
  8. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. *
  10. * This file is dual-licensed: you can use it either under the terms
  11. * of the GPL or the X11 license, at your option. Note that this dual
  12. * licensing only applies to this file, and not this project as a
  13. * whole.
  14. *
  15. * a) This file is free software; you can redistribute it and/or
  16. * modify it under the terms of the GNU General Public License as
  17. * published by the Free Software Foundation; either version 2 of the
  18. * License, or (at your option) any later version.
  19. *
  20. * This file is distributed in the hope that it will be useful
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * Or, alternatively
  26. *
  27. * b) Permission is hereby granted, free of charge, to any person
  28. * obtaining a copy of this software and associated documentation
  29. * files (the "Software"), to deal in the Software without
  30. * restriction, including without limitation the rights to use
  31. * copy, modify, merge, publish, distribute, sublicense, and/or
  32. * sell copies of the Software, and to permit persons to whom the
  33. * Software is furnished to do so, subject to the following
  34. * conditions:
  35. *
  36. * The above copyright notice and this permission notice shall be
  37. * included in all copies or substantial portions of the Software.
  38. *
  39. * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  40. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  41. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  42. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  43. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  44. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  45. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  46. * OTHER DEALINGS IN THE SOFTWARE.
  47. */
  48. #include "skeleton.dtsi"
  49. #include <dt-bindings/interrupt-controller/arm-gic.h>
  50. #include <dt-bindings/interrupt-controller/irq.h>
  51. #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
  52. / {
  53. model = "Marvell Armada 38x family SoC";
  54. compatible = "marvell,armada380";
  55. aliases {
  56. gpio0 = &gpio0;
  57. gpio1 = &gpio1;
  58. serial0 = &uart0;
  59. serial1 = &uart1;
  60. };
  61. pmu {
  62. compatible = "arm,cortex-a9-pmu";
  63. interrupts-extended = <&mpic 3>;
  64. };
  65. soc {
  66. compatible = "marvell,armada380-mbus", "simple-bus";
  67. u-boot,dm-pre-reloc;
  68. #address-cells = <2>;
  69. #size-cells = <1>;
  70. controller = <&mbusc>;
  71. interrupt-parent = <&gic>;
  72. pcie-mem-aperture = <0xe0000000 0x8000000>;
  73. pcie-io-aperture = <0xe8000000 0x100000>;
  74. bootrom {
  75. compatible = "marvell,bootrom";
  76. reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
  77. };
  78. devbus-bootcs {
  79. compatible = "marvell,mvebu-devbus";
  80. reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
  81. ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
  82. #address-cells = <1>;
  83. #size-cells = <1>;
  84. clocks = <&coreclk 0>;
  85. status = "disabled";
  86. };
  87. devbus-cs0 {
  88. compatible = "marvell,mvebu-devbus";
  89. reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
  90. ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
  91. #address-cells = <1>;
  92. #size-cells = <1>;
  93. clocks = <&coreclk 0>;
  94. status = "disabled";
  95. };
  96. devbus-cs1 {
  97. compatible = "marvell,mvebu-devbus";
  98. reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
  99. ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
  100. #address-cells = <1>;
  101. #size-cells = <1>;
  102. clocks = <&coreclk 0>;
  103. status = "disabled";
  104. };
  105. devbus-cs2 {
  106. compatible = "marvell,mvebu-devbus";
  107. reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
  108. ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
  109. #address-cells = <1>;
  110. #size-cells = <1>;
  111. clocks = <&coreclk 0>;
  112. status = "disabled";
  113. };
  114. devbus-cs3 {
  115. compatible = "marvell,mvebu-devbus";
  116. reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
  117. ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
  118. #address-cells = <1>;
  119. #size-cells = <1>;
  120. clocks = <&coreclk 0>;
  121. status = "disabled";
  122. };
  123. internal-regs {
  124. compatible = "simple-bus";
  125. u-boot,dm-pre-reloc;
  126. #address-cells = <1>;
  127. #size-cells = <1>;
  128. ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
  129. L2: cache-controller@8000 {
  130. compatible = "arm,pl310-cache";
  131. reg = <0x8000 0x1000>;
  132. cache-unified;
  133. cache-level = <2>;
  134. };
  135. scu@c000 {
  136. compatible = "arm,cortex-a9-scu";
  137. reg = <0xc000 0x58>;
  138. };
  139. timer@c600 {
  140. compatible = "arm,cortex-a9-twd-timer";
  141. reg = <0xc600 0x20>;
  142. interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
  143. clocks = <&coreclk 2>;
  144. };
  145. gic: interrupt-controller@d000 {
  146. compatible = "arm,cortex-a9-gic";
  147. #interrupt-cells = <3>;
  148. #size-cells = <0>;
  149. interrupt-controller;
  150. reg = <0xd000 0x1000>,
  151. <0xc100 0x100>;
  152. };
  153. spi0: spi@10600 {
  154. compatible = "marvell,armada-380-spi",
  155. "marvell,orion-spi";
  156. reg = <0x10600 0x50>;
  157. #address-cells = <1>;
  158. #size-cells = <0>;
  159. cell-index = <0>;
  160. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  161. clocks = <&coreclk 0>;
  162. status = "disabled";
  163. };
  164. spi1: spi@10680 {
  165. compatible = "marvell,armada-380-spi",
  166. "marvell,orion-spi";
  167. reg = <0x10680 0x50>;
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. cell-index = <1>;
  171. interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
  172. clocks = <&coreclk 0>;
  173. status = "disabled";
  174. };
  175. i2c0: i2c@11000 {
  176. compatible = "marvell,mv64xxx-i2c";
  177. reg = <0x11000 0x20>;
  178. #address-cells = <1>;
  179. #size-cells = <0>;
  180. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  181. timeout-ms = <1000>;
  182. clocks = <&coreclk 0>;
  183. status = "disabled";
  184. };
  185. i2c1: i2c@11100 {
  186. compatible = "marvell,mv64xxx-i2c";
  187. reg = <0x11100 0x20>;
  188. #address-cells = <1>;
  189. #size-cells = <0>;
  190. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  191. timeout-ms = <1000>;
  192. clocks = <&coreclk 0>;
  193. status = "disabled";
  194. };
  195. uart0: serial@12000 {
  196. compatible = "snps,dw-apb-uart";
  197. reg = <0x12000 0x100>;
  198. reg-shift = <2>;
  199. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  200. reg-io-width = <1>;
  201. clocks = <&coreclk 0>;
  202. status = "disabled";
  203. };
  204. uart1: serial@12100 {
  205. compatible = "snps,dw-apb-uart";
  206. reg = <0x12100 0x100>;
  207. reg-shift = <2>;
  208. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  209. reg-io-width = <1>;
  210. clocks = <&coreclk 0>;
  211. status = "disabled";
  212. };
  213. pinctrl: pinctrl@18000 {
  214. reg = <0x18000 0x20>;
  215. ge0_rgmii_pins: ge-rgmii-pins-0 {
  216. marvell,pins = "mpp6", "mpp7", "mpp8",
  217. "mpp9", "mpp10", "mpp11",
  218. "mpp12", "mpp13", "mpp14",
  219. "mpp15", "mpp16", "mpp17";
  220. marvell,function = "ge0";
  221. };
  222. ge1_rgmii_pins: ge-rgmii-pins-1 {
  223. marvell,pins = "mpp21", "mpp27", "mpp28",
  224. "mpp29", "mpp30", "mpp31",
  225. "mpp32", "mpp37", "mpp38",
  226. "mpp39", "mpp40", "mpp41";
  227. marvell,function = "ge1";
  228. };
  229. i2c0_pins: i2c-pins-0 {
  230. marvell,pins = "mpp2", "mpp3";
  231. marvell,function = "i2c0";
  232. };
  233. mdio_pins: mdio-pins {
  234. marvell,pins = "mpp4", "mpp5";
  235. marvell,function = "ge";
  236. };
  237. ref_clk0_pins: ref-clk-pins-0 {
  238. marvell,pins = "mpp45";
  239. marvell,function = "ref";
  240. };
  241. ref_clk1_pins: ref-clk-pins-1 {
  242. marvell,pins = "mpp46";
  243. marvell,function = "ref";
  244. };
  245. spi0_pins: spi-pins-0 {
  246. marvell,pins = "mpp22", "mpp23", "mpp24",
  247. "mpp25";
  248. marvell,function = "spi0";
  249. };
  250. spi1_pins: spi-pins-1 {
  251. marvell,pins = "mpp56", "mpp57", "mpp58",
  252. "mpp59";
  253. marvell,function = "spi1";
  254. };
  255. uart0_pins: uart-pins-0 {
  256. marvell,pins = "mpp0", "mpp1";
  257. marvell,function = "ua0";
  258. };
  259. uart1_pins: uart-pins-1 {
  260. marvell,pins = "mpp19", "mpp20";
  261. marvell,function = "ua1";
  262. };
  263. sdhci_pins: sdhci-pins {
  264. marvell,pins = "mpp48", "mpp49", "mpp50",
  265. "mpp52", "mpp53", "mpp54",
  266. "mpp55", "mpp57", "mpp58",
  267. "mpp59";
  268. marvell,function = "sd0";
  269. };
  270. sata0_pins: sata-pins-0 {
  271. marvell,pins = "mpp20";
  272. marvell,function = "sata0";
  273. };
  274. sata1_pins: sata-pins-1 {
  275. marvell,pins = "mpp19";
  276. marvell,function = "sata1";
  277. };
  278. sata2_pins: sata-pins-2 {
  279. marvell,pins = "mpp47";
  280. marvell,function = "sata2";
  281. };
  282. sata3_pins: sata-pins-3 {
  283. marvell,pins = "mpp44";
  284. marvell,function = "sata3";
  285. };
  286. };
  287. gpio0: gpio@18100 {
  288. compatible = "marvell,orion-gpio";
  289. reg = <0x18100 0x40>;
  290. ngpios = <32>;
  291. gpio-controller;
  292. #gpio-cells = <2>;
  293. interrupt-controller;
  294. #interrupt-cells = <2>;
  295. interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  296. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  297. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  298. <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  299. };
  300. gpio1: gpio@18140 {
  301. compatible = "marvell,orion-gpio";
  302. reg = <0x18140 0x40>;
  303. ngpios = <28>;
  304. gpio-controller;
  305. #gpio-cells = <2>;
  306. interrupt-controller;
  307. #interrupt-cells = <2>;
  308. interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
  309. <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
  310. <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
  311. <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  312. };
  313. system-controller@18200 {
  314. compatible = "marvell,armada-380-system-controller",
  315. "marvell,armada-370-xp-system-controller";
  316. reg = <0x18200 0x100>;
  317. };
  318. gateclk: clock-gating-control@18220 {
  319. compatible = "marvell,armada-380-gating-clock";
  320. reg = <0x18220 0x4>;
  321. clocks = <&coreclk 0>;
  322. #clock-cells = <1>;
  323. };
  324. coreclk: mvebu-sar@18600 {
  325. compatible = "marvell,armada-380-core-clock";
  326. reg = <0x18600 0x04>;
  327. #clock-cells = <1>;
  328. };
  329. mbusc: mbus-controller@20000 {
  330. compatible = "marvell,mbus-controller";
  331. reg = <0x20000 0x100>, <0x20180 0x20>;
  332. };
  333. mpic: interrupt-controller@20a00 {
  334. compatible = "marvell,mpic";
  335. reg = <0x20a00 0x2d0>, <0x21070 0x58>;
  336. #interrupt-cells = <1>;
  337. #size-cells = <1>;
  338. interrupt-controller;
  339. msi-controller;
  340. interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
  341. };
  342. timer@20300 {
  343. compatible = "marvell,armada-380-timer",
  344. "marvell,armada-xp-timer";
  345. reg = <0x20300 0x30>, <0x21040 0x30>;
  346. interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
  347. <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
  348. <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
  349. <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  350. <&mpic 5>,
  351. <&mpic 6>;
  352. clocks = <&coreclk 2>, <&refclk>;
  353. clock-names = "nbclk", "fixed";
  354. };
  355. watchdog@20300 {
  356. compatible = "marvell,armada-380-wdt";
  357. reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>;
  358. clocks = <&coreclk 2>, <&refclk>;
  359. clock-names = "nbclk", "fixed";
  360. };
  361. cpurst@20800 {
  362. compatible = "marvell,armada-370-cpu-reset";
  363. reg = <0x20800 0x10>;
  364. };
  365. mpcore-soc-ctrl@20d20 {
  366. compatible = "marvell,armada-380-mpcore-soc-ctrl";
  367. reg = <0x20d20 0x6c>;
  368. };
  369. coherency-fabric@21010 {
  370. compatible = "marvell,armada-380-coherency-fabric";
  371. reg = <0x21010 0x1c>;
  372. };
  373. pmsu@22000 {
  374. compatible = "marvell,armada-380-pmsu";
  375. reg = <0x22000 0x1000>;
  376. };
  377. eth1: ethernet@30000 {
  378. compatible = "marvell,armada-370-neta";
  379. reg = <0x30000 0x4000>;
  380. interrupts-extended = <&mpic 10>;
  381. clocks = <&gateclk 3>;
  382. status = "disabled";
  383. };
  384. eth2: ethernet@34000 {
  385. compatible = "marvell,armada-370-neta";
  386. reg = <0x34000 0x4000>;
  387. interrupts-extended = <&mpic 12>;
  388. clocks = <&gateclk 2>;
  389. status = "disabled";
  390. };
  391. usb@58000 {
  392. compatible = "marvell,orion-ehci";
  393. reg = <0x58000 0x500>;
  394. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  395. clocks = <&gateclk 18>;
  396. status = "disabled";
  397. };
  398. xor@60800 {
  399. compatible = "marvell,orion-xor";
  400. reg = <0x60800 0x100
  401. 0x60a00 0x100>;
  402. clocks = <&gateclk 22>;
  403. status = "okay";
  404. xor00 {
  405. interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  406. dmacap,memcpy;
  407. dmacap,xor;
  408. };
  409. xor01 {
  410. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  411. dmacap,memcpy;
  412. dmacap,xor;
  413. dmacap,memset;
  414. };
  415. };
  416. xor@60900 {
  417. compatible = "marvell,orion-xor";
  418. reg = <0x60900 0x100
  419. 0x60b00 0x100>;
  420. clocks = <&gateclk 28>;
  421. status = "okay";
  422. xor10 {
  423. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  424. dmacap,memcpy;
  425. dmacap,xor;
  426. };
  427. xor11 {
  428. interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  429. dmacap,memcpy;
  430. dmacap,xor;
  431. dmacap,memset;
  432. };
  433. };
  434. eth0: ethernet@70000 {
  435. compatible = "marvell,armada-370-neta";
  436. reg = <0x70000 0x4000>;
  437. interrupts-extended = <&mpic 8>;
  438. clocks = <&gateclk 4>;
  439. status = "disabled";
  440. };
  441. mdio: mdio@72004 {
  442. #address-cells = <1>;
  443. #size-cells = <0>;
  444. compatible = "marvell,orion-mdio";
  445. reg = <0x72004 0x4>;
  446. clocks = <&gateclk 4>;
  447. };
  448. rtc@a3800 {
  449. compatible = "marvell,armada-380-rtc";
  450. reg = <0xa3800 0x20>, <0x184a0 0x0c>;
  451. reg-names = "rtc", "rtc-soc";
  452. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  453. };
  454. sata@a8000 {
  455. compatible = "marvell,armada-380-ahci";
  456. reg = <0xa8000 0x2000>;
  457. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  458. clocks = <&gateclk 15>;
  459. status = "disabled";
  460. };
  461. sata@e0000 {
  462. compatible = "marvell,armada-380-ahci";
  463. reg = <0xe0000 0x2000>;
  464. interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
  465. clocks = <&gateclk 30>;
  466. status = "disabled";
  467. };
  468. coredivclk: clock@e4250 {
  469. compatible = "marvell,armada-380-corediv-clock";
  470. reg = <0xe4250 0xc>;
  471. #clock-cells = <1>;
  472. clocks = <&mainpll>;
  473. clock-output-names = "nand";
  474. };
  475. thermal@e8078 {
  476. compatible = "marvell,armada380-thermal";
  477. reg = <0xe4078 0x4>, <0xe4074 0x4>;
  478. status = "okay";
  479. };
  480. flash@d0000 {
  481. compatible = "marvell,armada370-nand";
  482. reg = <0xd0000 0x54>;
  483. #address-cells = <1>;
  484. #size-cells = <1>;
  485. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
  486. clocks = <&coredivclk 0>;
  487. status = "disabled";
  488. };
  489. sdhci@d8000 {
  490. compatible = "marvell,armada-380-sdhci";
  491. reg-names = "sdhci", "mbus", "conf-sdio3";
  492. reg = <0xd8000 0x1000>,
  493. <0xdc000 0x100>,
  494. <0x18454 0x4>;
  495. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  496. clocks = <&gateclk 17>;
  497. mrvl,clk-delay-cycles = <0x1F>;
  498. status = "disabled";
  499. };
  500. usb3@f0000 {
  501. compatible = "marvell,armada-380-xhci";
  502. reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
  503. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  504. clocks = <&gateclk 9>;
  505. status = "disabled";
  506. };
  507. usb3@f8000 {
  508. compatible = "marvell,armada-380-xhci";
  509. reg = <0xf8000 0x4000>,<0xfc000 0x4000>;
  510. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  511. clocks = <&gateclk 10>;
  512. status = "disabled";
  513. };
  514. };
  515. };
  516. clocks {
  517. /* 2 GHz fixed main PLL */
  518. mainpll: mainpll {
  519. compatible = "fixed-clock";
  520. #clock-cells = <0>;
  521. clock-frequency = <1000000000>;
  522. };
  523. /* 25 MHz reference crystal */
  524. refclk: oscillator {
  525. compatible = "fixed-clock";
  526. #clock-cells = <0>;
  527. clock-frequency = <25000000>;
  528. };
  529. };
  530. };