From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796139817; b=Xj75+idyX46/iEqXUfzkoMmX6U4cdJMycJLAqPhoEXErXmWC/puaqq9IdDmPE8hpVBiB PLzaNzdrRb0XRgJyO1z0czqiy14f0troHO6YrN+A9awcJY7x+OXGyQw4pEXdSR4a9I3Ed J0b8qtmWZFRLC3gR6D5nGWEbsU9wuIRtBiPisCuQ98vG2r5FukJCrlumhRQjrVXMII+wD 1NdDWEZW8vmVMkvuo7yquDziySdvhJ+4aWdtomn7rIm5HB7XxtmUfj5yS2S+e74uODhLH TeS+mL9w/OufRbUuawShI87BRNvfX9khpikSsyUqAlVWcEdrNtDGG1G+ZCjPu8AWdIA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796139817; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=1IEbUVRjDsAWTDmJyZvplXc0qppPNfcj6o8EnYyeeU4=; b=cUTliu3Crhbs98Q46KH1FwWQroggIHTtxxyFG/1EIV8SOh+i0jd/9qx+q2knqXFxfalx LZaZErNNyxSZHfNLkeIEsQvPoJAGbTQWzbR581UYjysxVPcTcPLCSEwt1LOQlXfm3i66h idgI1gvVkS87ckq/XZnF0Z+7X8QXPkR1avR43+BbJSnY9n77fNi5W6F74uxXFvvZ5hTbM 1rLhH6HJ2/L6RGni5JHxKnQIekKu2M6StZPeVfzZNIkRMW9gsYl8zJP3sQd9eT54B5b8q ledEDZPBUPMnzKL8r1sfRpQWW+5Bw7RukRJJdNR9lRvi/PMHbxQ03NAAexvpMSWA9GA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=0dkcy8EE; arc=none smtp.remote-ip=209.85.208.46 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB532606A325 for ; Tue, 1 Dec 2026 15:43:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DB532606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=0dkcy8EE Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-6b894a5ce3dso7755867a12.2 for ; Tue, 01 Dec 2026 07:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1796139814; x=1796744614; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=1IEbUVRjDsAWTDmJyZvplXc0qppPNfcj6o8EnYyeeU4=; b=0dkcy8EEM2U6jvhR282b61oLghO0DQEE9xFf0ADMvuU1D+Jh8F5aGmlNWD/xy4cgw5 39XCy3FDBSZmUqLPObqg/aNUww5EB/8dYrGVUuMZDOYzyAy1HUbjb98m0h95bF3dzn4L ZH6UB/bfQPsjD7wuGE/9fkqkkEWmBxe0bR6jbpHX7UREul7h//s0i1kKzecYZAi9P32U dgwVMOwuFGF2Pb3zqxw0Bh/CLyMKQ2ASr1a4rmvssSagmstEifI4fIO6Qrfye9396CHf J7G2bNoLGTnQTVEAXtUsMR09jXu4U7lytkaAt2XbTS7KRLO92bw9MrkwduUYu05t/y4X VebA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796139814; x=1796744614; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=1IEbUVRjDsAWTDmJyZvplXc0qppPNfcj6o8EnYyeeU4=; b=C5QORupKB2m+nR5AVwsN/SeXBlOPW4NWX2DvYB0xdki3HLmsPtSrK15GxYw/Je4P/q muy4B3rbHpVMBeV7DJuGgZkMgjtvyGk9SoG/8zIuqNJfIFhexJEt5dqlSjC2KvLAJ4Da CeKKB50qNhIzXfBKgByTV4XYU8La6ZnG2mZ0+SyEZYNfdRRi5X3fg93B7fspX6Z9NltJ 8VkXg4CTV3c7Y+RYFJsr4wJ+8cO1kRJwtl3vuM+YAmG8kBgacleUBsTXaiWV1v6v4kQs AKww/XvRYGxEqP5F3xVi+IKZex8IQ6ONsbUqPfGsm9t0AeKG4APefmtbPlS4R143njtu VUZg== X-Forwarded-Encrypted: i=1; AL+hErELPe1G2u8M1tTCOCAqxeGp2jYYa9aN3+XzuYOqFP1ZeWTnOGiQiU9WD2bfXMUi+9jlaOdDXrJJKhLIXKg=@vger.kernel.org X-Gm-Message-State: APuU4Z//oi03GNh4HbySw6yEM4AA+/86BKhcrUUwBccR3/cKCHkMId+b C7PQLRrt93Qesub5h0ZwrxtPE49qrNV7B79UxLr6zu8utiwr+hk7ou8ZF8jtdBZY2n8= X-Gm-Gg: AZFdTZdv5Wb9vHv/EDQoZ3twR7Vg5NeMV3laxwnAcmka+G5nV9iY+S0scOcyBMyEDsD Ed+NSgBDDvhh0YhuVNqPAiwHU3vbahDHfnmjUcEWWjnjjZkraQZIEXGRtPVvhh6aMLEJN73IsXV B3KgIPo06WS2b2ffkNd9LaQ/RU2DTg+YY5ExMKf6mSJstjZDWkxB9ub+j20bSj+prOP3sSNy4yw Cp7TPEPhb/2n+s0VRreSfzIUcxGJMSrwcZZVZdqS/rzCej3lyt/mmZoHM49obqYxN4SPsREN32j c5zpunVZXUtgqFnv5Yjnr67+/a4KPVxC9f4385cVtW/+eYZNjaMxkbPmiA713cUKH9+X3r8cYRr rL0hNlpjtUZ+wp/sRb8ejlND5XVxd63pwFsPsmsc06+ieO4aUx92C2SOKnvjNCQr71JdGlrjyFH 3h32V0qQbp7lAAovGhrLkP8ADblXDWtddWnPLtpPx/xC+NuExEXoWQnREuQl8Bi5FOt9B4A+qFk y4oeINEkMQEb5S8GlYmZBwORy/q3QwXvUPzbqRQmQx8PNFbbjlX/EMKCP7zWp5WKJyhvfB0dQXW KcOaV4D+YkGegSHW+4n9hzp4TUc856ho4px//YDHrX0U76xMM8DgHnj2bB2ZKMcRDKOW1DU3Qg= = X-Received: by 2002:a05:6402:210d:b0:6ac:c1fc:8a98 with SMTP id 4fb4d7f45d1cf-6ba37ec77e3mr29249632a12.42.1796139814218; Tue, 01 Dec 2026 07:43:34 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6bb11ff543fsm8174694a12.2.2026.12.01.07.43.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 07:43:33 -0800 (PST) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 01 Dec 2026 16:43:33 +0100 Message-Id: Cc: "Jonathan Cameron" , "David Lechner" , =?utf-8?q?Nuno_S=C3=A1?= , "Andy Shevchenko" , "Rafael J. Wysocki" , "Zhang Rui" , "Lukasz Luba" , "Krzysztof Kozlowski" , "Conor Dooley" , "Laxman Dewangan" , "Bjorn Andersson" , "Konrad Dybcio" , "Hans de Goede" , "Jens Reidel" , "Casey Connolly" , "Val Packett" , "Daniel Lezcano" , <~postmarketos/upstreaming@lists.sr.ht>, , , , , , Subject: Re: [PATCH v4 2/5] dt-bindings: thermal: generic-adc: Document #io-channel-cells From: "Luca Weiss" To: "Luca Weiss" , "Rob Herring" X-Mailer: aerc 0.22.0-0-gc2f86b7abde3-dirty References: <20261117-bat-temp-adc-v4-0-14d5d309ebfa@fairphone.com> <20261117-bat-temp-adc-v4-2-14d5d309ebfa@fairphone.com> <20261118164229.GA2892053-robh@kernel.org> In-Reply-To: Hi Rob, On Thu Nov 19, 2026 at 10:13 AM CET, Luca Weiss wrote: > On Wed Nov 18, 2026 at 5:42 PM CET, Rob Herring wrote: >> On Tue, Nov 17, 2026 at 09:23:12AM +0100, Luca Weiss wrote: >>> Document the property to allow using this sensor with io-channels. >>>=20 >>> This means that the output of generic-adc-thermal can be used as an >>> input into a different node. >>>=20 >>> As a specific example, generic-adc-thermal takes in an ADC io-channel i= n >>> Volt, outputs temperature in degC, which can then be consumed by a fuel >>> gauge driver to provide the battery temperature readings to user space. >> >> But this is already a thermal-sensor provider, why wouldn't the fuel=20 >> gauge use that provider?=20 > > thermal-sensors =3D <&my_generic_adc_thermal>; could work, yes, but IIO i= s > way more flexible and can support the required use case very well. > > From what I can see no device binding (or Linux) uses thermal-sensors > apart from thermal zones, so actually doing this for another device > feels like re-inventing the wheel when IIO already exists. > > Please also see the cover letter from the RFC[0] under "1. Do not > implement IIO device in generic-adc-thermal" > > [0] https://lore.kernel.org/linux-arm-msm/20251010-bat-temp-adc-v1-0-d51e= c895dac6@fairphone.com/ Do you have any more feedback for this? Regards Luca