1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "tplink,archer-c2-v1", "ralink,mt7620a-soc";
9 model = "TP-Link Archer C2 v1";
13 led-failsafe = &led_wps;
14 led-running = &led_wps;
15 led-upgrade = &led_wps;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 function = LED_FUNCTION_LAN;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
32 function = LED_FUNCTION_USB;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&ohci_port1>, <&ehci_port1>;
36 linux,default-trigger = "usbport";
40 function = LED_FUNCTION_WPS;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
46 function = LED_FUNCTION_WAN;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
52 function = LED_FUNCTION_WLAN;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy1tpt";
60 compatible = "gpio-keys";
64 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
70 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RFKILL>;
76 compatible = "realtek,rtl8367b", "rtl8367b";
78 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <30000000>;
92 compatible = "fixed-partitions";
103 compatible = "tplink,firmware";
105 reg = <0x20000 0x7a0000>;
110 reg = <0x7c0000 0x10000>;
114 rom: partition@7d0000 {
116 reg = <0x7d0000 0x10000>;
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 macaddr_rom_f100: macaddr@f100 {
125 compatible = "mac-base";
127 #nvmem-cell-cells = <1>;
134 reg = <0x7e0000 0x10000>;
138 radio: partition@7f0000 {
140 reg = <0x7f0000 0x10000>;
144 compatible = "fixed-layout";
145 #address-cells = <1>;
148 eeprom_radio_0: eeprom@0 {
152 eeprom_radio_8000: eeprom@8000 {
153 reg = <0x8000 0x200>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
165 nvmem-cells = <&macaddr_rom_f100 0>;
166 nvmem-cell-names = "mac-address";
170 mediatek,fixed-link = <1000 1 1 1>;
193 groups = "i2c", "uartf", "wled", "ephy", "spi refclk";
199 nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 0>;
200 nvmem-cell-names = "eeprom", "mac-address";
217 reg = <0x0000 0 0 0 0>;
218 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
219 nvmem-cell-names = "eeprom", "mac-address";