Skip to content

Commit 3289ed0

Browse files
committed
fuckingaroundvenus
1 parent aa6256e commit 3289ed0

File tree

4 files changed

+2584
-1
lines changed

4 files changed

+2584
-1
lines changed

arch/arm/boot/dts/qcom/qcom-msm8909.dtsi

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@
240240
reg = <0x8dc00000 0x100000>;
241241
no-map;
242242
};
243+
venus_mem: venus@90000000 {
244+
reg = <0x90000000 0x100000>;
245+
no-map;
246+
};
243247
};
244248

245249
smd {
@@ -381,7 +385,61 @@
381385
#size-cells = <1>;
382386
ranges;
383387

384-
388+
apps_iommu: iommu@1ef0000 {
389+
#address-cells = <1>;
390+
#size-cells = <1>;
391+
#iommu-cells = <1>;
392+
compatible = "qcom,msm8916-iommu", "qcom,msm-iommu-v1";
393+
ranges = <0 0x01e20000 0x20000>;
394+
reg = <0x01ef0000 0x3000>;
395+
clocks = <&gcc GCC_SMMU_CFG_CLK>,
396+
<&gcc GCC_APSS_TCU_CLK>;
397+
clock-names = "iface", "bus";
398+
qcom,iommu-secure-id = <17>;
399+
400+
/* VFE */
401+
iommu-ctx@3000 {
402+
compatible = "qcom,msm-iommu-v1-sec";
403+
reg = <0x3000 0x1000>;
404+
interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
405+
};
406+
407+
/* MDP_0 */
408+
iommu-ctx@4000 {
409+
compatible = "qcom,msm-iommu-v1-ns";
410+
reg = <0x4000 0x1000>;
411+
interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
412+
};
413+
414+
/* VENUS_NS */
415+
iommu-ctx@5000 {
416+
compatible = "qcom,msm-iommu-v1-sec";
417+
reg = <0x5000 0x1000>;
418+
interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
419+
};
420+
};
421+
422+
venus: video-codec@1d00000 {
423+
compatible = "qcom,msm8909-venus";
424+
reg = <0x01d00000 0xff000>;
425+
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
426+
power-domains = <&gcc VENUS_GDSC>;
427+
clocks = <&gcc GCC_VENUS0_VCODEC0_CLK>,
428+
<&gcc GCC_VENUS0_AHB_CLK>,
429+
<&gcc GCC_VENUS0_AXI_CLK>;
430+
clock-names = "core", "iface", "bus";
431+
iommus = <&apps_iommu 5>;
432+
memory-region = <&venus_mem>;
433+
434+
video-decoder {
435+
compatible = "venus-decoder";
436+
};
437+
438+
video-encoder {
439+
compatible = "venus-encoder";
440+
};
441+
};
442+
385443
gpu_iommu: iommu@1f08000 {
386444
#address-cells = <1>;
387445
#size-cells = <1>;

0 commit comments

Comments
 (0)