Skip to contentSkip to conversation

arm64: dts: qcom: nord: Add iris video codec support

PATCH Superseded Gourav Kumar 3 participants 8 messages Nov 26 – Dec 1

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: qcom: nord: Add iris video codec support

The nord platform integrates the Qualcomm iris video codec hardware, which is compatible with the glymur based iris implementation.

This series adds the iris video codec node to the nord device tree and enables it on the Nord Ride Embedded and Nord RRD boards. The devicetree binding change is sent separately for the media tree.

Dependencies:
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/20261120-vpu_iommu_iova_handling-v7-0-25a771235a7f@oss.qualcomm.com/

Test results:
v4l2-compliance 1.28.1-5233, 64 bits, 64-bit time_t v4l2-compliance SHA: fc15e229d9d3 2024-07-23 19:22:15

Compliance test for iris_driver device /dev/video0:

Driver Info:

        Driver name      : iris_driver
        Card type        : Iris Decoder
        Bus info         : platform:aa00000.video-codec
        Driver version   : 7.2.0
        Capabilities     : 0x84204000

Video Memory-to-Memory Multiplanar Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar Streaming
Extended Pix Format

Required ioctls:
test VIDIOC_QUERYCAP: OK
test invalid ioctls: OK

Allow for multiple opens:
test second /dev/video0 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK

Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0

Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 12 Private Controls: 0

Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK
test Composing: OK
test Scaling: OK

Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK

Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test CREATE_BUFS maximum buffers: OK test VIDIOC_REMOVE_BUFS: OK
test VIDIOC_EXPBUF: OK
test Requests: OK (Not Supported)

Test input 0:

Streaming ioctls:
test read/write: OK (Not Supported)
the input file is smaller than 7077888 bytes
Video Capture Multiplanar: Captured 465 buffers test MMAP (select, REQBUFS): OK
the input file is smaller than 7077888 bytes
Video Capture Multiplanar: Captured 465 buffers test MMAP (epoll, REQBUFS): OK
the input file is smaller than 7077888 bytes
Video Capture Multiplanar: Captured 465 buffers test MMAP (select, CREATE_BUFS): OK
the input file is smaller than 7077888 bytes
Video Capture Multiplanar: Captured 465 buffers test MMAP (epoll, CREATE_BUFS): OK
test USERPTR (select): OK (Not Supported) test DMABUF: Cannot test, specify --expbuf-device

Total for iris_driver device /dev/video0: 54, Succeeded: 54, Failed: 0, Warnings: 0

v4l2-compliance report for encoder including streaming tests:

v4l2-compliance 1.28.1-5233, 64 bits, 64-bit time_t v4l2-compliance SHA: fc15e229d9d3 2024-07-23 19:22:15

Compliance test for iris_driver device /dev/video1:

Driver Info:

        Driver name      : iris_driver
        Card type        : Iris Encoder
        Bus info         : platform:aa00000.video-codec
        Driver version   : 7.2.0
        Capabilities     : 0x84204000

Video Memory-to-Memory Multiplanar Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar Streaming
Extended Pix Format
Detected Stateful Encoder

Required ioctls:
test VIDIOC_QUERYCAP: OK
test invalid ioctls: OK

Allow for multiple opens:
test second /dev/video1 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK

Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0

Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 64 Private Controls: 0

Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK
test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)

Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK
test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test CREATE_BUFS maximum buffers: OK test VIDIOC_REMOVE_BUFS: OK
test VIDIOC_EXPBUF: OK
test Requests: OK (Not Supported)

Test input 0:

Streaming ioctls:
test read/write: OK (Not Supported)
test blocking wait: OK
Video Capture Multiplanar: Captured 61 buffers test MMAP (select): OK
Video Capture Multiplanar: Captured 61 buffers test MMAP (epoll): OK
test USERPTR (select): OK (Not Supported) test DMABUF: Cannot test, specify --expbuf-device

Total for iris_driver device /dev/video1: 52, Succeeded: 52, Failed: 0, Warnings: 0

Fluster test report for Nord:

