1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
6 #include "qca9557.dtsi"
10 bootargs = "console=ttyS0,115200n8";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
19 label-mac-device = ð0;
23 compatible = "gpio-leds";
26 label = "tp-link:blue:power";
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
31 label = "tp-link:blue:wlan2g";
32 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
37 label = "tp-link:blue:wlan5g";
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
43 label = "tp-link:green:lan_link";
44 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
48 label = "tp-link:green:lan_data";
49 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53 label = "tp-link:blue:wps";
54 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
58 label = "tp-link:red:wps";
59 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
64 compatible = "gpio-keys";
67 label = "Reset button";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
74 label = "LED control button";
76 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
82 linux,code = <KEY_WPS_BUTTON>;
83 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
84 debounce-interval = <60>;
89 compatible = "virtual,mdio-gpio";
91 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
92 <&gpio 1 GPIO_ACTIVE_HIGH>; /* MDIO */
96 phy4: ethernet-phy@4 {
98 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
120 compatible = "jedec,spi-nor";
122 spi-max-frequency = <25000000>;
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
131 reg = <0x000000 0x020000>;
136 compatible = "tplink,firmware";
138 reg = <0x020000 0x5e0000>;
142 label = "partition-table";
143 reg = <0x600000 0x010000>;
147 info: partition@610000 {
149 reg = <0x610000 0x020000>;
155 reg = <0x630000 0x1c0000>;
159 art: partition@7f0000 {
161 reg = <0x7f0000 0x010000>;
171 phy-handle = <&phy4>;
172 pll-data = <0xa6000000 0x00000101 0x00001616>;
174 mtd-mac-address = <&info 0x8>;
180 mtd-cal-data = <&art 0x1000>;
181 mtd-mac-address = <&info 0x8>;
182 mtd-mac-address-increment = <(-1)>;