From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052708; b=i9EUtOUNYukrTM0Va0f7dkHTvAk5pSRZHzMnr1HRCRze8bDX+CPUL8HZgNZOCSLeLq1a b2tkjx291qgKuv0oVCjuWNp+iOfoYahcSsNTKfQprZUQ9vO96nZUURgCagV4Qca47lED2 IjmARf/k82wknMegODWo35yqQ491ocaY8J/39akPQtxlZM9btkRCHHgjw//BWWdxKCrEh Dix8vg2yC1vNLiCHbzM0VKaD1yY/gETYllVujLviOLzXlv0D+2EsX1Tn0YfQt0NIFiIY9 rtNwGhmCmZC0fTbrlPy3PxL0GYqcxvzUMuXOM4dkLEcgQDMhrXDH5Ltf/KliJ/eN4rg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796052708; 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=trDH/vO7wkJhuT4jAqk++66NMM8AuDbmngjxg5O/bX6WcM3pltwXOXEwvBrAEY61WSeS rYQ4D1nHM21snuNWU3owCEbTrwDUMIyuw8/XEW84esPmRvMUSw4t/3zShU95M5iibGy5G daEFPj83COWcjySWmrs1pc6h4VgtopPTYkKQR96d6/V96lBpp1Ij3n5ooFsxHUaqM7nP7 MiwMYmbv9N32PCiCBAIjpX/JxY9zIn0vvRNj8poDIRnZ95bwQCGU+4dfpSEg7iqsMJ0Yn ssvpX1iSePJ5TKLrrswKaEGGp2R/vtQXupmiBLbZSSiCm1D5qtAe6CpMGAp3iJ10L4A== 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.41 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 4261C606A31C for ; Mon, 30 Nov 2026 15:31:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4261C606A31C 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-f41.google.com with SMTP id ffacd0b85a97d-4a9be758734so6754410f8f.1 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=wN/T9VF578a7qqidjvFtAzMFSTO7ESQdrd9dXGmi4ghKR98ln/H+nrJkzhcv8q4P1q aFxac7mWToSCKHfqx3WrQlHe8Pd6SRgCJvKwJP7gXdBTsXvRLjghZRvd39bpsU/ob/Zi qxVl4ZTezWt3eZyZXePsI+hj65nehFVDy4SvBkWnddnyAC4+2joK0z6T5UUGPARQ0nMI 4u27jgoh7X3Yx37aeGkNPaO3KKRd3P/dnJRDtgAjJu1hOxz4KUhj5GJSE2Y4Yk247ijK AhHhzmCNP4z7dapraTA9XNOVsqbL+XY+SWtFb39uXOeJbWsTvNyNZcQ8r24FBn7DELTH tyTw== X-Forwarded-Encrypted: i=1; AL+hErG4suc/1MAVwOeSWZgFNTPb+UB3nkIYKz2TJNwv8XK5T8mON5MRwelClxVG3Yiq+KYvG5VOqeVMlA==@vger.kernel.org X-Gm-Message-State: APuU4Z/Z89QdxiRHVoTH9fGZf7X0RiqQn7SHyglAcJEHUXQwPzqXzDdY VHrE3QE/ObY/shw+VuQ++tO0oo9tS15iqSpLQ0kcfby9MMT0mC99JsvyIXgPn+kflVE= X-Gm-Gg: AZFdTZdLxlegqSOx+Q1L3ZRGUQedseZrqQ+v7UC1pBok+nbqJJ1/evYhXR9tb9MjirT M9qrwXhnPkEUt9QV1uCdKL/mqNb6B7iv/TGhTENJF+xeVf+DOlxwWZ7OhWevvb2B+v+U8nP5Ghr dfgZf9I8Y3RYFXZA0sN4+DfxiZWiRWFNWj/2QSZTmnafTVu48U2OUoL1JeYwWMwDskIr4lb/kwX vQqjMjJxuo/CduFJ39B6OF3BDKrFs/kDas/5u1nRfYzmeJH4KutTlUEkVI75D329dA8JHPjgCSO AH6UnMp2bWKCgsi3CRLsLlTR9FeSHLubxAIZURGUbul6EDHqzYEgfe6Tf8/OK/9VgfGiJq/Dyd3 qCnAtPQ425KrvqsEuUIRAtQ3MIppKRYUh9yvlj4PW7U/hPBH38H+/59WtsUDh5tVb0JGAZhHmva 5L4lNmMimUqQw+FpAHw8PBejyxgbarlJ4kmO4NVOcAbGyLEqfpcXiExLkH8QlFJrDQU8y8rQUsr QvNTvw0JKbc24XW85a3/6+N+2u4tlpmgUkFU0KBeWbtgus/lDXNeuUix76VgMXYWf/uVnMa3sqk nmLS8S0pLO/k9PdUeFh79Mz64iFUCKq3fR0BLw9TqB99PN1rId1Hk8RKg5j4nxDJvcWRv0KHauH NiSCMb+J3C0W6z9no 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-pm@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--