From patchwork Thu Mar 23 19:18:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9641829 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 BE5D660327 for ; Thu, 23 Mar 2017 19:19:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2E7E283FD for ; Thu, 23 Mar 2017 19:19:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7BF92841E; Thu, 23 Mar 2017 19:19:12 +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 60A02283FD for ; Thu, 23 Mar 2017 19:19:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753850AbdCWTTL (ORCPT ); Thu, 23 Mar 2017 15:19:11 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:35692 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753764AbdCWTTL (ORCPT ); Thu, 23 Mar 2017 15:19:11 -0400 Received: by mail-wm0-f48.google.com with SMTP id u132so69835088wmg.0 for ; Thu, 23 Mar 2017 12:19:10 -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=a/4Fh2uG5pojw+pYR0G0ut/vXfMT4ZLGaXG5EeOTYDQ=; b=RZS4PfE24iyOqEPvMkpVNZmcBq+nIT6f6xyKLNYk6aXiVHRzFQteOYsSEO3dPKPphE fXriSQZc2spdUqovQow3IH91mJY18hX2dWq463O8616KITUv43CB2TsclXVcya5eDdqK XbiFsZHTdXoHwzMDY0++7tiAnE0yxp17pwA+I= 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=a/4Fh2uG5pojw+pYR0G0ut/vXfMT4ZLGaXG5EeOTYDQ=; b=rRYOWS9RH4FUYO5h7EiLlVR8mZ4AQqJ/mWp5y6qfVomb3n7bUq9pnMwF2lW3ZfebqF 0YbS1xlB12H0phlQ9EI1LjbEDQxNR4Sm7cqBhraCdoznvDSpUlYp+Xz4queoj0giFqPa UomewBSKKeitgBVlq0VQPbuAF/l0kCnsgarFjL7UDQ7k7DTzXql1p+wPm4lugc9ij17n 2uRKkLToqvVdm2puUhrFxwDip53ETHfTMUmZdNsqNSOs0cIMzsvjBPANAcN3mByGAPWP Pbbw0OQWFmtrBNOef8rLVrBHrv8BcSw65JBRqqsG7gnZpDpZJ5twhjGtq0No/KcsCL5W nJmg== X-Gm-Message-State: AFeK/H1bmqVg/1vkhZ2Wvs9mpJAYrMHtBpb2Y6itZg1zpUgdm6iD9dfD9Lni0RlTtD9ajD/J X-Received: by 10.28.131.77 with SMTP id f74mr14270198wmd.109.1490296749239; Thu, 23 Mar 2017 12:19:09 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Mar 2017 12:19:08 -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 3/3] ARM: dts: BCM5301X: Add Thermal Support Date: Thu, 23 Mar 2017 15:18:48 -0400 Message-Id: <1490296728-14733-4-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/bcm5301x.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index ceca664..ba4bcef 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -351,6 +351,12 @@ "sata2"; }; + pvtmon: thermal@1800c2c0 { + compatible = "brcm,ns-thermal"; + reg = <0x1800c2c0 0x10>; + #thermal-sensor-cells = <0>; + }; + srab: srab@18007000 { compatible = "brcm,bcm5301x-srab"; reg = <0x18007000 0x1000>; @@ -414,4 +420,13 @@ status = "disabled"; }; }; + + thermal-zones { + soc { + polling-delay-passive = <100>; /* milliseconds */ + polling-delay = <5000>; /* milliseconds */ + + thermal-sensors = <&pvtmon>; + }; + }; };