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 device_type = "memory";
12 reg = <0x0 0x4000000>;
16 bootargs = "console=ttyS0,115200n8";
24 compatible = "gpio-leds";
27 label = "tp-link:green:system";
28 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "heartbeat";
33 label = "tp-link:green:usb";
34 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
35 default-state = "off";
36 trigger-sources = <&hub_port0>;
37 linux,default-trigger = "usbport";
41 label = "tp-link:green:wlan";
42 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
43 default-state = "off";
44 linux,default-trigger = "phy0tpt";
48 label = "tp-link:green:wps";
49 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
50 default-state = "off";
54 label = "tp-link:green:wan";
55 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56 default-state = "off";
60 label = "tp-link:green:lan1";
61 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
62 default-state = "off";
66 label = "tp-link:green:lan2";
67 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
68 default-state = "off";
72 label = "tp-link:green:lan3";
73 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
74 default-state = "off";
78 label = "tp-link:green:lan4";
79 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
80 default-state = "off";
85 compatible = "gpio-keys";
90 label = "Reset button";
91 linux,code = <KEY_RESTART>;
92 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
93 debounce-interval = <60>;
97 label = "RFKILL button";
98 linux,code = <KEY_RFKILL>;
99 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
100 debounce-interval = <60>;
105 compatible = "gpio-export";
109 gpio-export,name = "tp-link:power:usb";
110 gpio-export,output = <1>;
111 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
133 #trigger-source-cells = <0>;
142 #address-cells = <1>;
144 compatible = "jedec,spi-nor";
146 spi-max-frequency = <25000000>;
149 compatible = "fixed-partitions";
150 #address-cells = <1>;
155 reg = <0x000000 0x020000>;
161 reg = <0x020000 0xf30000>;
164 info: partition@f50000 {
165 label = "product-info";
166 reg = <0xf50000 0x020000>;
172 reg = <0xf70000 0x050000>;
177 label = "partition-table";
178 reg = <0xfc0000 0x010000>;
184 reg = <0xfd0000 0x020000>;
188 art: partition@ff0000 {
190 reg = <0xff0000 0x010000>;
201 phy0: ethernet-phy@0 {
205 qca,ar8327-initvals = <
206 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
207 0x7c 0x0000007e /* PORT0_STATUS */
215 mtd-mac-address = <&info 0x8>;
216 phy-handle = <&phy0>;
221 mtd-cal-data = <&art 0x1000>;
222 mtd-mac-address = <&info 0x8>;