ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_mikrotik_routerboard-lhg-hb.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9533_mikrotik_routerboard-16m.dtsi"
6
7 / {
8 compatible = "mikrotik,routerboard-lhg-hb", "qca,qca9533";
9 model = "MikroTik RouterBOARD LHG-HB platform";
10
11 aliases {
12 led-boot = &led_user;
13 led-failsafe = &led_user;
14 led-upgrade = &led_user;
15 led-running = &led_user;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20 pinctrl-names = "default";
21 pinctrl-0 = <&led_wan_pin>;
22
23 power {
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_BLUE>;
26 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
27 default-state = "on";
28 };
29
30 led_user: user {
31 label = "green:user";
32 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 };
34
35 lan {
36 function = LED_FUNCTION_LAN;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
39 };
40
41 wlan {
42 function = LED_FUNCTION_WLAN;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
46 };
47
48 rssilow {
49 label = "green:rssilow";
50 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
51 };
52
53 rssimediumlow {
54 label = "green:rssimediumlow";
55 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
56 };
57
58 rssimediumhigh {
59 label = "green:rssimediumhigh";
60 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
61 };
62
63 /* The rssihigh LED GPIO 16 is shared with the reset button, so it remains
64 unregistered here to avoid conflict.
65
66 rssihigh {
67 label = "green:rssihigh";
68 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
69 };
70 */
71 };
72 };
73
74 &wmac {
75 status = "okay";
76
77 qca,no-eeprom;
78 };
79
80 &eth0 {
81 status = "okay";
82
83 phy-handle = <&swphy0>;
84
85 gmac-config {
86 device = <&gmac>;
87 switch-phy-swap = <1>;
88 };
89 };
90
91 &eth1 {
92 compatible = "syscon", "simple-mfd";
93 };
94
95 &pinmux {
96 led_wan_pin: pinmux_led_wan_pin {
97 pinctrl-single,bits = <0x4 0x0 0xff>;
98 };
99 };