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>
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
17 compatible = "gpio-leds";
20 label = "green:system";
21 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
28 trigger-sources = <&hub_port0>;
29 linux,default-trigger = "usbport";
33 label = "green:wlan5g";
34 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
39 label = "green:wlan2g";
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy1tpt";
46 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
51 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-keys";
85 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
87 debounce-interval = <60>;
92 compatible = "gpio-export";
95 gpio-export,name = "tp-link:power:usb";
96 gpio-export,output = <1>;
97 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <25000000>;
122 mtdparts: partitions {
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
133 phy0: ethernet-phy@0 {
136 qca,mib-poll-interval = <500>;
138 qca,ar8327-initvals = <
139 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
140 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
141 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
142 0x10 0x00000080 /* POWER_ON_STRAP */
143 0x7c 0x0000007e /* PORT0_STATUS */
144 0x94 0x00000200 /* PORT6_STATUS */
152 pll-data = <0x03000101 0x00000101 0x00001919>;
155 phy-handle = <&phy0>;