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";
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 6 GPIO_ACTIVE_LOW>;
31 label = "tp-link:green:usb";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&hub_port0>;
34 linux,default-trigger = "usbport";
38 label = "tp-link:green:wlan5g";
39 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy0tpt";
44 label = "tp-link:green:wlan2g";
45 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy1tpt";
50 label = "tp-link:green:wan";
51 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
55 label = "tp-link:orange:wan";
56 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
60 label = "tp-link:green:lan1";
61 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
65 label = "tp-link:green:lan2";
66 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
70 label = "tp-link:green:lan3";
71 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
75 label = "tp-link:green:lan4";
76 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
80 label = "tp-link:green:wps";
81 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
86 compatible = "gpio-keys";
90 linux,code = <KEY_WPS_BUTTON>;
91 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
92 debounce-interval = <60>;
97 compatible = "gpio-export";
100 gpio-export,name = "tp-link:power:usb";
101 gpio-export,output = <1>;
102 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
124 #address-cells = <1>;
130 #trigger-source-cells = <0>;
139 compatible = "jedec,spi-nor";
141 spi-max-frequency = <25000000>;
143 mtdparts: partitions {
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
156 phy0: ethernet-phy@0 {
160 qca,ar8327-initvals = <
161 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
162 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
163 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
164 0x10 0x00000080 /* POWER_ON_STRIP */
165 0x7c 0x0000007e /* PORT0_STATUS */
166 0x94 0x00000200 /* PORT6_STATUS */
174 pll-data = <0x03000101 0x00000101 0x00001919>;
177 mtd-mac-address = <&info 0x8>;
178 phy-handle = <&phy0>;
183 mtd-cal-data = <&art 0x1000>;
184 mtd-mac-address = <&info 0x8>;