Skip to content

Commit 73b0b7d

Browse files
Vikash-Garodiashashim-quic
authored andcommitted
FROMGIT: arm64: dts: qcom: sa8775p: add support for video node
Video node enables video on Qualcomm SA8775P platform. Link: https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git/commit/?h=for-next&id=7bc95052c64f45c24affbb7636489dc9a1c2a982 Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com> Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
1 parent 31667be commit 73b0b7d

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

arch/arm64/boot/dts/qcom/sa8775p.dtsi

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <dt-bindings/clock/qcom,sa8775p-dispcc.h>
1111
#include <dt-bindings/clock/qcom,sa8775p-gcc.h>
1212
#include <dt-bindings/clock/qcom,sa8775p-gpucc.h>
13+
#include <dt-bindings/clock/qcom,sa8775p-videocc.h>
1314
#include <dt-bindings/dma/qcom-gpi.h>
1415
#include <dt-bindings/interconnect/qcom,osm-l3.h>
1516
#include <dt-bindings/interconnect/qcom,sa8775p-rpmh.h>
@@ -4260,6 +4261,76 @@
42604261
interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH>;
42614262
};
42624263

4264+
iris: video-codec@aa00000 {
4265+
compatible = "qcom,sa8775p-iris", "qcom,sm8550-iris";
4266+
4267+
reg = <0x0 0x0aa00000 0x0 0xf0000>;
4268+
interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
4269+
4270+
power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>,
4271+
<&videocc VIDEO_CC_MVS0_GDSC>,
4272+
<&rpmhpd SA8775P_MX>,
4273+
<&rpmhpd SA8775P_MMCX>;
4274+
power-domain-names = "venus",
4275+
"vcodec0",
4276+
"mxc",
4277+
"mmcx";
4278+
operating-points-v2 = <&iris_opp_table>;
4279+
4280+
clocks = <&gcc GCC_VIDEO_AXI0_CLK>,
4281+
<&videocc VIDEO_CC_MVS0C_CLK>,
4282+
<&videocc VIDEO_CC_MVS0_CLK>;
4283+
clock-names = "iface",
4284+
"core",
4285+
"vcodec0_core";
4286+
4287+
interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
4288+
&config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>,
4289+
<&mmss_noc MASTER_VIDEO_P0 QCOM_ICC_TAG_ALWAYS
4290+
&mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
4291+
interconnect-names = "cpu-cfg",
4292+
"video-mem";
4293+
4294+
memory-region = <&pil_video_mem>;
4295+
4296+
resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>;
4297+
reset-names = "bus";
4298+
4299+
iommus = <&apps_smmu 0x0880 0x0400>,
4300+
<&apps_smmu 0x0887 0x0400>;
4301+
dma-coherent;
4302+
4303+
status = "disabled";
4304+
4305+
iris_opp_table: opp-table {
4306+
compatible = "operating-points-v2";
4307+
4308+
opp-366000000 {
4309+
opp-hz = /bits/ 64 <366000000>;
4310+
required-opps = <&rpmhpd_opp_svs_l1>,
4311+
<&rpmhpd_opp_svs_l1>;
4312+
};
4313+
4314+
opp-444000000 {
4315+
opp-hz = /bits/ 64 <444000000>;
4316+
required-opps = <&rpmhpd_opp_nom>,
4317+
<&rpmhpd_opp_nom>;
4318+
};
4319+
4320+
opp-533000000 {
4321+
opp-hz = /bits/ 64 <533000000>;
4322+
required-opps = <&rpmhpd_opp_turbo>,
4323+
<&rpmhpd_opp_turbo>;
4324+
};
4325+
4326+
opp-560000000 {
4327+
opp-hz = /bits/ 64 <560000000>;
4328+
required-opps = <&rpmhpd_opp_turbo_l1>,
4329+
<&rpmhpd_opp_turbo_l1>;
4330+
};
4331+
};
4332+
};
4333+
42634334
videocc: clock-controller@abf0000 {
42644335
compatible = "qcom,sa8775p-videocc";
42654336
reg = <0x0 0x0abf0000 0x0 0x10000>;

0 commit comments

Comments
 (0)