* [PATCH v3 0/3] media: qcom: iris: add support for SA8775P
@ 2025-03-20 18:06 Vikash Garodia
2025-03-20 18:06 ` [PATCH v3 1/3] dt-bindings: media: qcom,sm8550-iris: document SA8775p IRIS accelerator Vikash Garodia
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Vikash Garodia @ 2025-03-20 18:06 UTC (permalink / raw)
To: Dikshita Agarwal, Abhinav Kumar, Mauro Carvalho Chehab,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, Dmitry Baryshkov
Cc: linux-arm-msm, linux-media, devicetree, linux-kernel, sumit.garg,
Vikash Garodia, Krzysztof Kozlowski
add support for video hardware acceleration on SA8775P platform.
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
---
Changes in v3:
- Fix nit review comments.
- Link to v2: https://lore.kernel.org/r/20250320-dtbinding-v2-0-8d8eaa4e76cc@quicinc.com
Changes in v2:
- Drop 01/04 patch as it was not needed.
- Introduce sa8775p as fallback compatible to sm8550.
- Move firmware files to board DT
- Link to v1: https://lore.kernel.org/r/20250311-dtbinding-v1-0-5c807d33f7ae@quicinc.com
---
Vikash Garodia (3):
dt-bindings: media: qcom,sm8550-iris: document SA8775p IRIS accelerator
arm64: dts: qcom: sa8775p: add support for video node
arm64: dts: qcom: sa8775p-ride: enable video
.../bindings/media/qcom,sm8550-iris.yaml | 7 ++-
arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi | 6 ++
arch/arm64/boot/dts/qcom/sa8775p.dtsi | 71 ++++++++++++++++++++++
3 files changed, 83 insertions(+), 1 deletion(-)
---
base-commit: f2151613e040973c868d28c8b00885dfab69eb75
change-id: 20250310-dtbinding-8921bfc151e9
Best regards,
--
Vikash Garodia <quic_vgarodia@quicinc.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 1/3] dt-bindings: media: qcom,sm8550-iris: document SA8775p IRIS accelerator
2025-03-20 18:06 [PATCH v3 0/3] media: qcom: iris: add support for SA8775P Vikash Garodia
@ 2025-03-20 18:06 ` Vikash Garodia
2025-03-20 18:06 ` [PATCH v3 2/3] arm64: dts: qcom: sa8775p: add support for video node Vikash Garodia
2025-03-20 18:06 ` [PATCH v3 3/3] arm64: dts: qcom: sa8775p-ride: enable video Vikash Garodia
2 siblings, 0 replies; 7+ messages in thread
From: Vikash Garodia @ 2025-03-20 18:06 UTC (permalink / raw)
To: Dikshita Agarwal, Abhinav Kumar, Mauro Carvalho Chehab,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, Dmitry Baryshkov
Cc: linux-arm-msm, linux-media, devicetree, linux-kernel, sumit.garg,
Vikash Garodia, Krzysztof Kozlowski
Document the IRIS video decoder and encoder accelerator found in the
SA8775p platform. SA8775p and SM8550 are irisv3 with same core and
bindings, hence SA8775p is made fallback to SM8550.
QCS8300 is a downscaled version of irisv3 and have different hardware
capabilities. SM8650 is an irisv3 with different (higher) number of
reset lines compared to SM8550. QCS8300 is yet to come in future
posting, while SM8650 is posted as
https://lore.kernel.org/all/20250305-topic-sm8x50-iris-v10-v2-1-bd65a3fc099e@linaro.org/
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
---
Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml b/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml
index e424ea84c211f473a799481fd5463a16580187ed..6a89e9e3808758cfdbf6a51dfb9fc6559864253a 100644
--- a/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml
+++ b/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml
@@ -19,7 +19,12 @@ allOf:
properties:
compatible:
- const: qcom,sm8550-iris
+ oneOf:
+ - items:
+ - enum:
+ - qcom,sa8775p-iris
+ - const: qcom,sm8550-iris
+ - const: qcom,sm8550-iris
power-domains:
maxItems: 4
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 2/3] arm64: dts: qcom: sa8775p: add support for video node
2025-03-20 18:06 [PATCH v3 0/3] media: qcom: iris: add support for SA8775P Vikash Garodia
2025-03-20 18:06 ` [PATCH v3 1/3] dt-bindings: media: qcom,sm8550-iris: document SA8775p IRIS accelerator Vikash Garodia
@ 2025-03-20 18:06 ` Vikash Garodia
2025-03-21 17:24 ` Dmitry Baryshkov
2025-03-20 18:06 ` [PATCH v3 3/3] arm64: dts: qcom: sa8775p-ride: enable video Vikash Garodia
2 siblings, 1 reply; 7+ messages in thread
From: Vikash Garodia @ 2025-03-20 18:06 UTC (permalink / raw)
To: Dikshita Agarwal, Abhinav Kumar, Mauro Carvalho Chehab,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, Dmitry Baryshkov
Cc: linux-arm-msm, linux-media, devicetree, linux-kernel, sumit.garg,
Vikash Garodia
Video node enables video on Qualcomm SA8775P platform.
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
---
arch/arm64/boot/dts/qcom/sa8775p.dtsi | 71 +++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
index 3394ae2d13003417a15e64c9e47833725ec779e6..6e4644b95fb678fd201310463709d7482d72d6e2 100644
--- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
+++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
@@ -10,6 +10,7 @@
#include <dt-bindings/clock/qcom,sa8775p-dispcc.h>
#include <dt-bindings/clock/qcom,sa8775p-gcc.h>
#include <dt-bindings/clock/qcom,sa8775p-gpucc.h>
+#include <dt-bindings/clock/qcom,sa8775p-videocc.h>
#include <dt-bindings/dma/qcom-gpi.h>
#include <dt-bindings/interconnect/qcom,sa8775p-rpmh.h>
#include <dt-bindings/mailbox/qcom-ipcc.h>
@@ -3783,6 +3784,76 @@ llcc: system-cache-controller@9200000 {
interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH>;
};
+ iris: video-codec@aa00000 {
+ compatible = "qcom,sa8775p-iris", "qcom,sm8550-iris";
+
+ reg = <0x0 0x0aa00000 0x0 0xf0000>;
+ interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+
+ power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>,
+ <&videocc VIDEO_CC_MVS0_GDSC>,
+ <&rpmhpd SA8775P_MXC>,
+ <&rpmhpd SA8775P_MMCX>;
+ power-domain-names = "venus",
+ "vcodec0",
+ "mxc",
+ "mmcx";
+ operating-points-v2 = <&iris_opp_table>;
+
+ clocks = <&gcc GCC_VIDEO_AXI0_CLK>,
+ <&videocc VIDEO_CC_MVS0C_CLK>,
+ <&videocc VIDEO_CC_MVS0_CLK>;
+ clock-names = "iface",
+ "core",
+ "vcodec0_core";
+
+ interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+ &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>,
+ <&mmss_noc MASTER_VIDEO_P0 QCOM_ICC_TAG_ALWAYS
+ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
+ interconnect-names = "cpu-cfg",
+ "video-mem";
+
+ memory-region = <&pil_video_mem>;
+
+ resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>;
+ reset-names = "bus";
+
+ iommus = <&apps_smmu 0x0880 0x0400>,
+ <&apps_smmu 0x0887 0x0400>;
+ dma-coherent;
+
+ status = "disabled";
+
+ iris_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ opp-366000000 {
+ opp-hz = /bits/ 64 <366000000>;
+ required-opps = <&rpmhpd_opp_svs_l1>,
+ <&rpmhpd_opp_svs_l1>;
+ };
+
+ opp-444000000 {
+ opp-hz = /bits/ 64 <444000000>;
+ required-opps = <&rpmhpd_opp_nom>,
+ <&rpmhpd_opp_nom>;
+ };
+
+ opp-533333334 {
+ opp-hz = /bits/ 64 <533333334>;
+ required-opps = <&rpmhpd_opp_turbo>,
+ <&rpmhpd_opp_turbo>;
+ };
+
+ opp-560000000 {
+ opp-hz = /bits/ 64 <560000000>;
+ required-opps = <&rpmhpd_opp_turbo_l1>,
+ <&rpmhpd_opp_turbo_l1>;
+ };
+ };
+ };
+
videocc: clock-controller@abf0000 {
compatible = "qcom,sa8775p-videocc";
reg = <0x0 0x0abf0000 0x0 0x10000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 3/3] arm64: dts: qcom: sa8775p-ride: enable video
2025-03-20 18:06 [PATCH v3 0/3] media: qcom: iris: add support for SA8775P Vikash Garodia
2025-03-20 18:06 ` [PATCH v3 1/3] dt-bindings: media: qcom,sm8550-iris: document SA8775p IRIS accelerator Vikash Garodia
2025-03-20 18:06 ` [PATCH v3 2/3] arm64: dts: qcom: sa8775p: add support for video node Vikash Garodia
@ 2025-03-20 18:06 ` Vikash Garodia
2025-03-20 21:47 ` Bryan O'Donoghue
2 siblings, 1 reply; 7+ messages in thread
From: Vikash Garodia @ 2025-03-20 18:06 UTC (permalink / raw)
To: Dikshita Agarwal, Abhinav Kumar, Mauro Carvalho Chehab,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, Dmitry Baryshkov
Cc: linux-arm-msm, linux-media, devicetree, linux-kernel, sumit.garg,
Vikash Garodia
Enable video nodes on the sa8775p-ride board and point to the
appropriate firmware files.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
---
arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi
index 175f8b1e3b2ded15fc3265ac8c26b14473b618f6..ec3fa2739e1df2d5aebee7184c15e996a71b4550 100644
--- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi
+++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi
@@ -1038,3 +1038,9 @@ &usb_2_hsphy {
&xo_board_clk {
clock-frequency = <38400000>;
};
+
+&iris {
+ firmware-name = "qcom/vpu/vpu30_p4_s6.mbn";
+
+ status = "okay";
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: qcom: sa8775p-ride: enable video
2025-03-20 18:06 ` [PATCH v3 3/3] arm64: dts: qcom: sa8775p-ride: enable video Vikash Garodia
@ 2025-03-20 21:47 ` Bryan O'Donoghue
2025-03-21 3:16 ` Vikash Garodia
0 siblings, 1 reply; 7+ messages in thread
From: Bryan O'Donoghue @ 2025-03-20 21:47 UTC (permalink / raw)
To: Vikash Garodia, Dikshita Agarwal, Abhinav Kumar,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, Dmitry Baryshkov
Cc: linux-arm-msm, linux-media, devicetree, linux-kernel, sumit.garg
On 20/03/2025 18:06, Vikash Garodia wrote:
> +
> +&iris {
> + firmware-name = "qcom/vpu/vpu30_p4_s6.mbn";
> +
> + status = "okay";
> +};
You're out of alphanumeric order here.
Should be:
};
+
+&iris {
+ firmware-name = "qcom/vpu/vpu30_p4_s6.mbn";
+
+ status = "okay";
+};
+
&mdss0 {
---
bod
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: qcom: sa8775p-ride: enable video
2025-03-20 21:47 ` Bryan O'Donoghue
@ 2025-03-21 3:16 ` Vikash Garodia
0 siblings, 0 replies; 7+ messages in thread
From: Vikash Garodia @ 2025-03-21 3:16 UTC (permalink / raw)
To: Bryan O'Donoghue, Dikshita Agarwal, Abhinav Kumar,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, Dmitry Baryshkov
Cc: linux-arm-msm, linux-media, devicetree, linux-kernel, sumit.garg
On 3/21/2025 3:17 AM, Bryan O'Donoghue wrote:
> On 20/03/2025 18:06, Vikash Garodia wrote:
>> +
>> +&iris {
>> + firmware-name = "qcom/vpu/vpu30_p4_s6.mbn";
>> +
>> + status = "okay";
>> +};
>
> You're out of alphanumeric order here.
ACK. Will update.
Regards,
Vikash
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 2/3] arm64: dts: qcom: sa8775p: add support for video node
2025-03-20 18:06 ` [PATCH v3 2/3] arm64: dts: qcom: sa8775p: add support for video node Vikash Garodia
@ 2025-03-21 17:24 ` Dmitry Baryshkov
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2025-03-21 17:24 UTC (permalink / raw)
To: Vikash Garodia
Cc: Dikshita Agarwal, Abhinav Kumar, Mauro Carvalho Chehab,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Konrad Dybcio, linux-arm-msm, linux-media, devicetree,
linux-kernel, sumit.garg
On Thu, Mar 20, 2025 at 11:36:51PM +0530, Vikash Garodia wrote:
> Video node enables video on Qualcomm SA8775P platform.
>
> Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/sa8775p.dtsi | 71 +++++++++++++++++++++++++++++++++++
> 1 file changed, 71 insertions(+)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-03-21 17:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-20 18:06 [PATCH v3 0/3] media: qcom: iris: add support for SA8775P Vikash Garodia
2025-03-20 18:06 ` [PATCH v3 1/3] dt-bindings: media: qcom,sm8550-iris: document SA8775p IRIS accelerator Vikash Garodia
2025-03-20 18:06 ` [PATCH v3 2/3] arm64: dts: qcom: sa8775p: add support for video node Vikash Garodia
2025-03-21 17:24 ` Dmitry Baryshkov
2025-03-20 18:06 ` [PATCH v3 3/3] arm64: dts: qcom: sa8775p-ride: enable video Vikash Garodia
2025-03-20 21:47 ` Bryan O'Donoghue
2025-03-21 3:16 ` Vikash Garodia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).