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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "winstars,ws-wn583a6", "mediatek,mt7621-soc";
11 model = "Winstars WS-WN583A6";
14 led-boot = &led_status_red;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_red;
21 compatible = "gpio-leds";
24 label = "white:night_light";
25 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
28 led_status_blue: status_blue {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_BLUE>;
31 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_AMBER>;
37 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
40 led_status_red: status_red {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_RED>;
43 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-keys";
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <104000000>;
74 compatible = "fixed-partitions";
86 reg = <0x30000 0x10000>;
92 reg = <0x40000 0x10000>;
96 compatible = "fixed-layout";
100 eeprom_factory_0: eeprom@0 {
104 eeprom_factory_8000: eeprom@8000 {
105 reg = <0x8000 0x4da8>;
108 macaddr_factory_e000: macaddr@e000 {
112 macaddr_factory_e006: macaddr@e006 {
119 compatible = "denx,uimage";
121 reg = <0x50000 0x7b0000>;
133 compatible = "mediatek,mt76";
134 reg = <0x0000 0 0 0 0>;
135 nvmem-cells = <&eeprom_factory_0>;
136 nvmem-cell-names = "eeprom";
142 compatible = "mediatek,mt76";
143 reg = <0x0000 0 0 0 0>;
144 nvmem-cells = <&eeprom_factory_8000>;
145 nvmem-cell-names = "eeprom";
150 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
154 nvmem-cells = <&macaddr_factory_e000>;
155 nvmem-cell-names = "mac-address";
163 nvmem-cells = <&macaddr_factory_e006>;
164 nvmem-cell-names = "mac-address";
176 groups = "jtag", "wdt", "rgmii2";