From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052707; b=WM3j4sVtMJs+SLM2nqGersz0KAjrvj+LnJuZLrs374RulwG+AF7Mbg64KEsD1t7r6JkM ukPecQQWoeCSonETNLwXw0JPHrXKmPTzd31BGUJMWe1a4zhrexp8Qtlc0Yd6fCkObSLfM TEJ8xisetJ7pL8NzejnFj/UfJ/Q6MhKHwqTrweY3FSyebhjNwWT1Uu06ZoqxFuJHGU+6i P/jPnOd3mEc3vEWTlazyNQEn/4JFjMqPpofgbNeZebi7ZtoPFyHzBBK0qif4myy3Ku6XE EzNpx0A7f8ycN6wjFWMChbc3FXXt01TIcUXED2/qy5m+m1J5CyJFNZahn7otPiEzFfw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796052707; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=xj0AHsLrmQ202hEBId+65kYQ6O04XMnSAjjhd5Zm4RI=; b=u0J7b6GBLF0jerCZaXRJgtyQje7TMekusFxXsH8zIP2htoONKQLtHNm8uFCClE6zYAj5 I1b4V1QC6HTTPra1KdH9X3lVMb1Y7dRWPmT74EOiPKfRKVr6fDcuouMGslCNIvhEeYQ9u uT4l+3i/sCXtmB4hJaMqFDVoyXbxoqhsCQ/ggHhH4mBnxoiSgHNdvByGkOvZA7CJGLKiJ BwNFEYiSVNcjZayiLtVRradhxtSYq4JwE7LcBI5uyMaavKPL5c8fbiGUzUID1dxf60ki8 6C4OMFw6IA21m67fg44Pqw6AzobKQkhSugQLhrvdAfihuCSVVKQKkXYsO1DwNPGA2FQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=pawsYINs; arc=none smtp.remote-ip=209.85.221.45 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.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 435E2606A329 for ; Mon, 30 Nov 2026 15:31:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 435E2606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=pawsYINs Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-48e3b22e971so5500623f8f.0 for ; Mon, 30 Nov 2026 07:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796052705; x=1796657505; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=xj0AHsLrmQ202hEBId+65kYQ6O04XMnSAjjhd5Zm4RI=; b=pawsYINsg9dyWjxuEXcSZqetVoxbQCgaS3eyNhzc7plL6Z9/AacbLkeRmDR6fuBG1b NuuVRIfVvSgJMYHfWLY2bxpsplA1MKhgD03ZrhI6JXFY+jSjv8BVOyJQd7w0sQX4lZCI J0GdAOuG1Xti7H9W0JzAgkJHzrm674/ry9s/JwpdnEfhNGUDb4mU/2aXoT2ooaCsjl2x vQoYcxdoIsqCg9DfUmvOTmW3CKBqaVJ/jtLUC85L8A6MSQgYvdBzyoU7JocT0osSw54h OMnNJTE1sAt1vnVXag7pJXQdUFhEX+a4YIFmx2j7FhGNkT3zch0SyLC4ZWsMbuxH8QZ5 X1oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796052705; x=1796657505; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xj0AHsLrmQ202hEBId+65kYQ6O04XMnSAjjhd5Zm4RI=; b=ofJxhT3fqlGlEYDbWo+z1kMXa/90ljMGihhKrtplFeOtV06rsMS7FPB/UtbHtAWN1N nanbWMQDRH2GIDx7Eyu5Mk969xg9OCBfH4Ve0tsufoxXEEh0OgW2hB0SEO5HE2Mi2IA7 KzxdVuDRAaoE32jcI/dVTJ/IRM7JpiIwKzCvN8I95vrFTwvOd0G+LcO9/rc6DLX7024M MywUAKvuHsB1Wtf5l9Tjeaz2OWUoFtjPFAKEQrBLaF7ZfW3lB84RZpCucuj1D9vbmS+W trT1WuHhB88SpDuwkqXAGwAKVr3++Tsz0XvsPBC6stf8sl4wNyj/cydG9xmAfa2p/JRd saJQ== X-Forwarded-Encrypted: i=1; AL+hErGYKSRCuKJT0s3iAAo3ypyWmmzTQfRDQKgHTQjFu2QtJwduUTkqkcG9odpDhNJBY5iTqZjGp4vLSJ7l@vger.kernel.org X-Gm-Message-State: APuU4Z9KfVnA5BZQHs5sh34iY+z/J2c/b97Q8jiqQOMs8BdrS9khgvbl jSNjl2K2W4m2nrEgwzlHg1EVaKWw1/nOhlfrXsUpH6OF7donQFPkvBgi2jorUGjPiZs= X-Gm-Gg: AZFdTZdlggjIg6IVJLqqSwzxcXrwKUM8g4OHBAFQG06yXrfHX841tNTZz5FwI7FzXWN LJELLAPRGTgqJepGpPDrgBoG6XiHHfFQ2bitCkoTB9P1tIbv0ajYn5BLXABsFebtGnkdv6/Hn2Q QCpsNVz40JExoUjNWKuPsA4QvR4Ue/UrxK9Fldjy2yTM2F3xl71mvm8WO6I8czLaqIhuD3bRTMa Hw+ga19asUSGRPsE0+L0MTx/UF1fSm6oBK9TclQdC1H+tmayjr/EzFwYsEjgbsGc0yDGJ7X3jvA CXHb0bn4UqDhbUmlUA5Hyvi/nYMw3qv83D3x1//5JD9lCAYziBMegHc2fRqtTPoGRPtAfrlni5b ygt5cwnyZSzsLibF8Lr3Wu31MtIQCieLxk7HMPrDK12xFkdpoXoCrT5R0eel8+YuN20TJwJ38Zd u9ADG/O91h16KXhP4GyCL2rGQcuvHDtgRaXRwYBEgPCXZuMhz2937LEKCfOW2Kc/ZiEHSNA72yO YL+B4FWTK8wdogb5LxM2IcANVR1hJGN72zkyVAQjWdjqLZzQIJg+8GbG9nC5Tz4CcjrrgEm6i// f0NWjPYYNBI0G8xTvUxd2YIJgXHd8h3KdekrYDvbWT4F9C/yXXe3+x0WsIyykaNiq6vKAxVdo7f GvQFI8cWjAufKPROo X-Received: by 2002:a05:6000:2883:b0:4a4:39bb:970d with SMTP id ffacd0b85a97d-4abab02c469mr64303526f8f.2.1796052704566; Mon, 30 Nov 2026 07:31:44 -0800 (PST) Received: from localhost (p200300f65f125a08442a8896ffafbf0f.dip0.t-ipconnect.de. [2003:f6:5f12:5a08:442a:8896:ffaf:bf0f]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-4b70c05b9desm40857341f8f.54.2026.11.30.07.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 07:31:43 -0800 (PST) Date: Mon, 30 Nov 2026 16:31:42 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Alexandre Mergnat Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Nicolas Frattaroli , Ulf Hansson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 3/3] thermal/drivers/mediatek: Add GPUEB thermal driver Message-ID: References: <20261130-mtk-mfg-thermal-v1-0-e0617e26f902@baylibre.com> <20261130-mtk-mfg-thermal-v1-3-e0617e26f902@baylibre.com> 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sgkx5usyeo3f4s6v" Content-Disposition: inline In-Reply-To: <20261130-mtk-mfg-thermal-v1-3-e0617e26f902@baylibre.com> --sgkx5usyeo3f4s6v Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 3/3] thermal/drivers/mediatek: Add GPUEB thermal driver MIME-Version: 1.0 On Mon, Nov 30, 2026 at 02:19:33PM +0000, Alexandre Mergnat wrote: > Add a driver for the auxiliary device that the mtk-mfg power domain > driver creates on MT8196. It registers the GPU temperature that the > GPUEB reports as a thermal sensor, so that a thermal zone can monitor > the GPU. >=20 > The auxiliary device shares the device tree node of the gpufreq device, > so a thermal zone selects this sensor by referring to that node. >=20 > Signed-off-by: Alexandre Mergnat > --- > drivers/thermal/mediatek/Kconfig | 9 ++++++ > drivers/thermal/mediatek/Makefile | 1 + > drivers/thermal/mediatek/gpueb_thermal.c | 52 ++++++++++++++++++++++++++= ++++++ > 3 files changed, 62 insertions(+) >=20 > diff --git a/drivers/thermal/mediatek/Kconfig b/drivers/thermal/mediatek/= Kconfig > index d82c86d9be56..a721b75d0790 100644 > --- a/drivers/thermal/mediatek/Kconfig > +++ b/drivers/thermal/mediatek/Kconfig > @@ -34,4 +34,13 @@ config MTK_LVTS_THERMAL_DEBUGFS > help > Enable this option to debug the internals of the device driver. > =20 > +config MTK_GPUEB_THERMAL > + tristate "GPUEB GPU temperature driver for MediaTek SoCs" > + depends on MTK_MFG_PM_DOMAIN > + help > + Enable this option if you want to get GPU temperature > + information for MediaTek SoCs such as the MT8196. > + The temperature is reported by the GPUEB, the microcontroller > + that manages the GPU power and frequency. > + > endif > diff --git a/drivers/thermal/mediatek/Makefile b/drivers/thermal/mediatek= /Makefile > index 1c6daa1e644b..3ec5295e8514 100644 > --- a/drivers/thermal/mediatek/Makefile > +++ b/drivers/thermal/mediatek/Makefile > @@ -1,2 +1,3 @@ > obj-$(CONFIG_MTK_SOC_THERMAL) +=3D auxadc_thermal.o > obj-$(CONFIG_MTK_LVTS_THERMAL) +=3D lvts_thermal.o > +obj-$(CONFIG_MTK_GPUEB_THERMAL) +=3D gpueb_thermal.o > diff --git a/drivers/thermal/mediatek/gpueb_thermal.c b/drivers/thermal/m= ediatek/gpueb_thermal.c > new file mode 100644 > index 000000000000..f63b5751a0c0 > --- /dev/null > +++ b/drivers/thermal/mediatek/gpueb_thermal.c > @@ -0,0 +1,52 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (C) 2026 BayLibre, SAS > + */ > + > +#include > +#include > +#include already provides auxiliary_device_id with much less overhead than . So to reduce build time (a tiny bit) and build dependencies and not fight against my quest to remove , please drop the #include for . Thanks Uwe --sgkx5usyeo3f4s6v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmsNltsACgkQj4D7WH0S /k4/swgAmD03JtFswv3Kzu/UVE/udTb+JvqDEd82UXAv2fTy+mS0Oxlif+ssSqUC XnT7yjPW4HbEHEJCjyECb9202EH547uNeXtq9SClZ2JaKDuNsRvIFFTbp8v2PdRr Q5uzC43bjNej30OyUMLvw+QSd4Sc9jMHFskm1t7LKu0ABaymZRYjZgjV7fCI8gFk fo+im3ggaQlPVYFe/QQJMscayktfDgPg/EqrLsGI49RIiXuqMDf6ycmFL5Til2zw ffyOW8Rwj50mKXXBlw492QvY9zkMVRdVRUlbDLfAkaXSaUiX2zH75ye26p/J2cW4 l+j4/uogXN3FPluod96DH9uXXYHN6g== =u2qw -----END PGP SIGNATURE----- --sgkx5usyeo3f4s6v--