From patchwork Wed May 29 05:57:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13677879 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 350DAC25B75 for ; Wed, 29 May 2024 05:58:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JrbQNhjmL571GhKJVP/WoWRh983LRdwO+xRFV36RJTU=; b=reCjFIUurSCd9y q7eygWsL6I2hwwVF9r3kobteTg71o0ES4uXj8fnPGgW3F/VybNU8K9IhDcFPzmiVLWGSmtHW0lkOg ghu5tHXb630FZjaaHID0dSip9YkgZMQRJgkGL1p61AZ7uwyw91oHMG2+Uypwz1mtadDbpEA1U0a4h IOscI5sNT2zmxaTKq6pfpU6E2IW98kx5dkyLrk97pQxNHZusmnOn/XlmD3Cg7JeG6j//QcB8bcBA4 uBIYg2GOtX+g3t+UyrPfk01Ha0cKE2xWvkeAQIFvlX3EK+DqrjNz2nuEV7oW90oa529IsG55zUaK+ u/PnjqK+gLve0fuN036Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCCKH-00000002w7J-3yX0; Wed, 29 May 2024 05:58:17 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCCK7-00000002w0x-1p0W for linux-arm-kernel@lists.infradead.org; Wed, 29 May 2024 05:58:08 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-42108856c33so2476085e9.1 for ; Tue, 28 May 2024 22:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716962284; x=1717567084; darn=lists.infradead.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=py0GeonwgnNaknxyxyM/bPk5f/ta2UYkhS/HU0w7EWw=; b=PHDgV75PzdPvzCDA4kdnZCaZnnCautuWeH0nmMiKftMATK1IevhIHFuSsru6siO/64 FvwOEc4t0GQDYvdg31BPgnyqtbXru580qMVz9GZQmRVcbFNBl8IM5obKY/TWroOqv2Ls 7ImaBKysTI2A2rs85Y7ADPuIod9uI/+IXUJ3fROOeEbormRcizmlb6TViU8Seb25cx1M z5TbQxj9Mr/L628whwfUhxbYn/CMtQfpOptv6R2m1XBCd6ljn+eJU1M2xBZBsRqe3sQB YxuDTZz1I/O2r8Ie0Fp2PdRgggf4sPQ51CSUQk+Aop0y9uRH0nrlVK7RGSLWeVgYTLqk mOzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716962284; x=1717567084; 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=py0GeonwgnNaknxyxyM/bPk5f/ta2UYkhS/HU0w7EWw=; b=MLpS9V6pciKejGgzXZhzfV/wGj6UnITA3GklKzVmXAc9UYsBlWMIn9bl0CJUvHSiJl kp0JNt3kWz005K3Ieagp0C81tXQIf6EEKPwI+xUBGA+OijlnQ2ZE0D7XgA0VZMYVkeUA IjWKZTlJyDOoWPS4LS5e9udj1E/gKrAXEmZUHpu1S6k57eMJsK/qyYu5ntqFYgVFeSSy 6B0cSKDm+AX2yC9gRGQzZWRMN7AeCVqv28sS9hPDEi1r9Z5BcOEY4QnxA7G7lw3A1+Hv ztMj2AORG+20MYmXVzo4WCRKJuXCOOHt7DnUi1ekxGST3SlLFDeP+eXpmWxXwnH3yUYe D6NA== X-Forwarded-Encrypted: i=1; AJvYcCX5CnsGab+irpNDIVooUnA/vpn+Iph/iV8QUSjmgyC4XxdwoRHpkBPXWUY/3znY1JaMKaRMHnIbxzfqR3Wj22GOx4z/kzNM4Ray6MzNu78R5z4r0NU= X-Gm-Message-State: AOJu0YxjQUKHD8LUGuPxu2ImZ8FeHgZd8vSe1UekW4ymOq4F0X/O9Kx9 PtRdzygMp2U1J5dXcYy4pcewbndb4UauApXHnFlqXtq31g9cdvBtHTt+IQIgV3I= X-Google-Smtp-Source: AGHT+IFBgBr868w8QAU+3YcZoh4tBW+ET1fjETfVihg6NGnEmbzACXvx/JGf3dJqRJTP60EWqb8pZg== X-Received: by 2002:adf:feca:0:b0:357:bedc:b555 with SMTP id ffacd0b85a97d-35c7b80e05dmr778871f8f.26.1716962283532; Tue, 28 May 2024 22:58:03 -0700 (PDT) Received: from [127.0.1.1] ([84.102.31.110]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4210896676bsm169075435e9.4.2024.05.28.22.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 22:58:03 -0700 (PDT) From: Julien Panis Date: Wed, 29 May 2024 07:57:56 +0200 Subject: [PATCH v6 1/6] dt-bindings: thermal: mediatek: Fix thermal zone definition for MT8186 MIME-Version: 1.0 Message-Id: <20240529-mtk-thermal-mt818x-dtsi-v6-1-0c71478a9c37@baylibre.com> References: <20240529-mtk-thermal-mt818x-dtsi-v6-0-0c71478a9c37@baylibre.com> In-Reply-To: <20240529-mtk-thermal-mt818x-dtsi-v6-0-0c71478a9c37@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 X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716962279; l=1871; i=jpanis@baylibre.com; s=20230526; h=from:subject:message-id; bh=7TWp6ZYqTnWbqyJ5Cw7vRGWMMiL4bndT4gl1LDFj+mw=; b=fNpJGdF1e6oIhg16Qw3yuccxDifJLORx4N3h7feO2qRv4t5zX5kGrg92RNMGZjYaq0FJMoxzr kn93J44LFi/ClblQAuQP6CjaErOlZbnOjF2/u1vbrtp9LVgiaEPecsf X-Developer-Key: i=jpanis@baylibre.com; a=ed25519; pk=8eSM4/xkiHWz2M1Cw1U3m2/YfPbsUdEJPCWY3Mh9ekQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_225807_508043_65A667AF X-CRM114-Status: GOOD ( 16.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 modified safely here because it is used only in the LVTS driver, which is modified accordingly. Fixes: a2ca202350f9 ("dt-bindings: thermal: mediatek: Add LVTS thermal controller definition for MT8186") Signed-off-by: Julien Panis Reviewed-by: AngeloGioacchino Del Regno Acked-by: Conor Dooley --- 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