Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1470018 > unrolled thread

[RFC 09/10] ARM: dts: sun5i: Use video-engine node

Started byFlorent Revest <florent.revest@free-electrons.com>
First post2016-08-25 11:50 +0200
Last post2016-08-25 11:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [RFC 09/10] ARM: dts: sun5i: Use video-engine node Florent Revest <florent.revest@free-electrons.com> - 2016-08-25 11:50 +0200

#1470018 — [RFC 09/10] ARM: dts: sun5i: Use video-engine node

FromFlorent Revest <florent.revest@free-electrons.com>
Date2016-08-25 11:50 +0200
Subject[RFC 09/10] ARM: dts: sun5i: Use video-engine node
Message-ID<s9Zsl-7H6-25@gated-at.bofh.it>
Now that we have a driver matching "allwinner,sun5i-a13-video-engine" we
can load it.

The "video-engine" node depends on the new sunxi-ng's CCU clock and
reset bindings. This patch also includes a ve_reserved DMA pool for
videobuf2 buffer allocations in sunxi-cedrus.

Signed-off-by: Florent Revest <florent.revest@free-electrons.com>
---
 arch/arm/boot/dts/sun5i-a13.dtsi | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi
index 2afe05fb..384b645 100644
--- a/arch/arm/boot/dts/sun5i-a13.dtsi
+++ b/arch/arm/boot/dts/sun5i-a13.dtsi
@@ -69,6 +69,19 @@
 		};
 	};
 
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		ve_reserved: cma {
+			compatible = "shared-dma-pool";
+			reg = <0x43d00000 0x9000000>;
+			no-map;
+			linux,cma-default;
+		};
+	};
+
 	thermal-zones {
 		cpu_thermal {
 			/* milliseconds */
@@ -330,6 +343,24 @@
 			};
 		};
 
+		video-engine {
+			compatible = "allwinner,sun5i-a13-video-engine";
+			memory-region = <&ve_reserved>;
+
+			clocks = <&ahb_gates 32>, <&ccu CLK_VE>,
+				 <&dram_gates 0>;
+			clock-names = "ahb", "mod", "ram";
+
+			assigned-clocks = <&ccu CLK_VE>;
+			assigned-clock-rates = <320000000>;
+
+			resets = <&ccu RST_VE>;
+
+			interrupts = <53>;
+
+			reg = <0x01c0e000 4096>;
+		};
+
 		ccu: clock@01c20000 {
 			compatible = "allwinner,sun5i-a13-ccu";
 			reg = <0x01c20000 0x400>;
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web