1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
6 #include "qca956x.dtsi"
9 compatible = "tplink,archer-c5x", "qca,qca9560";
13 led-failsafe = &power;
16 label-mac-device = ð1;
20 bootargs = "console=ttyS0,115200n8";
24 compatible = "spi-gpio";
28 sck-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
29 mosi-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
30 cs-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
31 num-chipselects = <1>;
33 led_gpio: led_gpio@0 {
34 compatible = "fairchild,74hc595";
38 registers-number = <1>;
39 spi-max-frequency = <10000000>;
44 compatible = "gpio-leds";
47 label = "tp-link:green:power";
48 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
53 label = "tp-link:green:wlan2g";
54 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy1tpt";
59 label = "tp-link:green:wlan5g";
60 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy0tpt";
65 label = "tp-link:green:wan";
66 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
70 label = "tp-link:amber:wan";
71 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
75 label = "tp-link:green:lan";
76 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
80 label = "tp-link:green:wps";
81 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
86 compatible = "gpio-keys-polled";
87 poll-interval = <100>;
91 linux,code = <KEY_WPS_BUTTON>;
92 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
96 label = "WiFi button";
97 linux,code = <KEY_RFKILL>;
98 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
102 label = "Reset button";
103 linux,code = <KEY_RESTART>;
104 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
109 compatible = "gpio-export";
111 gpio_shift_register_oe {
112 gpio-export,name = "tp-link:oe:sr";
113 gpio-export,output = <0>;
114 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
117 gpio_shift_register_reset {
118 gpio-export,name = "tp-link:reset:sr";
119 gpio-export,output = <1>;
120 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
142 phy-handle = <&swphy0>;
144 mtd-mac-address = <&mac 0x8>;
145 mtd-mac-address-increment = <1>;
150 switch-phy-addr-swap = <1>;
151 switch-phy-swap = <1>;
158 mtd-mac-address = <&mac 0x8>;
164 mtd-cal-data = <&art 0x1000>;
165 mtd-mac-address = <&mac 0x8>;