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";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
31 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&ohci_port1>, <&ehci_port1>;
33 linux,default-trigger = "usbport";
38 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
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>;
114 compatible = "fixed-layout";
115 #address-cells = <1>;
118 macaddr_rom_f100: macaddr@f100 {
119 compatible = "mac-base";
121 #nvmem-cell-cells = <1>;
128 reg = <0x7e0000 0x10000>;
132 radio: partition@7f0000 {
134 reg = <0x7f0000 0x10000>;
138 compatible = "fixed-layout";
139 #address-cells = <1>;
142 eeprom_radio_0: eeprom@0 {
146 eeprom_radio_8000: eeprom@8000 {
147 reg = <0x8000 0x200>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
159 nvmem-cells = <&macaddr_rom_f100 0>;
160 nvmem-cell-names = "mac-address";
164 mediatek,fixed-link = <1000 1 1 1>;
187 groups = "i2c", "uartf", "wled", "ephy", "spi refclk";
193 nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 0>;
194 nvmem-cell-names = "eeprom", "mac-address";
211 reg = <0x0000 0 0 0 0>;
212 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
213 nvmem-cell-names = "eeprom", "mac-address";