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 = <&gpio 38 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
37 compatible = "gpio-leds";
40 label = "wr1000:blue:lan1";
41 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
45 label = "wr1000:blue:lan2";
46 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
50 label = "wr1000:blue:wan";
51 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
55 label = "wr1000:blue:wlan2g";
56 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
61 label = "wr1000:blue:wps";
62 gpios = <&gpio 37 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>;
109 ralink,group = "i2s", "refclk", "wdt", "p4led_an",
110 "p3led_an", "p2led_an", "wled_an";
111 ralink,function = "gpio";
121 compatible = "mediatek,mt76";
122 reg = <0x0000 0 0 0 0>;
123 mediatek,mtd-eeprom = <&factory 0x8000>;
124 ieee80211-freq-limit = <5000000 6000000>;
138 mtd-mac-address = <&factory 0x28>;
142 mediatek,portmap = <0x2f>;