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";
13 bootargs = "console=ttyS0,115200";
17 state_default: pinctrl0 {
19 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk";
20 ralink,function = "gpio";
26 compatible = "gpio-leds";
29 label = "c2-v1:green:lan";
30 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
34 label = "c2-v1:green:usb";
35 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
39 label = "c2-v1:green:wps";
40 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
44 label = "c2-v1:green:wan";
45 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
49 label = "c2-v1:green:wlan";
50 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
55 compatible = "gpio-keys";
59 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
65 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RFKILL>;
71 compatible = "realtek,rtl8367b", "rtl8367b";
73 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <10000000>;
96 reg = <0x20000 0x7a0000>;
101 reg = <0x7c0000 0x10000>;
105 rom: partition@7d0000 {
107 reg = <0x7d0000 0x10000>;
113 reg = <0x7e0000 0x10000>;
117 radio: partition@7f0000 {
119 reg = <0x7f0000 0x10000>;
127 mtd-mac-address = <&rom 0xf100>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
133 mediatek,fixed-link = <1000 1 1 1>;
156 ralink,mtd-eeprom = <&radio 0>;
157 mtd-mac-address = <&rom 0xf100>;
173 reg = <0x0000 0 0 0 0>;
175 mediatek,mtd-eeprom = <&radio 0x8000>;