1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
18 compatible = "gpio-leds";
21 label = "green:system";
22 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 function = LED_FUNCTION_USB;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&hub_port0>;
31 linux,default-trigger = "usbport";
35 label = "green:wlan5g";
36 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
41 label = "green:wlan2g";
42 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
47 function = LED_FUNCTION_WAN;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_WAN;
54 color = <LED_COLOR_ID_ORANGE>;
55 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
60 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
65 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
79 function = LED_FUNCTION_WPS;
80 color = <LED_COLOR_ID_GREEN>;
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>;
123 compatible = "jedec,spi-nor";
125 spi-max-frequency = <25000000>;
127 mtdparts: partitions {
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
138 phy0: ethernet-phy@0 {
141 qca,mib-poll-interval = <500>;
143 qca,ar8327-initvals = <
144 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
145 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
146 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
147 0x10 0x00000080 /* POWER_ON_STRAP */
148 0x7c 0x0000007e /* PORT0_STATUS */
149 0x94 0x00000200 /* PORT6_STATUS */
157 pll-data = <0x03000101 0x00000101 0x00001919>;
160 phy-handle = <&phy0>;