ath79: fix dts whitespace
[openwrt/staging/aparcar.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 label = "blue:power";
28 color = <LED_COLOR_ID_BLUE>;
29 function = LED_FUNCTION_POWER;
30 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
31 };
32
33 led-2 {
34 color = <LED_COLOR_ID_BLUE>;
35 function = LED_FUNCTION_WAN;
36 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
37 };
38
39 led-3 {
40 color = <LED_COLOR_ID_BLUE>;
41 function = LED_FUNCTION_WPS;
42 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 linux,code = <KEY_RESTART>;
51 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 };
53
54 wps {
55 linux,code = <KEY_WPS_BUTTON>;
56 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
57 };
58 };
59 };
60
61 &gpio {
62 gpio_ext_lna0 {
63 gpio-hog;
64 gpios = <14 0>;
65 output-high;
66 line-name = "ext:lna0";
67 };
68
69 gpio_ext_lna1 {
70 gpio-hog;
71 gpios = <15 0>;
72 output-high;
73 line-name = "ext:lna1";
74 };
75 };
76
77 &pinmux {
78 pmx_led_switch: pinmux_led_switch {
79 pinctrl-single,bits =
80 <0x0 0x2c2b2a00 0xffffff00>, /* GPIO1-3 default to PHY2-4 */
81 <0x4 0x00000029 0x000000ff>; /* GPIO4 default to PHY1 */
82 };
83 };
84
85 &builtin_switch {
86 pinctrl-names = "default";
87 pinctrl-0 = <&pmx_led_switch>;
88 };
89
90 &usb {
91 status = "okay";
92 };
93
94 &eth0 {
95 status = "okay";
96
97 phy-handle = <&swphy0>;
98
99 gmac-config {
100 device = <&gmac>;
101 switch-phy-swap = <1>;
102 switch-only-mode = <1>;
103 };
104 };
105
106 &eth1 {
107 status = "okay";
108 };