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=BfdbxQBKU6TerFTwFzK3V1WKFe7O2DQPKYFTe7PfirtQiYmepbmpgDeMg8ZZK/DhSywL X+wvYxL9FMo+rZOpOUZPUqhiQxihyAiYwNIQDvhMGGnZQD7SZ2H+5PhfKG5POK5U/nk47 prPoAiou/T5/hr7ziWEVHqxNni6iaeO5c3DmuN2QEAbYGxSpEkulDpgHV93yu+vO1gcJU Uek2zlcN2SOZYMCOaUY9SWsWUtpF5xCv9GpBVvUSV2oK0ZS0Z2o8dAULV52EnpvTBzWAy Oa0rGr2rhEzXoPPTAa0s0HT0mSKgGrwxBPfjlQyT4jAS3MfVfOujmJJn6doowGsx8uQ== 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=HGHbspsrtp/XlP2K7tvanjBR15TeecJqJQ0id7N+RsSJxCABk3YsWK1mtkaTXTmbxQD7 FnUUq1im5SDGcaTKYPsGVbvMJp4Y+f5LncWfUL9RonIRIMSPlpr8tXLMr6QIHwCfvCqhp EK3d4URYFx9oL8lt/BAfo3W75EKe1lIq9nBt8ecmeOBMFUeKInmJCjHuUPipmNW3mYd3q zK9UqxQRO02/RUs0u5QOLb0En3hZa/ODQ9U61zg5oMxgdXqsjDSGn1J40RGc2fyVAO2U3 VuSbygzymchr5mWZhVoymqkec0ejlPE12v+H565k1H3pyKk0KVZa7HvvPem8hma7eIQ== 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 DB4AB606A322 for ; Tue, 1 Dec 2026 15:43:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DB4AB606A322 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-f46.google.com with SMTP id 4fb4d7f45d1cf-6b47c1a3c74so7029295a12.3 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=gj2QYNr/V2if/+wV+6lKdpwwdryhBk89F4YYLW9YGIxQQSOJc5pDGR8wTWHzgo/P6w AKltIVATKrpyFI8AcOjVt5DQwkyBwGBW12DfTFnE11Wwr28eFa5Za4aHReiVjmOo5WrA aK2wyduDUVz4inhkslM+qDrMLzhIhLLICsFxfydNGme4uxCgE5ck5izeHxHcBr09LL0F xO/IijVUbrVxlp7ugl4P5OBDF64egSMas1df2vH4HCJoVK/EIStaHatVQqF5+PK56fZx 3ajW+GNoEh12U3kf/D4gme50oFV7y5fk94zpld6vU5o4keOzpy/uF6ybnAfmrCgiBnwr S5lQ== X-Forwarded-Encrypted: i=1; AL+hErE7+/QjmZg92yZN+qwIjC77PgfZ2QILVC1fRKUrDm3wpvcz/rrl+PRdS5xS0UNBXlRvOHJ7i7HSCg==@vger.kernel.org X-Gm-Message-State: APuU4Z/Is6uB4n5fA9rGZ6ZOv+aoVb2Vo5ZprFJQXzhnPSmG5nDA1XrF ZIPa924d2tb0IJvWDFmZW6UVNYczooiEMLLb7oi7OPZTkvTFPQHaYwTBzS6hn4uTbQk= X-Gm-Gg: AZFdTZeJgHZfmHqvFMdQTQ0MyAZDrTNk4ZK1srdSGod5NXF3+EEWLCtBLDIcYHh0SPa zMSjVlrznlrDKSeWiNy+4fXHF4GE+9LxGqvWdREsio5fLeDi1BO2MiArGtCQ0kmuL7XekLp2mxZ 51//xeFMUn1yUQYm1zuyFI4QiaLLkaLR00NxkdtZNyJYatOoKd9OmnUEGQYx/vMJanDxqmAqWhq 4bR1n+79VxeF7oFEfBoM3T9+2vg3hK29iBp1UvuvMQwGNeeZJ/tx6MA8kTIRNxK/dZtwHonhUsE fahcY8v4UhOxt7UBz16CgxIHW+j6Dpy1Ay5uUml352/mBI4P5U7P2HBNhNRRB1CjxWKY4H33WIq WZDQKV7ZzRBxDNh+YTFMR7cNqLbsBJU62dMTdWmAbj0eWo1ROqb5HBGpwLYMOKCjaBbnZSK9ogq PfSLMAHJPeaUjCsHmvX8AlpD0r8TSYJprmucWtbNF0LkGWs3bcw0XzfKtR0KnFhyoxxBKVZ1Qsw ecsoPWEtNyJDzaMVd43EGXr2dnKu3s4/WQhz9o2vp+nIG7Un4ZAGXtlf45D03RDsroTE29N8KBn /INNdWO3NAQoBbJW02NZaHjmNeJxXLHgL9fgVVnwYQiTcb5lGpqHsoQ2JBB/AVZTNYE3PsEriw= = 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-pm@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