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_red;
15 led-running = &led_internet_blue;
16 led-upgrade = &led_internet_red;
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>;
48 led_internet_red: internet_red {
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>;
107 reg = <0x1ff0000 0x10000>;
110 compatible = "nvmem-cells";
111 #address-cells = <1>;
114 macaddr_bdinfo_de00: macaddr@de00 {
128 compatible = "mediatek,mt76";
129 reg = <0x0000 0 0 0 0>;
130 mediatek,mtd-eeprom = <&factory 0x0000>;
131 mediatek,disable-radar-background;
133 nvmem-cells = <&macaddr_bdinfo_de00>;
134 nvmem-cell-names = "mac-address";
139 nvmem-cells = <&macaddr_bdinfo_de00>;
140 nvmem-cell-names = "mac-address";
146 phy-handle = <ðphy4>;
148 nvmem-cells = <&macaddr_bdinfo_de00>;
149 nvmem-cell-names = "mac-address";
150 mac-address-increment = <1>;
154 ethphy4: ethernet-phy@4 {
185 groups = "uart3", "jtag";