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;
22 compatible = "gpio-leds";
25 label = "tp-link:green:system";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 label = "tp-link:green:usb1";
32 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
33 default-state = "off";
34 trigger-sources = <&hub_port1>;
35 linux,default-trigger = "usbport";
39 label = "tp-link:green:usb2";
40 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
41 default-state = "off";
42 trigger-sources = <&hub_port0>;
43 linux,default-trigger = "usbport";
47 label = "tp-link:green:wlan2g";
48 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49 default-state = "off";
50 linux,default-trigger = "phy1tpt";
54 label = "tp-link:green:qss";
55 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56 default-state = "off";
61 compatible = "gpio-keys";
64 label = "Reset button";
65 linux,code = <KEY_RESTART>;
66 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
67 debounce-interval = <60>;
72 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>;
106 #address-cells = <1>;
112 #trigger-source-cells = <0>;
121 #address-cells = <1>;
127 #trigger-source-cells = <0>;
136 compatible = "jedec,spi-nor";
138 spi-max-frequency = <25000000>;
140 mtdparts: partitions {
141 compatible = "fixed-partitions";
142 #address-cells = <1>;
151 phy0: ethernet-phy@0 {
154 qca,ar8327-initvals = <
155 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
156 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
157 0x50 0xc737c737 /* LED_CTRL0 */
158 0x54 0x00000000 /* LED_CTRL1 */
159 0x58 0x00000000 /* LED_CTRL2 */
160 0x5c 0x0030c300 /* LED_CTRL3 */
161 0x7c 0x0000007e /* PORT0_STATUS */
162 0x94 0x0000007e /* PORT6 STATUS */
170 mtd-mac-address = <&uboot 0x1fc00>;
171 mtd-mac-address-increment = <1>;
172 phy-handle = <&phy0>;
173 pll-data = <0x56000000 0x00000101 0x00001616>;
184 mtd-mac-address = <&uboot 0x1fc00>;
185 pll-data = <0x03000101 0x00000101 0x00001616>;
195 mtd-cal-data = <&art 0x1000>;
196 mtd-mac-address = <&uboot 0x1fc00>;