2016-06-12 21:37:04 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2019-12-08 11:51:20 +00:00
|
|
|
#include "mt7620a_tplink_archer.dtsi"
|
2017-07-29 02:14:07 +00:00
|
|
|
|
2016-06-12 21:37:04 +00:00
|
|
|
/ {
|
2019-07-03 21:21:54 +00:00
|
|
|
compatible = "tplink,archer-c50-v1", "ralink,mt7620a-soc";
|
|
|
|
model = "TP-Link Archer C50 v1";
|
2016-06-12 21:37:04 +00:00
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-06-12 21:37:04 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
lan {
|
2019-08-06 12:30:42 +00:00
|
|
|
label = "archer-c50-v1:green:lan";
|
2016-10-13 19:00:06 +00:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
2016-06-12 21:37:04 +00:00
|
|
|
};
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2019-08-06 12:30:42 +00:00
|
|
|
label = "archer-c50-v1:green:power";
|
2017-07-28 21:26:40 +00:00
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
2017-07-29 09:32:44 +00:00
|
|
|
default-state = "on";
|
2016-06-12 21:37:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
usb {
|
2019-08-06 12:30:42 +00:00
|
|
|
label = "archer-c50-v1:green:usb";
|
2016-10-13 19:00:06 +00:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2016-10-13 19:00:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wan {
|
2019-08-06 12:30:42 +00:00
|
|
|
label = "archer-c50-v1:green:wan";
|
2017-07-28 21:26:40 +00:00
|
|
|
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
2016-10-13 19:00:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wan_orange {
|
2019-08-06 12:30:42 +00:00
|
|
|
label = "archer-c50-v1:orange:wan";
|
2016-10-13 19:00:06 +00:00
|
|
|
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
|
2016-06-12 21:37:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wlan5g {
|
2019-08-06 12:30:42 +00:00
|
|
|
label = "archer-c50-v1:green:wlan5g";
|
2016-10-13 19:00:06 +00:00
|
|
|
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
2016-06-12 21:37:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wlan2g {
|
2019-08-06 12:30:42 +00:00
|
|
|
label = "archer-c50-v1:green:wlan2g";
|
2016-10-13 19:00:06 +00:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
2019-08-06 12:30:42 +00:00
|
|
|
label = "archer-c50-v1:green:wps";
|
2016-10-13 19:00:06 +00:00
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
2016-06-12 21:37:04 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
2016-10-13 19:00:06 +00:00
|
|
|
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
|
2016-06-12 21:37:04 +00:00
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
2017-11-18 21:05:16 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pa_pins>;
|
2016-06-12 21:37:04 +00:00
|
|
|
|
2019-12-08 11:51:20 +00:00
|
|
|
mtd-mac-address = <&rom 0xf100>;
|
|
|
|
mtd-mac-address-increment = <(-2)>;
|
2018-07-21 14:19:46 +00:00
|
|
|
};
|
2016-06-12 21:37:04 +00:00
|
|
|
|
2019-12-08 11:51:20 +00:00
|
|
|
&wifi {
|
|
|
|
mtd-mac-address = <&rom 0xf100>;
|
|
|
|
mtd-mac-address-increment = <(-1)>;
|
2016-06-12 21:37:04 +00:00
|
|
|
};
|