1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "zyxel,wsm20", "mediatek,mt7621-soc";
10 model = "ZyXEL WSM20";
13 led-boot = &led_system_white;
14 led-failsafe = &led_system_red;
15 led-running = &led_system_white;
16 led-upgrade = &led_system_red;
17 label-mac-device = &gmac0;
21 bootargs-override = "console=ttyS0,115200n1";
25 compatible = "gpio-leds";
27 led_system_white: led-0 {
28 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
29 label = "white:system";
32 led_system_red: led-1 {
33 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
38 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
58 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
64 compatible = "gpio-keys";
68 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_LIGHTS_TOGGLE>;
74 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
80 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
90 compatible = "fixed-partitions";
101 reg = <0x100000 0x100000>;
106 reg = <0x200000 0x1c0000>;
111 compatible = "fixed-layout";
112 #address-cells = <1>;
115 eeprom_factory_0: eeprom@0 {
119 precal_factory_e10: precal@e10 {
120 reg = <0xe10 0x19c10>;
123 macaddr_factory_1fdfa: macaddr@1fdfa {
127 macaddr_factory_1fdf4: macaddr@1fdf4 {
134 reg = <0x3c0000 0x2800000>;
137 compatible = "fixed-partitions";
138 #address-cells = <1>;
143 reg = <0x0 0x800000>;
148 reg = <0x800000 0x2000000>;
153 reg = <0x2bc0000 0x2800000>;
158 reg = <0x53c0000 0x100000>;
163 reg = <0x54c0000 0x400000>;
164 label = "rootfs_data";
169 reg = <0x58c0000 0x25c0000>;
175 reg = <0x7e80000 0x100000>;
183 nvmem-cells = <&macaddr_factory_1fdfa>;
184 nvmem-cell-names = "mac-address";
190 phy-handle = <ðphy0>;
192 nvmem-cells = <&macaddr_factory_1fdf4>;
193 nvmem-cell-names = "mac-address";
197 ethphy0: ethernet-phy@0 {
208 compatible = "mediatek,mt76";
209 reg = <0x0000 0 0 0 0>;
210 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
211 nvmem-cell-names = "eeprom", "precal";
212 mediatek,disable-radar-background;
239 groups = "i2c", "uart3", "jtag", "wdt";