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 19 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "heartbeat";
28 label = "tp-link:green:usb";
29 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
30 default-state = "off";
31 trigger-sources = <&hub_port0>;
32 linux,default-trigger = "usbport";
36 label = "tp-link:green:wlan";
37 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
38 default-state = "off";
39 linux,default-trigger = "phy0tpt";
43 label = "tp-link:green:wps";
44 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
45 default-state = "off";
50 compatible = "gpio-keys";
53 label = "Reset button";
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
60 label = "RFKILL button";
61 linux,code = <KEY_RFKILL>;
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 debounce-interval = <60>;
68 compatible = "gpio-export";
72 gpio-export,name = "tp-link:power:usb";
73 gpio-export,output = <1>;
74 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
98 #trigger-source-cells = <0>;
107 compatible = "jedec,spi-nor";
109 spi-max-frequency = <25000000>;
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
118 reg = <0x000000 0x020000>;
124 reg = <0x020000 0x7d0000>;
127 art: partition@7f0000 {
129 reg = <0x7f0000 0x010000>;
139 phy0: ethernet-phy@0 {
141 qca,ar8327-initvals = <
142 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
143 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
144 0x10 0x81000080 /* POWER_ON_STRIP */
145 0x50 0xcc35cc35 /* LED_CTRL0 */
146 0x54 0xca35ca35 /* LED_CTRL1 */
147 0x58 0xc935c935 /* LED_CTRL2 */
148 0x5c 0x03ffff00 /* LED_CTRL3 */
149 0x7c 0x0000007e /* PORT0_STATUS */
150 0x94 0x0000007e /* PORT6 STATUS */
158 pll-data = <0x56000000 0x00000101 0x00001616>;
160 mtd-mac-address = <&uboot 0x1fc00>;
161 mtd-mac-address-increment = <1>;
162 phy-handle = <&phy0>;
168 pll-data = <0x03000101 0x00000101 0x00001616>;
170 mtd-mac-address = <&uboot 0x1fc00>;
180 mtd-cal-data = <&art 0x1000>;
181 mtd-mac-address = <&uboot 0x1fc00>;