1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,archer-c5x", "qca,qca9560";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 compatible = "spi-gpio";
23 sck-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
24 mosi-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
25 cs-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
26 num-chipselects = <1>;
28 led_gpio: led_gpio@0 {
29 compatible = "fairchild,74hc595";
33 registers-number = <1>;
34 spi-max-frequency = <10000000>;
39 compatible = "gpio-leds";
42 label = "green:power";
43 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
48 label = "green:wlan2g";
49 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy1tpt";
54 label = "green:wlan5g";
55 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy0tpt";
61 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
66 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
71 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
76 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-keys";
85 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
90 label = "WiFi button";
91 linux,code = <KEY_RFKILL>;
92 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
96 label = "Reset button";
97 linux,code = <KEY_RESTART>;
98 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
103 compatible = "gpio-export";
105 gpio_shift_register_oe {
106 gpio-export,name = "tp-link:oe:sr";
107 gpio-export,output = <0>;
108 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
111 gpio_shift_register_reset {
112 gpio-export,name = "tp-link:reset:sr";
113 gpio-export,output = <1>;
114 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
126 phy-handle = <&swphy0>;
131 switch-phy-addr-swap = <1>;
132 switch-phy-swap = <1>;