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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,archer-c6u-v1", "mediatek,mt7621-soc";
11 model = "TP-Link Archer C6U v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
51 function = LED_FUNCTION_USB;
52 color = <LED_COLOR_ID_GREEN>;
53 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54 trigger-sources = <&ehci_port2>;
55 linux,default-trigger = "usbport";
59 function = LED_FUNCTION_WAN;
60 color = <LED_COLOR_ID_ORANGE>;
61 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
65 function = LED_FUNCTION_LAN;
66 color = <LED_COLOR_ID_GREEN>;
67 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
71 label = "green:wifi5g";
72 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy1tpt";
77 label = "green:wifi2g";
78 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "phy0tpt";
83 function = LED_FUNCTION_WAN;
84 color = <LED_COLOR_ID_GREEN>;
85 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
89 reg_usb_vbus: regulator {
90 compatible = "regulator-fixed";
91 regulator-name = "usb_vbus";
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
94 gpio = <&gpio 3 GPIO_ACTIVE_HIGH>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <80000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
114 reg = <0x000000 0x040000>;
119 compatible = "denx,uimage";
121 reg = <0x040000 0xf60000>;
124 config: partition@fa0000 {
126 reg = <0xfa0000 0x010000>;
130 compatible = "fixed-layout";
131 #address-cells = <1>;
134 macaddr_config_8: macaddr@8 {
135 compatible = "mac-base";
137 #nvmem-cell-cells = <1>;
144 reg = <0xfb0000 0x040000>;
148 radio: partition@ff0000 {
150 reg = <0xff0000 0x010000>;
154 compatible = "fixed-layout";
155 #address-cells = <1>;
158 eeprom_radio_0: eeprom@0 {
162 eeprom_radio_8000: eeprom@8000 {
163 reg = <0x8000 0x4da8>;
177 compatible = "mediatek,mt76";
178 reg = <0x0000 0 0 0 0>;
179 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8 0>;
180 nvmem-cell-names = "eeprom", "mac-address";
181 ieee80211-freq-limit = <2400000 2500000>;
187 compatible = "mediatek,mt76";
188 reg = <0x0000 0 0 0 0>;
189 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_8 (-1)>;
190 nvmem-cell-names = "eeprom", "mac-address";
191 ieee80211-freq-limit = <5000000 6000000>;
196 nvmem-cells = <&macaddr_config_8 0>;
197 nvmem-cell-names = "mac-address";
203 phy-handle = <ðphy0>;
205 nvmem-cells = <&macaddr_config_8 1>;
206 nvmem-cell-names = "mac-address";
210 ethphy0: ethernet-phy@0 {
241 groups = "i2c", "uart2", "uart3", "jtag", "wdt", "sdhci";
247 vbus-supply = <®_usb_vbus>;