From patchwork Thu Mar 23 19:18:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9641827 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 3E00660327 for ; Thu, 23 Mar 2017 19:19:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31EB0283FD for ; Thu, 23 Mar 2017 19:19:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 263612841C; Thu, 23 Mar 2017 19:19:10 +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=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 B98BC283FD for ; Thu, 23 Mar 2017 19:19:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753726AbdCWTTJ (ORCPT ); Thu, 23 Mar 2017 15:19:09 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:34460 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752321AbdCWTTI (ORCPT ); Thu, 23 Mar 2017 15:19:08 -0400 Received: by mail-wr0-f180.google.com with SMTP id l43so709067wre.1 for ; Thu, 23 Mar 2017 12:19:07 -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=xWgXcbXIm+qPeMK/Xss7nKjE+WdAlA3c8YOqAIeNjEI=; b=S6CCruhjFkQfPzw0KqzOA3WaxoWs3oPoQ7IXqy5f1V9TnRjbEQQuAN453XKpvI6qnN vhixfILIuu8EDvyadKL8+OsSLMpXogVDdyDW3GZN3BXDpsnxN4fb9lSRJhSIJzS0oVYN jUF7/w/7MksDZosdiLTo6ED+R5GmRz1XCLZGQ= 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=xWgXcbXIm+qPeMK/Xss7nKjE+WdAlA3c8YOqAIeNjEI=; b=PniU9/oYk29LWJmdwGwRJeq9VitFJcJwlN0S1f9wEZw1T06O1vZnU+aHXxSGHL6vwI mKJoEiYeV/Ka+SLg/JFNjSRl5dD3cv6px4f+u8vOi/CkPb1tAN2ERswiuKPvttZPCE3G 0gzIYj5ZCsvM0peln3wQnp3aKo4Ygea2TUj6Mcz8cySAn/uBXJrScmxzxMXlkTmtsKom jOhOHNa+ZdBy/jtANlp0cgeuAJAYw1fH/VRWs6tjYe/Y6ARAdLoKwUQV9iWcl9Y8VddT DDZG5i3RbhShRrHMNaxr/VGrYK1MmE2Jzn5h0TTpjkU1SBPTZqMVuLjDFceQ8ZFg5m/Z AazQ== X-Gm-Message-State: AFeK/H2SX08wrXiRqIHMjLPMWSpEYMYqF7jUbU566kxIwrjcV2Dko1WzvLMkY67a2RSTQBZx X-Received: by 10.223.133.182 with SMTP id 51mr4288250wrt.39.1490296746629; Thu, 23 Mar 2017 12:19:06 -0700 (PDT) Received: from venom.dhcp.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id s26sm7050408wra.66.2017.03.23.12.19.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Mar 2017 12:19:05 -0700 (PDT) From: Jon Mason To: zajec5@gmail.com Cc: Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [RFC 2/3] ARM: dts: NSP: Add Thermal Support Date: Thu, 23 Mar 2017 15:18:47 -0400 Message-Id: <1490296728-14733-3-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490296728-14733-1-git-send-email-jon.mason@broadcom.com> References: <1490296728-14733-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 --- arch/arm/boot/dts/bcm-nsp.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index 37076a2..89eb470 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -398,6 +398,12 @@ <0x3f408 0x04>; }; + pvtmon: 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>; @@ -548,4 +554,13 @@ brcm,pcie-msi-inten; }; }; + + thermal-zones { + soc { + polling-delay-passive = <100>; /* milliseconds */ + polling-delay = <5000>; /* milliseconds */ + + thermal-sensors = <&pvtmon>; + }; + }; };