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";
25 label = "archer-c2-v1:green:lan";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
30 label = "archer-c2-v1:green:usb";
31 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&ohci_port1>, <&ehci_port1>;
33 linux,default-trigger = "usbport";
37 label = "archer-c2-v1:green:wps";
38 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
42 label = "archer-c2-v1:green:wan";
43 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
47 label = "archer-c2-v1:green:wlan";
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 mtd-mac-address = <&rom 0xf100>;
137 mediatek,fixed-link = <1000 1 1 1>;
160 groups = "i2c", "uartf", "wled", "ephy", "spi refclk";
166 ralink,mtd-eeprom = <&radio 0x0>;
167 mtd-mac-address = <&rom 0xf100>;
184 reg = <0x0000 0 0 0 0>;
185 mediatek,mtd-eeprom = <&radio 0x8000>;
186 mtd-mac-address = <&rom 0xf100>;
187 mtd-mac-address-increment = <(-1)>;