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";
16 led-failsafe = &system;
17 led-running = &system;
18 led-upgrade = &system;
22 compatible = "gpio-leds";
25 label = "tp-link:green:system";
26 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "heartbeat";
31 label = "tp-link:green:wlan";
32 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
33 default-state = "off";
34 linux,default-trigger = "phy0tpt";
38 label = "tp-link:green:wps";
39 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
40 default-state = "off";
44 label = "tp-link:green:wan";
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 default-state = "off";
50 label = "tp-link:orange:wan";
51 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 default-state = "off";
56 label = "tp-link:green:lan1";
57 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
58 default-state = "off";
62 label = "tp-link:green:lan2";
63 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
64 default-state = "off";
68 label = "tp-link:green:lan3";
69 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
70 default-state = "off";
74 label = "tp-link:green:lan4";
75 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
76 default-state = "off";
81 compatible = "gpio-keys";
84 label = "Reset button";
85 linux,code = <KEY_RESTART>;
86 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
87 debounce-interval = <60>;
91 label = "RFKILL button";
92 linux,code = <KEY_RFKILL>;
93 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
94 debounce-interval = <60>;
99 compatible = "gpio-export";
103 gpio-export,name = "tp-link:power:usb";
104 gpio-export,output = <1>;
105 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
123 compatible = "jedec,spi-nor";
125 spi-max-frequency = <25000000>;
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
134 reg = <0x000000 0x020000>;
139 compatible = "tplink,firmware";
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>;