Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp462606rwl; Wed, 5 Apr 2023 03:23:16 -0700 (PDT) X-Google-Smtp-Source: AKy350b3jQ4Sr53jV5hXWNiHsJbKm2VHECP7nTEpJXUdVia6lgKjx7zEpawrUNX4N14/+u26pL1o X-Received: by 2002:a17:902:e313:b0:1a3:c94d:8647 with SMTP id q19-20020a170902e31300b001a3c94d8647mr5044249plc.9.1680690196414; Wed, 05 Apr 2023 03:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680690196; cv=none; d=google.com; s=arc-20160816; b=Fc8HtTjUE0NwzoCAq4791BCCdOKQxGbQwXvS8R79oThefe0RpQp8PQ9aSNxei2uCH4 QPfn7KZNT1c0O/cEn3gI1BrL5gvOjlcvzj2KghnYJxPe6mHgoiHsAFyiarD2+/83jQn5 ZJmV30g4Mqfs+4we2emRTBqzgOrjAvu7FuhmCVBILYEAqzrZLuPT5WoQJ4/g1WuXyRZ0 nV2AMgZsnoSc3tIhw4p9HEgrRliKhk5WY5EX88CCRlj+KQ5ppKGkaJ6M/L/9fpV6nuQV fR8iA+Vsg8+H+OC49HipZYd8/Xwx34/Nf5hRP4E6cyaVDcV0aotFZTf0UN5o+2DjsK8I /WGw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a632a03000000b00513f61abcc5si334754pgq.348.2023.04.05.03.23.00; Wed, 05 Apr 2023 03:23:16 -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 S237730AbjDEKJb (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 Content-Transfer-Encoding: 8bit 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 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"; + }; + }; + }; }; }; -- 2.34.1