* [PATCH 0/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs
@ 2026-02-25 16:08 Chen-Yu Tsai
2026-02-25 16:08 ` [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC Chen-Yu Tsai
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Chen-Yu Tsai @ 2026-02-25 16:08 UTC (permalink / raw)
To: Lee Jones, Pavel Machek, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel,
linux-leds
Hi folks,
This series enables the RGB LEDs found on the Avaota A1 board. The LEDs
are connected in series to the SoC's LED controller.
Patch 1 adds a new compatible string for the LED controller found in the
Allwinner A523 SoC family.
Patch 2 adds a device node for the LED controller to the dtsi file.
Patch 3 enables the LEDs found on the Avaota A1 board.
Please have a look.
Thanks
ChenYu
Chen-Yu Tsai (3):
dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC
arm64: dts: allwinner: sun55i-a523: Add LED controller
arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs
.../leds/allwinner,sun50i-a100-ledc.yaml | 1 +
.../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 22 ++++++++++
.../dts/allwinner/sun55i-t527-avaota-a1.dts | 41 +++++++++++++++++++
3 files changed, 64 insertions(+)
--
2.47.3
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC
2026-02-25 16:08 [PATCH 0/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs Chen-Yu Tsai
@ 2026-02-25 16:08 ` Chen-Yu Tsai
2026-02-25 16:58 ` Jernej Škrabec
2026-02-26 7:51 ` Krzysztof Kozlowski
2026-02-25 16:08 ` [PATCH 2/3] arm64: dts: allwinner: sun55i-a523: Add LED controller Chen-Yu Tsai
2026-02-25 16:08 ` [PATCH 3/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs Chen-Yu Tsai
2 siblings, 2 replies; 9+ messages in thread
From: Chen-Yu Tsai @ 2026-02-25 16:08 UTC (permalink / raw)
To: Lee Jones, Pavel Machek, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel,
linux-leds
The Allwinner A523 SoC family features an identical LED controller as
found on the A100.
Add a SoC-specific compatible for it, with fallback to the A100 one.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../devicetree/bindings/leds/allwinner,sun50i-a100-ledc.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/leds/allwinner,sun50i-a100-ledc.yaml b/Documentation/devicetree/bindings/leds/allwinner,sun50i-a100-ledc.yaml
index 760cb336dccb..0b73fe5b662f 100644
--- a/Documentation/devicetree/bindings/leds/allwinner,sun50i-a100-ledc.yaml
+++ b/Documentation/devicetree/bindings/leds/allwinner,sun50i-a100-ledc.yaml
@@ -21,6 +21,7 @@ properties:
- enum:
- allwinner,sun20i-d1-ledc
- allwinner,sun50i-r329-ledc
+ - allwinner,sun55i-a523-ledc
- const: allwinner,sun50i-a100-ledc
reg:
--
2.47.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/3] arm64: dts: allwinner: sun55i-a523: Add LED controller
2026-02-25 16:08 [PATCH 0/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs Chen-Yu Tsai
2026-02-25 16:08 ` [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC Chen-Yu Tsai
@ 2026-02-25 16:08 ` Chen-Yu Tsai
2026-02-25 16:14 ` Chen-Yu Tsai
2026-02-25 16:08 ` [PATCH 3/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs Chen-Yu Tsai
2 siblings, 1 reply; 9+ messages in thread
From: Chen-Yu Tsai @ 2026-02-25 16:08 UTC (permalink / raw)
To: Lee Jones, Pavel Machek, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel,
linux-leds
The A523 SoC family features an LED controller that is identical to the
one found on previous SoCs.
Add a device node for it, and one of the possible pinmux settings. This
setting is used on the Avaota A1.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
index 09bd149bbf51..b8263e2872af 100644
--- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
@@ -170,6 +170,13 @@ i2s2_pi_pins: i2s2-pi-pins {
bias-disable;
};
+ /omit-if-no-ref/
+ ledc_ph_pin: ledc-ph-pin {
+ pins = "PH19";
+ function = "ledc";
+ allwinner,pinmux = <5>;
+ };
+
mmc0_pins: mmc0-pins {
pins = "PF0" ,"PF1", "PF2", "PF3", "PF4", "PF5";
allwinner,pinmux = <2>;
@@ -300,6 +307,21 @@ ccu: clock-controller@2001000 {
#reset-cells = <1>;
};
+ ledc: led-controller@2008000 {
+ compatible = "allwinner,sun55i-a523-ledc",
+ "allwinner,sun50i-a100-ledc";
+ reg = <0x02008000 0x400>;
+ interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>;
+ clock-names = "bus", "mod";
+ resets = <&ccu RST_BUS_LEDC>;
+ dmas = <&dma 42>;
+ dma-names = "tx";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
ths1: thermal-sensor@2009400 {
compatible = "allwinner,sun55i-a523-ths1";
reg = <0x02009400 0x400>;
--
2.47.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs
2026-02-25 16:08 [PATCH 0/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs Chen-Yu Tsai
2026-02-25 16:08 ` [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC Chen-Yu Tsai
2026-02-25 16:08 ` [PATCH 2/3] arm64: dts: allwinner: sun55i-a523: Add LED controller Chen-Yu Tsai
@ 2026-02-25 16:08 ` Chen-Yu Tsai
2026-02-25 17:02 ` Jernej Škrabec
2 siblings, 1 reply; 9+ messages in thread
From: Chen-Yu Tsai @ 2026-02-25 16:08 UTC (permalink / raw)
To: Lee Jones, Pavel Machek, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel,
linux-leds
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.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../dts/allwinner/sun55i-t527-avaota-a1.dts | 41 +++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts b/arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts
index 054d0357c139..7c24121de88f 100644
--- a/arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts
+++ b/arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts
@@ -6,6 +6,7 @@
#include "sun55i-a523.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Avaota A1";
@@ -99,6 +100,46 @@ &gpu {
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";
--
2.47.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] arm64: dts: allwinner: sun55i-a523: Add LED controller
2026-02-25 16:08 ` [PATCH 2/3] arm64: dts: allwinner: sun55i-a523: Add LED controller Chen-Yu Tsai
@ 2026-02-25 16:14 ` Chen-Yu Tsai
2026-02-25 16:57 ` Jernej Škrabec
0 siblings, 1 reply; 9+ messages in thread
From: Chen-Yu Tsai @ 2026-02-25 16:14 UTC (permalink / raw)
To: Lee Jones, Pavel Machek, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel,
linux-leds
On Thu, Feb 26, 2026 at 12:08 AM Chen-Yu Tsai <wens@kernel.org> wrote:
>
> The A523 SoC family features an LED controller that is identical to the
> one found on previous SoCs.
>
> Add a device node for it, and one of the possible pinmux settings. This
> setting is used on the Avaota A1.
>
> Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
> ---
> .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 22 +++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> index 09bd149bbf51..b8263e2872af 100644
> --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> @@ -170,6 +170,13 @@ i2s2_pi_pins: i2s2-pi-pins {
> bias-disable;
> };
>
> + /omit-if-no-ref/
> + ledc_ph_pin: ledc-ph-pin {
> + pins = "PH19";
> + function = "ledc";
> + allwinner,pinmux = <5>;
> + };
> +
> mmc0_pins: mmc0-pins {
> pins = "PF0" ,"PF1", "PF2", "PF3", "PF4", "PF5";
> allwinner,pinmux = <2>;
> @@ -300,6 +307,21 @@ ccu: clock-controller@2001000 {
> #reset-cells = <1>;
> };
>
> + ledc: led-controller@2008000 {
> + compatible = "allwinner,sun55i-a523-ledc",
> + "allwinner,sun50i-a100-ledc";
> + reg = <0x02008000 0x400>;
> + interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>;
> + clock-names = "bus", "mod";
> + resets = <&ccu RST_BUS_LEDC>;
> + dmas = <&dma 42>;
> + dma-names = "tx";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> ths1: thermal-sensor@2009400 {
I Forgot to rebase this patch before the thermal sensor one in my tree.
I can fix this when applying, so please still review the patch.
ChenYu
> compatible = "allwinner,sun55i-a523-ths1";
> reg = <0x02009400 0x400>;
> --
> 2.47.3
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] arm64: dts: allwinner: sun55i-a523: Add LED controller
2026-02-25 16:14 ` Chen-Yu Tsai
@ 2026-02-25 16:57 ` Jernej Škrabec
0 siblings, 0 replies; 9+ messages in thread
From: Jernej Škrabec @ 2026-02-25 16:57 UTC (permalink / raw)
To: Lee Jones, Pavel Machek, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
wens
Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel,
linux-leds
Dne sreda, 25. februar 2026 ob 17:14:51 Srednjeevropski standardni čas je Chen-Yu Tsai napisal(a):
> On Thu, Feb 26, 2026 at 12:08 AM Chen-Yu Tsai <wens@kernel.org> wrote:
> >
> > The A523 SoC family features an LED controller that is identical to the
> > one found on previous SoCs.
> >
> > Add a device node for it, and one of the possible pinmux settings. This
> > setting is used on the Avaota A1.
> >
> > Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
> > ---
> > .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 22 +++++++++++++++++++
> > 1 file changed, 22 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> > index 09bd149bbf51..b8263e2872af 100644
> > --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> > +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> > @@ -170,6 +170,13 @@ i2s2_pi_pins: i2s2-pi-pins {
> > bias-disable;
> > };
> >
> > + /omit-if-no-ref/
> > + ledc_ph_pin: ledc-ph-pin {
> > + pins = "PH19";
> > + function = "ledc";
> > + allwinner,pinmux = <5>;
> > + };
> > +
> > mmc0_pins: mmc0-pins {
> > pins = "PF0" ,"PF1", "PF2", "PF3", "PF4", "PF5";
> > allwinner,pinmux = <2>;
> > @@ -300,6 +307,21 @@ ccu: clock-controller@2001000 {
> > #reset-cells = <1>;
> > };
> >
> > + ledc: led-controller@2008000 {
> > + compatible = "allwinner,sun55i-a523-ledc",
> > + "allwinner,sun50i-a100-ledc";
> > + reg = <0x02008000 0x400>;
> > + interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
> > + clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>;
> > + clock-names = "bus", "mod";
> > + resets = <&ccu RST_BUS_LEDC>;
> > + dmas = <&dma 42>;
> > + dma-names = "tx";
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > + status = "disabled";
> > + };
> > +
> > ths1: thermal-sensor@2009400 {
>
> I Forgot to rebase this patch before the thermal sensor one in my tree.
> I can fix this when applying, so please still review the patch.
Values are correct, so with a rebase this patch is:
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
>
> ChenYu
>
> > compatible = "allwinner,sun55i-a523-ths1";
> > reg = <0x02009400 0x400>;
> > --
> > 2.47.3
> >
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC
2026-02-25 16:08 ` [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC Chen-Yu Tsai
@ 2026-02-25 16:58 ` Jernej Škrabec
2026-02-26 7:51 ` Krzysztof Kozlowski
1 sibling, 0 replies; 9+ messages in thread
From: Jernej Škrabec @ 2026-02-25 16:58 UTC (permalink / raw)
To: Lee Jones, Pavel Machek, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Chen-Yu Tsai
Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel,
linux-leds
Dne sreda, 25. februar 2026 ob 17:08:24 Srednjeevropski standardni čas je Chen-Yu Tsai napisal(a):
> The Allwinner A523 SoC family features an identical LED controller as
> found on the A100.
>
> Add a SoC-specific compatible for it, with fallback to the A100 one.
>
> Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 3/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs
2026-02-25 16:08 ` [PATCH 3/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs Chen-Yu Tsai
@ 2026-02-25 17:02 ` Jernej Škrabec
0 siblings, 0 replies; 9+ messages in thread
From: Jernej Škrabec @ 2026-02-25 17:02 UTC (permalink / raw)
To: Lee Jones, Pavel Machek, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Chen-Yu Tsai
Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel,
linux-leds
Dne sreda, 25. februar 2026 ob 17:08:26 Srednjeevropski standardni čas je Chen-Yu Tsai napisal(a):
> 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.
>
> Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC
2026-02-25 16:08 ` [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC Chen-Yu Tsai
2026-02-25 16:58 ` Jernej Škrabec
@ 2026-02-26 7:51 ` Krzysztof Kozlowski
1 sibling, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2026-02-26 7:51 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Lee Jones, Pavel Machek, Jernej Skrabec, Samuel Holland,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-sunxi, linux-arm-kernel, linux-kernel, linux-leds
On Thu, Feb 26, 2026 at 12:08:24AM +0800, Chen-Yu Tsai wrote:
> The Allwinner A523 SoC family features an identical LED controller as
> found on the A100.
>
> Add a SoC-specific compatible for it, with fallback to the A100 one.
>
> Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
> ---
> .../devicetree/bindings/leds/allwinner,sun50i-a100-ledc.yaml | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-02-26 7:51 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25 16:08 [PATCH 0/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs Chen-Yu Tsai
2026-02-25 16:08 ` [PATCH 1/3] dt-bindings: leds: sun50i-a100: Add compatible for Allwinner A523 SoC Chen-Yu Tsai
2026-02-25 16:58 ` Jernej Škrabec
2026-02-26 7:51 ` Krzysztof Kozlowski
2026-02-25 16:08 ` [PATCH 2/3] arm64: dts: allwinner: sun55i-a523: Add LED controller Chen-Yu Tsai
2026-02-25 16:14 ` Chen-Yu Tsai
2026-02-25 16:57 ` Jernej Škrabec
2026-02-25 16:08 ` [PATCH 3/3] arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs Chen-Yu Tsai
2026-02-25 17:02 ` Jernej Škrabec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox