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";
12 bootargs = "console=ttyS0,115200n8";
16 compatible = "spi-gpio";
20 gpio-sck = <&gpio 18 GPIO_ACTIVE_HIGH>;
21 gpio-mosi = <&gpio 17 GPIO_ACTIVE_HIGH>;
22 cs-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
23 num-chipselects = <1>;
25 led_gpio: led_gpio@0 {
26 compatible = "fairchild,74hc595";
30 registers-number = <1>;
31 spi-max-frequency = <10000000>;
36 compatible = "gpio-keys-polled";
37 poll-interval = <100>;
41 linux,code = <KEY_WPS_BUTTON>;
42 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 label = "WiFi button";
47 linux,code = <KEY_RFKILL>;
48 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
52 label = "Reset button";
53 linux,code = <KEY_RESTART>;
54 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-export";
61 gpio_shift_register_oe {
62 gpio-export,name = "tp-link:oe:sr";
63 gpio-export,output = <0>;
64 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
67 gpio_shift_register_reset {
68 gpio-export,name = "tp-link:reset:sr";
69 gpio-export,output = <1>;
70 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
90 phy-handle = <&swphy0>;
95 switch-phy-addr-swap = <1>;
96 switch-phy-swap = <1>;