media: qcom: iris: add support for SA8775P
Subsystems (6)
v5 cover media: qcom: iris: add support for SA8775P
add support for video hardware acceleration on SA8775P platform.
---
Changes in v5:
- Fix clock corner and a power domain specifier
- Link to v4: https://lore.kernel.org/all/[email protected]
Changes in v4:
- Fix the order of video node.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Fix nit review comments.
- Link to v2: https://lore.kernel.org/r/[email protected]
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/[email protected]
---
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,
Signature · 1 line
Vikash Garodia <[email protected]>
PATCH v5 1/3 dt-bindings: media: qcom,sm8550-iris: document SA8775p IRIS accelerator
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/[email protected]/
--- Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml +6 -1
@@ -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
Signature · 1 line
2.34.1
PATCH v5 2/3 arm64: dts: qcom: sa8775p: add support for video node
In reply to Vikash GarodiaVideo node enables video on Qualcomm SA8775P platform.
--- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 71 +++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+)
arch/arm64/boot/dts/qcom/sa8775p.dtsi +71 -0
@@ -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_MX>, + <&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-533000000 { + opp-hz = /bits/ 64 <533000000>; + 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>;
Signature · 1 line
2.34.1
PATCH v5 3/3 arm64: dts: qcom: sa8775p-ride: enable video
In reply to Vikash GarodiaEnable video nodes on the sa8775p-ride board and point to the appropriate firmware files.
--- arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/sa8775p-ride.dtsi +6 -0
@@ -522,6 +522,12 @@ &i2c18 { status = "okay"; }; +&iris { + firmware-name = "qcom/vpu/vpu30_p4_s6.mbn"; + + status = "okay"; +}; + &mdss0 { status = "okay"; };
Signature · 1 line
2.34.1
Hi Bjorn,
Quoted 28 lines · Vikash Garodia
add support for video hardware acceleration on SA8775P platform.
Signed-off-by Vikash Garodia <[email protected]>---
Changes in v5:
- Fix clock corner and a power domain specifier
- Link to v4: https://lore.kernel.org/all/[email protected]Changes in v4:
- Fix the order of video node.
- Link to v3: https://lore.kernel.org/r/[email protected]Changes in v3:
- Fix nit review comments.
- Link to v2: https://lore.kernel.org/r/[email protected]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/[email protected]---
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
Quoted 5 lines
.../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(-)---
When do u plan to pick DT patches (2/3 and 3/3) from this series ? I just saw the PR for 6.16 and i did not see these patches, would like to know what is pending ?
Regards,
Vikash
Re: (subset) [PATCH v5 0/3] media: qcom: iris: add support for SA8775P
In reply to Vikash GarodiaQuoted 3 lines · Vikash Garodia
add support for video hardware acceleration on SA8775P platform.
Applied, thanks!
[2/3] arm64: dts: qcom: sa8775p: add support for video node
commit: 7bc95052c64f45c24affbb7636489dc9a1c2a982
[3/3] arm64: dts: qcom: sa8775p-ride: enable video
commit: d33ad6600453fbcf6a9275864ad120079bd540daBest regards,
Signature · 1 line
Bjorn Andersson <[email protected]>