1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "tplink,archer-c2-v1", "ralink,mt7620a-soc";
8 model = "TP-Link Archer C2 v1";
12 led-failsafe = &led_wps;
13 led-running = &led_wps;
14 led-upgrade = &led_wps;
18 bootargs = "console=ttyS0,115200";
22 compatible = "gpio-leds";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
31 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&ohci_port1>, <&ehci_port1>;
33 linux,default-trigger = "usbport";
38 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
48 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy1tpt";
54 compatible = "gpio-keys";
58 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
64 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RFKILL>;
70 compatible = "realtek,rtl8367b", "rtl8367b";
72 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <30000000>;
86 compatible = "fixed-partitions";
97 compatible = "tplink,firmware";
99 reg = <0x20000 0x7a0000>;
104 reg = <0x7c0000 0x10000>;
108 rom: partition@7d0000 {
110 reg = <0x7d0000 0x10000>;
114 compatible = "fixed-layout";
115 #address-cells = <1>;
118 macaddr_rom_f100: macaddr@f100 {
126 reg = <0x7e0000 0x10000>;
130 radio: partition@7f0000 {
132 reg = <0x7f0000 0x10000>;
136 compatible = "fixed-layout";
137 #address-cells = <1>;
140 eeprom_radio_0: eeprom@0 {
144 eeprom_radio_8000: eeprom@8000 {
145 reg = <0x8000 0x200>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
157 nvmem-cells = <&macaddr_rom_f100>;
158 nvmem-cell-names = "mac-address";
162 mediatek,fixed-link = <1000 1 1 1>;
185 groups = "i2c", "uartf", "wled", "ephy", "spi refclk";
191 nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100>;
192 nvmem-cell-names = "eeprom", "mac-address";
209 reg = <0x0000 0 0 0 0>;
210 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100>;
211 nvmem-cell-names = "eeprom", "mac-address";
212 mac-address-increment = <(-1)>;