mediatek: fix LED enumerators for MERCUSYS MR85X

Update the LED enumeration layout from 0, 1, 2 to 1, 2, 3. This aligns
the internal LED identifiers directly with physical LAN ports 1, 2, and 3
to improve code readability and eliminate off-by-one mapping confusion.

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24435
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
Mikhail Zhilkin authored and Jonas Jelonek committed 2026-08-20 23:49:57 +02:00
1 parent c9bdc4e980
commit 667661ff42
2 files changed
+6 -6

No files matched your search

@@ -60,14 +60,14 @@
led-2 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <0>;
function-enumerator = <1>;
gpios = <&pio 6 GPIO_ACTIVE_LOW>;
};
led-3 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;
function-enumerator = <2>;
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
};
@@ -80,7 +80,7 @@
led-5 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <2>;
function-enumerator = <3>;
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
};
};
@@ -176,9 +176,9 @@ mercusys,mr80x-v3)
;;
mercusys,mr85x|\
mercusys,mr85x-ubi)
ucidef_set_led_switch "lan0" "lan-0" "green:lan-0" "switch0" "0x01"
ucidef_set_led_switch "lan1" "lan-1" "green:lan-1" "switch0" "0x02"
ucidef_set_led_switch "lan2" "lan-2" "green:lan-2" "switch0" "0x04"
ucidef_set_led_switch "lan1" "lan-1" "green:lan-1" "switch0" "0x01"
ucidef_set_led_switch "lan2" "lan-2" "green:lan-2" "switch0" "0x02"
ucidef_set_led_switch "lan3" "lan-3" "green:lan-3" "switch0" "0x04"
ucidef_set_led_netdev "wan" "wan" "green:wan" "eth1" "link tx rx"
;;
mercusys,mr90x-v1|\