From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796139817; b=36T8qpJOE9BT+Ue/+xbtLFjvYuLtpf1tSwzCpexFsgEIGos8TzLhdygfFySGlCl08TEz O5aFu2HdzSuM9P5oF5mPFuErkUUXOUMA/d5us76fVfoKsqCjwDPHuEZ+0LQcvGZNwup5B RPRsqyGTWHl1T/GEnb5wK6FujC3X/N2shTSckH9z6sT1y01tbFxj7sepKUpurJxE4a3lm 62JHW0QUBjnk8bf+GSQKh14Qas/K5il9F9IQiYE2XDQLky0W0itZI+x7RBI4zRzwuS9tr u1RYKvhPr/atJU0NLrsPzVcyf1XCSlZ8iva0SoVAG//vrQy8ZVKoM/LlBaZnZtZmSXw== 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=l10kpvHNoQ82nxgcfSMk7s3pKFigDbsgNORXE2eNkYhAbLJat9oGcw+CEm7E1S48EGL1 897TcOeGtQP8q3GDUsww8+ugBJsAqUAD/tilFvDb/U0dnqJwp2PNos8ciEP9tUjFsx/G6 gU5259fGHH7oW17MqvfXiNJCWIMca58iEHLYd+TfP64PrZaGdynVOVsxKr4J1iQ2JAzEB ybHsNJ92qik0UzdYMvjAXz7Aeg47XXOfj5uKaPKt6/aUVrSs+58UqLY4M5gJLPWIAaJ0h v70jae2UtUFUE1LBiTsGzCtjsCBiZ7F39ueGB79+XmaSSTBmRwnrp5nHytG+eRQp+4A== 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.45 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 DDB00606A329 for ; Tue, 1 Dec 2026 15:43:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DDB00606A329 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) header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=0dkcy8EE Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-6b894a5ce3dso7755865a12.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=Idnf74jeNACnd5kAJidollFEqr9+/2J57hSwjM6Ap7swvV7F/37s8eiavl808ujQoE slw+BVzshcRxT1ZNUqrdsDOY3uuKOtHX7GvItHkXpguhvJX7AJMsZQWcgwJe4XxQQCc+ 83r8kU5KvBnf2tSkW6Ay1BluUq4SJxRZ0eaxhcaUlychL9J8qgQ51vGBtQRGurrZO3Wc kqtfOcJA0/DmFLhMcgLJTksVfHrI35jD3433tNzVJmSx2NYgd6fV8iTb8jIC7q+A5b4B 9mSO/xx3Q2d/T90WhP1ugUO/1u4ZwZqcroGD2X4znyD593AwOUA9XTiiiCgYFJWN+i3d katg== X-Forwarded-Encrypted: i=1; AL+hErH7T+gg4tUIdbgfqXODTKswGP2u/RR3z8P7sEklVMBkD6obNwMMDUAfta8q92NPK5IbLfRCVKlizak=@vger.kernel.org X-Gm-Message-State: APuU4Z8u0tNEK2TOuAwser5pAYyX/IowLnADW7ZbTvvts0KgdnT6eH8V gCxQURJ4xk8YIyI2/c8v9SCtyTDXu0sQNBbsBWo8uywCqJcBR3vkxTzthKPd1Vjk8sc= X-Gm-Gg: AZFdTZfkHoaIghQCoMTlGvhXzo/sdkPWMoCjWdSwqEx6ndg/52DCOBbiggBJ9B+diyr WtKxok2KSj0+gLDAKskotTAccJsmu4NUQOBP33jpnrCBlv9zIef5no3G0bmIEz1Pgjbo7VPbTS2 vD+60vsx0qy+cG9hQsP3ziJhMt+VT9S29B6DcwP2T1OdHcMm6wCZFuHOc9uN74/u9i7Kcja3CRD VmWRQvr6L9FfuuIvmn9+1ja8hg6im3D7gP8fP3B/kMjGW9u/F8HLSzI6Blhr9XMFzSnqXNAXLe6 ws3qPsjND3B96hFhgEWlaZr5vG2hPGEzskYwM94VW3y3uBJ6BVCV4rlmn6YpUNJPsid2KXpYCem 057uKntC4YNNdLp1TfyBX5KS0zkMdoS5KUvUTD2dj4E4fVVDdTHXUabFm6yz4cXVVeEO+aPeAT3 KHRIUZ3HZ1tYtM+NeKbKhUVcOyIMe+K4rCjb2MfJ6F2pZ7bnKCyteywviiU60c2fCD7eVvv3FjH AQsBfQgitBAJvpml++Q5FVh5EaBhY4RCHwcclo1TYJ36KJH6SRaQKz4Qwj97B8H1Rrqjxz0XXvX Z7wUv96hwjhQu2s/udAUqmss0Op7Nwu4L4TzVVdGtuoB3FqExIG0z71t0mi/k5Q2sNjolrfqhA= = 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-iio@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