Skip to content

Commit 24cd5a8

Browse files
committed
arm64: dts: allwinner: sun55i-a523: Add LED controller
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. Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://patch.msgid.link/20260302152724.3197587-3-wens@kernel.org Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
1 parent 7cb259e commit 24cd5a8

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@
153153
bias-disable;
154154
};
155155

156+
/omit-if-no-ref/
157+
ledc_ph_pin: ledc-ph-pin {
158+
pins = "PH19";
159+
function = "ledc";
160+
allwinner,pinmux = <5>;
161+
};
162+
156163
mmc0_pins: mmc0-pins {
157164
pins = "PF0" ,"PF1", "PF2", "PF3", "PF4", "PF5";
158165
allwinner,pinmux = <2>;
@@ -283,6 +290,21 @@
283290
#reset-cells = <1>;
284291
};
285292

293+
ledc: led-controller@2008000 {
294+
compatible = "allwinner,sun55i-a523-ledc",
295+
"allwinner,sun50i-a100-ledc";
296+
reg = <0x02008000 0x400>;
297+
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
298+
clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>;
299+
clock-names = "bus", "mod";
300+
resets = <&ccu RST_BUS_LEDC>;
301+
dmas = <&dma 42>;
302+
dma-names = "tx";
303+
#address-cells = <1>;
304+
#size-cells = <0>;
305+
status = "disabled";
306+
};
307+
286308
wdt: watchdog@2050000 {
287309
compatible = "allwinner,sun55i-a523-wdt";
288310
reg = <0x2050000 0x20>;

0 commit comments

Comments
 (0)