Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp603609ybl; Wed, 14 Aug 2019 03:09:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJfk74NEDzFD8QKDmJgg+ToOrdpov6ZmUFFtM6Pf7p07POi8vqlp/IKJ2Jbz602Eun1D2w X-Received: by 2002:a17:902:12d:: with SMTP id 42mr39917048plb.187.1565777373274; Wed, 14 Aug 2019 03:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565777373; cv=none; d=google.com; s=arc-20160816; b=ihW3QVxkszvU7Ff3Z4aGH3TNW+GjWsyA8LIdul7Bj0hIygcS3jOSRjXyxTpT7Ki2Bt SIzYoKQ3gmDmX3aeYiEhHiwYZvVRgQs4zzmsrMRlGTyLErJVXVl8MCMjl5TjVEYlCYbe njXFS/lHeV5C81XHgs1vf/wRdnSmuaw2md4MUUuua85KT51NPmABQEMR+KMpAAYZ24Jk leIOePRfjHCK1Kr7JR35XBWoEa0ChfWvfPGqMh3cExGeFclz0dGg+O9VP0HCwomLlEwP m9ZeZ4BTXFW3sXVTimJW26zQ7JohVxQsQilOvw0DameRZLSuvT56oF25tp1q6TurjHIL emjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vchsxG7Tgt1sbRzjTaMKvG7lUZvjmkK84Ki3HnSz1qY=; b=BECQbjVgM1hgGyZcii2BpXlj71O1CojoI9iJRRyeklUpw/9kByQcOaSZzrYuRjiXp/ 9Ockh66Aql88cYUByNfdig7CmomwnpPlAMT9hkFZl6TW+TxCt0YRZaihGWJrb36RKYrW sePm8EQT6IPOvAk8hmfaTR9USbu5na5N1CL4N3p5BoaIISHexyMfbWYOOuVDie7cDp4j HCyrbkqoQ6pjj1QhicYVfjnLnRpEg+UFmEwGbkyQKcyQBfMtbETXdOc94+u5LfUSsFDI kE4LP2+HrOPFsYDpV65TSumZhvtQ34sRhLmtLaM/67obu3tMkD1tBmGIdrsbcpHFgciA 0rYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si20847202pgj.527.2019.08.14.03.09.16; Wed, 14 Aug 2019 03:09:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727237AbfHNKHB (ORCPT + 99 others); Wed, 14 Aug 2019 06:07:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53505 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726121AbfHNKG7 (ORCPT ); Wed, 14 Aug 2019 06:06:59 -0400 X-UUID: b6fe7958dc7e4710af101f9b1029e17d-20190814 X-UUID: b6fe7958dc7e4710af101f9b1029e17d-20190814 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 220725746; Wed, 14 Aug 2019 18:06:52 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 14 Aug 2019 18:06:53 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 14 Aug 2019 18:06:53 +0800 From: Michael Kao To: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Matthias Brugger , CC: , , , , , Matthias Kaehlcke , Michael Kao Subject: [PATCH 4/4] arm64: dts: mt8183: Configure CPU cooling Date: Wed, 14 Aug 2019 18:06:49 +0800 Message-ID: <1565777209-21869-5-git-send-email-michael.kao@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1565777209-21869-1-git-send-email-michael.kao@mediatek.com> References: <1565777209-21869-1-git-send-email-michael.kao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-TM-SNTS-SMTP: 6B35072D115418BD62FDFB3A8FCC7BF1CA3916877D76B820D34241335E752A382000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Kaehlcke Add SoC temperature threshold at 68°C and target at 80°C. Add trip points and cooling maps for big and litter clusters. Signed-off-by: Matthias Kaehlcke Signed-off-by: Michael Kao --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index bc42b82..6611d29 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -411,6 +411,61 @@ polling-delay = <500>; thermal-sensors = <&thermal 0>; sustainable-power = <4500>; + + trips { + threshold: trip-point@0 { + temperature = <68000>; + hysteresis = <2000>; + type = "passive"; + }; + + target: trip-point@1 { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit: cpu-crit { + temperature = <115000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&target>; + cooling-device = <&cpu0 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu1 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu2 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu3 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + contribution = <3072>; + }; + map1 { + trip = <&target>; + cooling-device = <&cpu4 + THERMAL_NO_LIMIT + 14>, + <&cpu5 + THERMAL_NO_LIMIT + 14>, + <&cpu6 + THERMAL_NO_LIMIT + 14>, + <&cpu7 + THERMAL_NO_LIMIT + 14>; + contribution = <1024>; + }; + }; }; /* The tzts1 ~ tzts6 don't need to polling */ -- 1.9.1