1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.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 = "ws-wn583a6:white:night_light";
25 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
28 led_status_blue: status_blue {
29 label = "ws-wn583a6:blue:status";
30 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
34 label = "ws-wn583a6:amber:status";
35 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
38 led_status_red: status_red {
39 label = "ws-wn583a6:red:status";
40 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
49 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_WPS_BUTTON>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <104000000>;
71 compatible = "fixed-partitions";
83 reg = <0x30000 0x10000>;
87 factory: partition@40000 {
89 reg = <0x40000 0x10000>;
94 compatible = "denx,uimage";
96 reg = <0x50000 0x7b0000>;
108 compatible = "mediatek,mt76";
109 reg = <0x0000 0 0 0 0>;
110 mediatek,mtd-eeprom = <&factory 0x0000>;
116 compatible = "mediatek,mt76";
117 reg = <0x0000 0 0 0 0>;
118 mediatek,mtd-eeprom = <&factory 0x8000>;
123 mtd-mac-address = <&factory 0xe000>;
131 mtd-mac-address = <&factory 0xe006>;
143 groups = "jtag", "wdt", "rgmii2";