Received: from linuxtv.org (140-211-166-241-openstack.osuosl.org [140.211.166.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C35BD7E1 for ; Tue, 18 Feb 2025 07:17:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.241 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739863061; cv=none; b=fNd8m2QYKODnblDeHUSDw6Go30E+BfNu7vVc83m9MpMBvV/23973crFfuH+vAUHVgUCL/GLOfTvD5Y2X4xVZtRzS5r8A6K63UaP49dlRltU2L9925PT1iD+NPhsBeDQViauap4wIkBHhBm6ut7gobpPjEJVvy6++7jhpHix3rL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739863061; c=relaxed/simple; bh=7ep3hprmW2mCKW0s8/uRiu3pzq9FLRALi8pmVvUJ9F0=; h=Subject:From:To:Message-Id:Date; b=roZBFQ7lXjlL774meNpAoH9OUh+XzICgMUOvPjMvpbzB6gQJL610NvV2noOw54o6W3pHV36KkRAnpVxeT9OpO9jBZEvEbv6iX2mJzjU9fWGVdEhLhpznsgwnQmtB16blYeWYCI7eqO+BTYibHWhFgh8m3S5J/DyKGVkl67E75uo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxtv.org; spf=pass smtp.mailfrom=linuxtv.org; dkim=pass (2048-bit key) header.d=linuxtv.org header.i=@linuxtv.org header.b=JAtSTFek; arc=none smtp.client-ip=140.211.166.241 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxtv.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxtv.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linuxtv.org header.i=@linuxtv.org header.b="JAtSTFek" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linuxtv.org ; s=s1; h=Date:Message-Id:Reply-to:To:From:Subject:Sender:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=eit+GGlr+4cyyO1ccaFRff/9XapjxXmQ35AhCOq2lTQ=; b=JAtSTFekZSPZQcQU0lqArb6URM mwJJ+uVcvc3fWO2gfBH2tz5OYWQ+gl1jtyV5+RQJvBkRiGTobf7Kk1hkver1oI7Gi/thqHteL8QOz 5EvQtsz7rOUUQ/eXYCMWKPa5X13QAx4xZQ4EF13O4VaunXFHPGVNSQTpEPQqeW6WEtvJBieYCMr3/ 31pNoaAeooyQrfoDZ17Cn/f4l2j5ZOnYMkGlWI+pgCkXdQhAVdJ0zudPnxVlubvovOhfWDkdifXgj 4RryZ0izNqsKZlsQTw4Hk6/OSOJGdu4WwFekW2t7mEpcceFdRTJvwdObAfc3Z64+dF3jemLZH+4zA qwk1WzyQ==; Received: from mchehab by linuxtv.org with local (Exim 4.96) (envelope-from ) id 1tkHj0-0001Vx-1C; Tue, 18 Feb 2025 07:08:59 +0000 Subject: [media.git/next] dt-bindings: media: Add video support for QCOM SM8550 SoC From: media-ci@linuxtv.org To: Neil Armstrong # on SM8550-HDK, Dikshita Agarwal , Krzysztof Kozlowski , Stefan Schmidt , devicetree@vger.kernel.org, Stefan Schmidt # x1e80100 (Dell XPS 13 9345), Neil Armstrong # on SM8550-QRD, linuxtv-commits@linuxtv.org Mail-followup-to: linux-media@vger.kernel.org Forward-to: linux-media@vger.kernel.org Reply-to: linux-media@vger.kernel.org Message-Id: Date: Tue, 18 Feb 2025 07:08:58 +0000 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: On Fri Feb 7 13:24:41 2025 +0530, Dikshita Agarwal wrote: > Introduce support for Qualcomm new video acceleration hardware i.e. > iris, used for video stream decoding and encoding on QCOM SM8550 SoC. > > Cc: devicetree@vger.kernel.org > Reviewed-by: Krzysztof Kozlowski > Tested-by: Stefan Schmidt # x1e80100 (Dell XPS 13 9345) > Reviewed-by: Stefan Schmidt > Tested-by: Neil Armstrong # on SM8550-QRD > Tested-by: Neil Armstrong # on SM8550-HDK > Signed-off-by: Dikshita Agarwal > Signed-off-by: Hans Verkuil Patch committed. Thanks, Hans Verkuil .../bindings/media/qcom,sm8550-iris.yaml | 158 +++++++++++++++++++++ 1 file changed, 158 insertions(+) --- diff --git a/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml b/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml new file mode 100644 index 000000000000..e424ea84c211 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml @@ -0,0 +1,158 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/qcom,sm8550-iris.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm iris video encode and decode accelerators + +maintainers: + - Vikash Garodia + - Dikshita Agarwal + +description: + The iris video processing unit is a video encode and decode accelerator + present on Qualcomm platforms. + +allOf: + - $ref: qcom,venus-common.yaml# + +properties: + compatible: + const: qcom,sm8550-iris + + power-domains: + maxItems: 4 + + power-domain-names: + items: + - const: venus + - const: vcodec0 + - const: mxc + - const: mmcx + + clocks: + maxItems: 3 + + clock-names: + items: + - const: iface + - const: core + - const: vcodec0_core + + interconnects: + maxItems: 2 + + interconnect-names: + items: + - const: cpu-cfg + - const: video-mem + + resets: + maxItems: 1 + + reset-names: + items: + - const: bus + + iommus: + maxItems: 2 + + dma-coherent: true + + operating-points-v2: true + + opp-table: + type: object + +required: + - compatible + - power-domain-names + - interconnects + - interconnect-names + - resets + - reset-names + - iommus + - dma-coherent + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + #include + #include + #include + + video-codec@aa00000 { + compatible = "qcom,sm8550-iris"; + reg = <0x0aa00000 0xf0000>; + interrupts = ; + + power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>, + <&videocc VIDEO_CC_MVS0_GDSC>, + <&rpmhpd RPMHPD_MXC>, + <&rpmhpd RPMHPD_MMCX>; + power-domain-names = "venus", "vcodec0", "mxc", "mmcx"; + + 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_ALWAYS + &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ALWAYS>, + <&mmss_noc MASTER_VIDEO QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "cpu-cfg", "video-mem"; + + memory-region = <&video_mem>; + + resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>; + reset-names = "bus"; + + iommus = <&apps_smmu 0x1940 0x0000>, + <&apps_smmu 0x1947 0x0000>; + dma-coherent; + + operating-points-v2 = <&iris_opp_table>; + + iris_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-240000000 { + opp-hz = /bits/ 64 <240000000>; + required-opps = <&rpmhpd_opp_svs>, + <&rpmhpd_opp_low_svs>; + }; + + opp-338000000 { + opp-hz = /bits/ 64 <338000000>; + required-opps = <&rpmhpd_opp_svs>, + <&rpmhpd_opp_svs>; + }; + + 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_turbo>, + <&rpmhpd_opp_turbo>; + }; + + opp-533333334 { + opp-hz = /bits/ 64 <533333334>; + required-opps = <&rpmhpd_opp_turbo_l1>, + <&rpmhpd_opp_turbo_l1>; + }; + }; + }; +...