From patchwork Wed Apr 5 10:09:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balsam CHIHI X-Patchwork-Id: 79554 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp204392vqo; Wed, 5 Apr 2023 03:47:10 -0700 (PDT) X-Google-Smtp-Source: AKy350aq6IzWoPKc4CmtcW6sTs3poON7Uz+GQdbVwRoOBoUOrldmN/XcUUQgKbTEQ6jiHJqN7G5b X-Received: by 2002:a17:906:99ce:b0:7c0:e30a:d3e5 with SMTP id s14-20020a17090699ce00b007c0e30ad3e5mr2597369ejn.18.1680691630635; Wed, 05 Apr 2023 03:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680691630; cv=none; d=google.com; s=arc-20160816; b=CT69xwAwq/PwaecrhV4/CXhO7fo4ubQAp+cHh87LaPxQ2J5QtHEO153tatcvdvAeFP Q6y/K1Z3DXEICi5Xu2kP6+JlhjPnonN9OozCDR51TMt2apUvBfgIaqdOxJoM9AYRFAKE qfKElIZtBKmkgrY040JvTu/UoAfE3v6dkNZgbfxsXg7buAXwkvGn8RcVaFmve537BIvL 0GVbrefd9oobiEta8G6cC+QGttkRPSIRzTaONSPZo7zQRpz3KdS8wne6qgMZgHtek/XS KWHWp8xDee6UT4VtzysL6TViasWJmlk4jpSa8H7PoClnWoGMqunS60ZGFKuMBSuq6bDh 70EQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Q6TAMt++7cMkW1BStD+wsT/sNxqsrNSnDjvkmfey6Z4=; b=0EZxasA8EkvwVjGvrh556cpvjFvR86E14ZGdN/bSDHEsvMaV64tln9iW1YEO7UH+lV A34VpxcU+EDwothXWHpE/7XSyyGnkRfX+dyhUGKHPlVsLIbsidy6GI4lz9PkLi7BtDKH eKP/LQvmQN1FiofhhorhtIYkBZzoV3lII0CQAmsTeI6QDhsNSfXNX5LvZWZD0NH8vVlT sDXVpL5I51+ISzsZ0A3AfB+o+AGLszSANfPNov+KH7HIzdV1sRhu/I3/SDYWDxKQusCM QD+xDTl0amRlxtdhkmE0zXXkI5b3+WUOcZkdUJ04c2hwgTdtEj1TJyb4sCqYDykhBNGU s4ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=bEGMctTn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pg26-20020a170907205a00b0093001cd3801si11674183ejb.187.2023.04.05.03.46.46; Wed, 05 Apr 2023 03:47:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=bEGMctTn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237749AbjDEKJb (ORCPT + 99 others); Wed, 5 Apr 2023 06:09:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237586AbjDEKJ3 (ORCPT ); Wed, 5 Apr 2023 06:09:29 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7864135BF for ; Wed, 5 Apr 2023 03:09:26 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id t10so139565857edd.12 for ; Wed, 05 Apr 2023 03:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680689366; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Q6TAMt++7cMkW1BStD+wsT/sNxqsrNSnDjvkmfey6Z4=; b=bEGMctTnM7DiSqO57EaQMKf5vh4yr7cDNlX1EY3Kv4Rwgb9KaAY/hM5KFna8Hffwva 8kMd9qGJL5flWJTqF31LQyEVjPsCKAiquJoMgzOQ1f2+2DQypuHgKCa4qCyMLfLDRClF 0trquQ6mQGzS7739tEkPSxc3CqbxgbtFlnkFzsLAf6Gd4Cy/G4yaBCvnDgVEvw5sJjhZ G9KyyQhHKgagyaifa8Ty4aCO2up0+O7oKj1QXklUhP4xzgRpIecqZlTI90Yz/BLdHKvd MEJYxlQvF1fUS+DWpsIcDefyffjc1rqgkbomvjmJ9+v8svYomd7No4uuZx+Wahbjns7U P5ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680689366; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q6TAMt++7cMkW1BStD+wsT/sNxqsrNSnDjvkmfey6Z4=; b=hdNwYJSTYRvPfJIdNQpbqFxmb8n1IPN2EYAd7xq1hm5QYDI/R6bB2CQwuL3oc0YFf4 K36qEna4mJRueWxBPrmVzxuK16UBf25Bf2eK2ku3hKpe9p6C5VRA3VvHMqH5US2OR9Pf rrBWV3PHmp0zjmT4JcO+aEJ+I0hvdWiMb1w4opeuPH4Km9P90iJsSZ/MapnB5AatnA8L Bv6YJCvfpFvo2EwkGXg/oqHUeM1ZBTb/P7SmtQqvMHXrVUvqGqln+UbMAmwRbeqzky22 FzSgw3s2AcwXKr+XGrKNgMlyXGZSXV6ySZ9+thODOXxiF224lrpRt23uMFPxK8eAGmHb 9w1A== X-Gm-Message-State: AAQBX9feH+bfWzcB1/m/1yS0sM2qnnSTOFRRhFPRBuEd8ruGxOBkcGjR G5xNB6o3D34w13CitE/GLzo/kQ== X-Received: by 2002:a17:906:22d3:b0:878:72f7:bd87 with SMTP id q19-20020a17090622d300b0087872f7bd87mr1948024eja.6.1680689365926; Wed, 05 Apr 2023 03:09:25 -0700 (PDT) Received: from t480-bl003.. (2a02-8440-c20e-c930-8ace-7c3c-c02b-cb9a.rev.sfr.net. [2a02:8440:c20e:c930:8ace:7c3c:c02b:cb9a]) by smtp.gmail.com with ESMTPSA id u13-20020a1709063b8d00b0093e261cc8bcsm7195962ejf.58.2023.04.05.03.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 03:09:25 -0700 (PDT) From: bchihi@baylibre.com To: daniel.lezcano@linaro.org, angelogioacchino.delregno@collabora.com, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rdunlap@infradead.org, ye.xingchen@zte.com.cn, p.zabel@pengutronix.de Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, wenst@chromium.org, khilman@baylibre.com, james.lo@mediatek.com, rex-bc.chen@mediatek.com Subject: [PATCH] arm64: dts: mediatek: mt8195: Add AP domain thermal zones Date: Wed, 5 Apr 2023 12:09:07 +0200 Message-Id: <20230405100907.53740-1-bchihi@baylibre.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762332907624043541?= X-GMAIL-MSGID: =?utf-8?q?1762332907624043541?= From: Balsam CHIHI Add AP Domain thermal zones for the mt8195 and specify the targeted temperature thresholds. Signed-off-by: Balsam CHIHI --- This patch squashes and replaces [PATCH 3/4] arm64: dts: mediatek: mt8195: Add AP domain thermal zones https://lore.kernel.org/all/20230307154524.118541-4-bchihi@baylibre.com/ and [PATCH 4/4] arm64: dts: mediatek: mt8195: Add AP domain temperature thresholds https://lore.kernel.org/all/20230307154524.118541-5-bchihi@baylibre.com/ of the series [PATCH 0/4] Add LVTS's AP thermal domain support for mt8195 https://lore.kernel.org/all/20230307154524.118541-1-bchihi@baylibre.com/ --- --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 180 +++++++++++++++++++++++ 1 file changed, 180 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 972c5b86ddae..75da456c512b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -2909,5 +2909,185 @@ map0 { }; }; }; + + vpu0-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_VPU0>; + + trips { + vpu0_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + vpu0_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + vpu1-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_VPU1>; + + trips { + vpu1_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + vpu1_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + gpu0-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_GPU0>; + + trips { + gpu0_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu0_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + gpu1-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_GPU1>; + + trips { + gpu1_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu1_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + vdec-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_VDEC>; + + trips { + vdec_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + vdec_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + img-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_IMG>; + + trips { + img_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + img_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + infra-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_INFRA>; + + trips { + infra_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + infra_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cam0-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_CAM0>; + + trips { + cam0_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cam0_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cam1-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_ap MT8195_AP_CAM1>; + + trips { + cam1_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cam1_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; }; };