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 "qca956x.dtsi"
11 bootargs = "console=ttyS0,115200n8";
19 compatible = "gpio-leds";
22 label = "tp-link:green:system";
23 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
28 label = "tp-link:green:usb";
29 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&hub_port0>;
31 linux,default-trigger = "usbport";
35 label = "tp-link:green:wlan5g";
36 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
41 label = "tp-link:green:wlan2g";
42 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
47 label = "tp-link:green:wan";
48 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
52 label = "tp-link:orange:wan";
53 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
57 label = "tp-link:green:lan1";
58 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
62 label = "tp-link:green:lan2";
63 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 label = "tp-link:green:lan3";
68 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
72 label = "tp-link:green:lan4";
73 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
77 label = "tp-link:green:wps";
78 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
83 compatible = "gpio-keys";
86 label = "Reset button";
87 linux,code = <KEY_RESTART>;
88 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
89 debounce-interval = <60>;
94 linux,code = <KEY_WPS_BUTTON>;
95 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
96 debounce-interval = <60>;
101 compatible = "gpio-export";
104 gpio-export,name = "tp-link:power:usb";
105 gpio-export,output = <1>;
106 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
128 #address-cells = <1>;
134 #trigger-source-cells = <0>;
143 compatible = "jedec,spi-nor";
145 spi-max-frequency = <25000000>;
147 mtdparts: partitions {
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
160 phy0: ethernet-phy@0 {
164 qca,ar8327-initvals = <
165 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
166 0x10 0x81000080 /* POWER_ON_STRIP */
167 0x50 0xcc35cc35 /* LED_CTRL0 */
168 0x54 0xcb37cb37 /* LED_CTRL1 */
169 0x58 0x00000000 /* LED_CTRL2 */
170 0x5c 0x00f3cf00 /* LED_CTRL3 */
171 0x7c 0x0000007e /* PORT0_STATUS */
179 pll-data = <0x03000101 0x00000101 0x00001919>;
182 mtd-mac-address = <&info 0x8>;
183 phy-handle = <&phy0>;
188 mtd-cal-data = <&art 0x1000>;
189 mtd-mac-address = <&info 0x8>;