1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "ar9344_wd_mynet-nxxx.dtsi"
4 #include <dt-bindings/leds/common.h>
7 model = "Western Digital My Net N600";
8 compatible = "wd,mynet-n600", "qca,ar9344";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-leds";
21 color = <LED_COLOR_ID_BLUE>;
22 function = LED_FUNCTION_WLAN;
23 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 color = <LED_COLOR_ID_BLUE>;
29 function = LED_FUNCTION_POWER;
30 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
34 color = <LED_COLOR_ID_BLUE>;
35 function = LED_FUNCTION_WAN;
36 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
40 color = <LED_COLOR_ID_BLUE>;
41 function = LED_FUNCTION_WPS;
42 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
47 compatible = "gpio-keys";
50 linux,code = <KEY_RESTART>;
51 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
56 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
66 line-name = "ext:lna0";
73 line-name = "ext:lna1";
78 pmx_led_switch: pinmux_led_switch {
80 <0x0 0x2c2b2a00 0xffffff00>, /* GPIO1-3 default to PHY2-4 */
81 <0x4 0x00000029 0x000000ff>; /* GPIO4 default to PHY1 */
86 pinctrl-names = "default";
87 pinctrl-0 = <&pmx_led_switch>;
97 phy-handle = <&swphy0>;
101 switch-phy-swap = <1>;
102 switch-only-mode = <1>;