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 bootargs = "console=ttyS0,115200n8";
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
20 label-mac-device = ð0;
24 compatible = "gpio-leds";
27 label = "tp-link:blue:power";
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 label = "tp-link:blue:wlan2g";
33 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy1tpt";
38 label = "tp-link:blue:wlan5g";
39 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy0tpt";
44 label = "tp-link:green:lan_link";
45 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
49 label = "tp-link:green:lan_data";
50 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
54 label = "tp-link:blue:wps";
55 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
59 label = "tp-link:red:wps";
60 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
65 compatible = "gpio-keys";
68 label = "Reset button";
69 linux,code = <KEY_RESTART>;
70 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
71 debounce-interval = <60>;
75 label = "LED control button";
77 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
78 debounce-interval = <60>;
83 linux,code = <KEY_WPS_BUTTON>;
84 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
85 debounce-interval = <60>;
90 compatible = "virtual,mdio-gpio";
92 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
93 <&gpio 1 GPIO_ACTIVE_HIGH>; /* MDIO */
97 phy0: ethernet-phy@4 {
99 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <25000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
132 reg = <0x000000 0x020000>;
137 compatible = "tplink,firmware";
139 reg = <0x020000 0x5e0000>;
143 label = "partition-table";
144 reg = <0x600000 0x010000>;
148 info: partition@610000 {
150 reg = <0x610000 0x020000>;
156 reg = <0x630000 0x1c0000>;
160 art: partition@7f0000 {
162 reg = <0x7f0000 0x010000>;
171 mtd-mac-address = <&info 0x8>;
172 pll-data = <0xa6000000 0x00000101 0x00001616>;
173 phy-handle = <&phy0>;
178 mtd-cal-data = <&art 0x1000>;
179 mtd-mac-address = <&info 0x8>;
180 mtd-mac-address-increment = <(-1)>;