1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca9557.dtsi"
11 bootargs = "console=ttyS0,115200n8";
19 compatible = "gpio-leds";
22 label = "tp-link:green:system";
23 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 label = "tp-link:green:usb1";
29 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
30 default-state = "off";
31 trigger-sources = <&hub_port1>;
32 linux,default-trigger = "usbport";
36 label = "tp-link:green:usb2";
37 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
38 default-state = "off";
39 trigger-sources = <&hub_port0>;
40 linux,default-trigger = "usbport";
44 label = "tp-link:green:wlan2g";
45 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
46 default-state = "off";
47 linux,default-trigger = "phy1tpt";
51 label = "tp-link:green:qss";
52 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
53 default-state = "off";
57 label = "tp-link:green:wlan5g";
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
59 default-state = "off";
60 linux,default-trigger = "phy0tpt";
65 compatible = "gpio-keys";
70 label = "Reset button";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
77 linux,code = <KEY_RFKILL>;
78 linux,input-type = <EV_SW>;
79 debounce-interval = <60>;
84 compatible = "gpio-export";
88 gpio-export,name = "tp-link:power:usb1";
89 gpio-export,output = <1>;
90 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
94 gpio-export,name = "tp-link:power:usb2";
95 gpio-export,output = <1>;
96 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
123 #trigger-source-cells = <0>;
136 #trigger-source-cells = <0>;
145 #address-cells = <1>;
147 compatible = "jedec,spi-nor";
149 spi-max-frequency = <25000000>;
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
158 reg = <0x000000 0x020000>;
164 reg = <0x020000 0xfd0000>;
167 art: partition@ff0000 {
169 reg = <0xff0000 0x010000>;
179 phy0: ethernet-phy@0 {
182 qca,ar8327-initvals = <
183 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
184 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
185 0x50 0xc737c737 /* LED_CTRL0 */
186 0x54 0x00000000 /* LED_CTRL1 */
187 0x58 0x00000000 /* LED_CTRL2 */
188 0x5c 0x0030c300 /* LED_CTRL3 */
189 0x7c 0x0000007e /* PORT0_STATUS */
190 0x94 0x0000007e /* PORT6 STATUS */
198 phy1: ethernet-phy@1 {
206 mtd-mac-address = <&uboot 0x1fc00>;
207 mtd-mac-address-increment = <1>;
208 phy-handle = <&phy0>;
214 mtd-mac-address = <&uboot 0x1fc00>;
215 phy-handle = <&phy1>;
225 mtd-cal-data = <&art 0x1000>;
226 mtd-mac-address = <&uboot 0x1fc00>;
227 mtd-mac-address-increment = <(-1)>;