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>
7 #include <dt-bindings/leds/common.h>
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-keys";
21 label = "Reset button";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
28 label = "LED control button";
29 linux,code = <KEY_LIGHTS_TOGGLE>;
30 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
35 label = "Pair button";
37 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
42 label = "WiFi button";
43 linux,code = <KEY_RFKILL>;
44 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
50 compatible = "gpio-leds";
53 function = LED_FUNCTION_POWER;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_LAN;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
65 label = "green:wifi2g";
66 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy1tpt";
71 label = "green:wifi5g";
72 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
78 compatible = "gpio-export";
81 gpio-export,name = "tp-link:led:control";
82 gpio-export,output = <0>;
83 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <25000000>;
96 partitions: partitions {
97 compatible = "fixed-partitions";
111 phy0: ethernet-phy@0 {
114 qca,mib-poll-interval = <500>;
116 qca,ar8327-initvals = <
117 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
118 0x7c 0x0000007e /* PORT0_STATUS */
126 phy-handle = <&phy0>;