1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/gpio/gpio.h>
10 compatible = "cudy,wr1300-v1", "mediatek,mt7621-soc";
11 model = "Cudy WR1300 v1";
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
46 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
50 function = LED_FUNCTION_USB;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
53 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
54 linux,default-trigger = "usbport";
58 function = LED_FUNCTION_WPS;
59 color = <LED_COLOR_ID_GREEN>;
60 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
69 compatible = "jedec,spi-nor";
71 spi-max-frequency = <10000000>;
74 compatible = "fixed-partitions";
86 reg = <0x30000 0x10000>;
92 reg = <0x40000 0x10000>;
96 compatible = "fixed-layout";
100 eeprom_factory_0: eeprom@0 {
104 eeprom_factory_8000: eeprom@8000 {
105 reg = <0x8000 0x200>;
111 compatible = "denx,uimage";
113 reg = <0x50000 0xf80000>;
118 reg = <0xfd0000 0x10000>;
124 reg = <0xfe0000 0x10000>;
130 reg = <0xff0000 0x10000>;
134 compatible = "fixed-layout";
135 #address-cells = <1>;
138 macaddr_bdinfo_de00: macaddr@de00 {
139 compatible = "mac-base";
141 #nvmem-cell-cells = <1>;
155 compatible = "pci14c3,7603";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00 0>;
158 nvmem-cell-names = "eeprom", "mac-address";
159 ieee80211-freq-limit = <2400000 2500000>;
169 compatible = "pci14c3,7662";
170 reg = <0x0000 0 0 0 0>;
171 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_bdinfo_de00 2>;
172 nvmem-cell-names = "eeprom", "mac-address";
173 ieee80211-freq-limit = <5000000 6000000>;
183 nvmem-cells = <&macaddr_bdinfo_de00 0>;
184 nvmem-cell-names = "mac-address";
190 phy-handle = <ðphy4>;
192 nvmem-cells = <&macaddr_bdinfo_de00 1>;
193 nvmem-cell-names = "mac-address";
197 ethphy4: ethernet-phy@4 {
228 groups = "wdt", "i2c", "jtag";