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,x6", "mediatek,mt7621-soc";
13 led-boot = &led_internet_blue;
14 led-failsafe = &led_internet_blue;
15 led-running = &led_internet_blue;
16 led-upgrade = &led_internet_blue;
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_blue: internet_blue {
44 label = "blue:internet";
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49 label = "red:internet";
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
60 compatible = "jedec,spi-nor";
62 spi-max-frequency = <50000000>;
65 compatible = "fixed-partitions";
77 reg = <0x30000 0x10000>;
81 factory: partition@40000 {
83 reg = <0x40000 0x10000>;
88 compatible = "denx,uimage";
90 reg = <0x50000 0x1f80000>;
95 reg = <0x1fd0000 0x10000>;
101 reg = <0x1fe0000 0x10000>;
105 bdinfo: partition@1ff0000 {
107 reg = <0x1ff0000 0x10000>;
120 compatible = "mediatek,mt76";
121 reg = <0x0000 0 0 0 0>;
122 mediatek,mtd-eeprom = <&factory 0x0000>;
123 mediatek,disable-radar-background;
128 nvmem-cells = <&macaddr_bdinfo_de00>;
129 nvmem-cell-names = "mac-address";
135 phy-handle = <ðphy4>;
137 nvmem-cells = <&macaddr_bdinfo_de00>;
138 nvmem-cell-names = "mac-address";
139 mac-address-increment = <1>;
143 ethphy4: ethernet-phy@4 {
174 groups = "uart3", "jtag";
180 compatible = "nvmem-cells";
181 #address-cells = <1>;
184 macaddr_bdinfo_de00: macaddr@de00 {