3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,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 state_default: pinctrl0 {
26 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk";
27 ralink,function = "gpio";
33 compatible = "gpio-leds";
36 label = "c2-v1:green:lan";
37 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
41 label = "c2-v1:green:usb";
42 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
43 trigger-sources = <&ohci_port1>, <&ehci_port1>;
44 linux,default-trigger = "usbport";
48 label = "c2-v1:green:wps";
49 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
53 label = "c2-v1:green:wan";
54 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
58 label = "c2-v1:green:wlan";
59 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-keys";
68 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
74 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RFKILL>;
80 compatible = "realtek,rtl8367b", "rtl8367b";
82 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <10000000>;
96 compatible = "fixed-partitions";
108 reg = <0x20000 0x7a0000>;
113 reg = <0x7c0000 0x10000>;
117 rom: partition@7d0000 {
119 reg = <0x7d0000 0x10000>;
125 reg = <0x7e0000 0x10000>;
129 radio: partition@7f0000 {
131 reg = <0x7f0000 0x10000>;
140 mtd-mac-address = <&rom 0xf100>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
146 mediatek,fixed-link = <1000 1 1 1>;
169 ralink,mtd-eeprom = <&radio 0>;
170 mtd-mac-address = <&rom 0xf100>;
187 reg = <0x0000 0 0 0 0>;
188 mediatek,mtd-eeprom = <&radio 0x8000>;