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";
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 label-mac-device = ð0;
23 compatible = "gpio-leds";
26 label = "tp-link:green:power";
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
32 label = "tp-link:green:wlan2g";
33 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy1tpt";
38 label = "tp-link:green:wlan5g";
39 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy0tpt";
44 label = "tp-link:green:lan";
45 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
49 label = "tp-link:green:wan";
50 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
54 label = "tp-link:amber:wan";
55 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
59 label = "tp-link:green:wps";
60 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
65 compatible = "gpio-keys";
68 label = "Reset button";
69 linux,code = <KEY_RESTART>;
70 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
71 debounce-interval = <60>;
76 linux,code = <KEY_WPS_BUTTON>;
77 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
78 debounce-interval = <60>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <25000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
112 reg = <0x000000 0x020000>;
116 mac: partition@20000 {
118 reg = <0x020000 0x010000>;
123 compatible = "denx,uimage";
125 reg = <0x030000 0x7a0000>;
130 reg = <0x7d0000 0x020000>;
134 art: partition@7f0000 {
136 reg = <0x7f0000 0x010000>;
148 phy0: ethernet-phy@0 {
151 qca,mib-poll-interval = <500>;
153 qca,ar8327-initvals = <
154 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
155 0x7c 0x0000007e /* PORT0_STATUS */
164 mtd-mac-address = <&mac 0x8>;
165 phy-handle = <&phy0>;
171 mtd-cal-data = <&art 0x1000>;
172 mtd-mac-address = <&mac 0x8>;