1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 Microsemi Corporation
9 compatible = "mscc,ocelot";
16 compatible = "mips,mips24KEc";
27 cpuintc: interrupt-controller@0 {
29 #interrupt-cells = <1>;
31 compatible = "mti,cpu-interrupt-controller";
35 compatible = "fixed-clock";
37 clock-frequency = <500000000>;
41 compatible = "fixed-clock";
43 clock-frequency = <250000000>;
47 compatible = "fixed-clock";
49 clock-frequency = <250000000>;
53 compatible = "simple-bus";
56 ranges = <0 0x70000000 0x2000000>;
58 interrupt-parent = <&intc>;
61 compatible = "mscc,ocelot-cpu-syscon", "syscon";
65 intc: interrupt-controller@70 {
66 compatible = "mscc,ocelot-icpu-intr";
68 #interrupt-cells = <1>;
70 interrupt-parent = <&cpuintc>;
74 uart0: serial@100000 {
75 pinctrl-0 = <&uart_pins>;
76 pinctrl-names = "default";
77 compatible = "ns16550a";
78 reg = <0x100000 0x20>;
87 uart2: serial@100800 {
88 pinctrl-0 = <&uart2_pins>;
89 pinctrl-names = "default";
90 compatible = "ns16550a";
91 reg = <0x100800 0x20>;
100 spi0: spi-master@101000 {
101 #address-cells = <1>;
103 compatible = "snps,dw-apb-ssi";
104 reg = <0x101000 0x40>;
105 num-chipselect = <4>;
109 spi-max-frequency = <18000000>; /* input clock */
116 pinctrl-0 = <&miim1_pins>;
117 pinctrl-names = "default";
119 compatible = "mscc,vsc7514-switch";
120 reg = <0x1010000 0x10000>, /* VTSS_TO_SYS */
121 <0x1030000 0x10000>, /* VTSS_TO_REW */
122 <0x1080000 0x100>, /* VTSS_TO_DEVCPU_QS */
123 <0x10d0000 0x10000>, /* VTSS_TO_HSIO */
124 <0x11e0000 0x100>, /* VTSS_TO_DEV_0 */
125 <0x11f0000 0x100>, /* VTSS_TO_DEV_1 */
126 <0x1200000 0x100>, /* VTSS_TO_DEV_2 */
127 <0x1210000 0x100>, /* VTSS_TO_DEV_3 */
128 <0x1220000 0x100>, /* VTSS_TO_DEV_4 */
129 <0x1230000 0x100>, /* VTSS_TO_DEV_5 */
130 <0x1240000 0x100>, /* VTSS_TO_DEV_6 */
131 <0x1250000 0x100>, /* VTSS_TO_DEV_7 */
132 <0x1260000 0x100>, /* VTSS_TO_DEV_8 */
133 <0x1270000 0x100>, /* NA */
134 <0x1280000 0x100>, /* NA */
135 <0x1800000 0x80000>, /* VTSS_TO_QSYS */
136 <0x1880000 0x10000>; /* VTSS_TO_ANA */
137 reg-names = "sys", "rew", "qs", "hsio", "port0",
138 "port1", "port2", "port3", "port4", "port5",
139 "port6", "port7", "port8", "port9",
140 "port10", "qsys", "ana";
141 interrupts = <21 22>;
142 interrupt-names = "xtr", "inj";
146 #address-cells = <1>;
185 mdio0: mdio@107009c {
186 #address-cells = <1>;
188 compatible = "mscc,ocelot-miim";
189 reg = <0x107009c 0x24>, <0x10700f0 0x8>;
193 phy0: ethernet-phy@0 {
196 phy1: ethernet-phy@1 {
199 phy2: ethernet-phy@2 {
202 phy3: ethernet-phy@3 {
208 compatible = "mscc,ocelot-chip-reset";
209 reg = <0x1070008 0x4>;
212 gpio: pinctrl@1070034 {
213 compatible = "mscc,ocelot-pinctrl";
214 reg = <0x1070034 0x68>;
217 gpio-ranges = <&gpio 0 0 22>;
219 sgpio_pins: sgpio-pins {
220 pins = "GPIO_0", "GPIO_1", "GPIO_2", "GPIO_3";
224 uart_pins: uart-pins {
225 pins = "GPIO_6", "GPIO_7";
229 uart2_pins: uart2-pins {
230 pins = "GPIO_12", "GPIO_13";
234 spi_cs1_pin: spi-cs1-pin {
239 miim1_pins: miim1-pins {
240 pins = "GPIO_14", "GPIO_15";
244 spi_cs2_pin: spi-cs2-pin {
249 spi_cs3_pin: spi-cs3-pin {
254 spi_cs4_pin: spi-cs4-pin {
260 sgpio: gpio@10700f8 {
261 compatible = "mscc,ocelot-sgpio";
264 pinctrl-0 = <&sgpio_pins>;
265 pinctrl-names = "default";
266 reg = <0x10700f8 0x100>;
269 gpio-ranges = <&sgpio 0 0 64>;