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";
81 label = "Reset button";
82 linux,code = <KEY_RESTART>;
83 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
84 debounce-interval = <60>;
88 label = "RFKILL button";
89 linux,code = <KEY_RFKILL>;
90 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
91 debounce-interval = <60>;
96 compatible = "gpio-export";
100 gpio-export,name = "tp-link:power:usb";
101 gpio-export,output = <1>;
102 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
120 compatible = "jedec,spi-nor";
122 spi-max-frequency = <25000000>;
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
131 reg = <0x000000 0x020000>;
137 reg = <0x020000 0xf30000>;
140 info: partition@f50000 {
141 label = "product-info";
142 reg = <0xf50000 0x020000>;
148 reg = <0xf70000 0x050000>;
153 label = "partition-table";
154 reg = <0xfc0000 0x010000>;
160 reg = <0xfd0000 0x020000>;
164 art: partition@ff0000 {
166 reg = <0xff0000 0x010000>;
177 phy0: ethernet-phy@0 {
181 qca,ar8327-initvals = <
182 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
183 0x7c 0x0000007e /* PORT0_STATUS */
191 mtd-mac-address = <&info 0x8>;
193 phy-handle = <&phy0>;
198 mtd-cal-data = <&art 0x1000>;
199 mtd-mac-address = <&info 0x8>;