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-v2", "mediatek,mt7621-soc";
10 model = "Cudy WR1300 v2";
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 7 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <40000000>;
64 compatible = "fixed-partitions";
76 reg = <0x30000 0x10000>;
80 factory: partition@40000 {
81 compatible = "nvmem-cells";
83 reg = <0x40000 0x10000>;
88 eeprom_factory_0: eeprom@0 {
92 eeprom_factory_8000: eeprom@8000 {
98 compatible = "denx,uimage";
100 reg = <0x50000 0xf80000>;
105 reg = <0xfd0000 0x10000>;
111 reg = <0xfe0000 0x10000>;
115 bdinfo: partition@ff0000 {
116 compatible = "nvmem-cells";
118 reg = <0xff0000 0x10000>;
119 #address-cells = <1>;
123 macaddr_bdinfo_de00: macaddr@de00 {
137 compatible = "mediatek,mt76";
138 reg = <0x0000 0 0 0 0>;
139 nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00>;
140 nvmem-cell-names = "eeprom", "mac-address";
146 compatible = "mediatek,mt76";
147 reg = <0x0000 0 0 0 0>;
148 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_bdinfo_de00>;
149 nvmem-cell-names = "eeprom", "mac-address";
150 mac-address-increment = <2>;
155 nvmem-cells = <&macaddr_bdinfo_de00>;
156 nvmem-cell-names = "mac-address";
162 phy-handle = <ðphy4>;
164 nvmem-cells = <&macaddr_bdinfo_de00>;
165 nvmem-cell-names = "mac-address";
166 mac-address-increment = <1>;
170 ethphy4: ethernet-phy@4 {
201 groups = "wdt", "i2c", "jtag";