rockchip: add Radxa CM3 IO board support
[openwrt/staging/jow.git] / target / linux / rockchip / patches-6.1 / 111-radxa-cm3-io-add-led-aliases.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Marius Durbaca <mariusd84@gmail.com>
3 Date: Tue Feb 20 15:05:27 2024 +0200
4 Subject: [PATCH] arm64: dts: rockchip: Update LED properties for Radxa
5 CM3 IO board
6
7 Add OpenWrt's LED aliases for showing system status.
8
9 Suggested-by: Tianling Shen <cnsztl@immortalwrt.org>
10 Signed-off-by: Marius Durbaca <mariusd84@gmail.com>
11 ---
12
13 --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
14 +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
15 @@ -16,6 +16,10 @@
16 aliases {
17 ethernet0 = &gmac1;
18 mmc1 = &sdmmc0;
19 + led-boot = &status_led;
20 + led-failsafe = &status_led;
21 + led-running = &status_led;
22 + led-upgrade = &status_led;
23 };
24
25 chosen: chosen {
26 --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3.dtsi
27 +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3.dtsi
28 @@ -17,7 +17,7 @@
29 leds {
30 compatible = "gpio-leds";
31
32 - led-0 {
33 + status_led: led-0 {
34 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
35 color = <LED_COLOR_ID_GREEN>;
36 function = LED_FUNCTION_STATUS;