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 = "tplink,archer-c6u-v1", "mediatek,mt7621-soc";
10 model = "TP-Link Archer C6U v1";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
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 10 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
44 label = "green:power";
45 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
51 trigger-sources = <&ehci_port2>;
52 linux,default-trigger = "usbport";
57 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
66 label = "green:wifi5g";
67 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy1tpt";
72 label = "green:wifi2g";
73 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "phy0tpt";
79 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
83 reg_usb_vbus: regulator {
84 compatible = "regulator-fixed";
85 regulator-name = "usb_vbus";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 gpio = <&gpio 3 GPIO_ACTIVE_HIGH>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <80000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
108 reg = <0x000000 0x040000>;
113 compatible = "denx,uimage";
115 reg = <0x040000 0xf60000>;
118 config: partition@fa0000 {
119 compatible = "nvmem-cells";
121 reg = <0xfa0000 0x010000>;
122 #address-cells = <1>;
126 macaddr_config_8: macaddr@8 {
133 reg = <0xfb0000 0x040000>;
137 radio: partition@ff0000 {
138 compatible = "nvmem-cells";
140 reg = <0xff0000 0x010000>;
141 #address-cells = <1>;
145 eeprom_radio_0: eeprom@0 {
149 eeprom_radio_8000: eeprom@8000 {
150 reg = <0x8000 0x4da8>;
163 compatible = "mediatek,mt76";
164 reg = <0x0000 0 0 0 0>;
165 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
166 nvmem-cell-names = "eeprom", "mac-address";
167 ieee80211-freq-limit = <2400000 2500000>;
173 compatible = "mediatek,mt76";
174 reg = <0x0000 0 0 0 0>;
175 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_8>;
176 nvmem-cell-names = "eeprom", "mac-address";
177 mac-address-increment = <(-1)>;
178 ieee80211-freq-limit = <5000000 6000000>;
183 nvmem-cells = <&macaddr_config_8>;
184 nvmem-cell-names = "mac-address";
190 phy-handle = <ðphy0>;
192 nvmem-cells = <&macaddr_config_8>;
193 nvmem-cell-names = "mac-address";
194 mac-address-increment = <1>;
198 ethphy0: ethernet-phy@0 {
229 groups = "i2c", "uart2", "uart3", "jtag", "wdt", "sdhci";
235 vbus-supply = <®_usb_vbus>;