arm64: dts: qcom: msm8916: Add Venus video codec support
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Mon, 12 Jun 2017 12:43:16 +0000 (08:43 -0400)
committerAndy Gross <andy.gross@linaro.org>
Wed, 16 Aug 2017 15:08:55 +0000 (10:08 -0500)
This patch adds the Qualcomm Venus video codec node for the video
codec hardware residing on MSM8916 platforms.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/msm8916.dtsi

index 51c0ffc20a924cbd672a854a842a913c914715b7..8cd796091e904d86d7826ab78f3e5ae41aa2b9f0 100644 (file)
                        no-map;
                };
 
+               venus_mem: venus@89900000 {
+                       reg = <0x0 0x89900000 0x0 0x600000>;
+                       no-map;
+               };
+
                mba_mem: mba@8ea00000 {
                        no-map;
                        reg = <0 0x8ea00000 0 0x100000>;
                                };
                        };
                };
+
+               venus: video-codec@1d00000 {
+                       compatible = "qcom,msm8916-venus";
+                       reg = <0x01d00000 0xff000>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+                       power-domains = <&gcc VENUS_GDSC>;
+                       clocks = <&gcc GCC_VENUS0_VCODEC0_CLK>,
+                                <&gcc GCC_VENUS0_AHB_CLK>,
+                                <&gcc GCC_VENUS0_AXI_CLK>;
+                       clock-names = "core", "iface", "bus";
+                       memory-region = <&venus_mem>;
+                       status = "okay";
+
+                       video-decoder {
+                               compatible = "venus-decoder";
+                       };
+
+                       video-encoder {
+                               compatible = "venus-encoder";
+                       };
+               };
        };
 
        smd {