]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs
authorChen-Yu Tsai <wens@kernel.org>
Mon, 2 Mar 2026 15:27:22 +0000 (23:27 +0800)
committerChen-Yu Tsai <wens@kernel.org>
Tue, 10 Mar 2026 13:25:41 +0000 (21:25 +0800)
The Avaota A1 board features 4 RGB LEDs in a string connected to the
SoC's LED controller.

Enable the LED controller and add device nodes for them. The timings
were copied from the downstream vendor DTS. The design does not specify
what these LEDs are for, nor are there any markings on the board for
them, so just use them as indicators.

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20260302152724.3197587-4-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts

index 054d0357c139f5f02f1be6be313e95b326e2da40..7c24121de88f304fd02940ec03c5bce0a283e08f 100644 (file)
@@ -6,6 +6,7 @@
 #include "sun55i-a523.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Avaota A1";
        status = "okay";
 };
 
+&ledc {
+       pinctrl-names = "default";
+       pinctrl-0 = <&ledc_ph_pin>;
+       allwinner,pixel-format = "grb";
+       allwinner,t0l-ns = <800>;
+       allwinner,t0h-ns = <300>;
+       allwinner,t1l-ns = <320>;
+       allwinner,t1h-ns = <800>;
+       allwinner,treset-ns = <84>;
+       status = "okay";
+
+       multi-led@0 {
+               reg = <0x0>;
+               color = <LED_COLOR_ID_RGB>;
+               function = LED_FUNCTION_INDICATOR;
+               function-enumerator = <0>;
+       };
+
+       multi-led@1 {
+               reg = <0x1>;
+               color = <LED_COLOR_ID_RGB>;
+               function = LED_FUNCTION_INDICATOR;
+               function-enumerator = <1>;
+       };
+
+       multi-led@2 {
+               reg = <0x2>;
+               color = <LED_COLOR_ID_RGB>;
+               function = LED_FUNCTION_INDICATOR;
+               function-enumerator = <2>;
+       };
+
+       multi-led@3 {
+               reg = <0x3>;
+               color = <LED_COLOR_ID_RGB>;
+               function = LED_FUNCTION_INDICATOR;
+               function-enumerator = <3>;
+       };
+};
+
 &mdio0 {
        ext_rgmii0_phy: ethernet-phy@1 {
                compatible = "ethernet-phy-ieee802.3-c22";