77/135 while testing JVT-AVC_V1 with GStreamer-H.264-V4L2-Gst1.0.JVT-AVC_V1
The failing tests are:
- 52 test vectors failed due to interlaced clips: Interlaced decoding is not supported.
- cabac_mot_fld0_full
- cabac_mot_mbaff0_full
- cabac_mot_picaff0_full
- CABREF3_Sand_D
- CAFI1_SVA_C
- CAMA1_Sony_C
- CAMA1_TOSHIBA_B
- cama1_vtc_c
- cama2_vtc_b
- CAMA3_Sand_E
- cama3_vtc_b
- CAMACI3_Sony_C
- CAMANL1_TOSHIBA_B
- CAMANL2_TOSHIBA_B
- CAMANL3_Sand_E
- CAMASL3_Sony_B
- CAMP_MOT_MBAFF_L30
- CAMP_MOT_MBAFF_L31
- CANLMA2_Sony_C
- CANLMA3_Sony_C
- CAPA1_TOSHIBA_B
- CAPAMA3_Sand_F
- cavlc_mot_fld0_full_B
- cavlc_mot_mbaff0_full_B
- cavlc_mot_picaff0_full_B
- CVCANLMA2_Sony_C
- CVFI1_Sony_D
- CVFI1_SVA_C
- CVFI2_Sony_H
- CVFI2_SVA_C
- CVMA1_Sony_D
- CVMA1_TOSHIBA_B
- CVMANL1_TOSHIBA_B
- CVMANL2_TOSHIBA_B
- CVMAPAQP3_Sony_E
- CVMAQP2_Sony_G
- CVMAQP3_Sony_D
- CVMP_MOT_FLD_L30_B
- CVNLFI1_Sony_C
- CVNLFI2_Sony_H
- CVPA1_TOSHIBA_B
- FI1_Sony_E
- MR6_BT_B
- MR7_BT_B
- MR8_BT_B
- MR9_BT_B
- Sharp_MP_Field_1_B
- Sharp_MP_Field_2_B
- Sharp_MP_Field_3_B
- Sharp_MP_PAFF_1r2
- Sharp_MP_PAFF_2r
- CVMP_MOT_FRM_L31_B
3 test case failed due to unsupported bitstream. num_slice_groups_minus1 greater than zero is not supported.
- FM1_BT_B
- FM1_FT_E
- FM2_SVA_C
2 test case failed because SP_SLICE type is not supported.
- SP1_BT_A
- sp2_bt_b
1 test case failed due to unsupported profile.
- BA3_SVA_C

140/147 testcases passed while testing JCT-VC-HEVC_V1 with GStreamer-H.265-V4L2-Gst1.0.

1 testcase failed due to unsupported bitstream:
- TSUNEQBD_A_MAIN10_Technicolor_2

4 testcases failed due to unsupported resolution:
- PICSIZE_A_Bossen_1
- PICSIZE_B_Bossen_1
- WPP_D_ericsson_MAIN10_2
- WPP_D_ericsson_MAIN_2

2 testcases failed due to CRC mismatch:
- VPSSPSPPS_A_MainConcept_1
- RAP_A_docomo_6

235/305 testcases passed while testing VP9-TEST-VECTORS with GStreamer-VP9-V4L2-Gst1.0.

64 testcases failed due to unsupported resolution.
- vp90-2-02-size-08x08.webm
- vp90-2-02-size-08x10.webm
- vp90-2-02-size-08x16.webm
- vp90-2-02-size-08x18.webm
- vp90-2-02-size-08x32.webm
- vp90-2-02-size-08x34.webm
- vp90-2-02-size-08x64.webm
- vp90-2-02-size-08x66.webm
- vp90-2-02-size-10x08.webm
- vp90-2-02-size-10x10.webm
- vp90-2-02-size-10x16.webm
- vp90-2-02-size-10x18.webm
- vp90-2-02-size-10x32.webm
- vp90-2-02-size-10x34.webm
- vp90-2-02-size-10x64.webm
- vp90-2-02-size-10x66.webm
- vp90-2-02-size-16x08.webm
- vp90-2-02-size-16x10.webm
- vp90-2-02-size-16x16.webm
- vp90-2-02-size-16x18.webm
- vp90-2-02-size-16x32.webm
- vp90-2-02-size-16x34.webm
- vp90-2-02-size-16x64.webm
- vp90-2-02-size-16x66.webm
- vp90-2-02-size-18x08.webm
- vp90-2-02-size-18x10.webm
- vp90-2-02-size-18x16.webm
- vp90-2-02-size-18x18.webm
- vp90-2-02-size-18x32.webm
- vp90-2-02-size-18x34.webm
- vp90-2-02-size-18x64.webm
- vp90-2-02-size-18x66.webm
- vp90-2-02-size-32x08.webm
- vp90-2-02-size-32x10.webm
- vp90-2-02-size-32x16.webm
- vp90-2-02-size-32x18.webm
- vp90-2-02-size-32x32.webm
- vp90-2-02-size-32x34.webm
- vp90-2-02-size-32x64.webm
- vp90-2-02-size-32x66.webm
- vp90-2-02-size-34x08.webm
- vp90-2-02-size-34x10.webm
- vp90-2-02-size-34x16.webm
- vp90-2-02-size-34x18.webm
- vp90-2-02-size-34x32.webm
- vp90-2-02-size-34x34.webm
- vp90-2-02-size-34x64.webm
- vp90-2-02-size-34x66.webm
- vp90-2-02-size-64x08.webm
- vp90-2-02-size-64x10.webm
- vp90-2-02-size-64x16.webm
- vp90-2-02-size-64x18.webm
- vp90-2-02-size-64x32.webm
- vp90-2-02-size-64x34.webm
- vp90-2-02-size-64x64.webm
- vp90-2-02-size-64x66.webm
- vp90-2-02-size-66x08.webm
- vp90-2-02-size-66x10.webm
- vp90-2-02-size-66x16.webm
- vp90-2-02-size-66x18.webm
- vp90-2-02-size-66x32.webm
- vp90-2-02-size-66x34.webm
- vp90-2-02-size-66x64.webm
- vp90-2-02-size-66x66.webm

