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 = "winstars,ws-wn583a6", "mediatek,mt7621-soc";
10 model = "Winstars WS-WN583A6";
13 led-boot = &led_status_red;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_red;
20 compatible = "gpio-leds";
23 label = "white:night_light";
24 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
27 led_status_blue: status_blue {
28 label = "blue:status";
29 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
33 label = "amber:status";
34 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
37 led_status_red: status_red {
39 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys";
48 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
64 compatible = "jedec,spi-nor";
66 spi-max-frequency = <104000000>;
70 compatible = "fixed-partitions";
82 reg = <0x30000 0x10000>;
86 factory: partition@40000 {
87 compatible = "nvmem-cells";
89 reg = <0x40000 0x10000>;
94 eeprom_factory_0: eeprom@0 {
98 eeprom_factory_8000: eeprom@8000 {
99 reg = <0x8000 0x4da8>;
102 macaddr_factory_e000: macaddr@e000 {
106 macaddr_factory_e006: macaddr@e006 {
112 compatible = "denx,uimage";
114 reg = <0x50000 0x7b0000>;
126 compatible = "mediatek,mt76";
127 reg = <0x0000 0 0 0 0>;
128 nvmem-cells = <&eeprom_factory_0>;
129 nvmem-cell-names = "eeprom";
135 compatible = "mediatek,mt76";
136 reg = <0x0000 0 0 0 0>;
137 nvmem-cells = <&eeprom_factory_8000>;
138 nvmem-cell-names = "eeprom";
143 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
147 nvmem-cells = <&macaddr_factory_e000>;
148 nvmem-cell-names = "mac-address";
156 nvmem-cells = <&macaddr_factory_e006>;
157 nvmem-cell-names = "mac-address";
169 groups = "jtag", "wdt", "rgmii2";