ocelot.dtsi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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. <0x10e0000 0x10000>,
  104. <0x11e0000 0x100>,
  105. <0x11f0000 0x100>,
  106. <0x1200000 0x100>,
  107. <0x1210000 0x100>,
  108. <0x1220000 0x100>,
  109. <0x1230000 0x100>,
  110. <0x1240000 0x100>,
  111. <0x1250000 0x100>,
  112. <0x1260000 0x100>,
  113. <0x1270000 0x100>,
  114. <0x1280000 0x100>,
  115. <0x1800000 0x80000>,
  116. <0x1880000 0x10000>,
  117. <0x1040000 0x10000>,
  118. <0x1050000 0x10000>,
  119. <0x1060000 0x10000>,
  120. <0x1a0 0x1c4>;
  121. reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
  122. "port2", "port3", "port4", "port5", "port6",
  123. "port7", "port8", "port9", "port10", "qsys",
  124. "ana", "s0", "s1", "s2", "fdma";
  125. interrupts = <18 21 22 16>;
  126. interrupt-names = "ptp_rdy", "xtr", "inj", "fdma";
  127. ethernet-ports {
  128. #address-cells = <1>;
  129. #size-cells = <0>;
  130. port0: port@0 {
  131. reg = <0>;
  132. status = "disabled";
  133. };
  134. port1: port@1 {
  135. reg = <1>;
  136. status = "disabled";
  137. };
  138. port2: port@2 {
  139. reg = <2>;
  140. status = "disabled";
  141. };
  142. port3: port@3 {
  143. reg = <3>;
  144. status = "disabled";
  145. };
  146. port4: port@4 {
  147. reg = <4>;
  148. status = "disabled";
  149. };
  150. port5: port@5 {
  151. reg = <5>;
  152. status = "disabled";
  153. };
  154. port6: port@6 {
  155. reg = <6>;
  156. status = "disabled";
  157. };
  158. port7: port@7 {
  159. reg = <7>;
  160. status = "disabled";
  161. };
  162. port8: port@8 {
  163. reg = <8>;
  164. status = "disabled";
  165. };
  166. port9: port@9 {
  167. reg = <9>;
  168. status = "disabled";
  169. };
  170. port10: port@10 {
  171. reg = <10>;
  172. status = "disabled";
  173. };
  174. };
  175. };
  176. reset@1070008 {
  177. compatible = "mscc,ocelot-chip-reset";
  178. reg = <0x1070008 0x4>;
  179. };
  180. gpio: pinctrl@1070034 {
  181. compatible = "mscc,ocelot-pinctrl";
  182. reg = <0x1070034 0x68>;
  183. gpio-controller;
  184. #gpio-cells = <2>;
  185. gpio-ranges = <&gpio 0 0 22>;
  186. interrupt-controller;
  187. interrupts = <13>;
  188. #interrupt-cells = <2>;
  189. i2c_pins: i2c-pins {
  190. pins = "GPIO_16", "GPIO_17";
  191. function = "twi";
  192. };
  193. uart_pins: uart-pins {
  194. pins = "GPIO_6", "GPIO_7";
  195. function = "uart";
  196. };
  197. uart2_pins: uart2-pins {
  198. pins = "GPIO_12", "GPIO_13";
  199. function = "uart2";
  200. };
  201. miim1_pins: miim1-pins {
  202. pins = "GPIO_14", "GPIO_15";
  203. function = "miim";
  204. };
  205. };
  206. mdio0: mdio@107009c {
  207. #address-cells = <1>;
  208. #size-cells = <0>;
  209. compatible = "mscc,ocelot-miim";
  210. reg = <0x107009c 0x24>, <0x10700f0 0x8>;
  211. interrupts = <14>;
  212. status = "disabled";
  213. phy0: ethernet-phy@0 {
  214. reg = <0>;
  215. };
  216. phy1: ethernet-phy@1 {
  217. reg = <1>;
  218. };
  219. phy2: ethernet-phy@2 {
  220. reg = <2>;
  221. };
  222. phy3: ethernet-phy@3 {
  223. reg = <3>;
  224. };
  225. };
  226. mdio1: mdio@10700c0 {
  227. #address-cells = <1>;
  228. #size-cells = <0>;
  229. compatible = "mscc,ocelot-miim";
  230. reg = <0x10700c0 0x24>;
  231. interrupts = <15>;
  232. pinctrl-names = "default";
  233. pinctrl-0 = <&miim1_pins>;
  234. status = "disabled";
  235. };
  236. hsio: syscon@10d0000 {
  237. compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
  238. reg = <0x10d0000 0x10000>;
  239. serdes: serdes {
  240. compatible = "mscc,vsc7514-serdes";
  241. #phy-cells = <2>;
  242. };
  243. };
  244. };
  245. };