PageRenderTime 139ms CodeModel.GetById 110ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/mips/boot/dts/mscc/ocelot.dtsi

https://github.com/intel/gvt-linux
Device Tree | 265 lines | 229 code | 34 blank | 2 comment | 0 complexity | c389b90a324a94058967d9b5dc4eec9e MD5 | raw file
Possible License(s): GPL-2.0
  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. <0x1060000 0x10000>;
  118. reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
  119. "port2", "port3", "port4", "port5", "port6",
  120. "port7", "port8", "port9", "port10", "qsys",
  121. "ana", "s2";
  122. interrupts = <18 21 22>;
  123. interrupt-names = "ptp_rdy", "xtr", "inj";
  124. ethernet-ports {
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. port0: port@0 {
  128. reg = <0>;
  129. };
  130. port1: port@1 {
  131. reg = <1>;
  132. };
  133. port2: port@2 {
  134. reg = <2>;
  135. };
  136. port3: port@3 {
  137. reg = <3>;
  138. };
  139. port4: port@4 {
  140. reg = <4>;
  141. };
  142. port5: port@5 {
  143. reg = <5>;
  144. };
  145. port6: port@6 {
  146. reg = <6>;
  147. };
  148. port7: port@7 {
  149. reg = <7>;
  150. };
  151. port8: port@8 {
  152. reg = <8>;
  153. };
  154. port9: port@9 {
  155. reg = <9>;
  156. };
  157. port10: port@10 {
  158. reg = <10>;
  159. };
  160. };
  161. };
  162. reset@1070008 {
  163. compatible = "mscc,ocelot-chip-reset";
  164. reg = <0x1070008 0x4>;
  165. };
  166. gpio: pinctrl@1070034 {
  167. compatible = "mscc,ocelot-pinctrl";
  168. reg = <0x1070034 0x68>;
  169. gpio-controller;
  170. #gpio-cells = <2>;
  171. gpio-ranges = <&gpio 0 0 22>;
  172. interrupt-controller;
  173. interrupts = <13>;
  174. #interrupt-cells = <2>;
  175. i2c_pins: i2c-pins {
  176. pins = "GPIO_16", "GPIO_17";
  177. function = "twi";
  178. };
  179. uart_pins: uart-pins {
  180. pins = "GPIO_6", "GPIO_7";
  181. function = "uart";
  182. };
  183. uart2_pins: uart2-pins {
  184. pins = "GPIO_12", "GPIO_13";
  185. function = "uart2";
  186. };
  187. miim1: miim1 {
  188. pins = "GPIO_14", "GPIO_15";
  189. function = "miim";
  190. };
  191. };
  192. mdio0: mdio@107009c {
  193. #address-cells = <1>;
  194. #size-cells = <0>;
  195. compatible = "mscc,ocelot-miim";
  196. reg = <0x107009c 0x24>, <0x10700f0 0x8>;
  197. interrupts = <14>;
  198. status = "disabled";
  199. phy0: ethernet-phy@0 {
  200. reg = <0>;
  201. };
  202. phy1: ethernet-phy@1 {
  203. reg = <1>;
  204. };
  205. phy2: ethernet-phy@2 {
  206. reg = <2>;
  207. };
  208. phy3: ethernet-phy@3 {
  209. reg = <3>;
  210. };
  211. };
  212. mdio1: mdio@10700c0 {
  213. #address-cells = <1>;
  214. #size-cells = <0>;
  215. compatible = "mscc,ocelot-miim";
  216. reg = <0x10700c0 0x24>;
  217. interrupts = <15>;
  218. pinctrl-names = "default";
  219. pinctrl-0 = <&miim1>;
  220. status = "disabled";
  221. };
  222. hsio: syscon@10d0000 {
  223. compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
  224. reg = <0x10d0000 0x10000>;
  225. serdes: serdes {
  226. compatible = "mscc,vsc7514-serdes";
  227. #phy-cells = <2>;
  228. };
  229. };
  230. };
  231. };