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";
25 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 compatible = "gpio-leds";
40 label = "wr1000:blue:lan1";
41 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
45 label = "wr1000:blue:lan2";
46 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
50 label = "wr1000:blue:wan";
51 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
55 label = "wr1000:blue:wlan2g";
56 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
61 label = "wr1000:blue:wps";
62 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <10000000>;
76 compatible = "fixed-partitions";
88 reg = <0x30000 0x10000>;
92 factory: partition@40000 {
94 reg = <0x40000 0x10000>;
99 compatible = "denx,uimage";
101 reg = <0x50000 0x7b0000>;
108 state_default: pinctrl0 {
110 ralink,group = "i2s", "refclk", "wdt", "p4led_an",
111 "p3led_an", "p2led_an", "wled_an";
112 ralink,function = "gpio";
123 compatible = "mediatek,mt76";
124 reg = <0x0000 0 0 0 0>;
125 mediatek,mtd-eeprom = <&factory 0x8000>;
126 ieee80211-freq-limit = <5000000 6000000>;
137 ralink,mtd-eeprom = <&factory 0x4>;
141 mtd-mac-address = <&factory 0x28>;
142 mediatek,portmap = "llllw";