Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1910025lqb; Mon, 27 May 2024 01:14:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYOJRBklY4AoD1YYUogeYWlDr7wccrOHx+vwRlk//nssrBZvT0ROCq1jjPmZqVt2JTKudtxTTZsaSOSes98n0zGMHqARI8NVVaZKx84w== X-Google-Smtp-Source: AGHT+IEULYLAjn9EiWfC/gXnhpj4ig1S9lctYu1IkUGnBcfs0JkJwqzUZWBiPrWndcdidiVbecrb X-Received: by 2002:a05:6359:224:b0:18e:acb:8f1 with SMTP id e5c5f4694b2df-197e4946141mr839658455d.0.1716797695977; Mon, 27 May 2024 01:14:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716797695; cv=pass; d=google.com; s=arc-20160816; b=rU7khIgI1QsrhUwQX/ZVbKyVp/S5CMb4HjxdM7KtQqrjQZ/F0EZjbK4BLZxX9Obv/x Jf2mA9x+c1CGoqwevjfRDj0iM4HyskE9TihPxLiTGTWXCdOwgvBw6YM5zdAH8vrAs8tZ ydlVM6D0ujRHbjPGXzAs3G9QzkOxerJyENlNIIA+7/b7Pm3+9Vbk73uzVnwmEbRUjVPz 8mJWZgEDVxDaOxvMKQSHccl1zBiCYkArjiOtaUz/7xPWClypdDswhdP9KnGBoORNoTBq 32Y6c2KIQegzlnJ1+6k0x3FTGUYHPm8nGnEgFU5AhJKpZiVZFATyfcEkNZ7HDBt7bQLf vBgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=U9TONvTEWThGczkgWTi4O6+TwYpFpcfs3Yxs9Jjw9zo=; fh=viGa94AvC/nGYyyHxz+W8XRdC7o4h/TTztixq1unuK8=; b=QSPnJmoQvQtVR8qK991y6A9c/w+JYVKAF5aByNJFkGbBRpXvcW7ZKTpy+V7jWDezny 18AZ9e9Vei65oj9DoQj8gP8KBdeiBreLxKrFxlrsZ6gDYQxTTsyrtBVTAWCBDecZW5Ed UwmO8pRlN29zdxdetmyIsmeTr0fJrw9erDuloLhZDClYN0pVGSOGb85ddTO7eU7qMvlr 9gLLYnh+laCuZGTk/UWtdQBWlFXRf2ftmf+dBlJaNl/0d8eiuL7jkVfwCPp4uxBBLYWC Qz9BsWAFUUmw084N1OVMp6teLUhMrQJAPKFlcGBd7MKnBnqAMattIrYupIuYg5Kiq/dp Leyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=kSPol2IA; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-190200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190200-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68229a302afsi6102528a12.669.2024.05.27.01.14.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 01:14:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=kSPol2IA; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-190200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190200-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 78D6C2818CE for ; Mon, 27 May 2024 08:14:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86E884594A; Mon, 27 May 2024 08:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="kSPol2IA" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 246BC3EA72 for ; Mon, 27 May 2024 08:14:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716797689; cv=none; b=OrD7pD2azpObrvOiMgLc0otnll0pDsvb5D+a64Yghv9P/PaiYpRMDH8NAytymvP3eyBkFG9wQ+Ic0iFmmEdPtkh1GMuDp4bRFTH4FfgdFK9Omrf73qnScOkYtdCMz4mM04V5UKFtFXKPTriPQcd6Rf+XQzDdx+s9RxHw63qALwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716797689; c=relaxed/simple; bh=lsx7EwUwBi3NvHqO1utE290g0jz7B/NyZB8DGC2Ks9g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pEpSUox2cEQkT6wXezf32rDHQWSlOp6s6i33ObLEfTftv170j+suKb0tUEUUz4hgIkHmEGlrdm5eGQl+lLppewj6McP9/96t8Cs8i06gatUV3hVu1dJF+OR01Mo3eG+g60QiKtJsMGRtlqTBsXMCFtVhjTTqq1I6eQkW8/UjaHM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=kSPol2IA; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e719bab882so104409911fa.3 for ; Mon, 27 May 2024 01:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716797685; x=1717402485; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=U9TONvTEWThGczkgWTi4O6+TwYpFpcfs3Yxs9Jjw9zo=; b=kSPol2IA2xiMjgdGFJhhfMWXFP/aXTGwmOwGXnjbVObp2W5nj48gH9f2ejpCb29crH zEEkQoc3E4tdkbeQVIyJcsE75ZZkSwz3mdW7N4Ez48hBnBxm9ExAcGUtPNT+1Gq1ktEw S0qRofu48vzmkt3utEjyMXjdmQMhsLWjfi/akKenyyGWMH+pe+belC60EpRcR+Uq0Z6m HSIIQ6sFs90QPhuMF1AcT/myDDBowxZ8EvP9z6u4pTRXuSdMjJoDYmYPW+rGspShd8ql MjePuEGAFPJPXVwCB+zvq6k48hg2SCw1k97UEx6JPjm2llQ+xPmZgxuuSC6sbzx7w80P E44g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716797685; x=1717402485; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U9TONvTEWThGczkgWTi4O6+TwYpFpcfs3Yxs9Jjw9zo=; b=YNxg+Dp5zgTlFSOb6sz8WvhyzSZ0ZhpC0f5pYhulnvDUuD8JFsSurLTMZzt8HtGIYk GVGes4gu+TkhnxvyHsTCB+GM7TxfDHU5b1ZiKw250UOH4PlxuCalmKNtIDCuWHSKy/Nu DlllMH1NNiU83REKEL+zBxbfzuhbymVc668oKy/i5X697jHICRHjscWk3ZKGn1gecAZQ TRUDzeTmwSLndfywwYDHDZbfO8XoujOfPsz1kw1Gyr5CSaTZ7Q1n26sMxi2dIw46toSC ZoIHTE2p0VBzl+QWTTHk5mlZ8UNXXKm20mz5YfRFqnN95B0yIMDOmxwBm13GKfv/DIy/ 5+Ew== X-Forwarded-Encrypted: i=1; AJvYcCVjaYMPjm/n7Bhoq16ObDfkZAnE+8kPc1ZTFx80JDY2RX47rmJwyWdn5mJYETVyrV6hbS0rEU7oL4SmvH6bcI17k4CV3t+2qgKkpbdr X-Gm-Message-State: AOJu0YwkhvHMkX05gZvHaDVMd48kpURtQpkYiqlTXV2/QHi29dmjuBqq IOTgbwNipkrcMNBpV7/Qh9VdhVXrRd9nBcZZZOlZHtJP0mRudzqeAhgAWiJE62I= X-Received: by 2002:a2e:9819:0:b0:2e9:6d3e:e91f with SMTP id 38308e7fff4ca-2e96d3ee9b2mr28178891fa.52.1716797685169; Mon, 27 May 2024 01:14:45 -0700 (PDT) Received: from [192.168.27.173] ([77.205.21.89]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4210896fc8asm100562585e9.13.2024.05.27.01.14.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 May 2024 01:14:44 -0700 (PDT) Message-ID: Date: Mon, 27 May 2024 10:14:41 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 1/6] dt-bindings: thermal: mediatek: Rename thermal zone definitions for MT8186 and MT8188 To: Conor Dooley Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Lezcano , Nicolas Pitre , "Rafael J. Wysocki" , 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 References: <20240524-mtk-thermal-mt818x-dtsi-v5-0-56f8579820e7@baylibre.com> <20240524-mtk-thermal-mt818x-dtsi-v5-1-56f8579820e7@baylibre.com> <20240524-concerned-fritter-262f5e16293e@spud> Content-Language: en-US From: Julien Panis In-Reply-To: <20240524-concerned-fritter-262f5e16293e@spud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/24/24 20:24, Conor Dooley wrote: > On Fri, May 24, 2024 at 11:04:34AM +0200, Julien Panis wrote: >> Use thermal zone names that make more sense. >> >> Signed-off-by: Julien Panis > Removing the defines is an ABI break. If these are all the same devices, > but with more accurate naming, then keep the old defines and add new > ones. However, the GPU1 define changes in the course of this patch which > is more problematic. > > Why do these names even make more sense? Where did the old names come > from and where do the new? > > Thanks, > Conor. Thanks for your comment. For mt8188, the old name 'soc' came from a document by MTK, which is not public: MT8188G Functional Specification. This document does not explain what 'soc' are/do exactly, it just says that some temperature sensors are located on them. Then, there was a comment about these 'soc' names: https://lore.kernel.org/all/ff12e104-da8b-4800-bfbe-a006ffe1b840@collabora.com/ So, I had a discussion with MTK to understand what these 'soc1/2/3' are/do. The new names comes from this discussion and were given by MTK. For the other SoC of this series (mt8186), the same kind of document exists (MT8186G Functional Specification) and explains what 'soc' are/do exactly: ('cam', 'dsp', 'nna'...which are used in 'mt8186.dtsi'). Using the same logic in 'mt8188.dtsi' would be more consistent. Besides, these names are more explicit. Julien > >> --- >> include/dt-bindings/thermal/mediatek,lvts-thermal.h | 12 ++++++------ >> 1 file changed, 6 insertions(+), 6 deletions(-) >> >> diff --git a/include/dt-bindings/thermal/mediatek,lvts-thermal.h b/include/dt-bindings/thermal/mediatek,lvts-thermal.h >> index bf95309d2525..ddc7302a510a 100644 >> --- a/include/dt-bindings/thermal/mediatek,lvts-thermal.h >> +++ b/include/dt-bindings/thermal/mediatek,lvts-thermal.h >> @@ -24,7 +24,7 @@ >> #define MT8186_BIG_CPU1 5 >> #define MT8186_NNA 6 >> #define MT8186_ADSP 7 >> -#define MT8186_MFG 8 >> +#define MT8186_GPU 8 >> >> #define MT8188_MCU_LITTLE_CPU0 0 >> #define MT8188_MCU_LITTLE_CPU1 1 >> @@ -34,11 +34,11 @@ >> #define MT8188_MCU_BIG_CPU1 5 >> >> #define MT8188_AP_APU 0 >> -#define MT8188_AP_GPU1 1 >> -#define MT8188_AP_GPU2 2 >> -#define MT8188_AP_SOC1 3 >> -#define MT8188_AP_SOC2 4 >> -#define MT8188_AP_SOC3 5 >> +#define MT8188_AP_GPU0 1 >> +#define MT8188_AP_GPU1 2 >> +#define MT8188_AP_ADSP 3 >> +#define MT8188_AP_VDO 4 >> +#define MT8188_AP_INFRA 5 >> #define MT8188_AP_CAM1 6 >> #define MT8188_AP_CAM2 7 >> >> >> -- >> 2.37.3 >>