2 testcases failed due to unsupported format:
- vp91-2-04-yuv422.webm
- vp91-2-04-yuv444.webm

2 testcases failed due to unsupported resolution after DRC:
- vp90-2-21-resize_inter_320x180_5_1-2.webm
- vp90-2-21-resize_inter_320x180_7_1-2.webm

1 testcase failed with CRC mismatch:
- vp90-2-22-svc_1280x720_3.ivf

1 testcase failed due to unsupported stream:
- vp90-2-16-intra-only.webm

Changes in v2:
- Rebase on linux-next master and update the dependencies to their latest revisions.
- Fix the AXI clock and reset assignment of the iris node.
- Split the iris node: common resources go in nord.dtsi, Nord Embedded
specific ones stay in nord-embedded.dtsi (Shawn).
- Send the dt-bindings patch separately to the media tree, so this series now only contains the DTS patches (Shawn).
- List the dependencies explicitly in the cover letter instead of
prerequisite trailers (Shawn).
- Drop the display driver series dependency (Shawn).
- Collect Reviewed-by from Abel Vesa on the enable patches.
- Link to v1: https://lore.kernel.org/all/[email protected]/

---
Vishnu Reddy (3):
arm64: dts: qcom: nord: Add iris video node
arm64: dts: qcom: nord-ride-embedded: Enable iris video codec node
arm64: dts: qcom: nord-rrd: Enable iris video codec node

 arch/arm64/boot/dts/qcom/nord-embedded.dtsi     | 88 +++++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/nord-ride-embedded.dts |  6 ++
 arch/arm64/boot/dts/qcom/nord-rrd.dts           |  6 ++
 arch/arm64/boot/dts/qcom/nord.dtsi              | 28 ++++++++
 4 files changed, 128 insertions(+)

---
base-commit: 3dd8c790a7b7027abdd568e36db5e82ffaea7c77
change-id: 20261126-nord-iris-dts-ebd62d247f79

Best regards,

Signature · 1 line
Gourav Kumar <[email protected]>
#1 lore raw

PATCH v2 1/3 arm64: dts: qcom: nord: Add iris video node

From: Vishnu Reddy <[email protected]>

Add iris video codec to nord SoC, which comes with significantly different powering up sequence than previous platforms, thus different clocks and resets.

Describe the resources common to all nord variants (register space, interrupt, IOMMU streams and DMA setup) in nord.dtsi, and the Nord Embedded specific ones (clocks, resets, interconnects, power domains and the OPP table) in nord-embedded.dtsi.

---
 arch/arm64/boot/dts/qcom/nord-embedded.dtsi | 88 +++++++++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/nord.dtsi          | 28 +++++++++
 2 files changed, 116 insertions(+)
arch/arm64/boot/dts/qcom/nord-embedded.dtsi +88 -0
index e6d0bd21744e2..8af7d13b30eee 100644
@@ -380,6 +380,94 @@ &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>,
 	pinctrl-names = "default";
 };
 
