arm64: dts: qcom: sdm630: Add disabled Venus support
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fri, 8 Oct 2021 10:21:19 +0000 (12:21 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 24 Oct 2021 18:04:07 +0000 (13:04 -0500)
Add support for the Venus video decoder/encoder but leave it disabled
by default; it is expected to eventually get enabled in each machine
specific DT, where required.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211008102119.268869-3-angelogioacchino.delregno@collabora.com
arch/arm64/boot/dts/qcom/sdm630.dtsi

index 8e92d9ea9ab7f2de44932e9147b36f47fb34c14e..a0b7c72ee594fb7c0f4a54d7e2f07fd4e050148c 100644 (file)
                        };
                };
 
+               venus: video-codec@cc00000 {
+                       compatible = "qcom,sdm660-venus";
+                       reg = <0x0cc00000 0xff000>;
+                       clocks = <&mmcc VIDEO_CORE_CLK>,
+                                <&mmcc VIDEO_AHB_CLK>,
+                                <&mmcc VIDEO_AXI_CLK>,
+                                <&mmcc THROTTLE_VIDEO_AXI_CLK>;
+                       clock-names = "core", "iface", "bus", "bus_throttle";
+                       interconnects = <&gnoc 0 &mnoc 13>,
+                                       <&mnoc 4 &bimc 5>;
+                       interconnect-names = "cpu-cfg", "video-mem";
+                       interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
+                       iommus = <&mmss_smmu 0x400>,
+                                <&mmss_smmu 0x401>,
+                                <&mmss_smmu 0x40a>,
+                                <&mmss_smmu 0x407>,
+                                <&mmss_smmu 0x40e>,
+                                <&mmss_smmu 0x40f>,
+                                <&mmss_smmu 0x408>,
+                                <&mmss_smmu 0x409>,
+                                <&mmss_smmu 0x40b>,
+                                <&mmss_smmu 0x40c>,
+                                <&mmss_smmu 0x40d>,
+                                <&mmss_smmu 0x410>,
+                                <&mmss_smmu 0x421>,
+                                <&mmss_smmu 0x428>,
+                                <&mmss_smmu 0x429>,
+                                <&mmss_smmu 0x42b>,
+                                <&mmss_smmu 0x42c>,
+                                <&mmss_smmu 0x42d>,
+                                <&mmss_smmu 0x411>,
+                                <&mmss_smmu 0x431>;
+                       memory-region = <&venus_region>;
+                       power-domains = <&mmcc VENUS_GDSC>;
+                       status = "disabled";
+
+                       video-decoder {
+                               compatible = "venus-decoder";
+                               clocks = <&mmcc VIDEO_SUBCORE0_CLK>;
+                               clock-names = "vcodec0_core";
+                               power-domains = <&mmcc VENUS_CORE0_GDSC>;
+                       };
+
+                       video-encoder {
+                               compatible = "venus-encoder";
+                               clocks = <&mmcc VIDEO_SUBCORE0_CLK>;
+                               clock-names = "vcodec0_core";
+                               power-domains = <&mmcc VENUS_CORE0_GDSC>;
+                       };
+               };
+
                mmss_smmu: iommu@cd00000 {
                        compatible = "qcom,sdm630-smmu-v2", "qcom,smmu-v2";
                        reg = <0x0cd00000 0x40000>;