Skip to content

Commit c8e75e0

Browse files
smaeulwens
authored andcommitted
riscv: dts: allwinner: d1: Add LED controller node
Allwinner D1 contains an LED controller. Add its devicetree node, as well as the pinmux used by the reference board design. Acked-by: Guo Ren <guoren@kernel.org> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Tested-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Link: https://patch.msgid.link/20231029212738.7871-5-samuel@sholland.org [wens@kernel.org: move "status" to end of properties] Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
1 parent 4d9af1e commit c8e75e0

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
function = "i2c2";
5959
};
6060

61+
/omit-if-no-ref/
62+
ledc_pc0_pin: ledc-pc0-pin {
63+
pins = "PC0";
64+
function = "ledc";
65+
};
66+
6167
/omit-if-no-ref/
6268
uart0_pb8_pins: uart0-pb8-pins {
6369
pins = "PB8", "PB9";

arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,21 @@
204204
#reset-cells = <1>;
205205
};
206206

207+
ledc: led-controller@2008000 {
208+
compatible = "allwinner,sun20i-d1-ledc",
209+
"allwinner,sun50i-a100-ledc";
210+
reg = <0x2008000 0x400>;
211+
interrupts = <SOC_PERIPHERAL_IRQ(20) IRQ_TYPE_LEVEL_HIGH>;
212+
clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>;
213+
clock-names = "bus", "mod";
214+
resets = <&ccu RST_BUS_LEDC>;
215+
dmas = <&dma 42>;
216+
dma-names = "tx";
217+
#address-cells = <1>;
218+
#size-cells = <0>;
219+
status = "disabled";
220+
};
221+
207222
gpadc: adc@2009000 {
208223
compatible = "allwinner,sun20i-d1-gpadc";
209224
reg = <0x2009000 0x400>;

0 commit comments

Comments
 (0)