kirkwood.dtsi 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. /include/ "skeleton.dtsi"
  2. #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
  3. / {
  4. compatible = "marvell,kirkwood";
  5. interrupt-parent = <&intc>;
  6. cpus {
  7. #address-cells = <1>;
  8. #size-cells = <0>;
  9. cpu@0 {
  10. device_type = "cpu";
  11. compatible = "marvell,feroceon";
  12. clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>;
  13. clock-names = "cpu_clk", "ddrclk", "powersave";
  14. };
  15. };
  16. aliases {
  17. gpio0 = &gpio0;
  18. gpio1 = &gpio1;
  19. };
  20. mbus {
  21. compatible = "marvell,kirkwood-mbus", "simple-bus";
  22. #address-cells = <2>;
  23. #size-cells = <1>;
  24. /* If a board file needs to change this ranges it must replace it completely */
  25. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 /* internal-regs */
  26. MBUS_ID(0x01, 0x2f) 0 0xf4000000 0x10000 /* nand flash */
  27. MBUS_ID(0x03, 0x01) 0 0xf5000000 0x10000 /* crypto sram */
  28. >;
  29. controller = <&mbusc>;
  30. pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
  31. pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */
  32. crypto@0301 {
  33. compatible = "marvell,orion-crypto";
  34. reg = <MBUS_ID(0xf0, 0x01) 0x30000 0x10000>,
  35. <MBUS_ID(0x03, 0x01) 0 0x800>;
  36. reg-names = "regs", "sram";
  37. interrupts = <22>;
  38. clocks = <&gate_clk 17>;
  39. status = "okay";
  40. };
  41. };
  42. ocp@f1000000 {
  43. compatible = "simple-bus";
  44. ranges = <0x00000000 0xf1000000 0x0100000
  45. 0xf4000000 0xf4000000 0x0000400>;
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. mbusc: mbus-controller@20000 {
  49. compatible = "marvell,mbus-controller";
  50. reg = <0x20000 0x80>, <0x1500 0x20>;
  51. };
  52. timer: timer@20300 {
  53. compatible = "marvell,orion-timer";
  54. reg = <0x20300 0x20>;
  55. interrupt-parent = <&bridge_intc>;
  56. interrupts = <1>, <2>;
  57. clocks = <&core_clk 0>;
  58. };
  59. intc: main-interrupt-ctrl@20200 {
  60. compatible = "marvell,orion-intc";
  61. interrupt-controller;
  62. #interrupt-cells = <1>;
  63. reg = <0x20200 0x10>, <0x20210 0x10>;
  64. };
  65. bridge_intc: bridge-interrupt-ctrl@20110 {
  66. compatible = "marvell,orion-bridge-intc";
  67. interrupt-controller;
  68. #interrupt-cells = <1>;
  69. reg = <0x20110 0x8>;
  70. interrupts = <1>;
  71. marvell,#interrupts = <6>;
  72. };
  73. core_clk: core-clocks@10030 {
  74. compatible = "marvell,kirkwood-core-clock";
  75. reg = <0x10030 0x4>;
  76. #clock-cells = <1>;
  77. };
  78. gpio0: gpio@10100 {
  79. compatible = "marvell,orion-gpio";
  80. #gpio-cells = <2>;
  81. gpio-controller;
  82. reg = <0x10100 0x40>;
  83. ngpios = <32>;
  84. interrupt-controller;
  85. #interrupt-cells = <2>;
  86. interrupts = <35>, <36>, <37>, <38>;
  87. clocks = <&gate_clk 7>;
  88. };
  89. gpio1: gpio@10140 {
  90. compatible = "marvell,orion-gpio";
  91. #gpio-cells = <2>;
  92. gpio-controller;
  93. reg = <0x10140 0x40>;
  94. ngpios = <18>;
  95. interrupt-controller;
  96. #interrupt-cells = <2>;
  97. interrupts = <39>, <40>, <41>;
  98. clocks = <&gate_clk 7>;
  99. };
  100. serial@12000 {
  101. compatible = "ns16550a";
  102. reg = <0x12000 0x100>;
  103. reg-shift = <2>;
  104. interrupts = <33>;
  105. clocks = <&gate_clk 7>;
  106. status = "disabled";
  107. };
  108. serial@12100 {
  109. compatible = "ns16550a";
  110. reg = <0x12100 0x100>;
  111. reg-shift = <2>;
  112. interrupts = <34>;
  113. clocks = <&gate_clk 7>;
  114. status = "disabled";
  115. };
  116. spi@10600 {
  117. compatible = "marvell,orion-spi";
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. cell-index = <0>;
  121. interrupts = <23>;
  122. reg = <0x10600 0x28>;
  123. clocks = <&gate_clk 7>;
  124. status = "disabled";
  125. };
  126. gate_clk: clock-gating-control@2011c {
  127. compatible = "marvell,kirkwood-gating-clock";
  128. reg = <0x2011c 0x4>;
  129. clocks = <&core_clk 0>;
  130. #clock-cells = <1>;
  131. };
  132. wdt: watchdog-timer@20300 {
  133. compatible = "marvell,orion-wdt";
  134. reg = <0x20300 0x28>;
  135. interrupt-parent = <&bridge_intc>;
  136. interrupts = <3>;
  137. clocks = <&gate_clk 7>;
  138. status = "okay";
  139. };
  140. xor@60800 {
  141. compatible = "marvell,orion-xor";
  142. reg = <0x60800 0x100
  143. 0x60A00 0x100>;
  144. status = "okay";
  145. clocks = <&gate_clk 8>;
  146. xor00 {
  147. interrupts = <5>;
  148. dmacap,memcpy;
  149. dmacap,xor;
  150. };
  151. xor01 {
  152. interrupts = <6>;
  153. dmacap,memcpy;
  154. dmacap,xor;
  155. dmacap,memset;
  156. };
  157. };
  158. xor@60900 {
  159. compatible = "marvell,orion-xor";
  160. reg = <0x60900 0x100
  161. 0xd0B00 0x100>;
  162. status = "okay";
  163. clocks = <&gate_clk 16>;
  164. xor00 {
  165. interrupts = <7>;
  166. dmacap,memcpy;
  167. dmacap,xor;
  168. };
  169. xor01 {
  170. interrupts = <8>;
  171. dmacap,memcpy;
  172. dmacap,xor;
  173. dmacap,memset;
  174. };
  175. };
  176. ehci@50000 {
  177. compatible = "marvell,orion-ehci";
  178. reg = <0x50000 0x1000>;
  179. interrupts = <19>;
  180. clocks = <&gate_clk 3>;
  181. status = "okay";
  182. };
  183. nand@3000000 {
  184. #address-cells = <1>;
  185. #size-cells = <1>;
  186. cle = <0>;
  187. ale = <1>;
  188. bank-width = <1>;
  189. compatible = "marvell,orion-nand";
  190. reg = <0xf4000000 0x400>;
  191. chip-delay = <25>;
  192. /* set partition map and/or chip-delay in board dts */
  193. clocks = <&gate_clk 7>;
  194. status = "disabled";
  195. };
  196. i2c@11000 {
  197. compatible = "marvell,mv64xxx-i2c";
  198. reg = <0x11000 0x20>;
  199. #address-cells = <1>;
  200. #size-cells = <0>;
  201. interrupts = <29>;
  202. clock-frequency = <100000>;
  203. clocks = <&gate_clk 7>;
  204. status = "disabled";
  205. };
  206. mdio: mdio-bus@72004 {
  207. compatible = "marvell,orion-mdio";
  208. #address-cells = <1>;
  209. #size-cells = <0>;
  210. reg = <0x72004 0x84>;
  211. interrupts = <46>;
  212. clocks = <&gate_clk 0>;
  213. status = "disabled";
  214. /* add phy nodes in board file */
  215. };
  216. eth0: ethernet-controller@72000 {
  217. compatible = "marvell,kirkwood-eth";
  218. #address-cells = <1>;
  219. #size-cells = <0>;
  220. reg = <0x72000 0x4000>;
  221. clocks = <&gate_clk 0>;
  222. marvell,tx-checksum-limit = <1600>;
  223. status = "disabled";
  224. ethernet0-port@0 {
  225. device_type = "network";
  226. compatible = "marvell,kirkwood-eth-port";
  227. reg = <0>;
  228. interrupts = <11>;
  229. /* overwrite MAC address in bootloader */
  230. local-mac-address = [00 00 00 00 00 00];
  231. /* set phy-handle property in board file */
  232. };
  233. };
  234. eth1: ethernet-controller@76000 {
  235. compatible = "marvell,kirkwood-eth";
  236. #address-cells = <1>;
  237. #size-cells = <0>;
  238. reg = <0x76000 0x4000>;
  239. clocks = <&gate_clk 19>;
  240. marvell,tx-checksum-limit = <1600>;
  241. status = "disabled";
  242. ethernet1-port@0 {
  243. device_type = "network";
  244. compatible = "marvell,kirkwood-eth-port";
  245. reg = <0>;
  246. interrupts = <15>;
  247. /* overwrite MAC address in bootloader */
  248. local-mac-address = [00 00 00 00 00 00];
  249. /* set phy-handle property in board file */
  250. };
  251. };
  252. };
  253. };