+&iris {
+	clocks = <&nwgcc NW_GCC_VIDEO_AXI0C_CLK>,
+		 <&videocc VIDEO_CC_MVS0C_CLK>,
+		 <&videocc VIDEO_CC_MVS0_CLK>,
+		 <&nwgcc NW_GCC_VIDEO_AXI0_CLK>,
+		 <&videocc VIDEO_CC_MVS0C_FREERUN_CLK>,
+		 <&videocc VIDEO_CC_MVS0_FREERUN_CLK>,
+		 <&nwgcc NW_GCC_VIDEO_AXI1_CLK>,
+		 <&videocc VIDEO_CC_MVS1_CLK>,
+		 <&videocc VIDEO_CC_MVS1_FREERUN_CLK>;
+	clock-names = "core_iface",
+		      "core",
+		      "vcodec0_core",
+		      "vcodec0_iface",
+		      "core_freerun",
+		      "vcodec0_core_freerun",
+		      "vcodec1_iface",
+		      "vcodec1_core",
+		      "vcodec1_core_freerun";
+
+	interconnects = <&hscnoc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+			 &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>,
+			<&mmss_noc MASTER_VIDEO_MVP0 QCOM_ICC_TAG_ALWAYS
+			 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
+	interconnect-names = "cpu-cfg",
+			     "video-mem";
+
+	operating-points-v2 = <&iris_opp_table>;
+
+	power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>,
+			<&videocc VIDEO_CC_MVS0_GDSC>,
+			<&rpmhpd RPMHPD_MXC>,
+			<&rpmhpd RPMHPD_MMCX>,
+			<&videocc VIDEO_CC_MVS1_GDSC>;
+	power-domain-names = "venus",
+			     "vcodec0",
+			     "mxc",
+			     "mmcx",
+			     "vcodec1";
+
+	resets = <&nwgcc NW_GCC_VIDEO_AXI0C_CLK_ARES>,
+		 <&nwgcc NW_GCC_VIDEO_AXI0_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS0C_FREERUN_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS0_FREERUN_CLK_ARES>,
+		 <&nwgcc NW_GCC_VIDEO_AXI1_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS1_FREERUN_CLK_ARES>;
+	reset-names = "core_bus",
+		      "vcodec0_bus",
+		      "core",
+		      "vcodec0_core",
+		      "vcodec1_bus",
+		      "vcodec1_core";
+
+	iris_opp_table: opp-table {
+		compatible = "operating-points-v2";
+
+		opp-240000000 {
+			opp-hz = /bits/ 64 <240000000 240000000 360000000>;
+			required-opps = <&rpmhpd_opp_svs>,
+					<&rpmhpd_opp_svs>;
+		};
+
+		opp-435000000 {
+			opp-hz = /bits/ 64 <435000000 435000000 652500000>;
+			required-opps = <&rpmhpd_opp_svs_l1>,
+					<&rpmhpd_opp_svs_l1>;
+		};
+
+		opp-480000000 {
+			opp-hz = /bits/ 64 <480000000 480000000 720000000>;
+			required-opps = <&rpmhpd_opp_svs_l1>,
+					<&rpmhpd_opp_nom>;
+		};
+
+		opp-533333333 {
+			opp-hz = /bits/ 64 <533333333 533333333 800000000>;
+			required-opps = <&rpmhpd_opp_svs_l1>,
+					<&rpmhpd_opp_turbo>;
+		};
+
+		opp-560000000 {
+			opp-hz = /bits/ 64 <560000000 560000000 840000000>;
+			required-opps = <&rpmhpd_opp_nom>,
+					<&rpmhpd_opp_turbo_l1>;
+		};
+	};
+};
+
 &pcie0 {
 	clocks = <&gcc GCC_PCIE_A_AUX_CLK>,
 		 <&gcc GCC_PCIE_A_CFG_AHB_CLK>,
arch/arm64/boot/dts/qcom/nord.dtsi +28 -0
index 56778dd444e4e..c73db8cdeafb7 100644
@@ -2371,6 +2371,34 @@ pcie_smmu: iommu@9980000 {
 			#iommu-cells = <1>;
 		};
 
+		iris: video-codec@aa00000 {
+			compatible = "qcom,nord-iris", "qcom,glymur-iris";
+			reg = <0x0 0x0aa00000 0x0 0xf0000>;
+
+			dma-coherent;
+
+			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+
+			memory-region = <&video_mem>;
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+			dma-ranges = <0x0 0x0 0x0 0xffe00000>;
+
+			status = "disabled";
+
+			non-pixel {
+				iommus = <&apps_smmu_1 0x0940 0x20>,
+					 <&apps_smmu_1 0x0944 0x0>,
+					 <&apps_smmu_1 0x0960 0x20>;
+				iommu-ranges = <0x25800000 0xda600000>;
+			};
+
+			pixel {
+				iommus = <&apps_smmu_1 0x0943 0x0>;
+			};
+		};
+
 		pdc: interrupt-controller@b220000 {
 			compatible = "qcom,nord-pdc",
 				     "qcom,pdc";
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH v2 1/3] arm64: dts: qcom: nord: Add iris video node

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] arm64: dts: qcom: nord: undocumented iris binding and child iommus nodes --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [High] arm64: dts: qcom: nord: undocumented iris binding and child iommus nodes
--

commit ab1d158c6cd044102623ff66075b408a2a4b580f
Author: Vishnu Reddy <[email protected]>

arm64: dts: qcom: nord: Add iris video node

This commit adds the iris video codec device tree node to nord.dtsi and populates its clocks, resets, interconnects, power domains, and OPP table in nord-embedded.dtsi.

Quoted 69 lines
arch/arm64/boot/dts/qcom/nord-embedded.dtsi +61 -0
index e6d0bd21744e2..8af7d13b30eee 100644
@@ -380,6 +380,94 @@ &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>,
 	pinctrl-names = "default";
 };
 
