Skip to contentSkip to conversation

arm64: dts: allwinner: h6: Add Hantro G2 node

PATCH In review Jernej Skrabec 1 participant 2 messages Nov 22, 2021

Subsystems (2)
lore
Share & tools
lore

Jernej Skrabec

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: allwinner: h6: Add Hantro G2 node

H6 SoC has a second VPU, dedicated to VP9 decoding. It's a slightly older design, though.

---
 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +9 -0
index 4c4547f7d0c7..878061e75098 100644
@@ -153,6 +153,15 @@ mixer0_out_tcon_top_mixer0: endpoint {
 			};
 		};
 
+		video-codec-g2@1c00000 {
+			compatible = "allwinner,sun50i-h6-vpu-g2";
+			reg = <0x01c00000 0x1000>;
+			interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>;
+			clock-names = "bus", "mod";
+			resets = <&ccu RST_BUS_VP9>;
+		};
+
 		video-codec@1c0e000 {
 			compatible = "allwinner,sun50i-h6-video-engine";
 			reg = <0x01c0e000 0x2000>;
Signature · 1 line
2.34.0
author maintainer
#1 lore raw

Dne ponedeljek, 22. november 2021 ob 22:34:29 CET je Jernej Skrabec napisal(a):

Quoted 4 lines

H6 SoC has a second VPU, dedicated to VP9 decoding. It's a slightly older design, though.

Sorry, wrong patch, please ignore.

Regards,
Jernej

arch/arm64/boot/

Quoted 6 lines
Quoted 1 line
---
 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/ renamed from arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +0 -0

dts/allwinner/sun50i-h6.dtsi

arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi mixer0_out_tcon_top_mixer0: endpoint { · line 159

Quoted 11 lines

index 4c4547f7d0c7..878061e75098 100644

arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +4 -0
@@ -153,6 +153,15 @@ mixer0_out_tcon_top_mixer0: endpoint {
 			};
 		};
 
+		video-codec-g2@1c00000 {
+			compatible = "allwinner,sun50i-h6-vpu-g2";
+			reg = <0x01c00000 0x1000>;
+			interrupts = <GIC_SPI 90 

IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi mixer0_out_tcon_top_mixer0: endpoint {

Quoted 7 lines
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +5 -0
+			clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>;
+			clock-names = "bus", "mod";
+			resets = <&ccu RST_BUS_VP9>;
+		};
+
 		video-codec@1c0e000 {
 			compatible = "allwinner,sun50i-h6-video-

engine";

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +0 -0
 			reg = <0x01c0e000 0x2000>;
Signature · 1 line
2.34.0