1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "cudy,wr1300", "mediatek,mt7621-soc";
10 model = "Cudy WR1300";
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
45 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
50 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
51 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
52 linux,default-trigger = "usbport";
57 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <80000000>;
72 compatible = "fixed-partitions";
84 reg = <0x30000 0x10000>;
88 factory: partition@40000 {
90 reg = <0x40000 0x10000>;
95 compatible = "denx,uimage";
97 reg = <0x50000 0xf80000>;
102 reg = <0xfd0000 0x10000>;
108 reg = <0xfe0000 0x10000>;
112 bdinfo: partition@ff0000 {
114 reg = <0xff0000 0x10000>;
127 compatible = "pci14c3,7603";
128 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&factory 0x0000>;
130 nvmem-cells = <&macaddr_bdinfo_de00>;
131 nvmem-cell-names = "mac-address";
132 ieee80211-freq-limit = <2400000 2500000>;
142 compatible = "pci14c3,7662";
143 reg = <0x0000 0 0 0 0>;
144 mediatek,mtd-eeprom = <&factory 0x8000>;
145 nvmem-cells = <&macaddr_bdinfo_de00>;
146 nvmem-cell-names = "mac-address";
147 mac-address-increment = <2>;
148 ieee80211-freq-limit = <5000000 6000000>;
158 nvmem-cells = <&macaddr_bdinfo_de00>;
159 nvmem-cell-names = "mac-address";
187 nvmem-cells = <&macaddr_bdinfo_de00>;
188 nvmem-cell-names = "mac-address";
189 mac-address-increment = <1>;
196 groups = "wdt", "i2c", "jtag";
202 compatible = "nvmem-cells";
203 #address-cells = <1>;
206 macaddr_bdinfo_de00: macaddr@de00 {