From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 43FF028CF7C for ; Mon, 7 Jul 2025 09:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751880413; cv=none; b=j0ERafdOJTE0JoWORswwppoDORnRANgc7i7063o3UOMmHv73JGr57F0K7KkN3T4vxZDICxeDz21aDlNwW/eRDtqWpN/yhbnaWSy2rqY3hHVopSCQc4q8tHA68i56MxEybUzskFSZ4EMwrqO1oTD89NNCOIKu6nqtAP2qIMLB6/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751880413; c=relaxed/simple; bh=lpUWLfPohvcG8KFzHIdM95cA9JBZMwDUXeS0oz5m354=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LiyVUkmlcj7DUHjbaqV6cWvhJDDR8u2jCHXVZI3whPAM9fLwD1+/oQK0UKZu3UgAz061u6Vb0vRKvTlCKLhqvNWGDDWl5IbuhdDp/zonQDhVD37eOXblhB8B+3NAVeccXqlWsphOA98eCkHb2rYFCBmYcqVmPVB86z+q2IgtEe4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Q1Vghicb; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Q1Vghicb" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5679FTsJ014188 for ; Mon, 7 Jul 2025 09:26:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=5ACLvMD04WA0YF7cGMMn3ZsR RQXO56tBP9XFn+27tp8=; b=Q1VghicbjP9qRm0DXRuA7PXr87THvDT/nF4u+p4M /UPJTIYR+NCX3qzLuSM/w8rb7XkwCeEf7O01y0tTcQ7Ee9vBKzk8zM+EDVrbiAd9 GFEvfpiGuZ1+fdnjqcxFaQAQpktA1DjZS2TGvpzom4ucRgW7XWv+/xeTOFKdvN5X RPDU6c/sQ18cp7/xB6R22oEH96Px1gTbaSdQbTov/CX+HQnY8i56nu0G64W7yeMi eZTRvEUh5F/O7/QFT8SvH3inuEMgufwv8W4r1+dK5UJkva7xwGTZYPzays2Mi+a8 WgKAk6rNNGl+4e9VwaaLnlcEIDVmrKwF7ieF9jM8qNDfxA== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47pw7qbc3k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 07 Jul 2025 09:26:49 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7c790dc38b4so496553285a.0 for ; Mon, 07 Jul 2025 02:26:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751880408; x=1752485208; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5ACLvMD04WA0YF7cGMMn3ZsRRQXO56tBP9XFn+27tp8=; b=grk4rf0hJpcJ/I/UayAdqL68goIeMP2B11fWOT5sUJUZ4xZjyjazklQdpS2QCUNRfg OMVRKLkRFCssEwPkV0F7tAHRFV3CNYDu6eRfqjDcdJNOuwmn2Jh+qSzpakqE1GXWq0k/ LYfG3WnvveMr1orrKOtrGINmYG6yu0myC0NMky/XOei/G+EYxHUek50nwNgPaQ4GwEqz xDuwgmGMDuEUrvJdfLJrKtnNoGzB84c3JjIygZRQ7wUhUWUVdLRXupsltddjE+F/xWp6 xoIeLaEOVBtUmr4WMeIhMX/ovmUevxuALmtK1UaFZ+6vGxrJuKjIeds5EalFV8oRQ9Oh qCLA== X-Forwarded-Encrypted: i=1; AJvYcCXeD9iCU0cwIWL064MqP/ILquiteSbXgSw/73synyC5jDNnFZojWoCISuysNJe/DuBUGVNyvm9l14ke@vger.kernel.org X-Gm-Message-State: AOJu0YxGIEE9A5lIbaqDakqTDuuJErXykm/gXT9ld2nugVVWzed7M+VY UvwRFZgMjJxPcRvjRpJ1TkT2vMopWUVcjZJTm3l7RTsDLUELC4ic2DKq5zNTnwKwtPumNMK6c1s rh9nKmVGnHDQelB5Q2GBJrSyVdKk+S88rm+43EPfq7K7Y6czrEJDjGsN9iL584w9b X-Gm-Gg: ASbGncvpLYaztJKSwrwvy4WTJyydmv00BliWX1CxWCmEZs/wRimY9VqMv5XsvPGHCSt HfaxFBRAG9WxRRkHjaUioxHy4AEYXBUa96uhozyKBwKaHdWAZIMnwC2ZycqacZKFn3s+ExoiBho 1M0SEbF4yJKeD8xjGXPRSyWKIQtvToVFCUe2ybLp+e5A4u9q4VOzH0LRhPQSJB1Nu08FxOvbZpN ZjWsmwtrgYLvuhpHqShgGPepI9xo566HmZaJqzv+pPX6LuQMc/yeJf6rV3gwAB1ymtL8rvQu78m rk5tbNflK/cuIU0q+wM63uSBRMKPLLKTx8X3WkjJ/XPNFP/FWOhS2sA= X-Received: by 2002:a05:620a:1727:b0:7c7:c1f8:34eb with SMTP id af79cd13be357-7d5dc6d1daamr1653790285a.23.1751880407851; Mon, 07 Jul 2025 02:26:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0cECjx1Uf+mlAgg/C5n1fBtG/LFQsvoOn0p8/ucLcry1XeXAF3J+XDAJNT9x0GNMUSikEyQ== X-Received: by 2002:a05:620a:1727:b0:7c7:c1f8:34eb with SMTP id af79cd13be357-7d5dc6d1daamr1653787185a.23.1751880407184; Mon, 07 Jul 2025 02:26:47 -0700 (PDT) Received: from trex (97.red-79-144-186.dynamicip.rima-tde.net. [79.144.186.97]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-454b161e8e6sm108891495e9.6.2025.07.07.02.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 02:26:46 -0700 (PDT) From: Jorge Ramirez X-Google-Original-From: Jorge Ramirez Date: Mon, 7 Jul 2025 11:26:45 +0200 To: Jorge Ramirez Cc: Vikash Garodia , krzk+dt@kernel.org, bryan.odonoghue@linaro.org, quic_dikshita@quicinc.com, mchehab@kernel.org, robh@kernel.org, conor+dt@kernel.org, konradybcio@kernel.org, andersson@kernel.org, linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/5] media: dt-bindings: venus: Add qcm2290 dt schema Message-ID: References: <20250626135931.700937-1-jorge.ramirez@oss.qualcomm.com> <20250626135931.700937-2-jorge.ramirez@oss.qualcomm.com> <76492de3-c200-535a-aa1b-c617ba6146f1@quicinc.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzA3MDA1NCBTYWx0ZWRfXxH3Zw7WkRoJp NFZ14JUE0iNvsNsngu7OnGj/BxIvKadMrRTcFlUjO/kb7tnyU1lwJxutDsw5R5cYG5JgpFKb+lV 9ps9bByzPb7aD/O+YAt1QAXaioH/3ehYJOlc1YhSFCirYfEU7Y/6rlvT85IIQEIqS9NpaKUzLRn EcL1RR2zc8C9KsVg222mPA1dVhqRQhHdgXVVT8iwax6HQLAoHxGy+B7fxKF5ANWxxbHTlXLp+Ux NXp5Au6Kx12JyEdPVmsKTW2lCLNTDXhNhKpuISmBzvpuWA4wRK2g0yBmgJZL8s4EWeho33lKm44 w9beHzBeJ7n2R0mxzTAsRwcec1g1bwBwFJcVWeOLHddj5/SUwOLF2/zQ2OXAJj9LXMtBNZTDISR s7AfJGIzTWsAGVqaFFsqq9ETKC1v+tNSrZ9t7UcC2FAvIbbUb+8Bv1+gEJ3EDaFHTalN/rOO X-Proofpoint-GUID: lilyh0PCTByaEkN63zDnSlyQ2F49sd66 X-Proofpoint-ORIG-GUID: lilyh0PCTByaEkN63zDnSlyQ2F49sd66 X-Authority-Analysis: v=2.4 cv=SOBCVPvH c=1 sm=1 tr=0 ts=686b92d9 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=oX6B8lV6/A+qF9mARCc04Q==:17 a=kj9zAlcOel0A:10 a=Wb1JkmetP80A:10 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=COk6AnOGAAAA:8 a=DKyoZqHPbrAdFQiOrREA:9 a=CjuIK1q_8ugA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=sptkURWiP4Gy88Gu7hUp:22 a=cvBusfyB2V15izCimMoJ:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-07_01,2025-07-07_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 suspectscore=0 spamscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507070054 On 07/07/25 11:06:58, Jorge Ramirez wrote: > On 27/06/25 17:36:43, Vikash Garodia wrote: > > > > On 6/26/2025 7:29 PM, Jorge Ramirez-Ortiz wrote: > > > Add a schema for the venus video encoder/decoder on the qcm2290. > > > > > > Signed-off-by: Jorge Ramirez-Ortiz > > > Reviewed-by: Krzysztof Kozlowski > > > --- > > > .../bindings/media/qcom,qcm2290-venus.yaml | 127 ++++++++++++++++++ > > > 1 file changed, 127 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml b/Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml > > > new file mode 100644 > > > index 000000000000..a9f89b545334 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml > > > @@ -0,0 +1,127 @@ > > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/media/qcom,qcm2290-venus.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Qualcomm QCM2290 Venus video encode and decode accelerators > > > + > > > +maintainers: > > > + - Vikash Garodia > > > + > > > +description: > > > + The Venus AR50_LITE IP is a video encode and decode accelerator present > > > + on Qualcomm platforms > > > + > > > +allOf: > > > + - $ref: qcom,venus-common.yaml# > > > + > > > +properties: > > > + compatible: > > > + const: qcom,qcm2290-venus > > > + > > > + power-domains: > > > + maxItems: 3 > > > + > > > + power-domain-names: > > > + items: > > > + - const: venus > > > + - const: vcodec0 > > > + - const: cx > > > + > > > + clocks: > > > + maxItems: 6 > > > + > > > + clock-names: > > > + items: > > > + - const: core > > > + - const: iface > > > + - const: bus > > > + - const: throttle > > > + - const: vcodec0_core > > > + - const: vcodec0_bus > > > + > > > + iommus: > > > + minItems: 1 > > > + maxItems: 5 > > 2 should be good to support non secure usecases. 5 not needed. > > ok isnt it better to just leave 5 here - thinking of the future support for secure buffers - and just update the dts? > > > > + > > > + interconnects: > > > + maxItems: 2 > > > + > > > + interconnect-names: > > > + items: > > > + - const: video-mem > > > + - const: cpu-cfg > > > + > > > + operating-points-v2: true > > > + opp-table: > > > + type: object > > > + > > > +required: > > > + - compatible > > > + - power-domain-names > > > + - iommus > > > + > > > +unevaluatedProperties: false > > > + > > > +examples: > > > + - | > > > + #include > > > + #include > > > + #include > > > + #include > > > + #include > > > + > > > + venus: video-codec@5a00000 { > > > + compatible = "qcom,qcm2290-venus"; > > > + reg = <0x5a00000 0xf0000>; > > > + interrupts = ; > > > + > > > + power-domains = <&gcc GCC_VENUS_GDSC>, > > > + <&gcc GCC_VCODEC0_GDSC>, > > > + <&rpmpd QCM2290_VDDCX>; > > > + power-domain-names = "venus", > > > + "vcodec0", > > > + "cx"; > > > + operating-points-v2 = <&venus_opp_table>; > > > + > > > + clocks = <&gcc GCC_VIDEO_VENUS_CTL_CLK>, > > > + <&gcc GCC_VIDEO_AHB_CLK>, > > > + <&gcc GCC_VENUS_CTL_AXI_CLK>, > > > + <&gcc GCC_VIDEO_THROTTLE_CORE_CLK>, > > > + <&gcc GCC_VIDEO_VCODEC0_SYS_CLK>, > > > + <&gcc GCC_VCODEC0_AXI_CLK>; > > > + clock-names = "core", > > > + "iface", > > > + "bus", > > > + "throttle", > > > + "vcodec0_core", > > > + "vcodec0_bus"; > > > + > > > + memory-region = <&pil_video_mem>; > > > + iommus = <&apps_smmu 0x860 0x0>, > > > + <&apps_smmu 0x880 0x0>, > > > + <&apps_smmu 0x861 0x04>, > > > + <&apps_smmu 0x863 0x0>, > > > + <&apps_smmu 0x804 0xE0>; > > update this accordingly. > > > + > > > + interconnects = <&mmnrt_virt MASTER_VIDEO_P0 RPM_ALWAYS_TAG > > > + &bimc SLAVE_EBI1 RPM_ALWAYS_TAG>, > > > + <&bimc MASTER_APPSS_PROC RPM_ACTIVE_TAG > > > + &config_noc SLAVE_VENUS_CFG RPM_ACTIVE_TAG>; > > > + interconnect-names = "video-mem", > > > + "cpu-cfg"; > > > + > > > + venus_opp_table: opp-table { > > > + compatible = "operating-points-v2"; > > > + > > > + opp-133000000 { > > > + opp-hz = /bits/ 64 <133000000>; > > > + required-opps = <&rpmpd_opp_low_svs>; > > > + }; > > This value is incorrect, fix it to 133330000. > > > + opp-240000000 { > > > + opp-hz = /bits/ 64 <240000000>; > > > + required-opps = <&rpmpd_opp_svs>; > > Do you see other corners in the reference catalog as well, not just the > > downstream code ? OR did you limit this as the usecase do not demand higher corner ? > > there was an internal AR50_LITE presentation where only these two > claimed to be supported - all of the others were not. so I went for the > most restrictive option (ie, this one). > > how do you want me to proceed then? should I just use IPCAT, or downstream? > > > > > > Regards, > > Vikash > > > + }; > > > + }; > > > + };