1 // SPDX-License-Identifier: GPL-2.0-or-later
4 #include "rtl930x.dtsi"
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/leds/common.h>
11 compatible = "zyxel,xgs1250-12", "realtek,rtl838x-soc";
12 model = "Zyxel XGS1250-12 Switch";
15 led-boot = &led_pwr_sys;
16 led-failsafe = &led_pwr_sys;
17 led-running = &led_pwr_sys;
18 led-upgrade = &led_pwr_sys;
22 compatible = "gpio-keys";
26 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
31 /* i2c of the SFP cage: port 12 */
33 compatible = "realtek,rtl9300-i2c";
34 reg = <0x1b00036c 0x3c>;
39 clock-frequency = <100000>;
43 compatible = "gpio-leds";
45 pinctrl-names = "default";
46 pinctrl-0 = <&pinmux_disable_sys_led>;
49 label = "green:power";
50 color = <LED_COLOR_ID_GREEN>;
51 function = LED_FUNCTION_POWER;
52 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
57 compatible = "sff,sfp";
59 los-gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
60 tx-fault-gpio = <&gpio0 20 GPIO_ACTIVE_HIGH>;
61 mod-def0-gpio = <&gpio0 16 GPIO_ACTIVE_LOW>;
62 tx-disable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
66 compatible = "realtek,rtl9300-leds";
67 led_set0 = <0x0000 0xffff 0x0a20 0x0b80>; // LED set 0: 1000Mbps, 10/100Mbps
68 led_set1 = <0x0a0b 0x0a28 0x0a82 0x0a0b>; // LED set 1: (10G, 5G, 2.5G) (2.5G, 1G)
69 // (5G, 10/100) (10G, 5G, 2.5G)
70 led_set2 = <0x0000 0xffff 0x0a20 0x0a01>; // LED set 2: 1000MBit, 10GBit
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <10000000>;
82 compatible = "fixed-partitions";
93 reg = <0xe0000 0x10000>;
96 label = "u-boot-env2";
97 reg = <0xf0000 0x10000>;
102 reg = <0x100000 0x100000>;
106 reg = <0x200000 0x100000>;
110 reg = <0x300000 0xce0000>;
111 compatible = "openwrt,uimage", "denx,uimage";
112 openwrt,ih-magic = <0x93001250>;
116 reg = <0xfe0000 0x20000>;
124 compatible = "realtek,rtl838x-mdio";
125 regmap = <ðernet0>;
126 #address-cells = <1>;
129 /* External RTL8218D PHY */
130 phy0: ethernet-phy@0 {
132 compatible = "ethernet-phy-ieee802.3-c22";
133 rtl9300,smi-address = <0 0>;
135 // Disabled because we do not know how to bring up again
136 // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
138 phy1: ethernet-phy@1 {
140 compatible = "ethernet-phy-ieee802.3-c22";
141 rtl9300,smi-address = <0 1>;
143 phy2: ethernet-phy@2 {
145 compatible = "ethernet-phy-ieee802.3-c22";
146 rtl9300,smi-address = <0 2>;
148 phy3: ethernet-phy@3 {
150 compatible = "ethernet-phy-ieee802.3-c22";
151 rtl9300,smi-address = <0 3>;
153 phy4: ethernet-phy@4 {
155 compatible = "ethernet-phy-ieee802.3-c22";
156 rtl9300,smi-address = <0 4>;
158 phy5: ethernet-phy@5 {
160 compatible = "ethernet-phy-ieee802.3-c22";
161 rtl9300,smi-address = <0 5>;
163 phy6: ethernet-phy@6 {
165 compatible = "ethernet-phy-ieee802.3-c22";
166 rtl9300,smi-address = <0 6>;
168 phy7: ethernet-phy@7 {
170 compatible = "ethernet-phy-ieee802.3-c22";
171 rtl9300,smi-address = <0 7>;
174 /* External Aquantia 113C PHYs */
175 phy24: ethernet-phy@24 {
177 compatible = "ethernet-phy-ieee802.3-c45";
178 rtl9300,smi-address = <1 8>;
180 // Disabled because we do not know how to bring up again
181 // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
184 phy25: ethernet-phy@25 {
186 compatible = "ethernet-phy-ieee802.3-c45";
187 rtl9300,smi-address = <2 8>;
189 // Disabled because we do not know how to bring up again
190 // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
193 phy26: ethernet-phy@26 {
195 compatible = "ethernet-phy-ieee802.3-c45";
196 rtl9300,smi-address = <3 8>;
198 // Disabled because we do not know how to bring up again
199 // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
203 phy27: ethernet-phy@27 {
204 compatible = "ethernet-phy-ieee802.3-c22";
207 rtl9300,smi-address = <4 0>;
216 #address-cells = <1>;
222 phy-handle = <&phy0>;
229 phy-handle = <&phy1>;
236 phy-handle = <&phy2>;
243 phy-handle = <&phy3>;
250 phy-handle = <&phy4>;
257 phy-handle = <&phy5>;
264 phy-handle = <&phy6>;
271 phy-handle = <&phy7>;
279 phy-mode = "usxgmii";
280 phy-handle = <&phy24>;
286 phy-mode = "usxgmii";
287 phy-handle = <&phy25>;
293 phy-mode = "usxgmii";
294 phy-handle = <&phy26>;
301 phy-mode = "10gbase-r";
302 phy-handle = <&phy27>;
315 ethernet = <ðernet0>;
317 phy-mode = "internal";