d1: add new target
[openwrt/staging/mans0n.git] / target / linux / d1 / patches-6.1 / 0057-riscv-dts-allwinner-d1-Add-LED-controller-node.patch
1 From 595f76548e1d51a76b1ab201293ef441233921cf Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Thu, 11 Aug 2022 23:02:43 -0500
4 Subject: [PATCH 057/117] riscv: dts: allwinner: d1: Add LED controller node
5
6 Allwinner D1 contains an LED controller. Add its devicetree node, as
7 well as the pinmux used by the reference board design.
8
9 Commit-changes: 5
10 - New patch for v5
11
12 Signed-off-by: Samuel Holland <samuel@sholland.org>
13 ---
14 arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 21 ++++++++++++++++++++
15 1 file changed, 21 insertions(+)
16
17 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
18 +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
19 @@ -116,6 +116,12 @@
20 };
21
22 /omit-if-no-ref/
23 + ledc_pc0_pin: ledc-pc0-pin {
24 + pins = "PC0";
25 + function = "ledc";
26 + };
27 +
28 + /omit-if-no-ref/
29 mmc0_pins: mmc0-pins {
30 pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
31 function = "mmc0";
32 @@ -178,6 +184,21 @@
33 #reset-cells = <1>;
34 };
35
36 + ledc: led-controller@2008000 {
37 + compatible = "allwinner,sun20i-d1-ledc",
38 + "allwinner,sun50i-a100-ledc";
39 + reg = <0x2008000 0x400>;
40 + interrupts = <36 IRQ_TYPE_LEVEL_HIGH>;
41 + clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>;
42 + clock-names = "bus", "mod";
43 + resets = <&ccu RST_BUS_LEDC>;
44 + dmas = <&dma 42>;
45 + dma-names = "tx";
46 + status = "disabled";
47 + #address-cells = <1>;
48 + #size-cells = <0>;
49 + };
50 +
51 lradc: keys@2009800 {
52 compatible = "allwinner,sun20i-d1-lradc",
53 "allwinner,sun50i-r329-lradc";