Received: by 2002:ac8:6d01:0:b0:423:7e07:f8e4 with SMTP id o1csp6920759qtt; Mon, 18 Dec 2023 10:17:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCk3UYAXw5X0RLgyXvVxp4WcwrACSnfSHIPIsEcI+JRBDiFpypsN2o/pHDT9E34iiVWasf X-Received: by 2002:a05:622a:1816:b0:425:a3cf:3025 with SMTP id t22-20020a05622a181600b00425a3cf3025mr14666859qtc.54.1702923441430; Mon, 18 Dec 2023 10:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702923441; cv=none; d=google.com; s=arc-20160816; b=cTW19Qx1hQtFX9lEuRKUqGJ2vD2l9fX+hZNzbEhPTSr7naGauAW8vew7fkxKimoYhd Cwp/bn1dxM5/fvFGJ9Sr9hsL93yMKiDKDvHsvIXUuxnqZCH1Ucr06tWycEkc/RI3rYRO K/Oc+hdMdfi45YC9weKs4G1IO4MquxmYEhBMik/HfxpjeZxgPCpTnUBwhRD6wVhTv6TM /2QIt5E1xTK4gxfC0m56+9c8Utro00KjvDcyn5BA5uRX93K8V0oAL/afKTxP1XcyXpD2 vIVIIwyJxkSANCS2taXnvcihfQPOb7pXcvQ/PkClRXkXdR0rmd/fJGidY5ncPDs/fzDc +Vaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rVcChtr4GmV1ghqK0C1H3Zam/dO8O1ORAV4aMaIixWE=; fh=V1tS30MR71O8875Vt1aZ1qSdLiMiRBfV7PEKyWISISk=; b=rRhIu9zzkrpvlyO8iBM/FOtXANuPt1eURPSRqpypGxU3OIaqmqkkviGwZqb4/jZUhD PdyiSi00n9lZj+qEB8FEVLIWGvz9V3OkQw/K/9vgo1vdqsHhkm9L/HDauUJDPc0nS78b PODRQnf40nWcbBbjS/BVyrHj28MuvmiztlO/kH6b0xCMYazGmAdc4NIjZw0IDC9qPmf1 pq8ZtnugPXnhm9BYYu1we4RbGEHlLKdA4UNB17AnxTS22MUtdaN0MU3MuKSxbCQS0gAz LPlHGjnq4KVnzB8GIiDwX5QABW4oCLtJWxfOEtJauKnwipl+LkFfo5WtiD3DRbAkvMth iL1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y6qX55G3; spf=pass (google.com: domain of linux-kernel+bounces-4236-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w1-20020ac87181000000b0042585e4514csi22723207qto.75.2023.12.18.10.17.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 10:17:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4236-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y6qX55G3; spf=pass (google.com: domain of linux-kernel+bounces-4236-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 08F2C1C217E8 for ; Mon, 18 Dec 2023 18:17:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B1BE5D742; Mon, 18 Dec 2023 18:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y6qX55G3" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13D663A1A8 for ; Mon, 18 Dec 2023 18:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-50e1d61b657so4239088e87.0 for ; Mon, 18 Dec 2023 10:17:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702923429; x=1703528229; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rVcChtr4GmV1ghqK0C1H3Zam/dO8O1ORAV4aMaIixWE=; b=y6qX55G3I7DoJ6AAiWLKhTJIRldgHmvqJDygECJt4ems/IHjKwpBOu0qp7DZZicQfE yhK+0/dUFllN7gM1Q0b5WRyhi69BQiVZAW/7ePVJaimeBCwKQWQGq6gG8w2X3BRIjV0M nTEuQrMNspJI7h9U3PEXXksyLPxJ9dUG11nI6+bB1RpvzOyrDEajozwQ4etuFD+dr+EX e4iWIzmOYUxUBkOJNywZpTayhxLQk96jBpmOOh++KhfI+OFheqvRyxRTPZdlpOKLUHbQ oMmB30GCxjMpqg1vDI12elVemZcQdRLKl5W9rXrc8eqzn8U8aP6+5W9ddlHrOA+M5G/7 I2XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702923429; x=1703528229; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rVcChtr4GmV1ghqK0C1H3Zam/dO8O1ORAV4aMaIixWE=; b=epB3sbs1IPcihfYro2mc3teAkKYLH5Nnw0L17IZSdIZAuX4PjAp40kH6IzM+J8VBJf 0s9xHf0a1UoKFRe+V6DeUG4HaEbT9UQa0vwI2cRmX1gtnAorW6Ufv2RAOPwAAklkj1cs gg63zJ+aUMxz4zcgps7kNxSazDsOOBTH6bkrkXqUEEMpaEC69/lc0+pcndWtmjdCilb0 mS23KS4YiQxq9w/3Hz5RFk3ivCzIdkCbEa5vg3FRi/LAPPdJMU9AxlO5ld8d6KNXtmo1 GbRj3+fkmwYFeLXBAYhY6aEnNm2gb2XOTjMpUT3dl1ISx8QXM0wSYEcKtmjazLhLWNo7 hP+w== X-Gm-Message-State: AOJu0Yy9t3QPpCCMSIxnhwzNAXWD4Yexa6o/J/kqFO1ch1E889ExeWgx fq4WFO+eAQHPZXiCi3p8JYuHEA== X-Received: by 2002:a19:5505:0:b0:50e:29c1:34 with SMTP id n5-20020a195505000000b0050e29c10034mr1593044lfe.36.1702923429133; Mon, 18 Dec 2023 10:17:09 -0800 (PST) Received: from ?IPV6:2001:14ba:a0db:1f00::227? (dzdqv0yyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::227]) by smtp.gmail.com with ESMTPSA id b17-20020a056512305100b0050c001f2d79sm2976740lfb.153.2023.12.18.10.17.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Dec 2023 10:17:08 -0800 (PST) Message-ID: <056fa2cf-777c-4278-a03d-5d818bbf1cb5@linaro.org> Date: Mon, 18 Dec 2023 20:17:07 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 04/34] dt-bindings: media: Add sm8550 dt schema Content-Language: en-GB To: Dikshita Agarwal , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, stanimir.k.varbanov@gmail.com, quic_vgarodia@quicinc.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mchehab@kernel.org, bryan.odonoghue@linaro.org Cc: linux-arm-msm@vger.kernel.org, quic_abhinavk@quicinc.com References: <1702899149-21321-1-git-send-email-quic_dikshita@quicinc.com> <1702899149-21321-5-git-send-email-quic_dikshita@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <1702899149-21321-5-git-send-email-quic_dikshita@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 18/12/2023 13:31, Dikshita Agarwal wrote: > Add a schema description for the iris video encoder/decoder > on sm8550. > > Signed-off-by: Dikshita Agarwal > --- > .../bindings/media/qcom,sm8550-iris.yaml | 177 +++++++++++++++++++++ > 1 file changed, 177 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml > > 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 0000000..a3d9233 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml > @@ -0,0 +1,177 @@ > +# 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. > + > +properties: > + compatible: > + oneOf: > + - enum: > + - qcom,sm8550-iris > + > + reg: > + maxItems: 2 > + > + interrupts: > + maxItems: 1 > + > + power-domains: > + minItems: 2 > + maxItems: 4 > + > + power-domain-names: > + oneOf: > + - items: > + - const: iris-ctl "iris" or even "venus" > + - const: vcodec "vcodec0" > + - const: mxc > + - const: mmcx > + > + operating-points-v2: true > + > + clocks: > + maxItems: 3 > + > + clock-names: > + items: > + - const: gcc_video_axi0 "iface" > + - const: core_clk Drop the _clk > + - const: vcodec_core "vcodec0_core' will be more Venus-compatible > + > + interconnects: > + maxItems: 2 > + > + interconnect-names: > + items: > + - const: iris-cnoc "cpu-cfg" > + - const: iris-ddr "video-mem" to be closer to Venus > + > + memory-region: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + reset-names: > + items: > + - const: video_axi_reset Just 'bus' > + > + iommus: > + maxItems: 2 > + > + dma-coherent: true > + > + opp-table: > + type: object > + > +required: > + - compatible > + - reg > + - interrupts > + - power-domains > + - power-domain-names > + - clocks > + - clock-names > + - interconnects > + - interconnect-names > + - memory-region > + - resets > + - reset-names > + - iommus > + - dma-coherent > + - opp-table > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + #include > + #include > + #include > + #include > + > + iris: video-codec@aa00000 { > + compatible = "qcom,sm8550-iris"; > + > + reg = <0 0x0aa00000 0 0xf0000>; > + interrupts = ; > + > + power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>, > + <&videocc VIDEO_CC_MVS0_GDSC>, > + <&rpmhpd SM8550_MXC>, > + <&rpmhpd SM8550_MMCX>; > + power-domain-names = "iris-ctl", "vcodec", "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 = "gcc_video_axi0", "core_clk", "vcodec_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 = "iris-cnoc", "iris-ddr"; > + > + /* FW load region */ > + memory-region = <&video_mem>; > + > + resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>; > + reset-names = "video_axi_reset"; > + > + iommus = <&apps_smmu 0x1940 0x0000>, > + <&apps_smmu 0x1947 0x0000>; > + dma-coherent; > + > + status = "disabled"; > + > + 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>; > + }; > + }; > + }; > +... -- With best wishes Dmitry