1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
6 #include "qca956x.dtsi"
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = ð0;
18 compatible = "gpio-leds";
21 label = "tp-link:green:system";
22 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 label = "tp-link:green:usb";
28 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&hub_port0>;
30 linux,default-trigger = "usbport";
34 label = "tp-link:green:wlan5g";
35 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
40 label = "tp-link:green:wlan2g";
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
46 label = "tp-link:green:wan";
47 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
51 label = "tp-link:orange:wan";
52 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
56 label = "tp-link:green:lan1";
57 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
61 label = "tp-link:green:lan2";
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
66 label = "tp-link:green:lan3";
67 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 label = "tp-link:green:lan4";
72 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
76 label = "tp-link:green:wps";
77 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-keys";
86 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
88 debounce-interval = <60>;
93 compatible = "gpio-export";
96 gpio-export,name = "tp-link:power:usb";
97 gpio-export,output = <1>;
98 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
120 #address-cells = <1>;
126 #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>;
153 phy0: ethernet-phy@0 {
156 qca,mib-poll-interval = <500>;
158 qca,ar8327-initvals = <
159 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
160 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
161 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
162 0x10 0x00000080 /* POWER_ON_STRIP */
163 0x7c 0x0000007e /* PORT0_STATUS */
164 0x94 0x00000200 /* PORT6_STATUS */
172 pll-data = <0x03000101 0x00000101 0x00001919>;
175 mtd-mac-address = <&info 0x8>;
176 phy-handle = <&phy0>;
182 mtd-cal-data = <&art 0x1000>;
183 mtd-mac-address = <&info 0x8>;