From patchwork Fri Oct 1 16:17:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 12531013 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1E95C433F5 for ; Fri, 1 Oct 2021 16:19:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7649A611C8 for ; Fri, 1 Oct 2021 16:19:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7649A611C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=iuH4ndLfVw4uIkjlz0uBoToRoWoGeVj3hVsbDw9fHso=; b=AdwdPAv1TF+Ej2 VCZFgeDC0XGrbJFkpeh0R6huWWrkzc2xylpw2mIjfNxBrKRnxOmfCV+ndsGp9gYNybUavChBSnRBn ODM52FVuSWx1KDcR0z3kKCPh1kPDtcG3DnAI2WLShDLug+yTEggoEGWHNr0NWvFK7XKxLBsAQJvW5 FF1FIRa0pRh4TaAAfu82n74X4MbVzmFXXAWZvskqk+uFN3Mb6tHspOoc3bT0XiXM8YoU3pk15BxoA OnwUfkGREhqt/6ZWcfbIs/1aeWd1hOEd0Oyc8BSk5k6Yunic126cDXB31/pSV2iLtfz9//hEqmY7R uz5Pn39r1DkWlQoABxFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWLEH-000pYo-Rb; Fri, 01 Oct 2021 16:17:46 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWLEC-000pWn-Np for linux-arm-kernel@lists.infradead.org; Fri, 01 Oct 2021 16:17:42 +0000 Received: by mail-wr1-x42d.google.com with SMTP id k7so16199354wrd.13 for ; Fri, 01 Oct 2021 09:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EzWy2nvLFCIuBba5ki21B6r/rdWPB3y7nLXxAimeS4w=; b=b2lLhCxu6V++Sis/mzcbImRUwTxDNoulIsuf3Sczqqkb3P62Hf51DBU/V8Y3dCY3HN rAmHWI7x8HxoS1AXDAOFpohrtioMc5sxKrjF2RRS21tl0Q0LxeED13VDEl3Vvo8frIai BlIbUZwOO//b4X2b+byOgLkAukKJtKa9Xk1MxDXLHsdr/Zo06R772bxPkEq3aF9qGBuR 4pbDWJPO3Z6OXFcI3PV0P7g6fjuamXz0lGxqjXqyeqIukxKfoWOPY77DiZPPnRTiNDQS EFEaiN1U2lXaefXvFwMwxYdcTAJpXGyK8Xr0B+VmMShKQwaHAu2fP2MGxb8Et8Lq2m4R 56WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EzWy2nvLFCIuBba5ki21B6r/rdWPB3y7nLXxAimeS4w=; b=x5pXU3HsVN6Nyru5oUm0FEsYDJmD2cWQN7yLvIY5AcmkD0UtvqZu3/AqYmKsPukbtf Tca/2sYML8b62zg2jIacsMCSeslrz1S3fxD+LbL7hfV+Tk0KWmlGDggQsICmmrtvhJp8 a8g90da/MuGOqo6Qa9HmyO03yBXEwXM0ZwqW9hUFtklg3+/hBBJzyDOEnzrdjbF6Xfh/ S1LuBn4sS4XDOwc9tyoS423SQ3Ek4GsRxpGWj8wWK1YM4MJNkLHoA0b53vgBcpGYOoIn aoXRl87S5b+w4WuTvuIaMwar5fVbubGkEaWWcIEHYjc0zExBIKlod39C6vBKHBABku/L MREA== X-Gm-Message-State: AOAM532tipix+O+CrlNaAJiy+iIzgoXrLEdUlG84K5Z1TTR0TZLpAIi6 hLYSN+tAtsK3N8IwuGcgtffa0w== X-Google-Smtp-Source: ABdhPJwgdmNt4q6CM1GJcIjHlayiUH7mjwfnFg2ReVmLQ9E++96gykDFNpXlrlKThqqyafXizNYSsg== X-Received: by 2002:adf:a3c7:: with SMTP id m7mr13417466wrb.339.1633105057911; Fri, 01 Oct 2021 09:17:37 -0700 (PDT) Received: from localhost.localdomain ([82.142.20.44]) by smtp.gmail.com with ESMTPSA id d7sm6168206wrh.13.2021.10.01.09.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 09:17:37 -0700 (PDT) From: Daniel Lezcano To: heiko@sntech.de Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: Add idle cooling devices Date: Fri, 1 Oct 2021 18:17:28 +0200 Message-Id: <20211001161728.1729664-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211001_091740_837437_4DA5FED8 X-CRM114-Status: GOOD ( 12.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The thermal framework accepts now the cpu idle cooling device as an alternative when the cpufreq cooling device fails. Add the node in the DT so the cooling devices will be present and the platforms can extend the thermal zone definition to add them. Signed-off-by: Daniel Lezcano --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 3871c7fd83b0..9ac232ffd284 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -124,6 +124,11 @@ cpu_b0: cpu@100 { #cooling-cells = <2>; /* min followed by max */ dynamic-power-coefficient = <436>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + thermal-idle { + #cooling-cells = <2>; + duration-us = <10000>; + exit-latency-us = <500>; + }; }; cpu_b1: cpu@101 { @@ -136,6 +141,11 @@ cpu_b1: cpu@101 { #cooling-cells = <2>; /* min followed by max */ dynamic-power-coefficient = <436>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + thermal-idle { + #cooling-cells = <2>; + duration-us = <10000>; + exit-latency-us = <500>; + }; }; idle-states {