From patchwork Fri Sep 22 05:50:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 143205 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5357297vqi; Thu, 21 Sep 2023 23:22:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEs+lrgtBQZIKa7YN+Cl6nHn41ZRgV6otGll4Xorj+XPvKfiHZBSVl81q9aKcFywgynY5IJ X-Received: by 2002:a05:6902:569:b0:d85:b09e:b9c9 with SMTP id a9-20020a056902056900b00d85b09eb9c9mr6641070ybt.52.1695363747439; Thu, 21 Sep 2023 23:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695363747; cv=none; d=google.com; s=arc-20160816; b=fgGFTRxRnyhf1UPO3Lo7taN17fIrVmeQjtvculHpmIq9C5ULym6+sTjqEOUwXtQJNG ULfeJU6SEZtfw5WafYyYPdbgbS0BO8pwxSXbiEAw+LI/tNLBZbvwfy8/V7sTGxGNMGiC t+Z2V1+r3+567aEdvEbPnIzFvBtD8VSf7V1nV0Mhl1Dz1KMQ7luUgvkW9X3t57t3fGP/ WUVnD1DofPoLtaodfaHvINkn4spZr7Pv+WvEI+4cftl2VSq8sd+vQ0dglgzKJO/ZuDKR NLUoKqG6+qWD1+yOrZ6IK673U+pc+xrjn0S2saQiI+g45gZwYoD9M350Fc+KwJZv3dr7 B7UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UoH4W3986fDzxNI5gGh01oTwLD5puh/l8B+NZqmUkdE=; fh=IDc+7hlJTz8iYs+tAGZaupIxU3FLZUuiOYN6ts3md9E=; b=Q5odQ1oZVyaMe1XAWkGJ5+GvVXE76v21jidDO3QSUeS/sXUIk6d1MrB7I/ZzLOxdxJ 5MI5hlNvAUeQhA0o1MwspnyXzqQFIawZ2JOjIfjyYqvqIDY+AyBRPfzR92VoSxEPHLGb Hz/XDpuWr7HWlqzMmZxYF2+j3PNVwM8zvJWje7bTtmhVR9ns0MWYpzxaLgthO1XdgfYs z4872aKuDioaobqUsva/EWsgz/JpGPE401+jOZn3rEcoP/NR1zJW0App3VcbWNzTE5yQ ap9/DYFiGIPHyp7pdSqtaXStRY9MDEc/tg/k688k+3xN8gSBoBtQfB0ULSl7qr3hNNZs OP7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=Z27W9aaU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x3-20020a636303000000b0055fdd303745si3056234pgb.421.2023.09.21.23.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:22:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=Z27W9aaU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3141082F099B; Thu, 21 Sep 2023 22:50:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbjIVFuo (ORCPT + 30 others); Fri, 22 Sep 2023 01:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbjIVFui (ORCPT ); Fri, 22 Sep 2023 01:50:38 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32332C2; Thu, 21 Sep 2023 22:50:29 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout2.routing.net (Postfix) with ESMTP id 574835FAFC; Fri, 22 Sep 2023 05:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1695361827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UoH4W3986fDzxNI5gGh01oTwLD5puh/l8B+NZqmUkdE=; b=Z27W9aaUiUcLJfBEEMIP/D5/ub8RhY31duqvE/rHZAwtGA7V1kEqTHc3r/2gBJ/R26Vqo+ JUDYNOB3+Q1gmGW/cmPrlefKbY1U+38S0kbsHg89d5+sTcQTwCjq/NyxPg/Xoloo3PvUq2 q3DSPOM2DChvt4gDwxJbvYgfS2gDUv0= Received: from frank-G5.. (fttx-pool-217.61.149.125.bambit.de [217.61.149.125]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 567E540625; Fri, 22 Sep 2023 05:50:26 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Conor Dooley Subject: [PATCH v3 2/4] dt-bindings: thermal: mediatek: Add LVTS thermal sensors for mt7988 Date: Fri, 22 Sep 2023 07:50:18 +0200 Message-Id: <20230922055020.6436-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230922055020.6436-1-linux@fw-web.de> References: <20230922055020.6436-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: e5a5378d-0ffe-43d2-843a-7836791bd6a3 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 22:50:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777717737117573981 X-GMAIL-MSGID: 1777717737117573981 From: Frank Wunderlich Add sensor constants for MT7988. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno Acked-by: Conor Dooley --- v2: - new patch (moved from driver code to binding header) - give sensors more meaningful names --- include/dt-bindings/thermal/mediatek,lvts-thermal.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/dt-bindings/thermal/mediatek,lvts-thermal.h b/include/dt-bindings/thermal/mediatek,lvts-thermal.h index 8fa5a46675c4..8c1fdc18cf34 100644 --- a/include/dt-bindings/thermal/mediatek,lvts-thermal.h +++ b/include/dt-bindings/thermal/mediatek,lvts-thermal.h @@ -7,6 +7,15 @@ #ifndef __MEDIATEK_LVTS_DT_H #define __MEDIATEK_LVTS_DT_H +#define MT7988_CPU_0 0 +#define MT7988_CPU_1 1 +#define MT7988_ETH2P5G_0 2 +#define MT7988_ETH2P5G_1 3 +#define MT7988_TOPS_0 4 +#define MT7988_TOPS_1 5 +#define MT7988_ETHWARP_0 6 +#define MT7988_ETHWARP_1 7 + #define MT8195_MCU_BIG_CPU0 0 #define MT8195_MCU_BIG_CPU1 1 #define MT8195_MCU_BIG_CPU2 2