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: 9705351 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 8B34A602BF for ; Fri, 28 Apr 2017 20:12:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A1A328698 for ; Fri, 28 Apr 2017 20:12:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B6EB2869A; Fri, 28 Apr 2017 20:12:54 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 22FC228697 for ; Fri, 28 Apr 2017 20:12:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8H9PJDSDV0fTf6E3/9YCu+EhjnpkTrfpuGi93hGixXY=; b=RuWVkSSiTMeJjWoQzF+Xeklqd0 kVLe2Lpp8JjWqFwLSFlF+tKToPLknGoATB0tYH4q7FwJdcuOWpZKSfVavg4UdM8mpgUfivK8o+qGt nlCqZ0tfnRGYO0SdReN6TOgR6WPi7lHvaVKPgaeJ0/EuDSG7upW5Y0D8KIeu1gtCIWnKkxwnK1LYU GZ1r9jHp7DqMgF1/qCTOuknX8YLdmlyL42u5IsMPB8IBlW6la5PvDyxv/tMwAVmPlL0WMc5F7Ne73 8eIYqlILKug4k515NA2jF9QQXBsRtoRASEU6fATKd5tj/MniZm62bgKUyhRiocVQs/zpfVKCn50Jq 1l+PNFsw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d4CG3-0006vj-Qc; Fri, 28 Apr 2017 20:12:51 +0000 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d4CFH-00068K-H5 for linux-arm-kernel@lists.infradead.org; Fri, 28 Apr 2017 20:12:05 +0000 Received: by mail-it0-x233.google.com with SMTP id e65so470301ita.1 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=ekS+HP15IZg0o2XgWife20CcZw7OZka3TYcjJljfjD8YWe9nzEsvguHZRPGIDWUT2a CRfvN4PSXhoCs8UcsnYb/DdYf4CisMapwLH2uGk4rfq+OjgSLj0GtHgzlwFXqRLgFf7D MImJW2G0+1AyeCQ8QQsa/3lfphzKU5Q7P+iC/E9ujJI2oIAVnABPVr00hiStIODOBgqA vzeJHgBsIgUgPiZtn6Il3A8vOU47xqx7E/1OjL2TAcbCpfNEXsq/97b6LuTTg6+L0Pbn R5HcZxar1iBcYll0Mqv0iQi+//F+/dDDOqMS7HXdn5KN2ZgOLwMZzRlvBPOO758s+GRx DVWw== X-Gm-Message-State: AN3rC/5VziTeUG9rEO7VPuPvymg23GOtkoMpL8ueoAa/7M6I4b7QCiBC 3NyNohBKBdmVZZ6tFZQ= 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170428_131203_668882_B5A71768 X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 { + }; + }; + }; };