2018-08-06 18:02:00 +00:00
|
|
|
#include "mt7620a.dtsi"
|
2018-05-17 09:57:00 +00:00
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
2019-07-03 21:21:54 +00:00
|
|
|
compatible = "tplink,archer-c2-v1", "ralink,mt7620a-soc";
|
2018-05-17 09:57:00 +00:00
|
|
|
model = "TP-Link Archer C2 v1";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_wps;
|
|
|
|
led-failsafe = &led_wps;
|
|
|
|
led-running = &led_wps;
|
|
|
|
led-upgrade = &led_wps;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-05-17 09:57:00 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2018-05-17 09:57:00 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
lan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:lan";
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usb {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:usb";
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_wps: wps {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wps";
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wan";
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wlan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wlan";
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
2020-01-02 02:11:39 +00:00
|
|
|
linux,default-trigger = "phy1tpt";
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2018-05-17 09:57:00 +00:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
reset_wps {
|
|
|
|
label = "reset_wps";
|
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rfkill {
|
|
|
|
label = "rfkill";
|
|
|
|
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RFKILL>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
rtl8367rb {
|
|
|
|
compatible = "realtek,rtl8367b", "rtl8367b";
|
|
|
|
cpu_port = <6>;
|
|
|
|
realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
|
|
|
|
mii-bus = <&mdio0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
2020-05-07 14:15:27 +00:00
|
|
|
flash@0 {
|
2018-05-17 09:57:00 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
2020-07-21 18:11:28 +00:00
|
|
|
spi-max-frequency = <30000000>;
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x20000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partition@20000 {
|
2018-11-28 03:28:35 +00:00
|
|
|
compatible = "tplink,firmware";
|
2018-08-01 20:32:34 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x20000 0x7a0000>;
|
|
|
|
};
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partition@7c0000 {
|
|
|
|
label = "config";
|
|
|
|
reg = <0x7c0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
rom: partition@7d0000 {
|
|
|
|
label = "rom";
|
|
|
|
reg = <0x7d0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partition@7e0000 {
|
|
|
|
label = "romfile";
|
|
|
|
reg = <0x7e0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
radio: partition@7f0000 {
|
|
|
|
label = "radio";
|
|
|
|
reg = <0x7f0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
|
|
|
|
|
2020-05-14 13:41:31 +00:00
|
|
|
mtd-mac-address = <&rom 0xf100>;
|
|
|
|
|
2018-05-17 09:57:00 +00:00
|
|
|
port@5 {
|
|
|
|
status = "okay";
|
|
|
|
mediatek,fixed-link = <1000 1 1 1>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio0: mdio-bus {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "uartf", "wled", "ephy", "spi refclk";
|
|
|
|
function = "gpio";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-05-17 09:57:00 +00:00
|
|
|
&wmac {
|
2020-05-07 13:13:27 +00:00
|
|
|
ralink,mtd-eeprom = <&radio 0x0>;
|
2018-05-17 09:57:00 +00:00
|
|
|
mtd-mac-address = <&rom 0xf100>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2018-07-21 14:19:46 +00:00
|
|
|
};
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2018-07-21 14:19:46 +00:00
|
|
|
&pcie0 {
|
|
|
|
mt76@0,0 {
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&radio 0x8000>;
|
2020-01-02 18:25:26 +00:00
|
|
|
mtd-mac-address = <&rom 0xf100>;
|
|
|
|
mtd-mac-address-increment = <(-1)>;
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|
|
|
|
};
|