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 = <80000000>;
65 compatible = "fixed-partitions";
77 reg = <0x30000 0x10000>;
81 factory: partition@40000 {
83 reg = <0x40000 0x10000>;
88 compatible = "denx,uimage";
90 reg = <0x50000 0xf80000>;
95 reg = <0xfd0000 0x10000>;
101 reg = <0xfe0000 0x10000>;
105 bdinfo: partition@ff0000 {
107 reg = <0xff0000 0x10000>;
120 compatible = "mediatek,mt76";
121 reg = <0x0000 0 0 0 0>;
122 mediatek,mtd-eeprom = <&factory 0x0000>;
123 nvmem-cells = <&macaddr_bdinfo_de00>;
124 nvmem-cell-names = "mac-address";
130 compatible = "mediatek,mt76";
131 reg = <0x0000 0 0 0 0>;
132 mediatek,mtd-eeprom = <&factory 0x8000>;
133 nvmem-cells = <&macaddr_bdinfo_de00>;
134 nvmem-cell-names = "mac-address";
135 mac-address-increment = <2>;
140 nvmem-cells = <&macaddr_bdinfo_de00>;
141 nvmem-cell-names = "mac-address";
147 phy-handle = <ðphy4>;
149 nvmem-cells = <&macaddr_bdinfo_de00>;
150 nvmem-cell-names = "mac-address";
151 mac-address-increment = <1>;
155 ethphy4: ethernet-phy@4 {
186 groups = "wdt", "i2c", "jtag";
192 compatible = "nvmem-cells";
193 #address-cells = <1>;
196 macaddr_bdinfo_de00: macaddr@de00 {