orion5x.dtsi 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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>;
  129. interrupt-parent = <&bridge_intc>;
  130. interrupts = <3>;
  131. status = "okay";
  132. };
  133. ehci0: ehci@50000 {
  134. compatible = "marvell,orion-ehci";
  135. reg = <0x50000 0x1000>;
  136. interrupts = <17>;
  137. status = "disabled";
  138. };
  139. xor: dma-controller@60900 {
  140. compatible = "marvell,orion-xor";
  141. reg = <0x60900 0x100
  142. 0x60b00 0x100>;
  143. status = "okay";
  144. xor00 {
  145. interrupts = <30>;
  146. dmacap,memcpy;
  147. dmacap,xor;
  148. };
  149. xor01 {
  150. interrupts = <31>;
  151. dmacap,memcpy;
  152. dmacap,xor;
  153. dmacap,memset;
  154. };
  155. };
  156. eth: ethernet-controller@72000 {
  157. compatible = "marvell,orion-eth";
  158. #address-cells = <1>;
  159. #size-cells = <0>;
  160. reg = <0x72000 0x4000>;
  161. marvell,tx-checksum-limit = <1600>;
  162. status = "disabled";
  163. ethport: ethernet-port@0 {
  164. compatible = "marvell,orion-eth-port";
  165. reg = <0>;
  166. interrupts = <21>;
  167. /* overwrite MAC address in bootloader */
  168. local-mac-address = [00 00 00 00 00 00];
  169. /* set phy-handle property in board file */
  170. };
  171. };
  172. mdio: mdio-bus@72004 {
  173. compatible = "marvell,orion-mdio";
  174. #address-cells = <1>;
  175. #size-cells = <0>;
  176. reg = <0x72004 0x84>;
  177. interrupts = <22>;
  178. status = "disabled";
  179. /* add phy nodes in board file */
  180. };
  181. sata: sata@80000 {
  182. compatible = "marvell,orion-sata";
  183. reg = <0x80000 0x5000>;
  184. interrupts = <29>;
  185. status = "disabled";
  186. };
  187. ehci1: ehci@a0000 {
  188. compatible = "marvell,orion-ehci";
  189. reg = <0xa0000 0x1000>;
  190. interrupts = <12>;
  191. status = "disabled";
  192. };
  193. };
  194. cesa: crypto@90000 {
  195. compatible = "marvell,orion-crypto";
  196. reg = <MBUS_ID(0xf0, 0x01) 0x90000 0x10000>,
  197. <MBUS_ID(0x09, 0x00) 0x0 0x800>;
  198. reg-names = "regs", "sram";
  199. interrupts = <28>;
  200. status = "okay";
  201. };
  202. };
  203. };