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 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 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";
90 linux,code = <KEY_WPS_BUTTON>;
91 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
95 label = "WiFi button";
96 linux,code = <KEY_RFKILL>;
97 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
101 label = "Reset button";
102 linux,code = <KEY_RESTART>;
103 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
108 compatible = "gpio-export";
110 gpio_shift_register_oe {
111 gpio-export,name = "tp-link:oe:sr";
112 gpio-export,output = <0>;
113 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
116 gpio_shift_register_reset {
117 gpio-export,name = "tp-link:reset:sr";
118 gpio-export,output = <1>;
119 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
139 phy-handle = <&swphy0>;
141 mtd-mac-address = <&mac 0x8>;
142 mtd-mac-address-increment = <1>;
147 switch-phy-addr-swap = <1>;
148 switch-phy-swap = <1>;
155 mtd-mac-address = <&mac 0x8>;
161 mtd-cal-data = <&art 0x1000>;
162 mtd-mac-address = <&mac 0x8>;