mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +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>
57 lines
1.6 KiB
Diff
57 lines
1.6 KiB
Diff
From d6036571b774437bb3bdd378821033e118a01fe8 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Wed, 2 Nov 2022 23:42:52 -0500
|
|
Subject: [PATCH 117/117] riscv: dts: allwinner: d1: Add video engine node
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 30 ++++++++++++++++++++
|
|
1 file changed, 30 insertions(+)
|
|
|
|
--- a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
|
|
+++ b/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi
|
|
@@ -105,6 +105,21 @@
|
|
status = "reserved";
|
|
};
|
|
|
|
+ ve: video-codec@1c0e000 {
|
|
+ compatible = "allwinner,sun20i-d1-video-engine";
|
|
+ reg = <0x1c0e000 0x2000>;
|
|
+ interrupts = <82 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_VE>,
|
|
+ <&ccu CLK_VE>,
|
|
+ <&ccu CLK_MBUS_VE>;
|
|
+ clock-names = "ahb", "mod", "ram";
|
|
+ resets = <&ccu RST_BUS_VE>;
|
|
+ allwinner,sram = <&ve_sram 1>;
|
|
+ interconnects = <&mbus 4>;
|
|
+ interconnect-names = "dma-mem";
|
|
+ iommus = <&iommu 0>;
|
|
+ };
|
|
+
|
|
pio: pinctrl@2000000 {
|
|
compatible = "allwinner,sun20i-d1-pinctrl";
|
|
reg = <0x2000000 0x800>;
|
|
@@ -591,6 +606,21 @@
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
+ // FIXME: Address is not verified. It is copied from A64/H6.
|
|
+ sram@1d00000 {
|
|
+ compatible = "mmio-sram";
|
|
+ reg = <0x1d00000 0x40000>;
|
|
+ ranges = <0 0x1d00000 0x40000>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ ve_sram: sram-section@0 {
|
|
+ compatible = "allwinner,sun20i-d1-sram-c1",
|
|
+ "allwinner,sun4i-a10-sram-c1";
|
|
+ reg = <0 0x40000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
regulators@3000150 {
|
|
compatible = "allwinner,sun20i-d1-system-ldos";
|
|
reg = <0x3000150 0x4>;
|