1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "qca9533_mikrotik_routerboard-16m.dtsi"
8 compatible = "mikrotik,routerboard-lhg-hb", "qca,qca9533";
9 model = "MikroTik RouterBOARD LHG-HB platform";
13 led-failsafe = &led_user;
14 led-upgrade = &led_user;
15 led-running = &led_user;
19 compatible = "gpio-leds";
20 pinctrl-names = "default";
21 pinctrl-0 = <&led_wan_pin>;
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_BLUE>;
26 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
32 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
36 function = LED_FUNCTION_LAN;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
42 function = LED_FUNCTION_WLAN;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
49 label = "green:rssilow";
50 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
54 label = "green:rssimediumlow";
55 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
59 label = "green:rssimediumhigh";
60 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
63 /* The rssihigh LED GPIO 16 is shared with the reset button, so it remains
64 unregistered here to avoid conflict.
67 label = "green:rssihigh";
68 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
83 phy-handle = <&swphy0>;
87 switch-phy-swap = <1>;
92 compatible = "syscon", "simple-mfd";
96 led_wan_pin: pinmux_led_wan_pin {
97 pinctrl-single,bits = <0x4 0x0 0xff>;