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 */
32 i2c0: i2c-rtl9300@1b00036c {
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";
69 led_set0 = <0x0a20 0x0b80>; // LED set 0: 1000Mbps, 10/100Mbps
70 led_set1 = <0x0a0b 0x0a28 0x0a82 0x0a0b>; // LED set 1: (10G, 5G, 2.5G) (2.5G, 1G)
71 // (5G, 10/100) (10G, 5G, 2.5G)
72 led_set2 = <0x0a20 0x0a01>; // LED set 2: 1000MBit, 10GBit
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <10000000>;
84 compatible = "fixed-partitions";
95 reg = <0xe0000 0x10000>;
98 label = "u-boot-env2";
99 reg = <0xf0000 0x10000>;
104 reg = <0x100000 0x100000>;
108 reg = <0x200000 0x100000>;
112 reg = <0x300000 0xce0000>;
113 compatible = "openwrt,uimage", "denx,uimage";
114 openwrt,ih-magic = <0x93001250>;
118 reg = <0xfe0000 0x20000>;
126 compatible = "realtek,rtl838x-mdio";
127 regmap = <ðernet0>;
128 #address-cells = <1>;
131 /* External RTL8218D PHY */
132 phy0: ethernet-phy@0 {
134 compatible = "ethernet-phy-ieee802.3-c22";
135 rtl9300,smi-address = <0 0>;
137 // Disabled because we do not know how to bring up again
138 // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
140 phy1: ethernet-phy@1 {
142 compatible = "ethernet-phy-ieee802.3-c22";
143 rtl9300,smi-address = <0 1>;
145 phy2: ethernet-phy@2 {
147 compatible = "ethernet-phy-ieee802.3-c22";
148 rtl9300,smi-address = <0 2>;
150 phy3: ethernet-phy@3 {
152 compatible = "ethernet-phy-ieee802.3-c22";
153 rtl9300,smi-address = <0 3>;
155 phy4: ethernet-phy@4 {
157 compatible = "ethernet-phy-ieee802.3-c22";
158 rtl9300,smi-address = <0 4>;
160 phy5: ethernet-phy@5 {
162 compatible = "ethernet-phy-ieee802.3-c22";
163 rtl9300,smi-address = <0 5>;
165 phy6: ethernet-phy@6 {
167 compatible = "ethernet-phy-ieee802.3-c22";
168 rtl9300,smi-address = <0 6>;
170 phy7: ethernet-phy@7 {
172 compatible = "ethernet-phy-ieee802.3-c22";
173 rtl9300,smi-address = <0 7>;
176 /* External Aquantia 113C PHYs */
177 phy24: ethernet-phy@24 {
179 compatible = "ethernet-phy-ieee802.3-c45";
180 rtl9300,smi-address = <1 8>;
182 // Disabled because we do not know how to bring up again
183 // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
186 phy25: ethernet-phy@25 {
188 compatible = "ethernet-phy-ieee802.3-c45";
189 rtl9300,smi-address = <2 8>;
191 // Disabled because we do not know how to bring up again
192 // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
195 phy26: ethernet-phy@26 {
197 compatible = "ethernet-phy-ieee802.3-c45";
198 rtl9300,smi-address = <3 8>;
200 // Disabled because we do not know how to bring up again
201 // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
205 phy27: ethernet-phy@27 {
206 compatible = "ethernet-phy-ieee802.3-c22";
209 rtl9300,smi-address = <4 0>;
218 #address-cells = <1>;
224 phy-handle = <&phy0>;
231 phy-handle = <&phy1>;
238 phy-handle = <&phy2>;
245 phy-handle = <&phy3>;
252 phy-handle = <&phy4>;
259 phy-handle = <&phy5>;
266 phy-handle = <&phy6>;
273 phy-handle = <&phy7>;
281 phy-mode = "usxgmii";
282 phy-handle = <&phy24>;
288 phy-mode = "usxgmii";
289 phy-handle = <&phy25>;
295 phy-mode = "usxgmii";
296 phy-handle = <&phy26>;
303 phy-mode = "1000base-x";
304 phy-handle = <&phy27>;
307 managed = "in-band-status";
311 ethernet = <ðernet0>;
313 phy-mode = "internal";