1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.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";
41 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
46 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_WAN;
51 color = <LED_COLOR_ID_BLUE>;
52 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
56 label = "blue:wlan2g";
57 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
62 function = LED_FUNCTION_WPS;
63 color = <LED_COLOR_ID_BLUE>;
64 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <10000000>;
78 compatible = "fixed-partitions";
90 reg = <0x30000 0x10000>;
96 reg = <0x40000 0x10000>;
100 compatible = "fixed-layout";
101 #address-cells = <1>;
104 eeprom_factory_0: eeprom@0 {
108 eeprom_factory_8000: eeprom@8000 {
109 reg = <0x8000 0x200>;
112 macaddr_factory_28: macaddr@28 {
119 compatible = "denx,uimage";
121 reg = <0x50000 0x7b0000>;
129 groups = "i2s", "refclk", "wdt", "p4led_an",
130 "p3led_an", "p2led_an", "wled_an";
141 compatible = "mediatek,mt76";
142 reg = <0x0000 0 0 0 0>;
143 nvmem-cells = <&eeprom_factory_8000>;
144 nvmem-cell-names = "eeprom";
145 ieee80211-freq-limit = <5000000 6000000>;
157 nvmem-cells = <&eeprom_factory_0>;
158 nvmem-cell-names = "eeprom";
162 nvmem-cells = <&macaddr_factory_28>;
163 nvmem-cell-names = "mac-address";
167 mediatek,portmap = <0x2f>;