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 "qca9557.dtsi"
11 device_type = "memory";
12 reg = <0x0 0x8000000>;
16 bootargs = "console=ttyS0,115200n8";
24 compatible = "gpio-leds";
27 label = "tp-link:green:system";
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 label = "tp-link:green:usb1";
34 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
35 default-state = "off";
36 trigger-sources = <&hub_port0>;
37 linux,default-trigger = "usbport";
41 label = "tp-link:green:usb2";
42 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
43 default-state = "off";
44 trigger-sources = <&hub_port1>;
45 linux,default-trigger = "usbport";
49 label = "tp-link:green:wlan2g";
50 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
51 default-state = "off";
52 linux,default-trigger = "phy1tpt";
56 label = "tp-link:green:qss";
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
58 default-state = "off";
62 label = "tp-link:green:wlan5g";
63 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
64 default-state = "off";
65 linux,default-trigger = "phy0tpt";
70 compatible = "gpio-keys";
75 label = "Reset button";
76 linux,code = <KEY_RESTART>;
77 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
78 debounce-interval = <60>;
82 linux,code = <KEY_RFKILL>;
83 linux,input-type = <EV_SW>;
84 debounce-interval = <60>;
89 compatible = "gpio-export";
93 gpio-export,name = "tp-link:power:usb1";
94 gpio-export,output = <1>;
95 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
99 gpio-export,name = "tp-link:power:usb2";
100 gpio-export,output = <1>;
101 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
128 #trigger-source-cells = <0>;
141 #trigger-source-cells = <0>;
150 #address-cells = <1>;
152 compatible = "jedec,spi-nor";
154 spi-max-frequency = <25000000>;
157 compatible = "fixed-partitions";
158 #address-cells = <1>;
163 reg = <0x000000 0x020000>;
169 reg = <0x020000 0xfd0000>;
172 art: partition@ff0000 {
174 reg = <0xff0000 0x010000>;
184 phy0: ethernet-phy@0 {
187 qca,ar8327-initvals = <
188 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
189 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
190 0x50 0xc737c737 /* LED_CTRL0 */
191 0x54 0x00000000 /* LED_CTRL1 */
192 0x58 0x00000000 /* LED_CTRL2 */
193 0x5c 0x0030c300 /* LED_CTRL3 */
194 0x7c 0x0000007e /* PORT0_STATUS */
195 0x94 0x0000007e /* PORT6 STATUS */
203 phy1: ethernet-phy@1 {
211 mtd-mac-address = <&uboot 0x1fc00>;
212 mtd-mac-address-increment = <1>;
213 phy-handle = <&phy0>;
219 mtd-mac-address = <&uboot 0x1fc00>;
220 phy-handle = <&phy1>;
230 mtd-cal-data = <&art 0x1000>;
231 mtd-mac-address = <&uboot 0x1fc00>;