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-v1", "mediatek,mt7621-soc";
10 model = "Cudy WR1300 v1";
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 = <10000000>;
71 compatible = "fixed-partitions";
83 reg = <0x30000 0x10000>;
87 factory: partition@40000 {
89 reg = <0x40000 0x10000>;
93 compatible = "fixed-layout";
97 eeprom_factory_0: eeprom@0 {
101 eeprom_factory_8000: eeprom@8000 {
102 reg = <0x8000 0x200>;
108 compatible = "denx,uimage";
110 reg = <0x50000 0xf80000>;
115 reg = <0xfd0000 0x10000>;
121 reg = <0xfe0000 0x10000>;
125 bdinfo: partition@ff0000 {
127 reg = <0xff0000 0x10000>;
131 compatible = "fixed-layout";
132 #address-cells = <1>;
135 macaddr_bdinfo_de00: macaddr@de00 {
136 compatible = "mac-base";
138 #nvmem-cell-cells = <1>;
152 compatible = "pci14c3,7603";
153 reg = <0x0000 0 0 0 0>;
154 nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00 0>;
155 nvmem-cell-names = "eeprom", "mac-address";
156 ieee80211-freq-limit = <2400000 2500000>;
166 compatible = "pci14c3,7662";
167 reg = <0x0000 0 0 0 0>;
168 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_bdinfo_de00 2>;
169 nvmem-cell-names = "eeprom", "mac-address";
170 ieee80211-freq-limit = <5000000 6000000>;
180 nvmem-cells = <&macaddr_bdinfo_de00 0>;
181 nvmem-cell-names = "mac-address";
187 phy-handle = <ðphy4>;
189 nvmem-cells = <&macaddr_bdinfo_de00 1>;
190 nvmem-cell-names = "mac-address";
194 ethphy4: ethernet-phy@4 {
225 groups = "wdt", "i2c", "jtag";