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 {
82 reg = <0x40000 0x10000>;
87 compatible = "denx,uimage";
89 reg = <0x50000 0xf80000>;
94 reg = <0xfd0000 0x10000>;
100 reg = <0xfe0000 0x10000>;
104 bdinfo: partition@ff0000 {
106 reg = <0xff0000 0x10000>;
119 compatible = "mediatek,mt76";
120 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x0000>;
122 nvmem-cells = <&macaddr_bdinfo_de00>;
123 nvmem-cell-names = "mac-address";
129 compatible = "mediatek,mt76";
130 reg = <0x0000 0 0 0 0>;
131 mediatek,mtd-eeprom = <&factory 0x8000>;
132 nvmem-cells = <&macaddr_bdinfo_de00>;
133 nvmem-cell-names = "mac-address";
134 mac-address-increment = <2>;
139 nvmem-cells = <&macaddr_bdinfo_de00>;
140 nvmem-cell-names = "mac-address";
146 phy-handle = <ðphy4>;
148 nvmem-cells = <&macaddr_bdinfo_de00>;
149 nvmem-cell-names = "mac-address";
150 mac-address-increment = <1>;
154 ethphy4: ethernet-phy@4 {
185 groups = "wdt", "i2c", "jtag";
191 compatible = "nvmem-cells";
192 #address-cells = <1>;
195 macaddr_bdinfo_de00: macaddr@de00 {