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>
7 #include <dt-bindings/leds/common.h>
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_POWER;
23 color = <LED_COLOR_ID_BLUE>;
24 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 label = "blue:wlan2g";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy1tpt";
34 label = "blue:wlan5g";
35 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
40 label = "green:lan_link";
41 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
45 label = "green:lan_data";
46 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_WPS;
51 color = <LED_COLOR_ID_BLUE>;
52 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
56 function = LED_FUNCTION_WPS;
57 color = <LED_COLOR_ID_RED>;
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>;
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <25000000>;
122 partitions: partitions {
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
134 phy-handle = <&phy4>;