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"
10 label-mac-device = ð0;
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
19 compatible = "gpio-leds";
22 label = "tp-link:blue:power";
23 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
27 label = "tp-link:blue:wlan2g";
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy1tpt";
33 label = "tp-link:blue:wlan5g";
34 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
39 label = "tp-link:green:lan_link";
40 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
44 label = "tp-link:green:lan_data";
45 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
49 label = "tp-link:blue:wps";
50 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
54 label = "tp-link:red:wps";
55 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
60 compatible = "gpio-keys";
63 label = "Reset button";
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
70 label = "Power button";
71 linux,code = <KEY_POWER>;
72 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
77 label = "LED control button";
79 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
80 debounce-interval = <60>;
85 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
87 debounce-interval = <60>;
92 compatible = "virtual,mdio-gpio";
94 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
95 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
99 phy4: ethernet-phy@4 {
101 device_type = "ethernet-phy";
102 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
125 compatible = "jedec,spi-nor";
127 spi-max-frequency = <25000000>;
129 partitions: partitions {
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
141 phy-handle = <&phy4>;
143 mtd-mac-address = <&info 0x8>;
149 mtd-cal-data = <&art 0x1000>;
150 mtd-mac-address = <&info 0x8>;