orion5x.dtsi 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /*
  2. * Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. *
  4. * This file is licensed under the terms of the GNU General Public
  5. * License version 2. This program is licensed "as is" without any
  6. * warranty of any kind, whether express or implied.
  7. */
  8. #include "skeleton.dtsi"
  9. #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
  10. / {
  11. model = "Marvell Orion5x SoC";
  12. compatible = "marvell,orion5x";
  13. interrupt-parent = <&intc>;
  14. aliases {
  15. gpio0 = &gpio0;
  16. };
  17. soc {
  18. #address-cells = <2>;
  19. #size-cells = <1>;
  20. controller = <&mbusc>;
  21. devbus_bootcs: devbus-bootcs {
  22. compatible = "marvell,orion-devbus";
  23. reg = <MBUS_ID(0xf0, 0x01) 0x1046C 0x4>;
  24. ranges = <0 MBUS_ID(0x01, 0x0f) 0 0xffffffff>;
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. clocks = <&core_clk 0>;
  28. status = "disabled";
  29. };
  30. devbus_cs0: devbus-cs0 {
  31. compatible = "marvell,orion-devbus";
  32. reg = <MBUS_ID(0xf0, 0x01) 0x1045C 0x4>;
  33. ranges = <0 MBUS_ID(0x01, 0x1e) 0 0xffffffff>;
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. clocks = <&core_clk 0>;
  37. status = "disabled";
  38. };
  39. devbus_cs1: devbus-cs1 {
  40. compatible = "marvell,orion-devbus";
  41. reg = <MBUS_ID(0xf0, 0x01) 0x10460 0x4>;
  42. ranges = <0 MBUS_ID(0x01, 0x1d) 0 0xffffffff>;
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. clocks = <&core_clk 0>;
  46. status = "disabled";
  47. };
  48. devbus_cs2: devbus-cs2 {
  49. compatible = "marvell,orion-devbus";
  50. reg = <MBUS_ID(0xf0, 0x01) 0x10464 0x4>;
  51. ranges = <0 MBUS_ID(0x01, 0x1b) 0 0xffffffff>;
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. clocks = <&core_clk 0>;
  55. status = "disabled";
  56. };
  57. internal-regs {
  58. compatible = "simple-bus";
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
  62. gpio0: gpio@10100 {
  63. compatible = "marvell,orion-gpio";
  64. #gpio-cells = <2>;
  65. gpio-controller;
  66. reg = <0x10100 0x40>;
  67. ngpios = <32>;
  68. interrupt-controller;
  69. #interrupt-cells = <2>;
  70. interrupts = <6>, <7>, <8>, <9>;
  71. };
  72. spi: spi@10600 {
  73. compatible = "marvell,orion-spi";
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. cell-index = <0>;
  77. reg = <0x10600 0x28>;
  78. status = "disabled";
  79. };
  80. i2c: i2c@11000 {
  81. compatible = "marvell,mv64xxx-i2c";
  82. reg = <0x11000 0x20>;
  83. #address-cells = <1>;
  84. #size-cells = <0>;
  85. interrupts = <5>;
  86. clocks = <&core_clk 0>;
  87. status = "disabled";
  88. };
  89. uart0: serial@12000 {
  90. compatible = "ns16550a";
  91. reg = <0x12000 0x100>;
  92. reg-shift = <2>;
  93. interrupts = <3>;
  94. clocks = <&core_clk 0>;
  95. status = "disabled";
  96. };
  97. uart1: serial@12100 {
  98. compatible = "ns16550a";
  99. reg = <0x12100 0x100>;
  100. reg-shift = <2>;
  101. interrupts = <4>;
  102. clocks = <&core_clk 0>;
  103. status = "disabled";
  104. };
  105. bridge_intc: bridge-interrupt-ctrl@20110 {
  106. compatible = "marvell,orion-bridge-intc";
  107. interrupt-controller;
  108. #interrupt-cells = <1>;
  109. reg = <0x20110 0x8>;
  110. interrupts = <0>;
  111. marvell,#interrupts = <4>;
  112. };
  113. intc: interrupt-controller@20200 {
  114. compatible = "marvell,orion-intc";
  115. interrupt-controller;
  116. #interrupt-cells = <1>;
  117. reg = <0x20200 0x08>;
  118. };
  119. timer: timer@20300 {
  120. compatible = "marvell,orion-timer";
  121. reg = <0x20300 0x20>;
  122. interrupt-parent = <&bridge_intc>;
  123. interrupts = <1>, <2>;
  124. clocks = <&core_clk 0>;
  125. };
  126. wdt: wdt@20300 {
  127. compatible = "marvell,orion-wdt";
  128. reg = <0x20300 0x28>, <0x20108 0x4>;
  129. interrupt-parent = <&bridge_intc>;
  130. interrupts = <3>;
  131. clocks = <&core_clk 0>;
  132. status = "okay";
  133. };
  134. ehci0: ehci@50000 {
  135. compatible = "marvell,orion-ehci";
  136. reg = <0x50000 0x1000>;
  137. interrupts = <17>;
  138. status = "disabled";
  139. };
  140. xor: dma-controller@60900 {
  141. compatible = "marvell,orion-xor";
  142. reg = <0x60900 0x100
  143. 0x60b00 0x100>;
  144. status = "okay";
  145. xor00 {
  146. interrupts = <30>;
  147. dmacap,memcpy;
  148. dmacap,xor;
  149. };
  150. xor01 {
  151. interrupts = <31>;
  152. dmacap,memcpy;
  153. dmacap,xor;
  154. dmacap,memset;
  155. };
  156. };
  157. eth: ethernet-controller@72000 {
  158. compatible = "marvell,orion-eth";
  159. #address-cells = <1>;
  160. #size-cells = <0>;
  161. reg = <0x72000 0x4000>;
  162. marvell,tx-checksum-limit = <1600>;
  163. status = "disabled";
  164. ethport: ethernet-port@0 {
  165. compatible = "marvell,orion-eth-port";
  166. reg = <0>;
  167. interrupts = <21>;
  168. /* overwrite MAC address in bootloader */
  169. local-mac-address = [00 00 00 00 00 00];
  170. /* set phy-handle property in board file */
  171. };
  172. };
  173. mdio: mdio-bus@72004 {
  174. compatible = "marvell,orion-mdio";
  175. #address-cells = <1>;
  176. #size-cells = <0>;
  177. reg = <0x72004 0x84>;
  178. interrupts = <22>;
  179. status = "disabled";
  180. /* add phy nodes in board file */
  181. };
  182. sata: sata@80000 {
  183. compatible = "marvell,orion-sata";
  184. reg = <0x80000 0x5000>;
  185. interrupts = <29>;
  186. status = "disabled";
  187. };
  188. cesa: crypto@90000 {
  189. compatible = "marvell,orion-crypto";
  190. reg = <0x90000 0x10000>;
  191. reg-names = "regs";
  192. interrupts = <28>;
  193. marvell,crypto-srams = <&crypto_sram>;
  194. marvell,crypto-sram-size = <0x800>;
  195. status = "okay";
  196. };
  197. ehci1: ehci@a0000 {
  198. compatible = "marvell,orion-ehci";
  199. reg = <0xa0000 0x1000>;
  200. interrupts = <12>;
  201. status = "disabled";
  202. };
  203. };
  204. crypto_sram: sa-sram {
  205. compatible = "mmio-sram";
  206. reg = <MBUS_ID(0x09, 0x00) 0x0 0x800>;
  207. #address-cells = <1>;
  208. #size-cells = <1>;
  209. };
  210. };
  211. };