From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796320366; b=cxOabA2WjxRRgF27Z+9RaW+Y+xLpD6lOJKMcNW2FHEFudo+auGv1uuIl1VtBRH4E4kzh Xu3sKTPTtm8jnOlV965KTf3W8W4YmGEFkPVq/1a1eha1ZvbjRHMDInOCZXwKwrw9gPR8m gQfs0bYuvTauvsqIdks3fPUMBy+50PrnhwbD4m3vj9Xaf56OpC6jqGXKdvArDPgYDXjQ8 e32sSfZp4bAWEYEvhPocjcifLYJJl+aZ5ee1S1u20VPWJ82apNJ/s0IfWTQNe0LOvKoMG CSB6p9XQoRRUw4yFsuWZKlfcbSZshFbE16zZTqdbOptWph0Su+iSe9VwfeiLPbI+u5w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796320366; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=mzecTSPuqCUiddjyvGMIlNg0hgOAX0NZxxdi6BdS4Co=; b=WnmGGVsfy3fEfmjkM54bKGkUVcsCb7j1bSeycReIY03iZA2EFTHwxh+HakNW3SC1q2Pu 4FNgk2z+/B5oTwcpM4OxtY54lb1vjiL2eCC20H1OvRgm5OQtTRC4J1M10E+rTXc0Xt0oJ Vq9cewZ5CpI5zcuaDAteHeBHm0l8jQWuA5zhlrF9+B8m7gpGHGjIt2kebPvDWr44dk0RQ 26LII5J9tijOHqm1cdbink28p0EZ99ss+p0gZKfPA5uZlWYCR8BHV5lM8VGSFhEkuW1Y2 RC87YBOJiLLCe04VIfy7RxnsFdYAOIOMqSf56SLi+eWS2i0013u7q1ce1B+6B7i/jFA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eaI2wgZS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A079606A322 for ; Thu, 3 Dec 2026 17:52:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eaI2wgZS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FD051F00899; Thu, 3 Dec 2026 17:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796320365; bh=mzecTSPuqCUiddjyvGMIlNg0hgOAX0NZxxdi6BdS4Co=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=eaI2wgZSpPRvJLwwaPHEKnarATHpGU8OwBcLkL5cbFNV+ue1m4Yd0iIzmpY1xdIbp 6nbJNCdrzctzIUJSZLWgdjKdmDwBkvYlGJeEkD3YaFK2RE2OZdki0Q8O2wqxkS7aip 2FoMdLImuK2BENy5K6m0/sPiwhJau0NtIDPtLi7y1iykpNeSyG4nfjOpQgZjSG9Uw6 2CKqJ34iquCRZdzUYZrd7tlWFMoj8k3MVFvVuEBkxXvjjqOdTaQKtvaQJCYMnxhduz 4W+rXW+7JhwYfGZTDWZYN1fK8YcBsKUycprf3CRO7Z/9/sGVynbkYD+o10T/mB1J3f +/vsd0S0fYQnQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] dt-bindings: iio: adc: st,stm32-adc: add temperature sensor calibration cells Reply-To: sashiko-reviews@lists.linux.dev To: "Gerard Marull-Paretas" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203165214.54424-1-gerard@teslabs.com> References: <20261203165214.54424-1-gerard@teslabs.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 17:52:45 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] dt-bindings: iio: stm32-adc: nvmem-cells schema allows partial ts-cal1 - [Low] dt-bindings: st,stm32-adc: missing reserved label for internal temp channel -- commit 4db5e46c3a856f2f8d4973c119c1d93502ec2b26 Author: Gerard Marull-Paretas dt-bindings: iio: adc: st,stm32-adc: add temperature sensor calibration cel= ls This commit extends the nvmem-cells and nvmem-cell-names properties in the STM32 ADC binding to accept ts-cal1 and ts-cal2 temperature sensor calibration cells alongside vrefint. > diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml = b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml > index c4c4575d3fa96..9fe41b89982e9 100644 > --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml > @@ -337,12 +337,22 @@ patternProperties: > deprecated: true > =20 > nvmem-cells: > + minItems: 1 > items: > - description: Phandle to the calibration vrefint data provide= d by otp > + - description: > + Temperature sensor calibration data at the first calibrati= on > + temperature (TS_CAL1) > + - description: > + Temperature sensor calibration data at the second calibrat= ion > + temperature (TS_CAL2) > =20 > nvmem-cell-names: > + minItems: 1 > items: > - const: vrefint > + - const: ts-cal1 > + - const: ts-cal2 [Severity: Low] Does setting minItems: 1 on a 3-entry positional items list accept an incomplete [vrefint, ts-cal1] pair without ts-cal2? It also forces vrefint to index 0, rejecting an ADC node that provides only ts-cal1 and ts-cal2 (arch/arm/boot/dts/st/stm32f429.dtsi defines only ts_cal1 and ts_cal2 in its romem node). Using oneOf to allow vrefint alone, ts-cal1 and ts-cal2 together, or all three cells would handle both cases. > =20 > patternProperties: > "^channel@([0-9]|1[0-9])$": [Severity: Low] Should this binding also define a reserved channel label for the internal temperature sensor? Other internal ADC channels (vddcore, vddcpu, vddq_ddr, vrefint, and vbat) are identified by reserved label names under channel@N, which stm32_adc_populate_int_ch() in drivers/iio/adc/stm32-adc.c matches to bind their calibration cells. Because compatible and reg do not uniquely identify the temperature sensor channel across STM32 SoCs, omitting a reserved label leaves the binding incomplete. In-tree STM32MP15 boards already diverge on ad-hoc names such as internal_temp and sense_temp. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203165214.5442= 4-1-gerard@teslabs.com?part=3D1