Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp439637lqb; Tue, 28 May 2024 23:16:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUC/PlUv1I5aVRdxMp7obCaN2TxpXEAbdIhnDpW3e8mWThjMnrVTh7eSw1L6hDcoEWCKfBbLtGxQ1JXrp8KEPDp6XK1ttp34fMDRJf0HA== X-Google-Smtp-Source: AGHT+IFxVfEPUaEXbXGmDTd3OGR1QWIAa+Ows8XsfCBdalok0ueWUD5uK8jwSAjJMgcXBAaTjtOO X-Received: by 2002:a05:6a21:339f:b0:1af:d206:e561 with SMTP id adf61e73a8af0-1b212d5b131mr15156481637.6.1716963398532; Tue, 28 May 2024 23:16:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716963398; cv=pass; d=google.com; s=arc-20160816; b=R/APVLP/lXLe1q2PYZpZTn7Q93oXopWW7/QCACSXXqoY+LLwzEeSeT+MVTvw+uWjsB 1sYouRNJqNPhubaep+Ln0xkqSSDhZ1MrKfegl1UEwxsrOrNgC+EGRRbqRFsB0TTVjQ/B iANIhiGAkDH8xorzYZfgS6FSG0v8WsWaziZYlQzVkkBUIMbJNc+VMzb7rexegFDuNp4Q IfmgKgPFHEFfTk8L2FdezDQ2BbzIEZMGsS/l/MLZYuhP9cDzqqJzmCSGJ13Dz36IzYCJ eU2S/tomhkfaw8oIYHH2Z/JqS7VG/Qu79Qcg+8rm9hdZwwOTa3WLTs5Nd82gqJgU9z2X 30IQ== 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=py0GeonwgnNaknxyxyM/bPk5f/ta2UYkhS/HU0w7EWw=; fh=IzPNYj5caChz0uweo1ReqPpUh2kH/WTpfAREwXqDh1g=; b=fkOF0sPCHqy/6px/3fFb/QFJqtmKiqMYmgxnztRJqdTrKdJ4Aq9hZFrzeLWiAgastY 95cYSSrgb3ZRd3k7jVcEUApKYVF8w0+mMmyz1OtWPUso8wm08/rK4b308KSl3PpbTKRS CeQ6Fnrja7FQolsx6X9OcUclWtwxVPUi/67ysqDcloaVRY8vUGT4Be0CjIcl5NbYLgUu AvTPGeiKXwP4yCybzkbAcI9T49ddJ2Z/uwZUe6xmKNyVW2ModJxf8Hh26Wbu4H2OlZvu qKSSmAJpw9dBYVYV2S9FvxgNKYbZtaNjY2di7I4o+g7Tm7e3bAbuk/ZsQR2XVd82Kk4x pckg==; 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=YrsXVuY0; 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-193479-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193479-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9a86acsi91987455ad.420.2024.05.28.23.16.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 23:16:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193479-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=YrsXVuY0; 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-193479-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193479-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 82BF9B24B38 for ; Wed, 29 May 2024 05:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67AC615D5B4; Wed, 29 May 2024 05:58:08 +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="YrsXVuY0" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 6B98215CD58 for ; Wed, 29 May 2024 05:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716962287; cv=none; b=JqoSyI8O91DkoVvqQDhkrxs1fx7NCgWM+oBAg+xi7/D9+QF1L8a883q2ecvfFW901fx8DTFXZDWJSUuvKSYiBFotRJkrR0Vk+WdeIrXA7urDFsOvu9y7MuL3iOZz5YxbJ3zdYoZ+v3awUWosp8L5EzcAZYEVMD/39nsyyyxJG4w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716962287; c=relaxed/simple; bh=7TWp6ZYqTnWbqyJ5Cw7vRGWMMiL4bndT4gl1LDFj+mw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=P1T6MzDAp0nS8msZpd9jRdiA8784OXNgHPXj3q/EFiu+DXMZy0Vj/grv6Njvf3ajJv3gnn5STXzUOKRC70/unM2bXeUaGb1+mY9wh8qui8/kxwv+zx1MwMnRyQwQ3nRGyy7oQde//1mt7qhSYYZjckwYqgVlk1NFKzGM9KY4KzQ= 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=YrsXVuY0; arc=none smtp.client-ip=209.85.221.45 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-wr1-f45.google.com with SMTP id ffacd0b85a97d-35507e3a5deso294459f8f.1 for ; Tue, 28 May 2024 22:58:05 -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=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=py0GeonwgnNaknxyxyM/bPk5f/ta2UYkhS/HU0w7EWw=; b=YrsXVuY0Zx7BFxRbNvnM5FSdWileK5EEkh0l6UZIOJHH4TlR5G2sTeQDaaULYs+f3W Awb+X2+MedshRhyEoDl1BFp7M3UwUl8731ozo9HV7/q8GUjdfELydCsMFMCV8XtHeDtU LBEHVCei1MWtwQblCPvptPikxcemUAxwuOaMwXFhGWulTp3kjCmeyK2W/oTpfAgib+KN 72RzuTgkz0vgUm3MPqt1kdnjT3H06QQQM8lxSumU95eLZlUjOECf80Sm3q+vIaX4P9q1 iYRDNqiyt8TWTYWiRFoL7hAwTpiUbTiWfX1WWvuDEb3qtAYKbA1KP7ncLvVYH9lwJzmY 3HhQ== 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=mGplZ+ituVgMapVBz7dljZrhY1TIKYHS37bargxIyYik7jE2QZXEYMzZxdbm9WYk7C 8iBB4s/vD0J9isInLx/zx2mQcXc34nB1vuNSMmGUodJ0ZxMv1xE5NyqOYr+xMdtN6gQA pRF/HeNQtdyoQqC1QUHN05PWX6F+VoLwx6MdKCvzQNLvGi+ozUp8JJWCaplqKKDqE38m LzuQxOdj420n2uZmXhs9Xtw3ViMP14KOoot+3GGvKtvZUIVBEIOuQ22wovW/65XG1895 6P7HEse9nQb7eElr+00pSo1G08BwnCOplwA+2h5i0LVRCzMqC7pgB5QUqFJnrYFNr157 ojWw== X-Forwarded-Encrypted: i=1; AJvYcCXhN9rtkLKpS/y9nLxH+S948hkNNZ3j6Cww5W1tnLZ26JatfWuf9K3NUjBpHEv5OekydH90Mf2JZIKoYd/G2/7L/CN3gcmaVXmviW38 X-Gm-Message-State: AOJu0Yz3EB5MSsNc56rYf8c7/twq1wAAPhhByqVISL9HGMB9V01R0QHk 40iyIGWq4heRs1QhHubOuwzOn+Ckggdn24B8HDX+RCAw1I74zrtXe/tiDc/5mlE= 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 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: <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= 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 --- 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