mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
99545b4bb1
This target adds support for the Allwinner D1 RISC-V based SoCs. - RISC-V single-core T-Head C906 (RV64GCV) - Tensilica HiFi4 DSP - DDR2/DDR3 support - 10/100/1000M ethernet - usual peripherals like USB2, SPI, I2C, PWM, etc. Four boards are supported: - Dongshan Nezha STU - 512Mb RAM - ethernet - LicheePi RV Dock - 512Mb RAM - wireless-only (RTL8723DS) - MangoPi MQ-Pro - 512Mb RAM - there are pads available for an SPI flash - wireless-only (RTL8723DS) - Nezha D1 - 512Mb/1Gb/2Gb RAM - 256Mb NAND flash - ethernet, wireless Installation: Standard SD-card installation via dd-ing the generated image to an SD-card of at least 256Mb. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
54 lines
1.5 KiB
Diff
54 lines
1.5 KiB
Diff
From 595f76548e1d51a76b1ab201293ef441233921cf Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Thu, 11 Aug 2022 23:02:43 -0500
|
|
Subject: [PATCH 057/117] 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.
|
|
|
|
Commit-changes: 5
|
|
- New patch for v5
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 21 ++++++++++++++++++++
|
|
1 file changed, 21 insertions(+)
|
|
|
|
--- a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
|
|
+++ b/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
|
|
@@ -116,6 +116,12 @@
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
+ ledc_pc0_pin: ledc-pc0-pin {
|
|
+ pins = "PC0";
|
|
+ function = "ledc";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
mmc0_pins: mmc0-pins {
|
|
pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
|
|
function = "mmc0";
|
|
@@ -178,6 +184,21 @@
|
|
#reset-cells = <1>;
|
|
};
|
|
|
|
+ ledc: led-controller@2008000 {
|
|
+ compatible = "allwinner,sun20i-d1-ledc",
|
|
+ "allwinner,sun50i-a100-ledc";
|
|
+ reg = <0x2008000 0x400>;
|
|
+ interrupts = <36 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>;
|
|
+ };
|
|
+
|
|
lradc: keys@2009800 {
|
|
compatible = "allwinner,sun20i-d1-lradc",
|
|
"allwinner,sun50i-r329-lradc";
|