3 #include "rtl839x.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "zyxel,gs1900-48", "realtek,rtl8393-soc";
10 model = "Zyxel GS1900-48";
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
20 device_type = "memory";
21 reg = <0x0 0x8000000>;
25 pinctrl-names = "default";
26 pinctrl-0 = <&pinmux_disable_sys_led>;
27 compatible = "gpio-leds";
31 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
36 compatible = "realtek,rtl8231-gpio";
38 indirect-access-bus-id = <3>;
45 compatible = "gpio-restart";
46 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
50 compatible = "gpio-keys-polled";
55 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
60 /* i2c of the left SFP cage: port 49 */
62 compatible = "i2c-gpio";
63 sda-gpios = <&gpio1 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
64 scl-gpios = <&gpio1 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
65 i2c-gpio,delay-us = <2>;
71 compatible = "sff,sfp";
73 los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
74 tx-fault-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
75 mod-def0-gpio = <&gpio1 26 GPIO_ACTIVE_LOW>;
76 tx-disable-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
79 /* i2c of the right SFP cage: port 50 */
81 compatible = "i2c-gpio";
82 sda-gpios = <&gpio1 30 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
83 scl-gpios = <&gpio1 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
84 i2c-gpio,delay-us = <2>;
90 compatible = "sff,sfp";
92 los-gpio = <&gpio1 33 GPIO_ACTIVE_HIGH>;
93 tx-fault-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
94 mod-def0-gpio = <&gpio1 32 GPIO_ACTIVE_LOW>;
95 tx-disable-gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <10000000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
117 label = "u-boot-env";
118 reg = <0x40000 0x10000>;
122 label = "u-boot-env2";
123 reg = <0x50000 0x10000>;
128 reg = <0x60000 0x100000>;
132 reg = <0x160000 0x100000>;
136 reg = <0x260000 0xda0000>;
137 compatible = "openwrt,uimage", "denx,uimage";
138 openwrt,ih-magic = <0x83800000>;
142 reg = <0x930000 0x6d0000>;
150 compatible = "realtek,rtl838x-mdio";
151 regmap = <ðernet0>;
152 #address-cells = <1>;
155 /* External phy RTL8218B #1 */
165 /* External phy RTL8218B #2 */
175 /* External phy RTL8218B #3 */
185 /* External phy RTL8218B #4 */
195 /* External phy RTL8218B #5 */
205 /* External phy RTL8218B #6 */
215 /* RTL8393 Internal SerDes */
223 #address-cells = <1>;
226 SWITCH_PORT(0, 01, qsgmii)
227 SWITCH_PORT(1, 02, qsgmii)
228 SWITCH_PORT(2, 03, qsgmii)
229 SWITCH_PORT(3, 04, qsgmii)
230 SWITCH_PORT(4, 05, qsgmii)
231 SWITCH_PORT(5, 06, qsgmii)
232 SWITCH_PORT(6, 07, qsgmii)
233 SWITCH_PORT(7, 08, qsgmii)
235 SWITCH_PORT(8, 09, qsgmii)
236 SWITCH_PORT(9, 10, qsgmii)
237 SWITCH_PORT(10, 11, qsgmii)
238 SWITCH_PORT(11, 12, qsgmii)
239 SWITCH_PORT(12, 13, qsgmii)
240 SWITCH_PORT(13, 14, qsgmii)
241 SWITCH_PORT(14, 15, qsgmii)
242 SWITCH_PORT(15, 16, qsgmii)
244 SWITCH_PORT(16, 17, qsgmii)
245 SWITCH_PORT(17, 18, qsgmii)
246 SWITCH_PORT(18, 19, qsgmii)
247 SWITCH_PORT(19, 20, qsgmii)
248 SWITCH_PORT(20, 21, qsgmii)
249 SWITCH_PORT(21, 22, qsgmii)
250 SWITCH_PORT(22, 23, qsgmii)
251 SWITCH_PORT(23, 24, qsgmii)
253 SWITCH_PORT(24, 25, qsgmii)
254 SWITCH_PORT(25, 26, qsgmii)
255 SWITCH_PORT(26, 27, qsgmii)
256 SWITCH_PORT(27, 28, qsgmii)
257 SWITCH_PORT(28, 29, qsgmii)
258 SWITCH_PORT(29, 30, qsgmii)
259 SWITCH_PORT(30, 31, qsgmii)
260 SWITCH_PORT(31, 32, qsgmii)
262 SWITCH_PORT(32, 33, qsgmii)
263 SWITCH_PORT(33, 34, qsgmii)
264 SWITCH_PORT(34, 35, qsgmii)
265 SWITCH_PORT(35, 36, qsgmii)
266 SWITCH_PORT(36, 37, qsgmii)
267 SWITCH_PORT(37, 38, qsgmii)
268 SWITCH_PORT(38, 39, qsgmii)
269 SWITCH_PORT(39, 40, qsgmii)
271 SWITCH_PORT(40, 41, qsgmii)
272 SWITCH_PORT(41, 42, qsgmii)
273 SWITCH_PORT(42, 43, qsgmii)
274 SWITCH_PORT(43, 44, qsgmii)
275 SWITCH_PORT(44, 45, qsgmii)
276 SWITCH_PORT(45, 46, qsgmii)
277 SWITCH_PORT(46, 47, qsgmii)
278 SWITCH_PORT(47, 48, qsgmii)
285 phy-handle = <&phy48>;
300 phy-handle = <&phy49>;
313 ethernet = <ðernet0>;