From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B26A6328B7F; Mon, 23 Feb 2026 18:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771872496; cv=none; b=IkA3Eeh5D/H2Jg85dVVG3kcpsSY7rB9u0UtS1ecunxt/kuva9RwL8ejqUqlDNUOnKnfHEvgmYT+zCWLiCl7W//lf/by7VJn5g5cpWURCGukg8cX7CCysBg9fYzmhkb+E52T32kEu2wsxGc3vq0RJn2GcVLHGcwvPYJ8jj342rWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771872496; c=relaxed/simple; bh=JY36a2jUISNBgyzIWqavdWoGTymBOPrCDh5m1/4qjIA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LY4dwTXj3WICA4A1GJjKX06io9eL6oZWpQys7hIPO7QRgJ5ey8KpnjQalaH5+KI2cKV2HKr9T7OwrvWFFJ1ULNRTeFVM72BVA4gTkVnGE479qMoOKZOnx2yrp3J4wGUhXCnVcLn5mNbT2KgLGn/Vs/ILoUSfYBQEOBBlivSDtDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sfaJyT1w; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sfaJyT1w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22C1CC116C6; Mon, 23 Feb 2026 18:48:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771872496; bh=JY36a2jUISNBgyzIWqavdWoGTymBOPrCDh5m1/4qjIA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sfaJyT1wWvFGevl1EEh0CxnaZq++wbd/uiH9qfCMoGugRwDV8duXYbJJ4HkQSPv/D 9hST8Q5KTdFPuQghY/jm3yc1dax8SIpOYJkiku3R5nLn6m6YXw6IitzzNOrIBBS1NF pbTNdWquk5XxYV8CjGqHxCaR4ukIt8SDHq+pHczMITa9qNZbNz65Zc61XyI638Uhzc 25fN1FpkJzkcYDA0n+hwLrEY0tpiE8GgA42aRIn/vCpoK7oDKLOta+Ro9dQDdDkE4i qV2rNW4m7iumW3ohk614sIq+E7RUunXZ8MCnJ3YVdhb5vnT61rr2qwf4sMI4G5uIMj 01/RpOF5VF4gw== Date: Mon, 23 Feb 2026 12:48:15 -0600 From: Rob Herring To: Luca Weiss Cc: Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Krzysztof Kozlowski , Conor Dooley , Laxman Dewangan , Bjorn Andersson , Konrad Dybcio , Hans de Goede , Jens Reidel , Casey Connolly , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 2/5] dt-bindings: thermal: generic-adc: Document #io-channel-cells Message-ID: <20260223184815.GA144001-robh@kernel.org> References: <20260220-bat-temp-adc-v2-0-fe34ed4ea851@fairphone.com> <20260220-bat-temp-adc-v2-2-fe34ed4ea851@fairphone.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: <20260220-bat-temp-adc-v2-2-fe34ed4ea851@fairphone.com> On Fri, Feb 20, 2026 at 10:19:06AM +0100, Luca Weiss wrote: > Document the property to allow using this sensor with io-channels. Why? On the surface, it looks like you are adding a provider property to a consumer. Maybe that's right? > > Signed-off-by: Luca Weiss > --- > Documentation/devicetree/bindings/thermal/generic-adc-thermal.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/thermal/generic-adc-thermal.yaml b/Documentation/devicetree/bindings/thermal/generic-adc-thermal.yaml > index 12e6418dc24d..317fc39ed46a 100644 > --- a/Documentation/devicetree/bindings/thermal/generic-adc-thermal.yaml > +++ b/Documentation/devicetree/bindings/thermal/generic-adc-thermal.yaml > @@ -24,6 +24,9 @@ properties: > '#thermal-sensor-cells': > const: 0 > > + "#io-channel-cells": > + const: 0 > + > io-channels: > maxItems: 1 > > @@ -58,6 +61,7 @@ examples: > thermal-sensor { > compatible = "generic-adc-thermal"; > #thermal-sensor-cells = <0>; > + #io-channel-cells = <0>; > io-channels = <&ads1015 1>; > io-channel-names = "sensor-channel"; > temperature-lookup-table = < > > -- > 2.53.0 >