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 A8CFE3ACEFF for ; Fri, 21 Aug 2026 04:55:10 +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=1787288113; cv=none; b=dZwVEjX5VKeSNN9NhNgL1yVLl2ozzvOV7LltPrhh4TFDCYDzjG9aLm0HKlo/pANqRdDk7wVI2AOclJmIjl5R1NaHfdn6bF/gBJSSOoroZmcQ0ZyGcDhHtmm3bhCnyzhliYJrhqRzebpb3TtFgfA5ETWD2TxWINnz2BQUkDCvB/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787288113; c=relaxed/simple; bh=jbmancpsHTjVs2TeiXOri8bQFZyZ0a+JoVJMwsnKP0U=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=M87difSAFAvlwjdkkhzMrVI5QLwlhywaWyE4HGad5FetqQJH72vU92Hg7mTjMT1HW7TX/Gf9g9O8GvozDlp1KeV5xJ8MmIL0HKSNEU57Gc3aTmJmQDxf/A7/FZX0yvsfB6TELyKsLomzPEWVJ8HVWc6CemY1TpmSTjwnkulf/EY= 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=Eujh0OHx; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=gjcKdwH2; 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="Eujh0OHx"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="gjcKdwH2" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67L46M1c770688 for ; Fri, 21 Aug 2026 04:55:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uk9NLu6lCcY8JkSba9VV/ahy8MrSZ53djuNpID1PR1M=; b=Eujh0OHxd2HnZjx5 dBlEVwNEtHMvBseOq34Pli3xN1EBm43dmAnwCuFKJVEKiKLlXYA5qnfc0d+tByXk eGemOaPGFTXmqVAiecsxmlYX/78ie4koD08WRd6qGOuIP4+ln2StYCgskgqR+Yxf VaIsdwFnGPlgDtrDUEc0i+g6eEyy6YefZBYiwMSyR3gMw4yYy2Q9FcKlVeEO6hS8 pZqmgedIcbnPX/x1rgkoxO4jUXqWKCMtW2IfVtopu8LNk1fi2E4xivjqHzwmDe/Z iKu2lgNhpLAGQyNMpAnixEmuApMYpS8dELmqka9aCQPA+vFmdYXFLiWAg23pFkHt Eb7qWA== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4g6fbw84at-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 21 Aug 2026 04:55:08 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3823dcc1647so830272a91.3 for ; Thu, 20 Aug 2026 21:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1787288108; x=1787892908; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=uk9NLu6lCcY8JkSba9VV/ahy8MrSZ53djuNpID1PR1M=; b=gjcKdwH2I68HWHNWrCrWWxoo+3opqwKoalW4BE7yP8FI1HKsjZ0IPEPibp03V5fsft +fbSNo2VOt4vMD3Mce9oyEjQi5yCJc+roXe4hKATFswz7vUmvH5uKBDJL3cxq49Kazd1 W0k9lxmuDxQiTyugjZMCPlwbd1ZcwA6FGzvlcY+uSVSp8C5/+/iSC5O0aP/Xo62JFpvp CD7oe7uSeeJ+U/kXiy/kI5sk9jqvVeWU1st7pDlQUDKNHlt1/Q3gXc1KxAQlKpCOFxaJ HSyos6fYFBol7oO79wjySu1Yyy7DrMQ1Eioiz5tHiU2VnCtzS/75+8zz17PF8UsbIkaF mgfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787288108; x=1787892908; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uk9NLu6lCcY8JkSba9VV/ahy8MrSZ53djuNpID1PR1M=; b=OhI1yzsrVM0+gduQIZvpX4m9nmV/mx0FPJJJlHWCxkNE0v9tPJmLVOIcEIVLctpIsH QtfVqY0Qz7LnXPRHlglcWKIHDgoAFbadncHKTGCfMlGA+vbQCXE9j/x7Ot5XC2FkHrQq B8ugfLJlPU21zPD2XngdLX71YUiy3l8dxagBy+b+/6dZdATC6NP+K7KWpToIalQqAY3P 5EnNsMvDtOjkk12hLD5+OFb6K6D5qfiCtfta9z7lUGl5JJckyqB6o/cAdftLhtAAADP2 2gN1wnTfkhDcFiOQLKfXKqiW208CUzJKthfM5tS2dzlQ4TnQmdCzBBSw+bHrkltHlcxF CPug== X-Forwarded-Encrypted: i=1; AHgh+RpJ9JCBoSbF0SaTG0idpxSCm+do2OKJfwXqNie+c2BJFg4FZhwwv/aCTHqLiaJMAj+mssVn/RHdH4c=@vger.kernel.org X-Gm-Message-State: AOJu0YycoOWFSm5BCKwrNDfs3gNQvknxMWadCVwnId6l3+c70VRyy4oc lE5pEBoxaotzC39gssV7HkWip69gCMOjJ9hAxouSXC48PNw+sf2XuSeWCQWO1FW3BHIi6eoZLHL MkaIA6ZMCyhmu7MdEpUBiJLXDRDvxSOmQYvwVWeM2IJKkRcQtvx9LjSXFjRH8hKs= X-Gm-Gg: AR+sD12zhg/KQmrhQ8b82zSpwltN3barJzEDom8TWTszzf3Jjwd4jwXqpbW/S7GXVwM rabSJKylY/C5MVcnTZ68yrRfgmjPRePeAUEkRFchai5KkHZCDXJmExNz7o/Ungbuq6R49+Jpja4 tloXDgmE8YeH0VJhCeU7HazXnQlrOCTAPXLils/P+k6foM4HBTH69SqJ5DHLZYBdZPCsYLHTSou tPbJJHQMr+oeqJif8vlfEW7tAXbNGi54nkunPVDklSRjQLwjC6clDh9QM3AorL4vFrgPSsAQuAC W8HjvtnmMR4zQXsBF4ch83Mm9k4vigeJWER2RIMFxZ9vowyfb/Kx3d6HkhLEgCkY8YjR4fFD0mB NNcVQ6vwA4Whao55KBeRe4RLA3AEhyw== X-Received: by 2002:a05:6300:67c1:b0:3cc:9620:5816 with SMTP id adf61e73a8af0-3cd306150e3mr7172974637.8.1787288108163; Thu, 20 Aug 2026 21:55:08 -0700 (PDT) X-Received: by 2002:a05:6300:67c1:b0:3cc:9620:5816 with SMTP id adf61e73a8af0-3cd306150e3mr7172878637.8.1787288107721; Thu, 20 Aug 2026 21:55:07 -0700 (PDT) Received: from [10.218.7.34] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-327bef3bb46sm20562131eec.3.2026.08.20.21.55.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Aug 2026 21:55:07 -0700 (PDT) Message-ID: <16248e00-5ac9-43c8-9e4f-1b3fb061dd2c@oss.qualcomm.com> Date: Fri, 21 Aug 2026 10:24:58 +0530 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/7] dt-bindings: iio: adc: Add support for QCOM PMIC5 Gen4 ADC From: Jishnu Prakash To: Krzysztof Kozlowski Cc: Jonathan Cameron , David Lechner , =?UTF-8?Q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Bjorn Andersson , Konrad Dybcio , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, Kamal Wadhwa , Anjelique Melendez , Manaf Meethalavalappu Pallikunhi , Priyansh Jain References: <20260731-pmic5_gen4_adc-v1-0-9c49b2eea6f9@oss.qualcomm.com> <20260731-pmic5_gen4_adc-v1-1-9c49b2eea6f9@oss.qualcomm.com> <20260804-marvellous-crayfish-of-recreation-d06401@quoll> <4e25b74c-baea-4283-9730-7313162284b5@oss.qualcomm.com> Content-Language: en-US In-Reply-To: <4e25b74c-baea-4283-9730-7313162284b5@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwODIxMDAzMSBTYWx0ZWRfX523YErqR083a bFvs0aW+7B4xmoYDP0U4W0sGGIgig6GUlrtYDcrLXmfLKF2m85y5EuUNyRq5eYXViXqJ2/avYbs ay+aOPm4hnv+OHNRlYrAw5TdPiDeQ3U= X-Proofpoint-ORIG-GUID: 6-X-PK3etSj_Q_qX8r3bMbo5dqVf69xp X-Authority-Analysis: v=2.4 cv=L9AtheT8 c=1 sm=1 tr=0 ts=6a87da2c cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=JbgVt6K1tEAjoNa7P_MA:9 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODIxMDAzMSBTYWx0ZWRfX0loipUFR5fbi jSbML8l+i+pWBHxRfOH+UrW9ZvvHRwF5SIRhwshc37TaBvyhZdYn048oixbb4GG8X2UoXO4gD71 K41P2biXa88aLIen75wxcDsgIKjRjHOc7fBDdtVnpx7toSL3i9z4wC/aFi7e8+p2QxMMoaoulYH Wij4zVS+e/m5lSg4s5A1n3csCETcMd5S3V8h6RfH3I/a158DnZlk2ZW3BYXTdhMGI5ak8btqJ6T TuGpcCb8/V5I0BEv39tffACzFrVBz1CmE3k3s5peFL98OxOmW//PXekErzMOBI+GbzvHT1jwg7o cyX5cZInvJGRPSWnRn0bzfK2yKixjxOC8I7OqeSUC8ns7oM+ZivWyAq1d4lL8uDmAmjaBINIjNB 1Dpd5N/G7b5UDyaIXZkxJcKl0+d2hqY2OwdOxeVAocVVAgm0GosiJ82tS+NuCLEIDMVmqtOYLFB c69ujBLuQtr5UN3bNbA== X-Proofpoint-GUID: 6-X-PK3etSj_Q_qX8r3bMbo5dqVf69xp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-21_01,2026-08-20_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 adultscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608210031 Hi Krzysztof, On 8/6/2026 4:23 PM, Jishnu Prakash wrote: > Hi Krzysztof, > > On 8/4/2026 1:50 PM, Krzysztof Kozlowski wrote: >> On Fri, Jul 31, 2026 at 11:36:14PM +0530, Jishnu Prakash wrote: >>> PMIC5 Gen4 ADC is similar to PMIC5 Gen3 ADC, with several changes made for >>> improved performance, mostly at the hardware level. The main differences are >>> increased ratiometric conversion resolution (from 14 bits to 16 bits) and >>> increased bit field width for PMIC SID (to allow communication with an >>> increased number of PMICs, supported on latest SoCs). >>> >>> Signed-off-by: Jishnu Prakash >>> --- >>> .../bindings/iio/adc/qcom,spmi-adc5-gen3.yaml | 47 +++++++++++++++++++++- >>> 1 file changed, 46 insertions(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-adc5-gen3.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-adc5-gen3.yaml >>> index 149f4af8f4b8..e79ddc2acca0 100644 >>> --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-adc5-gen3.yaml >>> +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-adc5-gen3.yaml >>> @@ -21,9 +21,14 @@ description: | >>> All boards using a particular (SOC + master PMIC) combination will have the >>> same number of ADC SDAMs supported on that PMIC. >>> >>> + PMIC5 Gen4 ADC is similar to Gen3 ADC, with some differences such as >>> + improved ratiometric conversion resolution. >>> + >>> properties: >>> compatible: >>> - const: qcom,spmi-adc5-gen3 >>> + enum: >>> + - qcom,spmi-adc5-gen3 >>> + - qcom,spmi-adc5-gen4 >>> >>> reg: >>> items: >>> @@ -83,6 +88,46 @@ patternProperties: >>> This property indicates ADC_TM monitoring is done on this channel. >>> type: boolean >>> >>> + qcom,adc5-gen4: >>> + description: >>> + Indicates channel is of type ADC5 Gen4. This may be needed in cases where the >>> + master PMIC has an ADC peripheral of type Gen3, but some of the other PMICs it >>> + communicates with have ADC peripherals of type Gen4, so channels of those PMICs >>> + need to be marked as Gen4 to ensure their conversions are handled correctly. >>> + type: boolean >> >> It is implied by the compatibles, in this case the peripheral >> compatible. > > This property is needed in cases where a Gen3 master PMIC has Gen4 > channels under it. > > The main point to keep in mind for Gen3/Gen4 ADC is that the compatible > describes the ADC peripheral on the master PMIC, but the master PMIC's > ADC communicates with ADCs on other PMICs, which may not always be of > the same generation. Under the master PMIC's ADC DT node, we have ADC > channel nodes from all the PMICs it communicates with. > > > For example, SM8750 has the following 8 PMICs, having ADC channels: > > PMK8550 (Gen3 master PMIC) > PM8550 > PM8550vs (2 instances) > PM8550ve (3 instances) > PMIH0108 > > > ADCs on the first 7 PMICs are of type Gen3, but PMIH0108 has > Gen4 ADC. So ADC channels of PMIH0108 exposed under the PMK8550 > ADC peripheral need to have the "qcom,adc5-gen4" property to > indicate they are of a different generation and may need a > different conversion formula. > > Similarly, on some variants of the upcoming mobile platform Maili, > we have the opposite case (master PMIC has Gen4 ADC, one of the > other PMICs has Gen3 ADC), so we would also need the "qcom,adc5-gen3" > property for some platforms. > > I'll add a description for these properties too in the commit > message, hope it helps. > Please let me know, does the above explanation look fine for why we need the channel property "qcom,adc5-gen4" ? And Jonathan was asking me to split this patch, to add the new Gen4 compatible first and channel properties separately, do you have any preferences there? Thanks, Jishnu > Thanks, > Jishnu > > >> >> Best regards, >> Krzysztof >> >