From patchwork Tue Apr 25 20:49:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9699737 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 0C72760245 for ; Tue, 25 Apr 2017 20:50:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F126528404 for ; Tue, 25 Apr 2017 20:50:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E473428471; Tue, 25 Apr 2017 20:50:20 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable 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 736E628404 for ; Tue, 25 Apr 2017 20:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1954519AbdDYUt7 (ORCPT ); Tue, 25 Apr 2017 16:49:59 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35105 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1954497AbdDYUto (ORCPT ); Tue, 25 Apr 2017 16:49:44 -0400 Received: by mail-pf0-f174.google.com with SMTP id v14so28233274pfd.2 for ; Tue, 25 Apr 2017 13:49: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=ruQWyJJc9pSXNHkgdfIEBaGODxezo3c8gRWi+zBjMBU=; b=POyiGycXFL0OR37sDmG82Aya4SKju2bCWOctLxcxUWggt+wiqFWKRVcuxoo/8TOKzc Wfsp4K5yhNYBJuYRtwk2m5tHIXqjLdZmLdhjFqWcGexGeoKZyCsZyP/Knf2Mm1cDS28Q 5Qamaa3skX3dx41LkUY73BLpH9MOgSOa91NEE= 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=ruQWyJJc9pSXNHkgdfIEBaGODxezo3c8gRWi+zBjMBU=; b=Xlniz3sX1zdlBrENV+T+tgx1QLCi9tF4sWuZQYa0A/JRO4SE/32zk10cBUA/PeDXnO I9eRggGHxyZ2STzAFOFqu5jRdgW7f7WOY5MKsgP83DBLQBanmSlFBR+DC+wZCuUmLHml 3sLZNX8H8tHloP12FFEroaDom389iL/ZxfKBALndwliCHt1XGxvThz4E8XXkjDS9zU7G TfNrp+RlSNxdc/iGgLwSXy+dFJPA0C3ttxa84hHqqa2pcce26FzHBUjmhibZSmqV0tWl i8RXkfppHK0ai73I35hriKmThD1HidLcN2n4K1A7nMsWBhHrm98VxbtDaHFBg2r/3T13 NrCQ== X-Gm-Message-State: AN3rC/4EonNkYXvsKp/kz2LAdvr45qVY9BqIy1L7Di9mkate3CJoqNB7 aP2mCWXoHeCajlZ8 X-Received: by 10.98.63.85 with SMTP id m82mr30296109pfa.143.1493153383193; Tue, 25 Apr 2017 13:49:43 -0700 (PDT) Received: from venom.dhcp.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id e5sm38236030pga.13.2017.04.25.13.49.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Apr 2017 13:49: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 2/2] ARM: dts: NSP: Add Thermal Support Date: Tue, 25 Apr 2017 16:49:11 -0400 Message-Id: <1493153351-12698-3-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493153351-12698-1-git-send-email-jon.mason@broadcom.com> References: <1493153351-12698-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 { + }; + }; + }; };