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 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 label-mac-device = ð0;
18 compatible = "gpio-leds";
21 label = "tp-link:green:power";
22 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 label = "tp-link:green:wifi2g";
27 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy1tpt";
32 label = "tp-link:green:wifi5g";
33 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0tpt";
38 label = "tp-link:green:lan";
39 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-export";
47 gpio-export,name = "tp-link:led:control";
48 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
53 compatible = "gpio-keys";
56 label = "Reset button";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
59 debounce-interval = <60>;
63 label = "Pair button";
65 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
70 label = "LED control button";
72 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
78 linux,code = <KEY_WPS_BUTTON>;
79 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
80 debounce-interval = <60>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <25000000>;
95 partitions: partitions {
96 compatible = "fixed-partitions";
101 label = "factory-uboot";
102 reg = <0x000000 0x020000>;
108 reg = <0x020000 0x020000>;
113 compatible = "tplink,firmware";
115 reg = <0x040000 0x5e0000>;
119 label = "partition-table";
120 reg = <0x620000 0x010000>;
140 phy0: ethernet-phy@0 {
143 qca,mib-poll-interval = <500>;
145 qca,ar8327-initvals = <
146 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
147 0x7c 0x0000007e /* PORT0_STATUS */
155 phy-handle = <&phy0>;
157 mtd-mac-address = <&mac 0x8>;
163 mtd-cal-data = <&art 0x1000>;
164 mtd-mac-address = <&mac 0x8>;