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 linux,default-trigger = "phy0tpt";
37 label = "tp-link:green:wps";
38 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
42 label = "tp-link:green:wan";
43 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
47 label = "tp-link:orange:wan";
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 label = "tp-link:green:lan1";
53 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
57 label = "tp-link:green:lan2";
58 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
62 label = "tp-link:green:lan3";
63 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
67 label = "tp-link:green:lan4";
68 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
73 compatible = "gpio-keys";
76 label = "Reset button";
77 linux,code = <KEY_RESTART>;
78 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
79 debounce-interval = <60>;
83 label = "RFKILL button";
84 linux,code = <KEY_RFKILL>;
85 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
91 compatible = "gpio-export";
95 gpio-export,name = "tp-link:power:usb";
96 gpio-export,output = <1>;
97 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
115 compatible = "jedec,spi-nor";
117 spi-max-frequency = <25000000>;
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
126 reg = <0x000000 0x020000>;
131 compatible = "tplink,firmware";
133 reg = <0x020000 0xf30000>;
136 info: partition@f50000 {
137 label = "product-info";
138 reg = <0xf50000 0x020000>;
144 reg = <0xf70000 0x050000>;
149 label = "partition-table";
150 reg = <0xfc0000 0x010000>;
156 reg = <0xfd0000 0x020000>;
160 art: partition@ff0000 {
162 reg = <0xff0000 0x010000>;
173 phy0: ethernet-phy@0 {
177 qca,ar8327-initvals = <
178 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
179 0x7c 0x0000007e /* PORT0_STATUS */
187 mtd-mac-address = <&info 0x8>;
189 phy-handle = <&phy0>;
194 mtd-cal-data = <&art 0x1000>;
195 mtd-mac-address = <&info 0x8>;