From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052707; b=mkSWG3P0peX/qoChMcKpSQ1E5Pdv46xMAcLP+8+MTuIKasCE4SFHJ4ETYBL/HguGAdyt 6odtFSu4Fh+V/HnPFtrXTEMZoLCpcckxdyKZ73n7Lg0VF3qdHQAqUKcEPNLZvYvafMG5v 5NVaasupVk/dkSXgfxwriz9JiuCPWCDnAgRPNerc/0rtFhEij06dgSpMk0CuqKGWQQXDw ufdQNaeVUMl0ofPbyqNulT+kVEqxf7R+r5rI6z79S/QnFHlA9MulIWH99APgHyAxSKBrb 6bj2dik708oBnB+03W9xUQkayPgTEouh490Pd2vonvFZjz4twRVKbgetr2w37ZBv0Rw== 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=j66BffYB4PmvAOywYoRt4LEweiuyWqxFcNK/lZtyBdrcW7Kh+Qt8FbhbjcUzLhyB4MW6 LyrJawkpaUAhaDLZH0b0ooVPRoX4Ljihq+/QCsXGIJJOPvC5X0/ahjy8WQ8uKi9Sv0DNb SNQqPdWhjAKYToALrfuKZtiat/QGcv1IW0CcCjBaeS4NEhdurkAXF3flqrYl0UlGqeWPA 9H7PDwm0h2kYGqqslf8b01MSU9BwiGuzWpNXYK70LL8XOyqM7O78uYGRNTZ3JHgRFN/l4 Pp3u1S1FsiEyw/3YXrHKm2NiUbCjlw2XO1ElkU+yKVy0tiT5wONTZf+2UiOpNnRs4Gg== 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.46 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.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 37992606A320 for ; Mon, 30 Nov 2026 15:31:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 37992606A320 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-f46.google.com with SMTP id ffacd0b85a97d-48e3b22e971so5500624f8f.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=AGV8LIcYntjWw46ScBTbVFkQlvrmQwafVl6zHffuJfuXR/mpO5ampuKMvFEavUs06L XbuBVRHIp1JUJOFImBcfmiqICQ+B+whUEil7KJ7C2aR0ypE3hwbhOE55/spPeMcHojo9 TA3BAyCNGoKredNjeknBXeVVYtgZdjj4rnF9BncZOLkbhEoV9WGDdtJ+qEhYKxbth9b/ NONsneDxcqp0PewPwPR1NeZhKrdAhaqv4+d3b1nHRvPplHS03cfmIr50t3e4C8yMgB1n 8fmWU+b6RaGkeQbk7vZYRK3sZ6fFUD4Js/pqWnf5BiIJbug+2C7x6QepKzGFL/FrAT8j wh0w== X-Forwarded-Encrypted: i=1; AL+hErHxIs0yKm7iVp0n3vdrLv5jyQKM4Xs+m+uzNIxDR+vnN22BzBfILZOnHLkUmNbwddzoAPsN0TXiIUsHmpA=@vger.kernel.org X-Gm-Message-State: APuU4Z/Vo2PXzjpNEv+Q43hzBzX12Gq5JsGJmh8I1zG631s0ggTQVkUy csOLX8YxXtAxEFIZ1TRgR8Swrn/IUKh5DnQ1HG53Cag9Uj7vnwtctn3ppoa8lqR0G34= X-Gm-Gg: AZFdTZdwhA5x/93lTOekYW3Fj+AZDTnxbcO61ZN3FVBEx2LUjJGD0YD3It4YZ5tLcNK 105p863AwL/iNsp7N1+MerzDhDRazDAECPuKstBJ6RI0gNCvVRXefabzVurpzu9c2H29iEfe72r sEgcFTdoa1aEs8xheyOGEQB+3C7unCUmW+i7mQqtJNiwu9+5mCYXSW6wiFPjgepqtm9MVKC9K40 HlLlD/DwyzX3/1MXhEtgeGsFGgwFTG52RLuqJls2XvurFFp72rn6ki/C/zzrVf7GGG7AlBiaYyC ELPQpb7YSIXxrJgGxbp8zhhF9RAGYQ6BtW7het1VyE4E4REP/gLAv+oy6PmG1uErFXgqJoB90I2 LUTCLdC76IxN/pOOEcU2OawPbqakVfaRny70TzNvxwQapnWfJGH//1uwei4an44SBIKr9/dmgJt D1IhShYdAOYp3iZwKcM5iZdCiSOaSTizs8EXCufB8IXgi+kGP6ZYcqolTlq8Ehhm3DqLRLjhn1I 6bo7Gt25T5jOlLAGn0PdAGTXs/Lf9TpDs9eu9eBMAoo/IQyi8SENxKBlhjOb+pi+6yjfcxNoBul SeCWaRRi0U85VZ9X6nDcCec3BbcYloE6jMJxUWiwzpc0dR4vxNIiyvJNgTRYF33dsa1UKH15MFp wb4Lyxcbk2DsB7D2N 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: linux-kernel@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--