This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. For the original discussion see: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
61 lines
1.7 KiB
Diff
61 lines
1.7 KiB
Diff
From: Samuel Holland <samuel@sholland.org>
|
|
Subject: riscv: dts: allwinner: d1: Add LED controller node
|
|
Date: Sun, 29 Oct 2023 16:26:58 -0500
|
|
|
|
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>
|
|
---
|
|
(no changes since v5)
|
|
|
|
Changes in v5:
|
|
- New patch for v5
|
|
|
|
arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 6 ++++++
|
|
arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 15 +++++++++++++++
|
|
2 files changed, 21 insertions(+)
|
|
|
|
--- a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
|
|
+++ b/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
|
|
@@ -59,6 +59,12 @@
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
+ ledc_pc0_pin: ledc-pc0-pin {
|
|
+ pins = "PC0";
|
|
+ function = "ledc";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
uart0_pb8_pins: uart0-pb8-pins {
|
|
pins = "PB8", "PB9";
|
|
function = "uart0";
|
|
--- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi
|
|
+++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi
|
|
@@ -156,6 +156,21 @@
|
|
#reset-cells = <1>;
|
|
};
|
|
|
|
+ ledc: led-controller@2008000 {
|
|
+ compatible = "allwinner,sun20i-d1-ledc",
|
|
+ "allwinner,sun50i-a100-ledc";
|
|
+ reg = <0x2008000 0x400>;
|
|
+ interrupts = <SOC_PERIPHERAL_IRQ(20) 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";
|
|
+ status = "disabled";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ };
|
|
+
|
|
gpadc: adc@2009000 {
|
|
compatible = "allwinner,sun20i-d1-gpadc";
|
|
reg = <0x2009000 0x400>;
|