1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
12 model = "Cudy RE3000 v1";
13 compatible = "cudy,re3000-v1", "mediatek,mt7981";
17 label-mac-device = &gmac1;
18 led-boot = &led_status;
19 led-failsafe = &led_status;
20 led-running = &led_status;
21 led-upgrade = &led_status;
25 stdout-path = "serial0:115200n8";
29 compatible = "gpio-keys";
33 linux,code = <KEY_RESTART>;
34 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_WPS_BUTTON>;
40 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-leds";
48 function = LED_FUNCTION_STATUS;
49 color = <LED_COLOR_ID_WHITE>;
50 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
55 gpios = <&pio 7 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy1tpt";
60 label = "white:wifi2";
61 gpios = <&pio 6 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy0tpt";
66 function = LED_FUNCTION_LAN;
67 color = <LED_COLOR_ID_GREEN>;
68 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
72 function = LED_FUNCTION_WPS;
73 color = <LED_COLOR_ID_WHITE>;
74 gpios = <&pio 11 GPIO_ACTIVE_LOW>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&mdio_pins>;
93 compatible = "mediatek,eth-mac";
96 phy-handle = <&int_gbe_phy>;
97 nvmem-cell-names = "mac-address";
98 nvmem-cells = <&macaddr_bdinfo_de00 0>;
104 compatible = "mediatek,mt7531";
106 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&spi2_flash_pins>;
120 #address-cells = <1>;
123 compatible = "jedec,spi-nor";
126 spi-max-frequency = <25000000>;
127 spi-tx-bus-width = <4>;
128 spi-rx-bus-width = <4>;
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
137 reg = <0x00000 0x40000>;
142 label = "u-boot-env";
143 reg = <0x40000 0x10000>;
147 factory: partition@50000 {
149 reg = <0x50000 0x10000>;
153 compatible = "fixed-layout";
154 #address-cells = <1>;
157 eeprom_factory_0: eeprom@0 {
163 bdinfo: partition@60000 {
165 reg = <0x60000 0x10000>;
169 compatible = "fixed-layout";
170 #address-cells = <1>;
173 macaddr_bdinfo_de00: macaddr@de00 {
174 compatible = "mac-base";
176 #nvmem-cell-cells = <1>;
183 reg = <0x70000 0x80000>;
188 compatible = "denx,fit";
190 reg = <0xf0000 0xf10000>;
197 spi2_flash_pins: spi2-pins {
200 groups = "spi2", "spi2_wp_hold";
204 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
205 drive-strength = <8>;
206 bias-pull-up = <103>;
210 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
211 drive-strength = <8>;
212 bias-pull-down = <103>;
219 nvmem-cells = <&eeprom_factory_0>;
220 nvmem-cell-names = "eeprom";