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";
22 /* Hidden SMD LED below signal strength LEDs.
23 * Visible through slits underside of the case,
24 * and slightly through the case below signal state LEDs
27 function = LED_FUNCTION_DEBUG;
28 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-keys";
38 linux,code = <KEY_RESTART>;
39 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
45 linux,code = <KEY_WPS_BUTTON>;
46 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
47 debounce-interval = <60>;
51 /* This GPIO is used to reset whole board _including_ the modem */
53 compatible = "gpio-restart";
54 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
55 active-delay = <3000>;
56 inactive-delay = <1000>;
64 compatible = "jedec,spi-nor";
66 spi-max-frequency = <25000000>;
69 compatible = "fixed-partitions";
75 system_flash: flash@1 {
76 compatible = "spi-nand";
78 spi-max-frequency = <25000000>;
81 compatible = "fixed-partitions";
91 phy0: ethernet-phy@0 {
95 qca,ar8327-initvals = <
96 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
97 0x7c 0x0000007e /* PORT0_STATUS */
106 phy-handle = <&phy0>;
112 wifi_ath10k: wifi@0,0 {
113 compatible = "qcom,ath10k";