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>;
24 linux,default-trigger = "heartbeat";
28 label = "tp-link:green:wlan";
29 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
30 default-state = "off";
31 linux,default-trigger = "phy0tpt";
35 label = "tp-link:green:wps";
36 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
37 default-state = "off";
41 label = "tp-link:green:wan";
42 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43 default-state = "off";
47 label = "tp-link:orange:wan";
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 default-state = "off";
53 label = "tp-link:green:lan1";
54 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
55 default-state = "off";
59 label = "tp-link:green:lan2";
60 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
61 default-state = "off";
65 label = "tp-link:green:lan3";
66 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
67 default-state = "off";
71 label = "tp-link:green:lan4";
72 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
73 default-state = "off";
78 compatible = "gpio-keys";
83 label = "Reset button";
84 linux,code = <KEY_RESTART>;
85 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
90 label = "RFKILL button";
91 linux,code = <KEY_RFKILL>;
92 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
93 debounce-interval = <60>;
98 compatible = "gpio-export";
102 gpio-export,name = "tp-link:power:usb";
103 gpio-export,output = <1>;
104 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
122 #address-cells = <1>;
124 compatible = "jedec,spi-nor";
126 spi-max-frequency = <25000000>;
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
135 reg = <0x000000 0x020000>;
141 reg = <0x020000 0xf30000>;
144 info: partition@f50000 {
145 label = "product-info";
146 reg = <0xf50000 0x020000>;
152 reg = <0xf70000 0x050000>;
157 label = "partition-table";
158 reg = <0xfc0000 0x010000>;
164 reg = <0xfd0000 0x020000>;
168 art: partition@ff0000 {
170 reg = <0xff0000 0x010000>;
181 phy0: ethernet-phy@0 {
185 qca,ar8327-initvals = <
186 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
187 0x7c 0x0000007e /* PORT0_STATUS */
195 mtd-mac-address = <&info 0x8>;
197 phy-handle = <&phy0>;
202 mtd-cal-data = <&art 0x1000>;
203 mtd-mac-address = <&info 0x8>;