From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=178.238.236.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796242452; b=ucadfekVCSy2L3pgzJksmhcDjySOCYF2zdEYlcHnLNdhNdf4xMr1pQ9RY2oEhv4s3RH9 kOsfGnIwsaMKNBPdSKgZHm8AYCJNL7CRdnSW7TYxea6soLdgYJUW4/myvCjjYlat6ntI7 upEkge/PrmYLoa4ApwZdxIjySLC9us709oMEBhWOx5IfZb3/fvfcyXjauxNejRdd9qjkl iC/bBd7Vi5kcyQvx3DpF0Vg7iVATOt52eG8Mqk8xy35I62hn9Dye6WA25Xw89LWO4WEvU 0VGdZNO+OeSRuunp8g/TSF4nplmgkCzUDvHYswsdd/NZl+gapW9DuaJa75pX/+3kGSA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796242452; h=DMARC-Filter:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=FTeTAgQSxrrsKotNG6qTf+lns3zepkqfho/sVJZlizs=; b=mO+NIvlvObVfd20ep/U/x1wq8h9H494hQv5gxk/pN0BVTxxy7f8H5AAX17FeVAcHeT/S sw3YJFoKvfrBiTbyXHz8LCUX78lMZZvXcJjXF7jZ8R6KvxVLDdoBVTe1Zztab7crjVik8 sT1OSj645kzrGKMp2l2QfncT2WniOOKoTK4eTDq6gpl8HHwE0yo3GB08ece/RE8X6EIjj hS/LqeMl7sNfOgIXqY1Fk9sDjXAxDrvE4KC011ZVHTn/0rrCaM5z0GHVsZz4C0w/t7Kbe N7NE8PYFGbTNDp7gE1cpmDy4/h/rEBKtH9feY6mASXrjzqy56rWPsjT1Xwb+spYy2XA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass header.d=kemnade.info header.i=@kemnade.info header.a=rsa-sha256 header.s=20220719 header.b=ong9qsPa; arc=none smtp.remote-ip=178.238.236.174 Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5CB0606A322; Wed, 2 Dec 2026 20:14:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D5CB0606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kemnade.info header.i=@kemnade.info header.a=rsa-sha256 header.s=20220719 header.b=ong9qsPa DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=References:In-Reply-To:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description; bh=FTeTAgQSxrrsKotNG6qTf+lns3zepkqfho/sVJZlizs=; t=1796242451; x=1797452051; b=ong9qsPaH28I+fBfPFUqGOMEI8P8L6f79SMzuXbH2S4MmxFi+m6dGPLT5aJ3uJJ5gApT0sYVyjq wmK37icOYOMNI7fP5nr1+PDrqIOxDBfRC8Q6RdSROxlcdrTeQ8BlizYk4OrIsP57VADWVLeFjnEsW JGot8iS9NU/wdGRYynuEADdFlGFWhgk22EorZDP+l/7obsLMdQzfH3+0AHMjSdyMLmD8hvJDg/W6c e4yuWx6PAC1e7UetdVmSPYxggJKvP1HiFP0pypU3rm8e+3BOeAiMZKRwemY7ed5PHsOrv94RV8q9O rWqECtW7nOg/AjVZl+LP7dBCaalO5WVR5twQ==; Date: Wed, 2 Dec 2026 21:13:54 +0100 From: Andreas Kemnade To: Guenter Roeck Cc: michielvanbeers@gmail.com, Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan , Randy Dunlap , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, Pablo Mazzini Subject: Re: [PATCH 3/3] hwmon: Add Maxim MAX17135 temperature sensor driver Message-ID: <20261202211354.5ebfd746@kemnade.info> In-Reply-To: <6f90353b-5f7b-4279-9d4b-6f900a143be0@roeck-us.net> References: <20261202-max17135-v1-0-beae6b70d575@gmail.com> <20261202-max17135-v1-3-beae6b70d575@gmail.com> <6f90353b-5f7b-4279-9d4b-6f900a143be0@roeck-us.net> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; aarch64-unknown-linux-gnu) X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 2 Dec 2026 11:55:31 -0800 Guenter Roeck wrote: > On 12/2/26 08:43, Michiel van Beers via B4 Relay wrote: > > From: Michiel van Beers > > > > The MAX17135 E-paper display PMIC has a temperature sensor that measures > > the die and an external diode. Add a driver for it. The driver binds to > > the auxiliary device that the regulator driver creates. > > > > Reading the external channel fails with -ENODATA while the chip reports > > the diode as open or shorted. > > > > Signed-off-by: Michiel van Beers > > --- > ... > > + > > +static const struct hwmon_channel_info * const max17135_hwmon_info[] = { > > If this driver isn't dropped (there seems to be a request to implement > it as iio driver), you might want to consider adding > HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), > here if there is interest to support thermal zones for this chip. > I think the decision is taken: comparable chips (FP9931, TPS65185, SY7636) provide hwmon interface. It would be a mess with any consumer to deal with different interfaces. TPS65185 (which the Pinenote has) is also hwmon in mainline, but they have their independently developed driver. MAX17135 is also used in some i.MX epaper evalboards, so the same EPDC as the Kobo readers. So just the in-kernel interface has to be added. It moves up on my todo list. Regards, Andreas