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 led-status = &led_wps;
17 bootargs = "console=ttyS0,115200";
21 state_default: pinctrl0 {
23 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk";
24 ralink,function = "gpio";
30 compatible = "gpio-leds";
33 label = "c2-v1:green:lan";
34 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
38 label = "c2-v1:green:usb";
39 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&ohci_port1>, <&ehci_port1>;
41 linux,default-trigger = "usbport";
45 label = "c2-v1:green:wps";
46 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
50 label = "c2-v1:green:wan";
51 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
55 label = "c2-v1:green:wlan";
56 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys";
65 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART>;
71 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RFKILL>;
77 compatible = "realtek,rtl8367b", "rtl8367b";
79 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <10000000>;
93 compatible = "fixed-partitions";
105 reg = <0x20000 0x7a0000>;
110 reg = <0x7c0000 0x10000>;
114 rom: partition@7d0000 {
116 reg = <0x7d0000 0x10000>;
122 reg = <0x7e0000 0x10000>;
126 radio: partition@7f0000 {
128 reg = <0x7f0000 0x10000>;
137 mtd-mac-address = <&rom 0xf100>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
143 mediatek,fixed-link = <1000 1 1 1>;
166 ralink,mtd-eeprom = <&radio 0>;
167 mtd-mac-address = <&rom 0xf100>;
184 reg = <0x0000 0 0 0 0>;
185 mediatek,mtd-eeprom = <&radio 0x8000>;