ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_wd_mynet-n600.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_wd_mynet-nxxx.dtsi"
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 model = "Western Digital My Net N600";
8 compatible = "wd,mynet-n600", "qca,ar9344";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led-0 {
21 color = <LED_COLOR_ID_BLUE>;
22 function = LED_FUNCTION_WLAN;
23 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
24 };
25
26 led_power: led-1 {
27 color = <LED_COLOR_ID_BLUE>;
28 function = LED_FUNCTION_POWER;
29 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
30 };
31
32 led-2 {
33 color = <LED_COLOR_ID_BLUE>;
34 function = LED_FUNCTION_WAN;
35 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
36 };
37
38 led-3 {
39 color = <LED_COLOR_ID_BLUE>;
40 function = LED_FUNCTION_WPS;
41 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys";
47
48 reset {
49 linux,code = <KEY_RESTART>;
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
51 };
52
53 wps {
54 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 };
57 };
58 };
59
60 &gpio {
61 gpio_ext_lna0 {
62 gpio-hog;
63 gpios = <14 0>;
64 output-high;
65 line-name = "ext:lna0";
66 };
67
68 gpio_ext_lna1 {
69 gpio-hog;
70 gpios = <15 0>;
71 output-high;
72 line-name = "ext:lna1";
73 };
74 };
75
76 &pinmux {
77 pmx_led_switch: pinmux_led_switch {
78 pinctrl-single,bits =
79 <0x0 0x2c2b2a00 0xffffff00>, /* GPIO1-3 default to PHY2-4 */
80 <0x4 0x00000029 0x000000ff>; /* GPIO4 default to PHY1 */
81 };
82 };
83
84 &builtin_switch {
85 pinctrl-names = "default";
86 pinctrl-0 = <&pmx_led_switch>;
87 };
88
89 &usb {
90 status = "okay";
91 };
92
93 &eth0 {
94 status = "okay";
95
96 phy-handle = <&swphy0>;
97
98 gmac-config {
99 device = <&gmac>;
100 switch-phy-swap = <1>;
101 switch-only-mode = <1>;
102 };
103 };
104
105 &eth1 {
106 status = "okay";
107 };