1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
5 #include <dt-bindings/leds/common.h>
10 model = "Cudy WR3000 v1";
11 compatible = "cudy,wr3000-v1", "mediatek,mt7981";
15 label-mac-device = &gmac0;
16 led-boot = &led_status;
17 led-failsafe = &led_status;
18 led-running = &led_status;
19 led-upgrade = &led_status;
24 stdout-path = "serial0:115200n8";
28 compatible = "gpio-keys";
32 linux,code = <KEY_RESTART>;
33 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
44 compatible = "gpio-leds";
47 function = LED_FUNCTION_STATUS;
48 color = <LED_COLOR_ID_BLUE>;
49 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
53 label = "blue:internet";
54 gpios = <&pio 11 GPIO_ACTIVE_LOW>;
58 function = LED_FUNCTION_WAN;
59 color = <LED_COLOR_ID_BLUE>;
60 gpios = <&pio 5 GPIO_ACTIVE_LOW>;
64 function = LED_FUNCTION_LAN;
65 color = <LED_COLOR_ID_BLUE>;
66 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
71 gpios = <&pio 6 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy0tpt";
77 gpios = <&pio 7 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "phy1tpt";
92 pinctrl-names = "default";
93 pinctrl-0 = <&mdio_pins>;
98 compatible = "mediatek,eth-mac";
100 phy-mode = "2500base-x";
102 nvmem-cell-names = "mac-address";
103 nvmem-cells = <&macaddr_bdinfo_de00 0>;
113 compatible = "mediatek,eth-mac";
121 compatible = "mediatek,mt7531";
123 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&spi0_flash_pins>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&spi2_flash_pins>;
139 #address-cells = <1>;
142 compatible = "jedec,spi-nor";
145 spi-max-frequency = <25000000>;
146 spi-tx-bus-width = <4>;
147 spi-rx-bus-width = <4>;
150 compatible = "fixed-partitions";
151 #address-cells = <1>;
156 reg = <0x00000 0x40000>;
161 label = "u-boot-env";
162 reg = <0x40000 0x10000>;
166 factory: partition@50000 {
168 reg = <0x50000 0x10000>;
172 bdinfo: partition@60000 {
174 reg = <0x60000 0x10000>;
178 compatible = "fixed-layout";
179 #address-cells = <1>;
182 macaddr_bdinfo_de00: macaddr@de00 {
183 compatible = "mac-base";
185 #nvmem-cell-cells = <1>;
192 reg = <0x70000 0x80000>;
197 compatible = "denx,fit";
199 reg = <0xf0000 0xf10000>;
206 spi0_flash_pins: spi0-pins {
209 groups = "spi0", "spi0_wp_hold";
213 spi2_flash_pins: spi2-pins {
216 groups = "spi2", "spi2_wp_hold";
220 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
221 drive-strength = <8>;
222 bias-pull-up = <103>;
226 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
227 drive-strength = <8>;
228 bias-pull-down = <103>;
235 #address-cells = <1>;
242 nvmem-cell-names = "mac-address";
243 nvmem-cells = <&macaddr_bdinfo_de00 1>;
265 phy-mode = "2500base-x";
278 mediatek,mtd-eeprom = <&factory 0x0>;