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 "qca956x.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;
22 compatible = "gpio-leds";
25 label = "tp-link:blue:power";
26 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
30 label = "tp-link:blue:wlan2g";
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
36 label = "tp-link:blue:wlan5g";
37 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
42 label = "tp-link:green:lan_link";
43 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
47 label = "tp-link:green:lan_data";
48 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
52 label = "tp-link:blue:wps";
53 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
57 label = "tp-link:red:wps";
58 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
63 compatible = "gpio-keys";
66 label = "Reset button";
67 linux,code = <KEY_RESTART>;
68 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
69 debounce-interval = <60>;
73 label = "Power button";
74 linux,code = <KEY_POWER>;
75 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
76 debounce-interval = <60>;
80 label = "LED control button";
82 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
88 linux,code = <KEY_WPS_BUTTON>;
89 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
90 debounce-interval = <60>;
95 compatible = "virtual,mdio-gpio";
97 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
98 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
102 phy4: ethernet-phy@4 {
104 device_type = "ethernet-phy";
105 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
128 compatible = "jedec,spi-nor";
130 spi-max-frequency = <25000000>;
132 partitions: partitions {
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
144 phy-handle = <&phy4>;
146 mtd-mac-address = <&info 0x8>;
152 mtd-cal-data = <&art 0x1000>;
153 mtd-mac-address = <&info 0x8>;