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 = "tp-link:green:power";
44 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
49 label = "tp-link:green:wlan2g";
50 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy1tpt";
55 label = "tp-link:green:wlan5g";
56 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
61 label = "tp-link:green:wan";
62 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
66 label = "tp-link:amber:wan";
67 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
71 label = "tp-link:green:lan";
72 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
76 label = "tp-link:green:wps";
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>;
131 phy-handle = <&swphy0>;
133 mtd-mac-address = <&info 0x8>;
134 mtd-mac-address-increment = <1>;
139 switch-phy-addr-swap = <1>;
140 switch-phy-swap = <1>;
147 mtd-mac-address = <&info 0x8>;
153 mtd-cal-data = <&art 0x1000>;
154 mtd-mac-address = <&info 0x8>;