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 nvmem-cells = <&eeprom_factory_0>;
85 nvmem-cell-names = "eeprom";
86 mediatek,disable-radar-background;
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <50000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
112 label = "u-boot-env";
113 reg = <0x30000 0x10000>;
117 factory: partition@40000 {
118 compatible = "nvmem-cells";
120 reg = <0x40000 0x10000>;
121 #address-cells = <1>;
125 eeprom_factory_0: eeprom@0 {
131 compatible = "denx,uimage";
133 reg = <0x50000 0xfb0000>;
138 reg = <0x1000000 0xfd0000>;
144 reg = <0x1fd0000 0x10000>;
150 reg = <0x1fe0000 0x10000>;
156 reg = <0x1ff0000 0x10000>;
159 compatible = "nvmem-cells";
160 #address-cells = <1>;
163 macaddr_bdinfo_de00: macaddr@de00 {
173 groups = "jtag", "uart3";