ath79: use gpios for switch management in WZR-HP-G300NH variants
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_openmesh_mr600-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_openmesh_mr600.dtsi"
4
5 / {
6 compatible = "openmesh,mr600-v2", "qca,ar9344";
7 model = "OpenMesh MR600 v2";
8
9 aliases {
10 led-boot = &led_power_blue;
11 led-failsafe = &led_power_blue;
12 led-running = &led_power_blue;
13 led-upgrade = &led_power_blue;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 wifi5g_red {
20 label = "red:wifi5g";
21 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
22 };
23
24 wps_blue {
25 label = "blue:wps";
26 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
27 };
28
29 led_power_blue: power_blue {
30 label = "blue:power";
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 default-state = "on";
33 };
34
35 wifi2g_green {
36 label = "green:wifi2g";
37 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy1tpt";
39 };
40
41 wifi2g_yellow {
42 label = "yellow:wifi2g";
43 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
44 };
45
46 wifi2g_red {
47 label = "red:wifi2g";
48 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
49 };
50
51 wifi5g_green {
52 label = "green:wifi5g";
53 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
55 };
56
57 wifi5g_yellow {
58 label = "yellow:wifi5g";
59 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 watchdog {
64 compatible = "linux,wdt-gpio";
65 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
66 hw_algo = "toggle";
67 /* hw_margin_ms is actually 300s but driver limits it to 60s */
68 hw_margin_ms = <60000>;
69 always-running;
70 };
71 };