3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,archer-c2-v1", "ralink,mt7620a-soc";
10 model = "TP-Link Archer C2 v1";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 label = "archer-c2-v1:green:lan";
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
32 label = "archer-c2-v1:green:usb";
33 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
34 trigger-sources = <&ohci_port1>, <&ehci_port1>;
35 linux,default-trigger = "usbport";
39 label = "archer-c2-v1:green:wps";
40 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
44 label = "archer-c2-v1:green:wan";
45 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
49 label = "archer-c2-v1:green:wlan";
50 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy1tpt";
56 compatible = "gpio-keys";
60 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
66 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RFKILL>;
72 compatible = "realtek,rtl8367b", "rtl8367b";
74 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <10000000>;
88 compatible = "fixed-partitions";
99 compatible = "tplink,firmware";
101 reg = <0x20000 0x7a0000>;
106 reg = <0x7c0000 0x10000>;
110 rom: partition@7d0000 {
112 reg = <0x7d0000 0x10000>;
118 reg = <0x7e0000 0x10000>;
122 radio: partition@7f0000 {
124 reg = <0x7f0000 0x10000>;
133 mtd-mac-address = <&rom 0xf100>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
139 mediatek,fixed-link = <1000 1 1 1>;
162 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk";
163 ralink,function = "gpio";
168 ralink,mtd-eeprom = <&radio 0>;
169 mtd-mac-address = <&rom 0xf100>;
186 reg = <0x0000 0 0 0 0>;
187 mediatek,mtd-eeprom = <&radio 0x8000>;