1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "cudy,wr1000", "mediatek,mt7628an-soc";
11 model = "Cudy WR1000";
15 led-failsafe = &led_wps;
16 led-upgrade = &led_wps;
17 label-mac-device = &wmac;
21 compatible = "gpio-keys-polled";
26 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
41 label = "wr1000:blue:lan1";
42 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
46 label = "wr1000:blue:lan2";
47 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
51 label = "wr1000:blue:wan";
52 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
56 label = "wr1000:blue:wlan2g";
57 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
62 label = "wr1000:blue:wps";
63 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <10000000>;
77 compatible = "fixed-partitions";
89 reg = <0x30000 0x10000>;
93 factory: partition@40000 {
95 reg = <0x40000 0x10000>;
100 compatible = "denx,uimage";
102 reg = <0x50000 0x7b0000>;
109 state_default: pinctrl0 {
111 ralink,group = "i2s", "refclk", "wdt", "p4led_an",
112 "p3led_an", "p2led_an", "wled_an";
113 ralink,function = "gpio";
124 compatible = "mediatek,mt76";
125 reg = <0x0000 0 0 0 0>;
126 mediatek,mtd-eeprom = <&factory 0x8000>;
127 ieee80211-freq-limit = <5000000 6000000>;
138 ralink,mtd-eeprom = <&factory 0x4>;
142 mtd-mac-address = <&factory 0x28>;
143 mediatek,portmap = "llllw";