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;
16 label-mac-device = ð1;
20 compatible = "spi-gpio";
24 sck-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
25 mosi-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
26 cs-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
27 num-chipselects = <1>;
29 led_gpio: led_gpio@0 {
30 compatible = "fairchild,74hc595";
34 registers-number = <1>;
35 spi-max-frequency = <10000000>;
40 compatible = "gpio-leds";
43 label = "green:power";
44 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
49 label = "green:wlan2g";
50 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy1tpt";
55 label = "green:wlan5g";
56 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
62 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
67 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
72 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
77 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-keys";
86 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
91 label = "WiFi button";
92 linux,code = <KEY_RFKILL>;
93 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
97 label = "Reset button";
98 linux,code = <KEY_RESTART>;
99 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
104 compatible = "gpio-export";
106 gpio_shift_register_oe {
107 gpio-export,name = "tp-link:oe:sr";
108 gpio-export,output = <0>;
109 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
112 gpio_shift_register_reset {
113 gpio-export,name = "tp-link:reset:sr";
114 gpio-export,output = <1>;
115 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
127 phy-handle = <&swphy0>;
129 mtd-mac-address = <&info 0x8>;
130 mtd-mac-address-increment = <1>;
135 switch-phy-addr-swap = <1>;
136 switch-phy-swap = <1>;
143 mtd-mac-address = <&info 0x8>;
149 mtd-cal-data = <&art 0x1000>;
150 mtd-mac-address = <&info 0x8>;