kirkwood.dtsi 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/gpio/gpio.h>
  4. #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
  5. / {
  6. #address-cells = <1>;
  7. #size-cells = <1>;
  8. compatible = "marvell,kirkwood";
  9. interrupt-parent = <&intc>;
  10. cpus {
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. cpu@0 {
  14. device_type = "cpu";
  15. compatible = "marvell,feroceon";
  16. reg = <0>;
  17. clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>;
  18. clock-names = "cpu_clk", "ddrclk", "powersave";
  19. };
  20. };
  21. aliases {
  22. gpio0 = &gpio0;
  23. gpio1 = &gpio1;
  24. i2c0 = &i2c0;
  25. };
  26. mbus@f1000000 {
  27. compatible = "marvell,kirkwood-mbus", "simple-bus";
  28. #address-cells = <2>;
  29. #size-cells = <1>;
  30. /* If a board file needs to change this ranges it must replace it completely */
  31. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 /* internal-regs */
  32. MBUS_ID(0x01, 0x2f) 0 0xf4000000 0x10000 /* nand flash */
  33. MBUS_ID(0x03, 0x01) 0 0xf5000000 0x10000 /* crypto sram */
  34. >;
  35. controller = <&mbusc>;
  36. pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
  37. pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */
  38. nand: nand@12f {
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. cle = <0>;
  42. ale = <1>;
  43. bank-width = <1>;
  44. compatible = "marvell,orion-nand";
  45. reg = <MBUS_ID(0x01, 0x2f) 0 0x400>;
  46. chip-delay = <25>;
  47. /* set partition map and/or chip-delay in board dts */
  48. clocks = <&gate_clk 7>;
  49. pinctrl-0 = <&pmx_nand>;
  50. pinctrl-names = "default";
  51. status = "disabled";
  52. };
  53. crypto_sram: sa-sram@301 {
  54. compatible = "mmio-sram";
  55. reg = <MBUS_ID(0x03, 0x01) 0x0 0x800>;
  56. clocks = <&gate_clk 17>;
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. };
  60. };
  61. ocp@f1000000 {
  62. compatible = "simple-bus";
  63. ranges = <0x00000000 0xf1000000 0x0100000>;
  64. #address-cells = <1>;
  65. #size-cells = <1>;
  66. pinctrl: pin-controller@10000 {
  67. /* set compatible property in SoC file */
  68. reg = <0x10000 0x20>;
  69. pmx_ge1: pmx-ge1 {
  70. marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23",
  71. "mpp24", "mpp25", "mpp26", "mpp27",
  72. "mpp30", "mpp31", "mpp32", "mpp33";
  73. marvell,function = "ge1";
  74. };
  75. pmx_nand: pmx-nand {
  76. marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
  77. "mpp4", "mpp5", "mpp18", "mpp19";
  78. marvell,function = "nand";
  79. };
  80. /*
  81. * Default SPI0 pinctrl setting with CSn on mpp0,
  82. * overwrite marvell,pins on board level if required.
  83. */
  84. pmx_spi: pmx-spi {
  85. marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3";
  86. marvell,function = "spi";
  87. };
  88. pmx_twsi0: pmx-twsi0 {
  89. marvell,pins = "mpp8", "mpp9";
  90. marvell,function = "twsi0";
  91. };
  92. /*
  93. * Default UART pinctrl setting without RTS/CTS,
  94. * overwrite marvell,pins on board level if required.
  95. */
  96. pmx_uart0: pmx-uart0 {
  97. marvell,pins = "mpp10", "mpp11";
  98. marvell,function = "uart0";
  99. };
  100. pmx_uart1: pmx-uart1 {
  101. marvell,pins = "mpp13", "mpp14";
  102. marvell,function = "uart1";
  103. };
  104. };
  105. core_clk: core-clocks@10030 {
  106. compatible = "marvell,kirkwood-core-clock";
  107. reg = <0x10030 0x4>;
  108. #clock-cells = <1>;
  109. };
  110. spi0: spi@10600 {
  111. compatible = "marvell,orion-spi";
  112. #address-cells = <1>;
  113. #size-cells = <0>;
  114. cell-index = <0>;
  115. interrupts = <23>;
  116. reg = <0x10600 0x28>;
  117. clocks = <&gate_clk 7>;
  118. pinctrl-0 = <&pmx_spi>;
  119. pinctrl-names = "default";
  120. status = "disabled";
  121. };
  122. gpio0: gpio@10100 {
  123. compatible = "marvell,orion-gpio";
  124. #gpio-cells = <2>;
  125. gpio-controller;
  126. reg = <0x10100 0x40>;
  127. ngpios = <32>;
  128. interrupt-controller;
  129. #interrupt-cells = <2>;
  130. interrupts = <35>, <36>, <37>, <38>;
  131. clocks = <&gate_clk 7>;
  132. };
  133. gpio1: gpio@10140 {
  134. compatible = "marvell,orion-gpio";
  135. #gpio-cells = <2>;
  136. gpio-controller;
  137. reg = <0x10140 0x40>;
  138. ngpios = <18>;
  139. interrupt-controller;
  140. #interrupt-cells = <2>;
  141. interrupts = <39>, <40>, <41>;
  142. clocks = <&gate_clk 7>;
  143. };
  144. i2c0: i2c@11000 {
  145. compatible = "marvell,mv64xxx-i2c";
  146. reg = <0x11000 0x20>;
  147. #address-cells = <1>;
  148. #size-cells = <0>;
  149. interrupts = <29>;
  150. clock-frequency = <100000>;
  151. clocks = <&gate_clk 7>;
  152. pinctrl-0 = <&pmx_twsi0>;
  153. pinctrl-names = "default";
  154. status = "disabled";
  155. };
  156. uart0: serial@12000 {
  157. compatible = "ns16550a";
  158. reg = <0x12000 0x100>;
  159. reg-shift = <2>;
  160. interrupts = <33>;
  161. clocks = <&gate_clk 7>;
  162. pinctrl-0 = <&pmx_uart0>;
  163. pinctrl-names = "default";
  164. status = "disabled";
  165. };
  166. uart1: serial@12100 {
  167. compatible = "ns16550a";
  168. reg = <0x12100 0x100>;
  169. reg-shift = <2>;
  170. interrupts = <34>;
  171. clocks = <&gate_clk 7>;
  172. pinctrl-0 = <&pmx_uart1>;
  173. pinctrl-names = "default";
  174. status = "disabled";
  175. };
  176. mbusc: mbus-controller@20000 {
  177. compatible = "marvell,mbus-controller";
  178. reg = <0x20000 0x80>, <0x1500 0x20>;
  179. };
  180. sysc: system-controller@20000 {
  181. compatible = "marvell,orion-system-controller";
  182. reg = <0x20000 0x120>;
  183. };
  184. bridge_intc: bridge-interrupt-ctrl@20110 {
  185. compatible = "marvell,orion-bridge-intc";
  186. interrupt-controller;
  187. #interrupt-cells = <1>;
  188. reg = <0x20110 0x8>;
  189. interrupts = <1>;
  190. marvell,#interrupts = <6>;
  191. };
  192. gate_clk: clock-gating-control@2011c {
  193. compatible = "marvell,kirkwood-gating-clock";
  194. reg = <0x2011c 0x4>;
  195. clocks = <&core_clk 0>;
  196. #clock-cells = <1>;
  197. };
  198. l2: l2-cache@20128 {
  199. compatible = "marvell,kirkwood-cache";
  200. reg = <0x20128 0x4>;
  201. };
  202. intc: interrupt-controller@20200 {
  203. compatible = "marvell,orion-intc";
  204. interrupt-controller;
  205. #interrupt-cells = <1>;
  206. reg = <0x20200 0x10>, <0x20210 0x10>;
  207. };
  208. timer: timer@20300 {
  209. compatible = "marvell,orion-timer";
  210. reg = <0x20300 0x20>;
  211. interrupt-parent = <&bridge_intc>;
  212. interrupts = <1>, <2>;
  213. clocks = <&core_clk 0>;
  214. };
  215. wdt: watchdog-timer@20300 {
  216. compatible = "marvell,orion-wdt";
  217. reg = <0x20300 0x28>, <0x20108 0x4>;
  218. interrupt-parent = <&bridge_intc>;
  219. interrupts = <3>;
  220. clocks = <&gate_clk 7>;
  221. status = "okay";
  222. };
  223. cesa: crypto@30000 {
  224. compatible = "marvell,kirkwood-crypto";
  225. reg = <0x30000 0x10000>;
  226. reg-names = "regs";
  227. interrupts = <22>;
  228. clocks = <&gate_clk 17>;
  229. marvell,crypto-srams = <&crypto_sram>;
  230. marvell,crypto-sram-size = <0x800>;
  231. status = "okay";
  232. };
  233. usb0: ehci@50000 {
  234. compatible = "marvell,orion-ehci";
  235. reg = <0x50000 0x1000>;
  236. interrupts = <19>;
  237. clocks = <&gate_clk 3>;
  238. status = "okay";
  239. };
  240. dma0: xor@60800 {
  241. compatible = "marvell,orion-xor";
  242. reg = <0x60800 0x100
  243. 0x60A00 0x100>;
  244. status = "okay";
  245. clocks = <&gate_clk 8>;
  246. xor00 {
  247. interrupts = <5>;
  248. dmacap,memcpy;
  249. dmacap,xor;
  250. };
  251. xor01 {
  252. interrupts = <6>;
  253. dmacap,memcpy;
  254. dmacap,xor;
  255. dmacap,memset;
  256. };
  257. };
  258. dma1: xor@60900 {
  259. compatible = "marvell,orion-xor";
  260. reg = <0x60900 0x100
  261. 0x60B00 0x100>;
  262. status = "okay";
  263. clocks = <&gate_clk 16>;
  264. xor00 {
  265. interrupts = <7>;
  266. dmacap,memcpy;
  267. dmacap,xor;
  268. };
  269. xor01 {
  270. interrupts = <8>;
  271. dmacap,memcpy;
  272. dmacap,xor;
  273. dmacap,memset;
  274. };
  275. };
  276. eth0: ethernet-controller@72000 {
  277. compatible = "marvell,kirkwood-eth";
  278. #address-cells = <1>;
  279. #size-cells = <0>;
  280. reg = <0x72000 0x4000>;
  281. clocks = <&gate_clk 0>;
  282. marvell,tx-checksum-limit = <1600>;
  283. status = "disabled";
  284. eth0port: ethernet0-port@0 {
  285. compatible = "marvell,kirkwood-eth-port";
  286. reg = <0>;
  287. interrupts = <11>;
  288. /* overwrite MAC address in bootloader */
  289. local-mac-address = [00 00 00 00 00 00];
  290. /* set phy-handle property in board file */
  291. };
  292. };
  293. mdio: mdio-bus@72004 {
  294. compatible = "marvell,orion-mdio";
  295. #address-cells = <1>;
  296. #size-cells = <0>;
  297. reg = <0x72004 0x84>;
  298. interrupts = <46>;
  299. clocks = <&gate_clk 0>;
  300. status = "disabled";
  301. /* add phy nodes in board file */
  302. };
  303. eth1: ethernet-controller@76000 {
  304. compatible = "marvell,kirkwood-eth";
  305. #address-cells = <1>;
  306. #size-cells = <0>;
  307. reg = <0x76000 0x4000>;
  308. clocks = <&gate_clk 19>;
  309. marvell,tx-checksum-limit = <1600>;
  310. pinctrl-0 = <&pmx_ge1>;
  311. pinctrl-names = "default";
  312. status = "disabled";
  313. eth1port: ethernet1-port@0 {
  314. compatible = "marvell,kirkwood-eth-port";
  315. reg = <0>;
  316. interrupts = <15>;
  317. /* overwrite MAC address in bootloader */
  318. local-mac-address = [00 00 00 00 00 00];
  319. /* set phy-handle property in board file */
  320. };
  321. };
  322. sata_phy0: sata-phy@82000 {
  323. compatible = "marvell,mvebu-sata-phy";
  324. reg = <0x82000 0x0334>;
  325. clocks = <&gate_clk 14>;
  326. clock-names = "sata";
  327. #phy-cells = <0>;
  328. status = "okay";
  329. };
  330. sata_phy1: sata-phy@84000 {
  331. compatible = "marvell,mvebu-sata-phy";
  332. reg = <0x84000 0x0334>;
  333. clocks = <&gate_clk 15>;
  334. clock-names = "sata";
  335. #phy-cells = <0>;
  336. status = "okay";
  337. };
  338. audio0: audio-controller@a0000 {
  339. compatible = "marvell,kirkwood-audio";
  340. #sound-dai-cells = <0>;
  341. reg = <0xa0000 0x2210>;
  342. interrupts = <24>;
  343. clocks = <&gate_clk 9>;
  344. clock-names = "internal";
  345. status = "disabled";
  346. };
  347. };
  348. };