+&iris {
+	clocks = <&nwgcc NW_GCC_VIDEO_AXI0C_CLK>,
+		 <&videocc VIDEO_CC_MVS0C_CLK>,
+		 <&videocc VIDEO_CC_MVS0_CLK>,
+		 <&nwgcc NW_GCC_VIDEO_AXI0_CLK>,
+		 <&videocc VIDEO_CC_MVS0C_FREERUN_CLK>,
+		 <&videocc VIDEO_CC_MVS0_FREERUN_CLK>,
+		 <&nwgcc NW_GCC_VIDEO_AXI1_CLK>,
+		 <&videocc VIDEO_CC_MVS1_CLK>,
+		 <&videocc VIDEO_CC_MVS1_FREERUN_CLK>;
+	clock-names = "core_iface",
+		      "core",
+		      "vcodec0_core",
+		      "vcodec0_iface",
+		      "core_freerun",
+		      "vcodec0_core_freerun",
+		      "vcodec1_iface",
+		      "vcodec1_core",
+		      "vcodec1_core_freerun";
+
+	interconnects = <&hscnoc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+			 &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>,
+			<&mmss_noc MASTER_VIDEO_MVP0 QCOM_ICC_TAG_ALWAYS
+			 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
+	interconnect-names = "cpu-cfg",
+			     "video-mem";
+
+	operating-points-v2 = <&iris_opp_table>;
+
+	power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>,
+			<&videocc VIDEO_CC_MVS0_GDSC>,
+			<&rpmhpd RPMHPD_MXC>,
+			<&rpmhpd RPMHPD_MMCX>,
+			<&videocc VIDEO_CC_MVS1_GDSC>;
+	power-domain-names = "venus",
+			     "vcodec0",
+			     "mxc",
+			     "mmcx",
+			     "vcodec1";
+
+	resets = <&nwgcc NW_GCC_VIDEO_AXI0C_CLK_ARES>,
+		 <&nwgcc NW_GCC_VIDEO_AXI0_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS0C_FREERUN_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS0_FREERUN_CLK_ARES>,
+		 <&nwgcc NW_GCC_VIDEO_AXI1_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS1_FREERUN_CLK_ARES>;
+	reset-names = "core_bus",
+		      "vcodec0_bus",
+		      "core",
+		      "vcodec0_core",
+		      "vcodec1_bus",
+		      "vcodec1_core";
+
+	iris_opp_table: opp-table {
+		compatible = "operating-points-v2";
+
+		opp-240000000 {
+			opp-hz = /bits/ 64 <240000000 240000000 360000000>;
+			required-opps = <&rpmhpd_opp_svs>,
+					<&rpmhpd_opp_svs>;
+		};

[ ... ]

Quoted 25 lines
arch/arm64/boot/dts/qcom/nord.dtsi +17 -0
index 56778dd444e4e..c73db8cdeafb7 100644
@@ -2371,6 +2371,34 @@ pcie_smmu: iommu@9980000 {
 			#iommu-cells = <1>;
 		};
 
+		iris: video-codec@aa00000 {
+			compatible = "qcom,nord-iris", "qcom,glymur-iris";
+			reg = <0x0 0x0aa00000 0x0 0xf0000>;
+
+			dma-coherent;
+
+			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+
+			memory-region = <&video_mem>;
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+			dma-ranges = <0x0 0x0 0x0 0xffe00000>;
+
+			status = "disabled";
+
+			non-pixel {

arch/arm64/boot/dts/qcom/nord.dtsi pcie_smmu: iommu@9980000 { · line 2400

Quoted 10 lines
arch/arm64/boot/dts/qcom/nord.dtsi +10 -0
+				iommus = <&apps_smmu_1 0x0940 0x20>,
+					 <&apps_smmu_1 0x0944 0x0>,
+					 <&apps_smmu_1 0x0960 0x20>;
+				iommu-ranges = <0x25800000 0xda600000>;
+			};
+
+			pixel {
+				iommus = <&apps_smmu_1 0x0943 0x0>;
+			};
+		};

[Severity: High]
Are the binding and driver changes for "qcom,nord-iris" and "qcom,glymur-iris" missing?

Neither compatible string, nor the 9 clocks, 5 power-domains, 6 resets, 3-tuple opp-hz entries, iommu-ranges property, or non-pixel and pixel child nodes are documented in Documentation/devicetree/bindings/media/ or handled by drivers/media/platform/qcom/iris/, so make dtbs_check fails.

Because iommus is placed in the unparsed non-pixel and pixel subnodes rather than on video-codec@aa00000 itself, platform_dma_configure() does not attach the device to apps_smmu_1, causing iris_reserve_iova_region() -> dma_iova_try_alloc() in iris_probe() to fail with -ENOMEM if bound. In addition, placing dma-ranges = <0x0 0x0 0x0 0xffe00000> on video-codec@aa00000 causes of_dma_get_max_cpu_address() in dma_limits_init() to cap the system-wide dt_zone_dma_limit to 0xffdfffff whenever the node is enabled.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw

Re: [PATCH v2 1/3] arm64: dts: qcom: nord: Add iris video node

Quoted 116 lines · On 11/26/2026 7:16 PM, [email protected] wrote:

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [High] arm64: dts: qcom: nord: undocumented iris binding and child iommus nodes
--

commit ab1d158c6cd044102623ff66075b408a2a4b580f
Author: Vishnu Reddy <[email protected]>

arm64: dts: qcom: nord: Add iris video node

This commit adds the iris video codec device tree node to nord.dtsi and populates its clocks, resets, interconnects, power domains, and OPP table in nord-embedded.dtsi.

Quoted 69 lines
arch/arm64/boot/dts/qcom/nord-embedded.dtsi +61 -0
index e6d0bd21744e2..8af7d13b30eee 100644
@@ -380,6 +380,94 @@ &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>,
 	pinctrl-names = "default";
 };
 
+&iris {
+	clocks = <&nwgcc NW_GCC_VIDEO_AXI0C_CLK>,
+		 <&videocc VIDEO_CC_MVS0C_CLK>,
+		 <&videocc VIDEO_CC_MVS0_CLK>,
+		 <&nwgcc NW_GCC_VIDEO_AXI0_CLK>,
+		 <&videocc VIDEO_CC_MVS0C_FREERUN_CLK>,
+		 <&videocc VIDEO_CC_MVS0_FREERUN_CLK>,
+		 <&nwgcc NW_GCC_VIDEO_AXI1_CLK>,
+		 <&videocc VIDEO_CC_MVS1_CLK>,
+		 <&videocc VIDEO_CC_MVS1_FREERUN_CLK>;
+	clock-names = "core_iface",
+		      "core",
+		      "vcodec0_core",
+		      "vcodec0_iface",
+		      "core_freerun",
+		      "vcodec0_core_freerun",
+		      "vcodec1_iface",
+		      "vcodec1_core",
+		      "vcodec1_core_freerun";
+
+	interconnects = <&hscnoc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+			 &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>,
+			<&mmss_noc MASTER_VIDEO_MVP0 QCOM_ICC_TAG_ALWAYS
+			 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
+	interconnect-names = "cpu-cfg",
+			     "video-mem";
+
+	operating-points-v2 = <&iris_opp_table>;
+
+	power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>,
+			<&videocc VIDEO_CC_MVS0_GDSC>,
+			<&rpmhpd RPMHPD_MXC>,
+			<&rpmhpd RPMHPD_MMCX>,
+			<&videocc VIDEO_CC_MVS1_GDSC>;
+	power-domain-names = "venus",
+			     "vcodec0",
+			     "mxc",
+			     "mmcx",
+			     "vcodec1";
+
+	resets = <&nwgcc NW_GCC_VIDEO_AXI0C_CLK_ARES>,
+		 <&nwgcc NW_GCC_VIDEO_AXI0_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS0C_FREERUN_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS0_FREERUN_CLK_ARES>,
+		 <&nwgcc NW_GCC_VIDEO_AXI1_CLK_ARES>,
+		 <&videocc VIDEO_CC_MVS1_FREERUN_CLK_ARES>;
+	reset-names = "core_bus",
+		      "vcodec0_bus",
+		      "core",
+		      "vcodec0_core",
+		      "vcodec1_bus",
+		      "vcodec1_core";
+
+	iris_opp_table: opp-table {
+		compatible = "operating-points-v2";
+
+		opp-240000000 {
+			opp-hz = /bits/ 64 <240000000 240000000 360000000>;
+			required-opps = <&rpmhpd_opp_svs>,
+					<&rpmhpd_opp_svs>;
+		};

[ ... ]

Quoted 31 lines
arch/arm64/boot/dts/qcom/nord.dtsi +23 -0
index 56778dd444e4e..c73db8cdeafb7 100644
@@ -2371,6 +2371,34 @@ pcie_smmu: iommu@9980000 {
 			#iommu-cells = <1>;
 		};
 
+		iris: video-codec@aa00000 {
+			compatible = "qcom,nord-iris", "qcom,glymur-iris";
+			reg = <0x0 0x0aa00000 0x0 0xf0000>;
+
+			dma-coherent;
+
+			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+
+			memory-region = <&video_mem>;
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+			dma-ranges = <0x0 0x0 0x0 0xffe00000>;
+
+			status = "disabled";
+
+			non-pixel {
+				iommus = <&apps_smmu_1 0x0940 0x20>,
+					 <&apps_smmu_1 0x0944 0x0>,
+					 <&apps_smmu_1 0x0960 0x20>;
+				iommu-ranges = <0x25800000 0xda600000>;
+			};
+
Quoted 9 lines

arch/arm64/boot/dts/qcom/nord.dtsi pcie_smmu: iommu@9980000 { · line 2400

Quoted 4 lines
arch/arm64/boot/dts/qcom/nord.dtsi +4 -0
+			pixel {
+				iommus = <&apps_smmu_1 0x0943 0x0>;
+			};
+		};

[Severity: High]
Are the binding and driver changes for "qcom,nord-iris" and "qcom,glymur-iris" missing?

No, they are in the series listed under "Dependencies:".

Quoted 5 lines

Neither compatible string, nor the 9 clocks, 5 power-domains, 6 resets, 3-tuple opp-hz entries, iommu-ranges property, or non-pixel and pixel child nodes are documented in Documentation/devicetree/bindings/media/ or handled by drivers/media/platform/qcom/iris/, so make dtbs_check fails.

That is the intended layout of the context bank binding (vpu_iommu v7, 1/12). The driver creates a device per subnode (4/12) and skips the IOVA reservation when the parent has no IOMMU (6/12).

Quoted 9 lines

Because iommus is placed in the unparsed non-pixel and pixel subnodes rather than on video-codec@aa00000 itself, platform_dma_configure() does not attach the device to apps_smmu_1, causing iris_reserve_iova_region() -> dma_iova_try_alloc() in iris_probe() to fail with -ENOMEM if bound. In addition, placing dma-ranges = <0x0 0x0 0x0 0xffe00000> on video-codec@aa00000 causes of_dma_get_max_cpu_address() in dma_limits_init() to cap the system-wide dt_zone_dma_limit to 0xffdfffff whenever the node is enabled.

#4 lore raw

Re: [PATCH v2 1/3] arm64: dts: qcom: nord: Add iris video node

In reply to Gourav Kumar
Quoted 5 lines · Gourav Kumar

From: Vishnu Reddy <[email protected]>

Add iris video codec to nord SoC, which comes with significantly different powering up sequence than previous platforms, thus different clocks and resets.

This reads as if it was copied from the Glymur patch. Nord falls back to qcom,glymur-iris and uses exactly the Glymur clocks, resets and power sequence, so "significantly different from previous platforms" is misleading here. Please say that Nord integrates the Glymur iris IP and reuses its resources, and explain the parts that do differ from Glymur:

- The OPP table: the rates follow the Nord video_cc PLL0 plan (720/1305/1440/1600/1680 MHz)
- The interconnect: only MASTER_VIDEO_MVP0 gets a vote, although Nord also has MASTER_VIDEO_MVP1 (Explain why)
- The stream IDs (see below)

Quoted 13 lines

Describe the resources common to all nord variants (register space, interrupt, IOMMU streams and DMA setup) in nord.dtsi, and the Nord Embedded specific ones (clocks, resets, interconnects, power domains and the OPP table) in nord-embedded.dtsi.

---
 arch/arm64/boot/dts/qcom/nord-embedded.dtsi | 88 +++++++++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/nord.dtsi          | 28 +++++++++
 2 files changed, 116 insertions(+)

[...]

Quoted 18 lines
arch/arm64/boot/dts/qcom/nord.dtsi +10 -0
index 56778dd444e4e..c73db8cdeafb7 100644
@@ -2371,6 +2371,34 @@ pcie_smmu: iommu@9980000 {
 			#iommu-cells = <1>;
 		};
 
+		iris: video-codec@aa00000 {
+			compatible = "qcom,nord-iris", "qcom,glymur-iris";
+			reg = <0x0 0x0aa00000 0x0 0xf0000>;
+
+			dma-coherent;
+
+			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+
+			memory-region = <&video_mem>;
+

arch/arm64/boot/dts/qcom/nord.dtsi pcie_smmu: iommu@9980000 { · line 2393

Quoted 10 lines
arch/arm64/boot/dts/qcom/nord.dtsi +10 -0
+			#address-cells = <1>;
+			#size-cells = <1>;
+			dma-ranges = <0x0 0x0 0x0 0xffe00000>;
+
+			status = "disabled";
+
+			non-pixel {
+				iommus = <&apps_smmu_1 0x0940 0x20>,
+					 <&apps_smmu_1 0x0944 0x0>,
+					 <&apps_smmu_1 0x0960 0x20>;

With mask 0x20, the first entry already matches both 0x940 and 0x960, and the third entry matches the same pair again. The two describe the same SMR. Glymur uses mask 0x0 for all three non-pixel SIDs, and its third one is 0x19e0 (base | 0xa0) rather than base | 0x20.

So either the third SID is not 0x960, or the 0x20 mask is intended and the third entry is redundant. Could you double check the Nord SID assignment and fix whichever one is wrong? If a non-zero mask is really needed on Nord, please explain why in the commit message.

Shawn

Quoted 15 lines
arch/arm64/boot/dts/qcom/nord.dtsi +8 -0
+				iommu-ranges = <0x25800000 0xda600000>;
+			};
+
+			pixel {
+				iommus = <&apps_smmu_1 0x0943 0x0>;
+			};
+		};
+
 		pdc: interrupt-controller@b220000 {
 			compatible = "qcom,nord-pdc",
 				     "qcom,pdc";
Signature · 2 lines
-- 
2.34.1
#5 lore raw

Re: [PATCH v2 1/3] arm64: dts: qcom: nord: Add iris video node

Quoted 13 lines · Shawn Guo
Quoted 5 lines · Gourav Kumar

From: Vishnu Reddy <[email protected]>

Add iris video codec to nord SoC, which comes with significantly different powering up sequence than previous platforms, thus different clocks and resets.

This reads as if it was copied from the Glymur patch. Nord falls back to qcom,glymur-iris and uses exactly the Glymur clocks, resets and power sequence, so "significantly different from previous platforms" is misleading here. Please say that Nord integrates the Glymur iris IP and reuses its resources, and explain the parts that do differ from Glymur:

Quoted 6 lines

- The OPP table: the rates follow the Nord video_cc PLL0 plan (720/1305/1440/1600/1680 MHz)
- The interconnect: only MASTER_VIDEO_MVP0 gets a vote, although Nord also has MASTER_VIDEO_MVP1 (Explain why)
- The stream IDs (see below)

Agreed, I will reword the commit message in v3 and explain these three.

Quoted 50 lines
Quoted 13 lines

Describe the resources common to all nord variants (register space, interrupt, IOMMU streams and DMA setup) in nord.dtsi, and the Nord Embedded specific ones (clocks, resets, interconnects, power domains and the OPP table) in nord-embedded.dtsi.

---
 arch/arm64/boot/dts/qcom/nord-embedded.dtsi | 88 +++++++++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/nord.dtsi          | 28 +++++++++
 2 files changed, 116 insertions(+)

[...]

Quoted 18 lines
arch/arm64/boot/dts/qcom/nord.dtsi +10 -0
index 56778dd444e4e..c73db8cdeafb7 100644
@@ -2371,6 +2371,34 @@ pcie_smmu: iommu@9980000 {
 			#iommu-cells = <1>;
 		};
 
+		iris: video-codec@aa00000 {
+			compatible = "qcom,nord-iris", "qcom,glymur-iris";
+			reg = <0x0 0x0aa00000 0x0 0xf0000>;
+
+			dma-coherent;
+
+			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+
+			memory-region = <&video_mem>;
+

arch/arm64/boot/dts/qcom/nord.dtsi pcie_smmu: iommu@9980000 { · line 2393

Quoted 10 lines
arch/arm64/boot/dts/qcom/nord.dtsi +10 -0
+			#address-cells = <1>;
+			#size-cells = <1>;
+			dma-ranges = <0x0 0x0 0x0 0xffe00000>;
+
+			status = "disabled";
+
+			non-pixel {
+				iommus = <&apps_smmu_1 0x0940 0x20>,
+					 <&apps_smmu_1 0x0944 0x0>,
+					 <&apps_smmu_1 0x0960 0x20>;

With mask 0x20, the first entry already matches both 0x940 and 0x960, and the third entry matches the same pair again. The two describe the same SMR. Glymur uses mask 0x0 for all three non-pixel SIDs, and its third one is 0x19e0 (base | 0xa0) rather than base | 0x20.

Quoted 7 lines

So either the third SID is not 0x960, or the 0x20 mask is intended and the third entry is redundant. Could you double check the Nord SID assignment and fix whichever one is wrong? If a non-zero mask is really needed on Nord, please explain why in the commit message.

Shawn

Checked against the Nord SID mapping, will fix it in v3.

- Gourav Kumar

Quoted 15 lines
Quoted 15 lines
arch/arm64/boot/dts/qcom/nord.dtsi +8 -0
+				iommu-ranges = <0x25800000 0xda600000>;
+			};
+
+			pixel {
+				iommus = <&apps_smmu_1 0x0943 0x0>;
+			};
+		};
+
 		pdc: interrupt-controller@b220000 {
 			compatible = "qcom,nord-pdc",
 				     "qcom,pdc";
Signature · 2 lines
-- 
2.34.1
#6 lore raw

PATCH v2 2/3 arm64: dts: qcom: nord-ride-embedded: Enable iris video codec node

In reply to Gourav Kumar

From: Vishnu Reddy <[email protected]>

The iris hardware block is described in the nord SoC DTSI, and enabling it here allows the media iris driver to probe and use the video codec functionality.

---
 arch/arm64/boot/dts/qcom/nord-ride-embedded.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/nord-ride-embedded.dts +6 -0
index 3f764069bf1b4..b31c30f460b7b 100644
@@ -464,6 +464,12 @@ vreg_l3l_1p8: ldo3 {
 	};
 };
 
+&iris {
+	firmware-name = "qcom/vpu/vpu36_p4_s7.mbn";
+
+	status = "okay";
+};
+
 &pcie_phy {
 	vdda-phy-a-supply = <&vreg_l6a_1p2>;
 	vdda-phy-b-supply = <&vreg_l4a_1p2>;
Signature · 1 line
2.34.1
#7 lore raw

PATCH v2 3/3 arm64: dts: qcom: nord-rrd: Enable iris video codec node

In reply to Gourav Kumar

From: Vishnu Reddy <[email protected]>

The iris hardware block is described in the nord SoC DTSI, and enabling it here allows the media iris driver to probe and use the video codec functionality.

---
 arch/arm64/boot/dts/qcom/nord-rrd.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/nord-rrd.dts +6 -0
index 827d3ba3a2383..cd57aa8b29c27 100644
@@ -475,6 +475,12 @@ rtc@32 {
 	};
 };
 
+&iris {
+	firmware-name = "qcom/vpu/vpu36_p4_s7.mbn";
+
+	status = "okay";
+};
+
 &pcie_phy {
 	vdda-phy-a-supply = <&vreg_l6a_1p2>;
 	vdda-phy-b-supply = <&vreg_l4a_1p2>;
Signature · 1 line
2.34.1