Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp880100lqj; Mon, 3 Jun 2024 03:59:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYa0iI0creEtolCQgctbXgJTpW9hExxdnApo6FBh5+8yUQ79UG6UaGASFfD4ZqlTcE2KJ8fHvT+3uReRkojpAI6kA4eQgpvNwnniH5EA== X-Google-Smtp-Source: AGHT+IGztLVYO8N++10yzRT4GbYJ+nvh3b1TC0RHrTio4U/ivsQvm7GFo6x3sH0FEHHezSguFMYs X-Received: by 2002:a05:6870:7196:b0:24f:d9fe:8b9f with SMTP id 586e51a60fabf-2508ba0cf7amr8703876fac.22.1717412343786; Mon, 03 Jun 2024 03:59:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717412343; cv=pass; d=google.com; s=arc-20160816; b=K6/nCTpbzCcqBYwSNhE4qaKzd9RbhR+r+LjFj3/JT/Dpp9pqMsa5NcN+AVSdRaT+Xh 6xaEsI5C8hjmBKyENCfPPB/6XJkjM2fq5obWcutYC5kMTbQZsJZadlidZ++CI0nQ66Xy mSpRcuyFv/Za9E/OMGAO52ffOPmkTTkQSVsnpSNEMcv7Gd1eV4OgKG/l2VrLhhE9LD4p QuxD0CUhlx0utkT2Sd0ey/4LHXepsNGNvkSrW2/Y2grNX17dGDq7Xh7jeVEn36LzLyk5 UrjqWCS5XpEKi862PADxdcCLYpXeu8xgHp21QWwGO+sryN7YZqZ40R+cLGMFK6hXwt+5 RRvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=mVKrwpOU8w8n3bWP7IaMbuZSC96tHGg2G6FEzlrVdlk=; fh=3kW58Ta3TkNycQvBb1DCntLUdQmgIiMQfNsmj67jg14=; b=0Fx8ptJdgXWPXvP6ckuPpaeUe9QPOPUg+pFliaj6sC56XtgUoIA96GkhYC6gkv/jW8 Qpp6b3LIyL00RkxAAnMlr1pTqbMGXdCZaIqKcSRTeLvCHdafFHwBaTTFicD1BA/ShTZD SucmN9ZxRVnygk9qRE+fQGqv6LGmcIr4i1vcTzogT25DP1xQcIe72Epup4TjeyBif6mi AFybXU4tkPyrBwnwkzVIpnUE/SdAx8ZOOUrFqmPd4gobNrr1madIWZ3/WOeI+2+CC7OW ES4Mc+uH5pSHh2vsBdatv+xWAImrA87ltt3t0IIJnPD4lNF8AIZVtOimnVZ/OcEvK+sg qH9A==; 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=hiFZ0l71; 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-198995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198995-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35c73c2bcsi6122072a12.764.2024.06.03.03.59.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:59:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=hiFZ0l71; 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-198995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198995-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 572E9B21E58 for ; Mon, 3 Jun 2024 10:51:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E952283CD8; Mon, 3 Jun 2024 10:51:03 +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="hiFZ0l71" Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 4D44780056 for ; Mon, 3 Jun 2024 10:51:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717411863; cv=none; b=cFZjKUcpEn8XJP/NoLaL14l/dyGwTQCbT4hpBWxb3juP/NawoPs0fejYexcBBUJtWsRnbRNfR9tY1acqaqlXcyRP/s8NNoeMpvogLsW/9C6qZA//2IQH+elDHDChHyj0c8fFy514DufqA6DB4umv1zi6i9xvRczEM9+xUUugoq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717411863; c=relaxed/simple; bh=IZPrvRPbGNSCghjb/r1UV5NLYTSYSWHR7o/UY4dQ/l8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VulJVW1rrx92Ta/1BH5kz74MsioVM4fbJ5XUhJFTaNJZ5bRfMF0H+qBblU7ydmP3c+QFB6vssh1Lzr1M4jf3rLqaJj9zTqXvtboGfsdiW6R0hXdirWAZPg6BwvnADXruYkCxVTptxplBgIlitHm8WF89MFcb60gr763MC5uRPIk= 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=hiFZ0l71; arc=none smtp.client-ip=209.85.128.46 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-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42135a45e2aso13136895e9.3 for ; Mon, 03 Jun 2024 03:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717411860; x=1718016660; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mVKrwpOU8w8n3bWP7IaMbuZSC96tHGg2G6FEzlrVdlk=; b=hiFZ0l71OB+PYUXwM3Me/R8p+E5iRVT9XXd59V2jyOns8JKM90Uqb8QOBsNgej8Yim x0HeBNEs9BLoIZq8SCle2CG4eF+emXCJjavo4kZpQ9GSq6Esqrmr7nNlYFHNu24y0rDC 2opMlQQTRRwYF6YbivGRNpEAiAtKoHS6CO0BqXe6waGbthf7T4aLJwv4AXkW+XOAasLJ Fn7oVV7qGLLPmDDuUtaY6s9uPSfVOh0KRJUizWef//GoFqMWvULhuc39AReDdlWLY1gK uZKM2Jetrs7w5sBSKII/zMQMrgh8tuAXgj+lUMK6fwIuXuvRdgifAamGxSXF7HS8Xpbx y31A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717411860; x=1718016660; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mVKrwpOU8w8n3bWP7IaMbuZSC96tHGg2G6FEzlrVdlk=; b=S5lKnxkcH+WOPWVUUxziu1aZ6l4coMEtauKYw5SetD6Db4EtRdVDFcLJtutehifmrz +AGKpj9S6ojPXWtSHXUPWl/ACBDPRXkdSr2SIJ/PjL7v++jT1bd2Rcw708hxkVxe3DeS 5or8dUe6Njk9ULqEa3npwcwYj3dcsmNTFGFRvHthdEPubt+06gODdEmNqh9b3XvKXKiO lttdGs59c8T9A8Obj4qhMSPkz0Kjr9pQLZfcapaFMF64xtgHEJI1NtYciFsBI4Ty2qLi br8MSg6kQDp0JMG7ZCFoIgAqWsXcrBbju5fzHnTjL1Ds9sjc8LnRSrOlbdt/PX1vCP+J pgpw== X-Forwarded-Encrypted: i=1; AJvYcCVbL7Uhtw5QaOFCU4T5RU1tvyLlRU6O6XnQ1fCWd1DiOP9H1PiBMDzAmIWOj1WcxpsGl3UBe4vzqStoaFN2aWLmb4Kt1/tmLTcHgS/J X-Gm-Message-State: AOJu0Yx269w/9F3L4xNGbC/0GbJvXhjhBUMRRT9FPxWcE9KQwJqjCqjk HSmAN1vdoxRlnv1mjkdDoBybzULpsgoDxYziS8e83/2oYX6eqHX/wNlOg9+zMoI= X-Received: by 2002:a05:600c:3b15:b0:421:925:6655 with SMTP id 5b1f17b1804b1-4212e046201mr66085115e9.1.1717411859616; Mon, 03 Jun 2024 03:50:59 -0700 (PDT) Received: from [127.0.1.1] ([84.102.31.231]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42133227f8asm95372535e9.19.2024.06.03.03.50.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:50:59 -0700 (PDT) From: Julien Panis Date: Mon, 03 Jun 2024 12:50:48 +0200 Subject: [PATCH v7 1/6] dt-bindings: thermal: mediatek: Fix thermal zone definition for MT8186 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240603-mtk-thermal-mt818x-dtsi-v7-1-8c8e3c7a3643@baylibre.com> References: <20240603-mtk-thermal-mt818x-dtsi-v7-0-8c8e3c7a3643@baylibre.com> In-Reply-To: <20240603-mtk-thermal-mt818x-dtsi-v7-0-8c8e3c7a3643@baylibre.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Lezcano , Nicolas Pitre , "Rafael J. Wysocki" , Zhang Rui , Lukasz Luba Cc: 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, Krzysztof Kozlowski , Julien Panis , Conor Dooley X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717411855; l=2060; i=jpanis@baylibre.com; s=20230526; h=from:subject:message-id; bh=IZPrvRPbGNSCghjb/r1UV5NLYTSYSWHR7o/UY4dQ/l8=; b=H0YGfuOx97A32AYKnSb54my+ipnwNHN3gyXGwn1w1+Gowhq81ksSoJwKx5VAgIuDuFdYqw47N vgPxSRvm45PD22rChAtElT+XIOrWc0ylFv5Ds4cGkpg6i0UnRDm/xCa X-Developer-Key: i=jpanis@baylibre.com; a=ed25519; pk=8eSM4/xkiHWz2M1Cw1U3m2/YfPbsUdEJPCWY3Mh9ekQ= Fix a thermal zone name for consistency with the other SoCs: MFG contains GPU, the latter is more specific and must be used here. The naming must be fixed "atomically" so compilation does not break. As a result, the change is made in the dt-bindings and in the LVTS driver within a single commit, despite the checkpatch warning. The definition can be safely modified here because it is used only in the LVTS driver, which is modified accordingly, and has not yet been included in a released kernel. Fixes: a2ca202350f9 ("dt-bindings: thermal: mediatek: Add LVTS thermal controller definition for MT8186") Reviewed-by: AngeloGioacchino Del Regno Acked-by: Conor Dooley Signed-off-by: Julien Panis --- drivers/thermal/mediatek/lvts_thermal.c | 2 +- include/dt-bindings/thermal/mediatek,lvts-thermal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c index 0bb3a495b56e..506eed52db1e 100644 --- a/drivers/thermal/mediatek/lvts_thermal.c +++ b/drivers/thermal/mediatek/lvts_thermal.c @@ -1436,7 +1436,7 @@ static const struct lvts_ctrl_data mt8186_lvts_data_ctrl[] = { .cal_offsets = { 29, 30, 31 } }, { .dt_id = MT8186_ADSP, .cal_offsets = { 34, 35, 28 } }, - { .dt_id = MT8186_MFG, + { .dt_id = MT8186_GPU, .cal_offsets = { 39, 32, 33 } } }, VALID_SENSOR_MAP(1, 1, 1, 0), diff --git a/include/dt-bindings/thermal/mediatek,lvts-thermal.h b/include/dt-bindings/thermal/mediatek,lvts-thermal.h index bf95309d2525..85d25b4d726d 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 -- 2.37.3