1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
18 compatible = "gpio-leds";
22 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 label = "blue:wlan2g";
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy1tpt";
32 label = "blue:wlan5g";
33 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0tpt";
38 label = "green:lan_link";
39 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
43 label = "green:lan_data";
44 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
49 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
54 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
59 compatible = "gpio-keys";
62 label = "Reset button";
63 linux,code = <KEY_RESTART>;
64 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
65 debounce-interval = <60>;
69 label = "Power button";
70 linux,code = <KEY_POWER>;
71 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
72 debounce-interval = <60>;
76 label = "LED control button";
78 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
79 debounce-interval = <60>;
84 linux,code = <KEY_WPS_BUTTON>;
85 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
91 compatible = "virtual,mdio-gpio";
93 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
94 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
98 phy4: ethernet-phy@4 {
100 device_type = "ethernet-phy";
101 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
114 compatible = "jedec,spi-nor";
116 spi-max-frequency = <25000000>;
118 partitions: partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
130 phy-handle = <&phy4>;