From patchwork Fri Apr 28 20:11:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9705339 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 308F8602BF for ; Fri, 28 Apr 2017 20:11:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22C3828389 for ; Fri, 28 Apr 2017 20:11:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 176CE2869A; Fri, 28 Apr 2017 20:11:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC55328389 for ; Fri, 28 Apr 2017 20:11:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1035538AbdD1ULt (ORCPT ); Fri, 28 Apr 2017 16:11:49 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:36879 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033183AbdD1ULn (ORCPT ); Fri, 28 Apr 2017 16:11:43 -0400 Received: by mail-it0-f44.google.com with SMTP id x188so49254138itb.0 for ; Fri, 28 Apr 2017 13:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hXNBaROSxjOB3dENAYDvwTHZw28aSx9tp6IRx25qvEw=; b=fPv9YIQ/LBH0PtpvWD+CtbIf0cK8hcIrYOpfoiiS/R8rrAHD888RK5WEsUS5gwrO8/ 0w0Zu2Ihk2HEDhsDtBKBHpxXTGsiRX3TfK0Z9u3f5RwVTticPKlwstXaKWWA1WZZpSTj 2NHDNKp3jLPkodP4OWnX44dwu5N7rX5PsS0FE= 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; bh=hXNBaROSxjOB3dENAYDvwTHZw28aSx9tp6IRx25qvEw=; b=J3wd+N351QQOgWKXyZGo81ySI6na6cX8kUVxII7urANT8B7mGbppjq3M3uINj9TUR2 Wwljw2l6w29GOvRcfm4Up7VEIRDQzwttzeNXAEH9DteKiUc22BskYr2jgsz9Zz4kH+pb dDFjf46Yk084PIUlCppgQH+HBpiCePDD62CDX0Zepq8HaC+W4XLThiXLYVHWcpi4utQf SB9afIGglZnfy5ZQhKPMW20nFoJGvbGNWxTqHcsiGsiH6VYiA0qFWH//A/zQcOqw3pNJ RgREYio1kVAmFnuvDsCGtz437odyamHmXNBEVb/EBUavncU6Ho8A7iost2riyDRwr6aZ l+yQ== X-Gm-Message-State: AN3rC/5tXueknHHyGeNWmKNgBD90WMTCMDfusJ6jhXTWDjxaskbP0mLR AXDmpJrXpXCK6Xs0 X-Received: by 10.36.227.141 with SMTP id d135mr8351045ith.119.1493410302559; Fri, 28 Apr 2017 13:11:42 -0700 (PDT) Received: from venom.dhcp.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id x94sm263351ita.2.2017.04.28.13.11.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Apr 2017 13:11:42 -0700 (PDT) From: Jon Mason To: Florian Fainelli , Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland Cc: bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 3/3] ARM: dts: NSP: Add Thermal Support Date: Fri, 28 Apr 2017 16:11:31 -0400 Message-Id: <1493410291-16679-4-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493410291-16679-1-git-send-email-jon.mason@broadcom.com> References: <1493410291-16679-1-git-send-email-jon.mason@broadcom.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add thermal support via the ns-thermal driver and create a single thermal zone for the entire SoC. Signed-off-by: Jon Mason Acked-by: Eduardo Valentin --- arch/arm/boot/dts/bcm-nsp.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index 832795b..be6fcfb 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -383,6 +383,12 @@ <0x3f408 0x04>; }; + thermal: thermal@3f2c0 { + compatible = "brcm,ns-thermal"; + reg = <0x3f2c0 0x10>; + #thermal-sensor-cells = <0>; + }; + sata_phy: sata_phy@40100 { compatible = "brcm,iproc-nsp-sata-phy"; reg = <0x40100 0x340>; @@ -533,4 +539,24 @@ brcm,pcie-msi-inten; }; }; + + thermal-zones { + cpu-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + coefficients = <(-556) 418000>; + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + }; };