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_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
18 compatible = "gpio-leds";
21 label = "green:system";
22 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
23 linux,default-trigger = "heartbeat";
27 function = LED_FUNCTION_WLAN;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy0tpt";
34 function = LED_FUNCTION_WPS;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
40 function = LED_FUNCTION_WAN;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 function = LED_FUNCTION_WAN;
47 color = <LED_COLOR_ID_ORANGE>;
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
53 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
58 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
63 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
68 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
73 compatible = "gpio-keys";
76 label = "Reset button";
77 linux,code = <KEY_RESTART>;
78 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
79 debounce-interval = <60>;
83 label = "RFKILL button";
84 linux,code = <KEY_RFKILL>;
85 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
94 phy0: ethernet-phy@0 {
97 qca,mib-poll-interval = <500>;
99 qca,ar8327-initvals = <
100 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
101 0x7c 0x0000007e /* PORT0_STATUS */
110 phy-handle = <&phy0>;