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"
12 led-failsafe = &system;
13 led-running = &system;
14 led-upgrade = &system;
18 compatible = "gpio-leds";
21 label = "tp-link:green:system";
22 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 label = "tp-link:green:usb1";
28 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&hub_port1>;
30 linux,default-trigger = "usbport";
34 label = "tp-link:green:usb2";
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 trigger-sources = <&hub_port0>;
37 linux,default-trigger = "usbport";
41 label = "tp-link:green:wlan2g";
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
47 label = "tp-link:green:qss";
48 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
53 compatible = "gpio-keys";
56 label = "Reset button";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 debounce-interval = <60>;
64 compatible = "gpio-export";
67 gpio-export,name = "tp-link:power:usb1";
68 gpio-export,output = <1>;
69 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
73 gpio-export,name = "tp-link:power:usb2";
74 gpio-export,output = <1>;
75 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
104 #trigger-source-cells = <0>;
113 #address-cells = <1>;
119 #trigger-source-cells = <0>;
128 compatible = "jedec,spi-nor";
130 spi-max-frequency = <25000000>;
132 mtdparts: partitions {
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
143 phy0: ethernet-phy@0 {
146 qca,ar8327-initvals = <
147 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
148 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
149 0x50 0xc737c737 /* LED_CTRL0 */
150 0x54 0x00000000 /* LED_CTRL1 */
151 0x58 0x00000000 /* LED_CTRL2 */
152 0x5c 0x0030c300 /* LED_CTRL3 */
153 0x7c 0x0000007e /* PORT0_STATUS */
154 0x94 0x0000007e /* PORT6 STATUS */
162 mtd-mac-address = <&uboot 0x1fc00>;
163 mtd-mac-address-increment = <1>;
164 phy-handle = <&phy0>;
165 pll-data = <0x56000000 0x00000101 0x00001616>;
176 mtd-mac-address = <&uboot 0x1fc00>;
177 pll-data = <0x03000101 0x00000101 0x00001616>;
187 mtd-cal-data = <&art 0x1000>;
188 mtd-mac-address = <&uboot 0x1fc00>;