2021-01-06 00:05:39 +00:00
|
|
|
#include "qcom-ipq8064-ad7200-c2600.dtsi"
|
2020-01-26 03:47:49 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "TP-Link Archer C2600";
|
|
|
|
compatible = "tplink,c2600", "qcom,ipq8064";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-boot = &power;
|
|
|
|
led-failsafe = &general;
|
|
|
|
led-running = &power;
|
|
|
|
led-upgrade = &general;
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
pinctrl-0 = <&button_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
wifi {
|
|
|
|
label = "wifi";
|
|
|
|
gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RFKILL>;
|
|
|
|
};
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ledswitch {
|
|
|
|
label = "ledswitch";
|
|
|
|
gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_LIGHTS_TOGGLE>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
pinctrl-0 = <&led_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
lan {
|
2020-10-01 19:24:35 +00:00
|
|
|
label = "white:lan";
|
2020-01-26 03:47:49 +00:00
|
|
|
gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usb4 {
|
2020-10-01 19:24:35 +00:00
|
|
|
label = "white:usb_4";
|
2020-01-26 03:47:49 +00:00
|
|
|
gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usb2 {
|
2020-10-01 19:24:35 +00:00
|
|
|
label = "white:usb_2";
|
2020-01-26 03:47:49 +00:00
|
|
|
gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
2020-10-01 19:24:35 +00:00
|
|
|
label = "white:wps";
|
2020-01-26 03:47:49 +00:00
|
|
|
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan_amber {
|
2020-10-01 19:24:35 +00:00
|
|
|
label = "amber:wan";
|
2020-01-26 03:47:49 +00:00
|
|
|
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan_white {
|
2020-10-01 19:24:35 +00:00
|
|
|
label = "white:wan";
|
2020-01-26 03:47:49 +00:00
|
|
|
gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
power: power {
|
2020-10-01 19:24:35 +00:00
|
|
|
label = "white:power";
|
2020-01-26 03:47:49 +00:00
|
|
|
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
general: general {
|
2020-10-01 19:24:35 +00:00
|
|
|
label = "white:general";
|
2020-01-26 03:47:49 +00:00
|
|
|
gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-02-05 02:03:41 +00:00
|
|
|
&qcom_pinmux {
|
|
|
|
button_pins: button_pins {
|
|
|
|
mux {
|
|
|
|
pins = "gpio16", "gpio54", "gpio65";
|
|
|
|
function = "gpio";
|
|
|
|
drive-strength = <2>;
|
|
|
|
bias-pull-up;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
led_pins: led_pins {
|
|
|
|
mux {
|
|
|
|
pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
|
|
|
|
"gpio53", "gpio66";
|
|
|
|
function = "gpio";
|
|
|
|
drive-strength = <2>;
|
|
|
|
bias-pull-up;
|
|
|
|
};
|
|
|
|
};
|
2020-01-26 03:47:49 +00:00
|
|
|
};
|