ocelot.dtsi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. i2c: i2c@100400 {
  68. compatible = "mscc,ocelot-i2c", "snps,designware-i2c";
  69. pinctrl-0 = <&i2c_pins>;
  70. pinctrl-names = "default";
  71. reg = <0x100400 0x100>, <0x198 0x8>;
  72. #address-cells = <1>;
  73. #size-cells = <0>;
  74. interrupts = <8>;
  75. clocks = <&ahb_clk>;
  76. status = "disabled";
  77. };
  78. uart2: serial@100800 {
  79. pinctrl-0 = <&uart2_pins>;
  80. pinctrl-names = "default";
  81. compatible = "ns16550a";
  82. reg = <0x100800 0x20>;
  83. interrupts = <7>;
  84. clocks = <&ahb_clk>;
  85. reg-io-width = <4>;
  86. reg-shift = <2>;
  87. status = "disabled";
  88. };
  89. spi: spi@101000 {
  90. compatible = "mscc,ocelot-spi", "snps,dw-apb-ssi";
  91. #address-cells = <1>;
  92. #size-cells = <0>;
  93. reg = <0x101000 0x100>, <0x3c 0x18>;
  94. interrupts = <9>;
  95. clocks = <&ahb_clk>;
  96. status = "disabled";
  97. };
  98. switch@1010000 {
  99. compatible = "mscc,vsc7514-switch";
  100. reg = <0x1010000 0x10000>,
  101. <0x1030000 0x10000>,
  102. <0x1080000 0x100>,
  103. <0x11e0000 0x100>,
  104. <0x11f0000 0x100>,
  105. <0x1200000 0x100>,
  106. <0x1210000 0x100>,
  107. <0x1220000 0x100>,
  108. <0x1230000 0x100>,
  109. <0x1240000 0x100>,
  110. <0x1250000 0x100>,
  111. <0x1260000 0x100>,
  112. <0x1270000 0x100>,
  113. <0x1280000 0x100>,
  114. <0x1800000 0x80000>,
  115. <0x1880000 0x10000>;
  116. reg-names = "sys", "rew", "qs", "port0", "port1",
  117. "port2", "port3", "port4", "port5", "port6",
  118. "port7", "port8", "port9", "port10", "qsys",
  119. "ana";
  120. interrupts = <21 22>;
  121. interrupt-names = "xtr", "inj";
  122. ethernet-ports {
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. port0: port@0 {
  126. reg = <0>;
  127. };
  128. port1: port@1 {
  129. reg = <1>;
  130. };
  131. port2: port@2 {
  132. reg = <2>;
  133. };
  134. port3: port@3 {
  135. reg = <3>;
  136. };
  137. port4: port@4 {
  138. reg = <4>;
  139. };
  140. port5: port@5 {
  141. reg = <5>;
  142. };
  143. port6: port@6 {
  144. reg = <6>;
  145. };
  146. port7: port@7 {
  147. reg = <7>;
  148. };
  149. port8: port@8 {
  150. reg = <8>;
  151. };
  152. port9: port@9 {
  153. reg = <9>;
  154. };
  155. port10: port@10 {
  156. reg = <10>;
  157. };
  158. };
  159. };
  160. reset@1070008 {
  161. compatible = "mscc,ocelot-chip-reset";
  162. reg = <0x1070008 0x4>;
  163. };
  164. gpio: pinctrl@1070034 {
  165. compatible = "mscc,ocelot-pinctrl";
  166. reg = <0x1070034 0x68>;
  167. gpio-controller;
  168. #gpio-cells = <2>;
  169. gpio-ranges = <&gpio 0 0 22>;
  170. interrupt-controller;
  171. interrupts = <13>;
  172. #interrupt-cells = <2>;
  173. i2c_pins: i2c-pins {
  174. pins = "GPIO_16", "GPIO_17";
  175. function = "twi";
  176. };
  177. uart_pins: uart-pins {
  178. pins = "GPIO_6", "GPIO_7";
  179. function = "uart";
  180. };
  181. uart2_pins: uart2-pins {
  182. pins = "GPIO_12", "GPIO_13";
  183. function = "uart2";
  184. };
  185. miim1: miim1 {
  186. pins = "GPIO_14", "GPIO_15";
  187. function = "miim1";
  188. };
  189. };
  190. mdio0: mdio@107009c {
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. compatible = "mscc,ocelot-miim";
  194. reg = <0x107009c 0x24>, <0x10700f0 0x8>;
  195. interrupts = <14>;
  196. status = "disabled";
  197. phy0: ethernet-phy@0 {
  198. reg = <0>;
  199. };
  200. phy1: ethernet-phy@1 {
  201. reg = <1>;
  202. };
  203. phy2: ethernet-phy@2 {
  204. reg = <2>;
  205. };
  206. phy3: ethernet-phy@3 {
  207. reg = <3>;
  208. };
  209. };
  210. mdio1: mdio@10700c0 {
  211. #address-cells = <1>;
  212. #size-cells = <0>;
  213. compatible = "mscc,ocelot-miim";
  214. reg = <0x10700c0 0x24>;
  215. interrupts = <15>;
  216. pinctrl-names = "default";
  217. pinctrl-0 = <&miim1>;
  218. status = "disabled";
  219. };
  220. hsio: syscon@10d0000 {
  221. compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
  222. reg = <0x10d0000 0x10000>;
  223. serdes: serdes {
  224. compatible = "mscc,vsc7514-serdes";
  225. #phy-cells = <2>;
  226. };
  227. };
  228. };
  229. };