1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "cudy,m1800", "mediatek,mt7621-soc";
13 led-boot = &led_internet_white;
14 led-failsafe = &led_internet_white;
15 led-running = &led_internet_white;
16 led-upgrade = &led_internet_white;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 8 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";
43 led_internet_white: internet-white {
44 label = "white:internet";
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49 label = "red:internet";
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
56 nvmem-cells = <&macaddr_bdinfo_de00>;
57 nvmem-cell-names = "mac-address";
58 mac-address-increment = <1>;
64 phy-handle = <ðphy4>;
66 nvmem-cells = <&macaddr_bdinfo_de00>;
67 nvmem-cell-names = "mac-address";
71 ethphy4: ethernet-phy@4 {
82 compatible = "mediatek,mt76";
83 reg = <0x0000 0 0 0 0>;
84 mediatek,mtd-eeprom = <&factory 0x0000>;
85 mediatek,disable-radar-background;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <50000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
116 factory: partition@40000 {
118 reg = <0x40000 0x10000>;
123 compatible = "denx,uimage";
125 reg = <0x50000 0xfb0000>;
130 reg = <0x1000000 0xfd0000>;
136 reg = <0x1fd0000 0x10000>;
142 reg = <0x1fe0000 0x10000>;
148 reg = <0x1ff0000 0x10000>;
151 compatible = "nvmem-cells";
152 #address-cells = <1>;
155 macaddr_bdinfo_de00: macaddr@de00 {
165 groups = "jtag", "uart3";