]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: h700: Add LED1 for Anbernic RG35XX
authorChris Morgan <macromorgan@hotmail.com>
Fri, 18 Oct 2024 16:06:16 +0000 (11:06 -0500)
committerChen-Yu Tsai <wens@csie.org>
Sat, 22 Feb 2025 13:04:37 +0000 (21:04 +0800)
Add the second LED (red) to the Anbernic RG35XX series. The RG35XX has
3 LEDs: an orange one that is controlled directly by the PMIC; and a
green and red one that are controlled by GPIOs.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20241018160617.157083-4-macroalpha82@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts

index e37e77cd54b4ffef6a43bd7df4a2590459f069fd..43e31e9f14f848c1fdc68370601417c6faf266a7 100644 (file)
                        gpios = <&pio 8 12 GPIO_ACTIVE_HIGH>; /* PI12 */
                        default-state = "on";
                };
+
+               led-1 {
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
+                       gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>; /* PI11 */
+               };
        };
 
        reg_vcc5v: regulator-vcc5v { /* USB-C power input */