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";
58 compatible = "gpio-keys";
61 label = "Reset button";
62 linux,code = <KEY_RESTART>;
63 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
64 debounce-interval = <60>;
69 compatible = "gpio-export";
72 gpio-export,name = "tp-link:power:usb1";
73 gpio-export,output = <1>;
74 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
78 gpio-export,name = "tp-link:power:usb2";
79 gpio-export,output = <1>;
80 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
103 #address-cells = <1>;
109 #trigger-source-cells = <0>;
118 #address-cells = <1>;
124 #trigger-source-cells = <0>;
133 compatible = "jedec,spi-nor";
135 spi-max-frequency = <25000000>;
137 mtdparts: partitions {
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
148 phy0: ethernet-phy@0 {
151 qca,ar8327-initvals = <
152 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
153 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
154 0x50 0xc737c737 /* LED_CTRL0 */
155 0x54 0x00000000 /* LED_CTRL1 */
156 0x58 0x00000000 /* LED_CTRL2 */
157 0x5c 0x0030c300 /* LED_CTRL3 */
158 0x7c 0x0000007e /* PORT0_STATUS */
159 0x94 0x0000007e /* PORT6 STATUS */
167 mtd-mac-address = <&uboot 0x1fc00>;
168 mtd-mac-address-increment = <1>;
169 phy-handle = <&phy0>;
180 mtd-mac-address = <&uboot 0x1fc00>;
190 mtd-cal-data = <&art 0x1000>;
191 mtd-mac-address = <&uboot 0x1fc00>;