Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2290478ybb; Sun, 5 Apr 2020 03:50:16 -0700 (PDT) X-Google-Smtp-Source: APiQypIh7CPjoDpETSztq7NuWtcEu98tC7xKDhbPE8/UjIsS1rs8TPBR9eBh7n73yyva9RdzjBjW X-Received: by 2002:aca:cc08:: with SMTP id c8mr8952974oig.42.1586083816292; Sun, 05 Apr 2020 03:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586083816; cv=none; d=google.com; s=arc-20160816; b=AwraiP/kgWwWdJpsXlB5eMdyBfUki6DoS33wwpEy2jq2t5Lk/gzFUcRgv4GYivqXJH 0cHJU8Q7LeCRFakstEF2iyv2inBAGYo9j9WikmsWgREskQ1B5LVMFWmx7KXjHv3LfO4i P3jhJNohkKyIrzklfyxTFQPPLuOEFzZKBdfFfB+dxhmEwdvLO4YjQ69ZdLdryupUncM2 haRKnDvbFFNZoDMcpag2OpE1r30Nid9sKmRzCAVSVOLsuXblUhN5NVaz3+0m+rMTGYAX p9hCjWzDidPrT4KXonsWJZ6m0k8hW850m2ttnwXMjmtKCesNA+A4zqokdULJZianjGZa m14g== 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 :dkim-signature; bh=T2ox6yFqqUNTyQRjV1Y6BWeD23De5Y0nxhCOsLLOIKs=; b=B5ay9dOrsicCzTfQ2uw/EgVbGRupP2uPxgbEgLghm+ZZNEzR+DxlJyCOIYQuCFrtew rXxEAZPqkAUKLMZnFOG5HeJvTmuHfyafUsFYyCXnd+m4e12CTnZW8PM1cLJffI/txn6W caeC0o874AvWGhxXRjTIY54QwZn5kyN5ASBuhgXBCYOPLRb7GVZT1HU0EQ2WLeX9GSCH zGVXKC1Kn3qpAoTU5QH9ARNUVaeI6ftqzyye8nbBWNzAT0fGDKKMtm3pAK+pRWcTkZM9 4O1MZf7u4gR8oON5hqefW0MfCTBd5vYZy2ukyxMq3e9F7H3qP6MSDH+p2mTThZNPARsk oO2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dFZqux8K; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si7098109oth.49.2020.04.05.03.50.04; Sun, 05 Apr 2020 03:50:16 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dFZqux8K; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726691AbgDEKtd (ORCPT + 99 others); Sun, 5 Apr 2020 06:49:33 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41468 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgDEKtW (ORCPT ); Sun, 5 Apr 2020 06:49:22 -0400 Received: by mail-wr1-f67.google.com with SMTP id h9so13867287wrc.8; Sun, 05 Apr 2020 03:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T2ox6yFqqUNTyQRjV1Y6BWeD23De5Y0nxhCOsLLOIKs=; b=dFZqux8Kt58ZD1nl1pEsS9jGttw4fQIvzoSx1sxe9av3Ci7uCrIEHOIXvDyxTKgdzb 0/0N+3iC8p/HpM1qtAttoL1O1FPIGj98M/BJSzds66yp0N+NbyG/SSooXpVurt1yII7x R703o4PdqnM9DRHTkkj3mmOQl/GrDMAUewk1niAHwEn+w5IcBVaWf8EwGIlkcEaFEo/K PTInczeA5IZ86qLOGWu2bayHLi2dwb0/r4wwsIEAoLJVAxZyt2gmqeHDsxXqC/rR/jCJ CrDcqDZtlxNfDIvLztGZcNpJtG0HjGUtnN9nPealj8ORDrgxOmPnUIdWYCtoLneCmm+N B1Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T2ox6yFqqUNTyQRjV1Y6BWeD23De5Y0nxhCOsLLOIKs=; b=V9H5Io3Bx9dULP5EOc6rmahv1eteQM4JXlGQAglZRYWS2UyTT6WBAfa/9GWlFZpFpW yQTddina82uCryEXiNLZ7/LEuVlhVdvW9mwqxZerqhY99L9p6shThMRVHJi06uLZ1rek WkUcHaMlTbABwnzp6PiPxQbCCE5DkFqP129hWyFLz46xHjRrIxYCsxJQmDefgyme4d/B 7ZjAIW1u/I8QSP4TnM627MD8zS0jpLXxce2yogAYvHiFni3c4UnrQktxlDjaCl9DbjpG hJ8xbgxffNlzZCx8mRwfzwcVu64oY5j6sgEKkDRiswHpqa10FwZ3qk6CG3Yn7OK8H4eu oBrw== X-Gm-Message-State: AGi0PuZ0aiIxRRcgyPvB/94msRAMIDW6mnlqX+xDjbP73EmZ48DsegzM S8L5tnqgLdFtcCvFVC7kcdE= X-Received: by 2002:adf:f74d:: with SMTP id z13mr9260727wrp.55.1586083758486; Sun, 05 Apr 2020 03:49:18 -0700 (PDT) Received: from localhost.localdomain (91-167-199-67.subs.proxad.net. [91.167.199.67]) by smtp.gmail.com with ESMTPSA id u13sm21606411wru.88.2020.04.05.03.49.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Apr 2020 03:49:17 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Maxime Ripard , Chen-Yu Tsai , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi , Ondrej Jirman , =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= Subject: [PATCH 2/7] arm64: dts: allwinner: h6: Add thermal trip points/cooling map Date: Sun, 5 Apr 2020 12:49:08 +0200 Message-Id: <20200405104913.22806-3-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200405104913.22806-1-peron.clem@gmail.com> References: <20200405104913.22806-1-peron.clem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ondrej Jirman This enables passive cooling by down-regulating CPU voltage and frequency. Signed-off-by: Ondrej Jirman Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index aef4ae760d5e..d4d3963705f5 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -908,6 +908,30 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&ths 0>; + + trips { + cpu_hot_trip: cpu-hot { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_very_hot_trip: cpu-very-hot { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; + + cooling-maps { + cpu-hot-limit { + trip = <&cpu_hot_trip>; + 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>; + }; + }; }; gpu-thermal { -- 2.20.1