1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "rtl838x.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "zyxel,gs1900-10hp", "realtek,rtl838x-soc";
10 model = "Zyxel GS1900-10HP Switch";
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
20 bootargs = "console=ttyS0,115200";
24 device_type = "memory";
25 reg = <0x0 0x8000000>;
39 compatible = "gpio-keys-polled";
44 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
50 compatible = "gpio-leds";
53 label = "gs1900:green:sys";
54 gpios = <&gpio0 47 GPIO_ACTIVE_HIGH>;
58 /* i2c of the left SFP cage: port 9 */
60 compatible = "i2c-gpio";
61 sda-gpios = <&gpio1 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
62 scl-gpios = <&gpio1 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
63 i2c-gpio,delay-us = <2>;
69 compatible = "_sff,sfp";
71 los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
72 tx-fault-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
73 mod-def0-gpio = <&gpio1 26 GPIO_ACTIVE_LOW>;
74 tx-disable-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
77 /* i2c of the right SFP cage: port 10 */
79 compatible = "i2c-gpio";
80 sda-gpios = <&gpio1 30 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
81 scl-gpios = <&gpio1 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
82 i2c-gpio,delay-us = <2>;
88 compatible = "_sff,sfp";
90 los-gpio = <&gpio1 33 GPIO_ACTIVE_HIGH>;
91 tx-fault-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
92 mod-def0-gpio = <&gpio1 32 GPIO_ACTIVE_LOW>;
93 tx-disable-gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <10000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
116 label = "u-boot-env";
117 reg = <0x40000 0x10000>;
121 label = "u-boot-env2";
122 reg = <0x50000 0x10000>;
127 reg = <0x60000 0x100000>;
131 reg = <0x160000 0x100000>;
135 reg = <0x260000 0x6d0000>;
136 compatible = "denx,uimage";
140 reg = <0x930000 0x6d0000>;
148 compatible = "realtek,rtl838x-mdio";
149 regmap = <ðernet0>;
150 #address-cells = <1>;
154 phy8: ethernet-phy@8 {
156 compatible = "ethernet-phy-ieee802.3-c22";
158 phy9: ethernet-phy@9 {
160 compatible = "ethernet-phy-ieee802.3-c22";
162 phy10: ethernet-phy@10 {
164 compatible = "ethernet-phy-ieee802.3-c22";
166 phy11: ethernet-phy@11 {
168 compatible = "ethernet-phy-ieee802.3-c22";
170 phy12: ethernet-phy@12 {
172 compatible = "ethernet-phy-ieee802.3-c22";
174 phy13: ethernet-phy@13 {
176 compatible = "ethernet-phy-ieee802.3-c22";
178 phy14: ethernet-phy@14 {
180 compatible = "ethernet-phy-ieee802.3-c22";
182 phy15: ethernet-phy@15 {
184 compatible = "ethernet-phy-ieee802.3-c22";
186 phy24: ethernet-phy@24 {
187 compatible = "ethernet-phy-ieee802.3-c22";
190 phy26: ethernet-phy@26 {
191 compatible = "ethernet-phy-ieee802.3-c22";
199 #address-cells = <1>;
205 phy-handle = <&phy8>;
206 phy-mode = "internal";
211 phy-handle = <&phy9>;
212 phy-mode = "internal";
217 phy-handle = <&phy10>;
218 phy-mode = "internal";
223 phy-handle = <&phy11>;
224 phy-mode = "internal";
229 phy-handle = <&phy12>;
230 phy-mode = "internal";
235 phy-handle = <&phy13>;
236 phy-mode = "internal";
241 phy-handle = <&phy14>;
242 phy-mode = "internal";
247 phy-handle = <&phy15>;
248 phy-mode = "internal";
253 phy-mode = "rgmii-id";
254 phy-handle = <&phy24>;
266 phy-mode = "rgmii-id";
267 phy-handle = <&phy26>;
277 ethernet = <ðernet0>;
279 phy-mode = "internal";