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";
63 label = "Reset button";
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
71 compatible = "gpio-export";
75 gpio-export,name = "tp-link:power:usb1";
76 gpio-export,output = <1>;
77 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
81 gpio-export,name = "tp-link:power:usb2";
82 gpio-export,output = <1>;
83 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
110 #trigger-source-cells = <0>;
123 #trigger-source-cells = <0>;
132 #address-cells = <1>;
134 compatible = "jedec,spi-nor";
136 spi-max-frequency = <25000000>;
138 mtdparts: partitions {
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
149 phy0: ethernet-phy@0 {
152 qca,ar8327-initvals = <
153 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
154 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
155 0x50 0xc737c737 /* LED_CTRL0 */
156 0x54 0x00000000 /* LED_CTRL1 */
157 0x58 0x00000000 /* LED_CTRL2 */
158 0x5c 0x0030c300 /* LED_CTRL3 */
159 0x7c 0x0000007e /* PORT0_STATUS */
160 0x94 0x0000007e /* PORT6 STATUS */
168 mtd-mac-address = <&uboot 0x1fc00>;
169 mtd-mac-address-increment = <1>;
170 phy-handle = <&phy0>;
181 mtd-mac-address = <&uboot 0x1fc00>;
191 mtd-cal-data = <&art 0x1000>;
192 mtd-mac-address = <&uboot 0x1fc00>;
193 mtd-mac-address-increment = <(-1)>;