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 label-mac-device = ð0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
23 compatible = "gpio-leds";
26 label = "tp-link:blue:power";
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31 label = "tp-link:blue:wlan2g";
32 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
37 label = "tp-link:blue:wlan5g";
38 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
43 label = "tp-link:green:lan_link";
44 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
48 label = "tp-link:green:lan_data";
49 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
53 label = "tp-link:blue:wps";
54 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
58 label = "tp-link:red:wps";
59 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
64 compatible = "gpio-keys";
67 label = "Reset button";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
74 label = "Power button";
75 linux,code = <KEY_POWER>;
76 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
81 label = "LED control button";
83 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
84 debounce-interval = <60>;
89 linux,code = <KEY_WPS_BUTTON>;
90 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
91 debounce-interval = <60>;
96 compatible = "virtual,mdio-gpio";
98 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
99 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
100 #address-cells = <1>;
103 phy4: ethernet-phy@4 {
105 device_type = "ethernet-phy";
106 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
129 compatible = "jedec,spi-nor";
131 spi-max-frequency = <25000000>;
133 partitions: partitions {
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
145 phy-handle = <&phy4>;
147 mtd-mac-address = <&info 0x8>;
153 mtd-cal-data = <&art 0x1000>;
154 mtd-mac-address = <&info 0x8>;