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:wlan2g";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 default-state = "off";
31 linux,default-trigger = "phy1tpt";
35 label = "tp-link:green:usb";
36 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
37 default-state = "off";
38 trigger-sources = <&hub_port0>;
39 linux,default-trigger = "usbport";
44 compatible = "gpio-keys";
47 label = "Reset button";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
55 linux,code = <KEY_WPS_BUTTON>;
56 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
62 compatible = "gpio-export";
65 gpio-export,name = "tp-link:power:usb";
66 gpio-export,output = <1>;
67 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
95 #trigger-source-cells = <0>;
101 label = "tp-link:green:wlan5g";
102 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
103 default-state = "off";
104 linux,default-trigger = "phy0tpt";
108 label = "tp-link:green:wan";
109 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
110 default-state = "off";
114 label = "tp-link:orange:wan";
115 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
116 default-state = "off";
120 label = "tp-link:green:lan1";
121 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
122 default-state = "off";
126 label = "tp-link:green:lan2";
127 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
128 default-state = "off";
132 label = "tp-link:green:lan3";
133 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
134 default-state = "off";
138 label = "tp-link:green:lan4";
139 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
140 default-state = "off";
144 label = "tp-link:green:wps";
145 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
146 default-state = "off";
155 compatible = "jedec,spi-nor";
157 spi-max-frequency = <25000000>;
159 mtdparts: partitions {
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
172 phy0: ethernet-phy@0 {
176 qca,ar8327-initvals = <
177 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
178 0x10 0x81000080 /* POWER_ON_STRIP */
179 0x50 0xcc35cc35 /* LED_CTRL0 */
180 0x54 0xcb37cb37 /* LED_CTRL1 */
181 0x58 0x00000000 /* LED_CTRL2 */
182 0x5c 0x00f3cf00 /* LED_CTRL3 */
183 0x7c 0x0000007e /* PORT0_STATUS */
191 pll-data = <0x03000101 0x00000101 0x00001919>;
194 mtd-mac-address = <&info 0x8>;
195 phy-handle = <&phy0>;
200 mtd-cal-data = <&art 0x1000>;
201 mtd-mac-address = <&info 0x8>;