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>
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
17 compatible = "gpio-keys";
20 label = "Reset button";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
27 label = "LED control button";
28 linux,code = <KEY_LIGHTS_TOGGLE>;
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
34 label = "Pair button";
36 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
41 label = "WiFi button";
42 linux,code = <KEY_RFKILL>;
43 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
49 compatible = "gpio-leds";
52 label = "green:power";
53 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
58 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
62 label = "green:wifi2g";
63 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy1tpt";
68 label = "green:wifi5g";
69 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy0tpt";
75 compatible = "gpio-export";
78 gpio-export,name = "tp-link:led:control";
79 gpio-export,output = <0>;
80 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
89 compatible = "jedec,spi-nor";
91 spi-max-frequency = <25000000>;
93 partitions: partitions {
94 compatible = "fixed-partitions";
114 phy0: ethernet-phy@0 {
117 qca,mib-poll-interval = <500>;
119 qca,ar8327-initvals = <
120 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
121 0x7c 0x0000007e /* PORT0_STATUS */
129 phy-handle = <&phy0>;
136 mtd-cal-data = <&art 0x1000>;