From patchwork Fri May 24 09:04:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13672877 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 EDD0CC25B74 for ; Fri, 24 May 2024 09:05:17 +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=zcIf5kI9v3Rb3cmvvfqWxqOTSnAo9bCCskhwmhH200c=; b=A6o5kZjlgh19tl BmoLEY14UZc8jGBpIyFFBAOBQ3OcNN1gwZi5MxX/+RtvAMS4MIafyes1CT+aOr9HH7Mp8iKqZfMKS MDwHSa6TrrwjYc2/Y5cqugCAlGxrHfyws7hbHo8wW/qAuTmXzz36alWI6T/Guzq+1HLxvKx4+fexN LsNpvpAliA5ew4fBXWbQX6hMcLRWiv8zr1fK1Dq4AqKIxB0gg22jlzKtcE8uZaQSnM0Q7yG6TQj1k pIIFo2EjeqgrhA/J8AC5/wBf7bpxC00WY5G780ZK1HuziC+62cHgnz7bvQV+xtwiDt2tILujZb0mm 7RcVE4YPsuxJDGyfzN5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sAQrK-00000008T3k-2b43; Fri, 24 May 2024 09:05:06 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sAQr1-00000008Srj-1r41 for linux-arm-kernel@lists.infradead.org; Fri, 24 May 2024 09:04:50 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-420180b58c5so27649715e9.3 for ; Fri, 24 May 2024 02:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716541485; x=1717146285; 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=n5J/C+IDybR4omqOS9SfWx1Ek6B9bW0Uauk6Wgutzds=; b=xTb/X9sstoFn5eG10JH+IJ9dplAZKxJkX0N5ETOWDq1EpMB6yjLGMjeBkWu67U7Plp tpejrSqLCOS51kyhlpJus4QDnokM7GZCFckx/yqnRLg5jKya8+0dciVyzdrhVcEUCdRH LrPa5F07llnl0byB0Z9es2jJl5AFVVkJrRxcmpnUOivriScLhMou6VLyij8XZrp1hWBz u5jBe+dA6/Gbn0n0B75e7tj8UewVStZyGQaUo6+usKR0WLB+qQ4tq6eEHKKaIbHkknKl RNKUIq0A86ra5jMhYfENfuu1VRfK4bVTrtiKbCMdKxGhiXXO6EbLYrMY5dRfGUXe442G B2tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716541485; x=1717146285; 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=n5J/C+IDybR4omqOS9SfWx1Ek6B9bW0Uauk6Wgutzds=; b=haDOk3KxphY17MKSzG68wPi9bXnh24h4QW3+qrfCNQBXOfSf6CD3vPhQyngfPGb24Q 6Z/HRqUJ9t5UQ2C2EDFMyPv/aIJ3KXbVHZ+UF3vRBFjYfiXWFpugmUmWBWGKrsndOLLM fef7MwFP6Ij/Tj1UJWQMcGepVPi99Rjx2KYzSQ4Ztmo2+2Z4SB1gsWm0nQtZzusjxGV/ Xa3n2hOqJcGdquyXvMHAVe3I5tySeyPcxXAGQTL8ktR00tfkXGNOseq4uNhMv8Mbf8CX oZvrfsl6dMN7D/aZcGCJmr6H+I364pHzB3J9qun35kft5bFlJ8JYldu5HoY96v2xTOXN F6YA== X-Forwarded-Encrypted: i=1; AJvYcCV1+Ockv3so4jNOrfbH8l19H6bIdo2ws7MgJfOURxnBOLeN5osKZVf2stilHkMH7BDE9E7g/SJkuMH7bR21KRH8wm+n9Z0UYoN0HVsz36+5aZiTISY= X-Gm-Message-State: AOJu0YzCDWyA2DwKbB7EmB3WEBWLe9jmfw2LBo58SrB7YLooTA2vk8BQ Ez6fvsbf6l9LZFTOGcj4L160eMiQRp93zX8UwjmXpEvfWXKCNRjBA6eqS5Mt+8o= X-Google-Smtp-Source: AGHT+IHUDDoW9rQJTdAgLqeGcCRmeKf1PaVW4qpC2XoxgoR1WBGP9ozRpfaWZIwylY04deonHSWDDg== X-Received: by 2002:a05:600c:19ca:b0:41a:3b7e:2235 with SMTP id 5b1f17b1804b1-421089b1b42mr12560065e9.5.1716541485147; Fri, 24 May 2024 02:04:45 -0700 (PDT) Received: from [127.0.1.1] ([84.102.31.250]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42100f163a8sm47273045e9.13.2024.05.24.02.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 02:04:44 -0700 (PDT) From: Julien Panis Date: Fri, 24 May 2024 11:04:35 +0200 Subject: [PATCH v5 2/6] thermal/drivers/mediatek/lvts_thermal: Use renamed thermal zone definitions for MT8186 and MT8188 MIME-Version: 1.0 Message-Id: <20240524-mtk-thermal-mt818x-dtsi-v5-2-56f8579820e7@baylibre.com> References: <20240524-mtk-thermal-mt818x-dtsi-v5-0-56f8579820e7@baylibre.com> In-Reply-To: <20240524-mtk-thermal-mt818x-dtsi-v5-0-56f8579820e7@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, Julien Panis X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716541478; l=1639; i=jpanis@baylibre.com; s=20230526; h=from:subject:message-id; bh=qOE+NwNH35rMZqPs630S3yw6fUABDjCAXs0E4TU/Lto=; b=rwZi7ol8l4OofuhfkYL6KEqAIXdExwo2d+8HZov5y+dHbOYu64V5flumGoI5gw4dW+mdzQGtM FSxO+nrBjttB8WDBGhUChWjc+R9hv8Vp/Oe7chcgm12gNpeN7Szpxay 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-20240524_020447_525168_597BAF1E X-CRM114-Status: GOOD ( 11.16 ) 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 Use thermal zone names that make more sense. Signed-off-by: Julien Panis --- drivers/thermal/mediatek/lvts_thermal.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c index 0bb3a495b56e..89fb92666b81 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), @@ -1487,11 +1487,11 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = { }, { .lvts_sensor = { - { .dt_id = MT8188_AP_GPU1, + { .dt_id = MT8188_AP_GPU0, .cal_offsets = { 43, 44, 45 } }, - { .dt_id = MT8188_AP_GPU2, + { .dt_id = MT8188_AP_GPU1, .cal_offsets = { 46, 47, 48 } }, - { .dt_id = MT8188_AP_SOC1, + { .dt_id = MT8188_AP_ADSP, .cal_offsets = { 49, 50, 51 } }, }, VALID_SENSOR_MAP(1, 1, 1, 0), @@ -1500,9 +1500,9 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = { }, { .lvts_sensor = { - { .dt_id = MT8188_AP_SOC2, + { .dt_id = MT8188_AP_VDO, .cal_offsets = { 52, 53, 54 } }, - { .dt_id = MT8188_AP_SOC3, + { .dt_id = MT8188_AP_INFRA, .cal_offsets = { 55, 56, 57 } }, }, VALID_SENSOR_MAP(1, 1, 0, 0),