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>;
116 reg = <0x7e0000 0x10000>;
120 radio: partition@7f0000 {
122 reg = <0x7f0000 0x10000>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
133 nvmem-cells = <&macaddr_rom_f100>;
134 nvmem-cell-names = "mac-address";
138 mediatek,fixed-link = <1000 1 1 1>;
161 groups = "i2c", "uartf", "wled", "ephy", "spi refclk";
167 ralink,mtd-eeprom = <&radio 0x0>;
168 nvmem-cells = <&macaddr_rom_f100>;
169 nvmem-cell-names = "mac-address";
186 reg = <0x0000 0 0 0 0>;
187 mediatek,mtd-eeprom = <&radio 0x8000>;
188 nvmem-cells = <&macaddr_rom_f100>;
189 nvmem-cell-names = "mac-address";
190 mac-address-increment = <(-1)>;
195 compatible = "nvmem-cells";
196 #address-cells = <1>;
199 macaddr_rom_f100: macaddr@f100 {