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: 9699739 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 5375060245 for ; Tue, 25 Apr 2017 20:50:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4410528404 for ; Tue, 25 Apr 2017 20:50:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38D5028471; Tue, 25 Apr 2017 20:50:28 +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 C0F7D28404 for ; Tue, 25 Apr 2017 20:50:27 +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=D/V5mG6VN5qniis4RPZlxr5QyTQq3URzK0qXQ1+6vns=; b=TNT6fSxcJpmEbM7zyVJmwWEgCu 6Kj0Djdhyg5dRoyxq8y5Iuw9YnlmLTV/rGhtJmgnzctx5/Ir43ubqRWY6zhQlKjmV1d14pG4O8HNF p/jKyvZXIj5vXzkPVAIBLHwPTKC3yUfZngqaaYnJUQzKdM0zxZma8qqa9B7pY5YSeWInlKs/1uwE+ INra4HU2KfMVXwk4ocgOaqB3bJdL4oh2Ame7IFiQyk6jwZulLLSF1v92N37XIUgEHyGKNrfaBTXPy /Pz+S8cfVM4lrK1rQ0mH+fb7uH3TDyBgmlxgyibdIZGR+ePqntyxF3HhWKliQQo39TGNlsej+xZbU 4DEy8jaQ==; 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 1d37Pn-0008QC-9P; Tue, 25 Apr 2017 20:50:27 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d37PR-0006hM-U4 for linux-arm-kernel@lists.infradead.org; Tue, 25 Apr 2017 20:50:10 +0000 Received: by mail-pf0-x22f.google.com with SMTP id 194so31871209pfv.3 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=d1Tba/cOgjHbIRNHQnY+Lrf0aSDZ6h92q+PP1ImrFO1ANK4cK9CJvfNcL4RrO8D1sb tlmqfCXXI5ncTP/V+07qNTg1902mgmWjZJYaVa56Vm5HXIbDMqyOsxZe8Fk70k0rn2zm DLgSSCXeZOaqLQI/Oo42IG6gWeFhUr8IhXP3/86aMXrGzQE/L8nQh1YzhheTSPO2WNl9 J9xwptDE97wgfLeenTYNB7BEyw/kwyySVgxhGNeAtf3UC3IQIxc28OK5vLMdLi3tRm+g rnRVGyfnRaWqQBjbVeHqLvAapLNvC3faNkXdRDMD0QG7ndeIZBxZQUBkfgrokSVJlNg3 uTYg== X-Gm-Message-State: AN3rC/4GE0oL6sI2sAyyAtenqEa9h7Gk5yZ/UFP8TqQIWoQWPH1GDI10 fsfVOEjLyYGcZdB1 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170425_135006_388606_0803BEC5 X-CRM114-Status: GOOD ( 11.13 ) 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 { + }; + }; + }; };