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";
16 led-failsafe = &system;
17 led-running = &system;
18 led-upgrade = &system;
19 label-mac-device = &wmac;
23 compatible = "gpio-leds";
26 label = "tp-link:green:system";
27 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "heartbeat";
32 label = "tp-link:green:usb";
33 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
34 trigger-sources = <&hub_port0>;
35 linux,default-trigger = "usbport";
39 label = "tp-link:green:wlan";
40 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy0tpt";
45 label = "tp-link:green:wps";
46 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys";
54 label = "Reset button";
55 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
61 label = "RFKILL button";
62 linux,code = <KEY_RFKILL>;
63 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
64 debounce-interval = <60>;
69 compatible = "gpio-export";
73 gpio-export,name = "tp-link:power:usb";
74 gpio-export,output = <1>;
75 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
99 #trigger-source-cells = <0>;
108 compatible = "jedec,spi-nor";
110 spi-max-frequency = <25000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
119 reg = <0x000000 0x020000>;
124 compatible = "tplink,firmware";
126 reg = <0x020000 0x7d0000>;
129 art: partition@7f0000 {
131 reg = <0x7f0000 0x010000>;
141 phy0: ethernet-phy@0 {
143 qca,ar8327-initvals = <
144 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
145 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
146 0x10 0x81000080 /* POWER_ON_STRIP */
147 0x50 0xcc35cc35 /* LED_CTRL0 */
148 0x54 0xca35ca35 /* LED_CTRL1 */
149 0x58 0xc935c935 /* LED_CTRL2 */
150 0x5c 0x03ffff00 /* LED_CTRL3 */
151 0x7c 0x0000007e /* PORT0_STATUS */
152 0x94 0x0000007e /* PORT6 STATUS */
160 pll-data = <0x56000000 0x00000101 0x00001616>;
162 mtd-mac-address = <&uboot 0x1fc00>;
163 mtd-mac-address-increment = <1>;
164 phy-handle = <&phy0>;
170 pll-data = <0x03000101 0x00000101 0x00001616>;
172 mtd-mac-address = <&uboot 0x1fc00>;
182 mtd-cal-data = <&art 0x1000>;
183 mtd-mac-address = <&uboot 0x1fc00>;