1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2021 Cezary Jackiewicz
3 // Copyright (c) 2021, 2022 Lech Perczak
4 #include "qca956x.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/leds/common.h>
12 led-boot = &led_debug;
13 led-failsafe = &led_debug;
14 led-running = &led_debug;
15 led-upgrade = &led_debug;
16 label-mac-device = ð0;
20 compatible = "gpio-leds";
21 pinctrl-names = "default";
22 pinctrl-0 = <&enable_wlan_led_gpio>;
24 /* Hidden SMD LED below signal strength LEDs.
25 * Visible through slits underside of the case,
26 * and slightly through the case below signal state LEDs
29 function = LED_FUNCTION_DEBUG;
30 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
35 function = LED_FUNCTION_WLAN;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy1tpt";
43 compatible = "gpio-keys";
47 linux,code = <KEY_RESTART>;
48 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
54 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
61 linux,code = <KEY_RFKILL>;
62 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
63 debounce-interval = <60>;
67 /* This GPIO is used to reset whole board _including_ the modem */
69 compatible = "gpio-restart";
70 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
71 active-delay = <3000>;
72 inactive-delay = <1000>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <25000000>;
85 compatible = "fixed-partitions";
91 system_flash: flash@1 {
92 compatible = "spi-nand";
94 spi-max-frequency = <25000000>;
97 compatible = "fixed-partitions";
107 phy0: ethernet-phy@0 {
111 qca,ar8327-initvals = <
112 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
113 0x7c 0x0000007e /* PORT0_STATUS */
122 phy-handle = <&phy0>;
128 wifi_ath10k: wifi@0,0 {
129 compatible = "qcom,ath10k";
135 enable_wlan_led_gpio: pinmux_wlan_led_gpio {
136 pinctrl-single,bits = <0x10 0x0 0xff000000>;