ocelot.dtsi 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /* Copyright (c) 2017 Microsemi Corporation */
  3. / {
  4. #address-cells = <1>;
  5. #size-cells = <1>;
  6. compatible = "mscc,ocelot";
  7. cpus {
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. cpu@0 {
  11. compatible = "mips,mips24KEc";
  12. device_type = "cpu";
  13. clocks = <&cpu_clk>;
  14. reg = <0>;
  15. };
  16. };
  17. aliases {
  18. serial0 = &uart0;
  19. };
  20. cpuintc: interrupt-controller {
  21. #address-cells = <0>;
  22. #interrupt-cells = <1>;
  23. interrupt-controller;
  24. compatible = "mti,cpu-interrupt-controller";
  25. };
  26. cpu_clk: cpu-clock {
  27. compatible = "fixed-clock";
  28. #clock-cells = <0>;
  29. clock-frequency = <500000000>;
  30. };
  31. ahb_clk: ahb-clk {
  32. compatible = "fixed-factor-clock";
  33. #clock-cells = <0>;
  34. clocks = <&cpu_clk>;
  35. clock-div = <2>;
  36. clock-mult = <1>;
  37. };
  38. ahb@70000000 {
  39. compatible = "simple-bus";
  40. #address-cells = <1>;
  41. #size-cells = <1>;
  42. ranges = <0 0x70000000 0x2000000>;
  43. interrupt-parent = <&intc>;
  44. cpu_ctrl: syscon@0 {
  45. compatible = "mscc,ocelot-cpu-syscon", "syscon";
  46. reg = <0x0 0x2c>;
  47. };
  48. intc: interrupt-controller@70 {
  49. compatible = "mscc,ocelot-icpu-intr";
  50. reg = <0x70 0x70>;
  51. #interrupt-cells = <1>;
  52. interrupt-controller;
  53. interrupt-parent = <&cpuintc>;
  54. interrupts = <2>;
  55. };
  56. uart0: serial@100000 {
  57. pinctrl-0 = <&uart_pins>;
  58. pinctrl-names = "default";
  59. compatible = "ns16550a";
  60. reg = <0x100000 0x20>;
  61. interrupts = <6>;
  62. clocks = <&ahb_clk>;
  63. reg-io-width = <4>;
  64. reg-shift = <2>;
  65. status = "disabled";
  66. };
  67. uart2: serial@100800 {
  68. pinctrl-0 = <&uart2_pins>;
  69. pinctrl-names = "default";
  70. compatible = "ns16550a";
  71. reg = <0x100800 0x20>;
  72. interrupts = <7>;
  73. clocks = <&ahb_clk>;
  74. reg-io-width = <4>;
  75. reg-shift = <2>;
  76. status = "disabled";
  77. };
  78. spi: spi@101000 {
  79. compatible = "mscc,ocelot-spi", "snps,dw-apb-ssi";
  80. #address-cells = <1>;
  81. #size-cells = <0>;
  82. reg = <0x101000 0x100>, <0x3c 0x18>;
  83. interrupts = <9>;
  84. clocks = <&ahb_clk>;
  85. status = "disabled";
  86. };
  87. switch@1010000 {
  88. compatible = "mscc,vsc7514-switch";
  89. reg = <0x1010000 0x10000>,
  90. <0x1030000 0x10000>,
  91. <0x1080000 0x100>,
  92. <0x10d0000 0x10000>,
  93. <0x11e0000 0x100>,
  94. <0x11f0000 0x100>,
  95. <0x1200000 0x100>,
  96. <0x1210000 0x100>,
  97. <0x1220000 0x100>,
  98. <0x1230000 0x100>,
  99. <0x1240000 0x100>,
  100. <0x1250000 0x100>,
  101. <0x1260000 0x100>,
  102. <0x1270000 0x100>,
  103. <0x1280000 0x100>,
  104. <0x1800000 0x80000>,
  105. <0x1880000 0x10000>;
  106. reg-names = "sys", "rew", "qs", "hsio", "port0",
  107. "port1", "port2", "port3", "port4", "port5",
  108. "port6", "port7", "port8", "port9", "port10",
  109. "qsys", "ana";
  110. interrupts = <21 22>;
  111. interrupt-names = "xtr", "inj";
  112. ethernet-ports {
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. port0: port@0 {
  116. reg = <0>;
  117. };
  118. port1: port@1 {
  119. reg = <1>;
  120. };
  121. port2: port@2 {
  122. reg = <2>;
  123. };
  124. port3: port@3 {
  125. reg = <3>;
  126. };
  127. port4: port@4 {
  128. reg = <4>;
  129. };
  130. port5: port@5 {
  131. reg = <5>;
  132. };
  133. port6: port@6 {
  134. reg = <6>;
  135. };
  136. port7: port@7 {
  137. reg = <7>;
  138. };
  139. port8: port@8 {
  140. reg = <8>;
  141. };
  142. port9: port@9 {
  143. reg = <9>;
  144. };
  145. port10: port@10 {
  146. reg = <10>;
  147. };
  148. };
  149. };
  150. reset@1070008 {
  151. compatible = "mscc,ocelot-chip-reset";
  152. reg = <0x1070008 0x4>;
  153. };
  154. gpio: pinctrl@1070034 {
  155. compatible = "mscc,ocelot-pinctrl";
  156. reg = <0x1070034 0x68>;
  157. gpio-controller;
  158. #gpio-cells = <2>;
  159. gpio-ranges = <&gpio 0 0 22>;
  160. interrupt-controller;
  161. interrupts = <13>;
  162. #interrupt-cells = <2>;
  163. uart_pins: uart-pins {
  164. pins = "GPIO_6", "GPIO_7";
  165. function = "uart";
  166. };
  167. uart2_pins: uart2-pins {
  168. pins = "GPIO_12", "GPIO_13";
  169. function = "uart2";
  170. };
  171. miim1: miim1 {
  172. pins = "GPIO_14", "GPIO_15";
  173. function = "miim1";
  174. };
  175. };
  176. mdio0: mdio@107009c {
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. compatible = "mscc,ocelot-miim";
  180. reg = <0x107009c 0x24>, <0x10700f0 0x8>;
  181. interrupts = <14>;
  182. status = "disabled";
  183. phy0: ethernet-phy@0 {
  184. reg = <0>;
  185. };
  186. phy1: ethernet-phy@1 {
  187. reg = <1>;
  188. };
  189. phy2: ethernet-phy@2 {
  190. reg = <2>;
  191. };
  192. phy3: ethernet-phy@3 {
  193. reg = <3>;
  194. };
  195. };
  196. mdio1: mdio@10700c0 {
  197. #address-cells = <1>;
  198. #size-cells = <0>;
  199. compatible = "mscc,ocelot-miim";
  200. reg = <0x10700c0 0x24>;
  201. interrupts = <15>;
  202. pinctrl-names = "default";
  203. pinctrl-0 = <&miim1>;
  204. status = "disabled";
  205. };
  206. };
  207. };