From patchwork Fri Mar 31 20:11:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9657275 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 0CD5560350 for ; Fri, 31 Mar 2017 20:21:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E957F286FB for ; Fri, 31 Mar 2017 20:21:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC13D28705; Fri, 31 Mar 2017 20:21:22 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 713AC286FB for ; Fri, 31 Mar 2017 20:21:22 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=htwcoR2vyI+gJ17DhJq4OBE2O9Pm6E61pNklUOB4HTk=; b=FBvJnja/3dubzj OBaYQMWzHQZuseLrnuNF8SlkJnpF7TwJsTX6pQhZvp6PVnXOIRAmgwOg6PICSghmJ1B/F9tvNwCNl MG6VlLTyeeHjzQVBuaXYckLhc98cUicJyYvoVFM+/8GhbyBtE3hkqaTxwYONecJxZ8J9GxfWGpdk8 ecx9MaQmxMKiHfLoQR0ETW8KdD0agcMl0fz6x8z+n5bHidfNM7Jx7kQId+EzWsFUCSUsPfsp4h+GL TiCMh8RqVCd8e2fihpzIvXlRSSE6JDWDLuG/ECasx492zexLMolNEpaO4F+bqma2O8R+1J02NubxU QocyZ904LVkQl8VFNPHg==; 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 1cu32u-0007KL-NQ; Fri, 31 Mar 2017 20:21:20 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cu2tn-0003Jx-Jl; Fri, 31 Mar 2017 20:11:57 +0000 Received: by mail-lf0-x241.google.com with SMTP id v2so8234566lfi.2; Fri, 31 Mar 2017 13:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6h9mHGvEZw6qmy7r0r5HK9QruWFEwazMzFjpGjR3tLA=; b=SAxrwACrCqt1u6ex5GUsZg5aq5gqvbEKS6VkHxHZFyzHLfOCxVCu/Dv8xdHlfUQ/yk xaOtop8M/2wQ4xvNd4rPkXhFjUDGH4Fx1P+rVGDrSxYYNmFjBBHIB8nhrmQ5z2ocY+sp xk7oXw+PvqxtcaL9Y1a4iIVoooyG9ZINTvpPcuujibk6ozwKjEkxPXsmkyqscD/E9xC8 umJlcqSObqRJNHJ5f/afJPeSQahWQpoQcnwqSqc8k4YaW8NAT0kDFwyA+0Ezsdfa0NMh kaeBRdfxfeQXyZrZNkPgPU6MVgVmjYT1Eqm2RUfma6VDdIJxqWLghbiVBWMS0MsI/9ja kbng== 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:mime-version:content-transfer-encoding; bh=6h9mHGvEZw6qmy7r0r5HK9QruWFEwazMzFjpGjR3tLA=; b=JBhV6FnzzNHEll1Ubt0Oa+yNl/+D7z4Trk1X0GJqSuzS6WzSReLzdGT84RG9gs+Tln NoSYWnTVQK+3xSNK1RfWF6/EI1T0KVC4738XdsyHft1d8GzUq/RcZgrOId9uRa73TWg2 ck+wCtYH44/PkwDRsLFPJzprNO8UiPNAYJyAEVvKWK2ih0hS92PebHx2Q95bDn3wD+P4 TfQBXvpQ33R5Z/gaEPigY0hztSW7k4UAmMaKcBmF1Un02oZuWWGLGB2r5wmkpR8W9yOG AWXUP9K78SXNBCANhJ5NAxWN88xpqTBsU4IIfPG//W90OvrUgRZt7MbIQDEXk8lwDIly CzxQ== X-Gm-Message-State: AFeK/H2dXHBp7/DJynUDlXFhsPamaPPphZHCkCuxP1yMU7QobEnHW83WI/RWIZBrjWWlQw== X-Received: by 10.46.21.13 with SMTP id s13mr1574815ljd.112.1490991093235; Fri, 31 Mar 2017 13:11:33 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id n25sm1114818lje.14.2017.03.31.13.11.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Mar 2017 13:11:32 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Zhang Rui , Eduardo Valentin Subject: [PATCH V4 1/2] dt-bindings: thermal: add support for Broadcom's Northstar thermal Date: Fri, 31 Mar 2017 22:11:23 +0200 Message-Id: <20170331201124.656-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170331073132.21457-2-zajec5@gmail.com> References: <20170331073132.21457-2-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170331_131155_856568_99183412 X-CRM114-Status: GOOD ( 11.70 ) 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: Mark Rutland , devicetree@vger.kernel.org, Florian Fainelli , Scott Branden , Stephen Warren , Ray Jui , linux-pm@vger.kernel.org, Lee Jones , Eric Anholt , Rob Herring , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-arm-kernel@lists.infradead.org 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 From: Rafał Miłecki This commit documents binding for thermal used in Northstar family SoCs. Signed-off-by: Rafał Miłecki --- V3: Add thermal-zones to the example Rob: Because of this update, I didn't include Acked-by I got for V2 --- .../devicetree/bindings/thermal/brcm,ns-thermal | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/brcm,ns-thermal diff --git a/Documentation/devicetree/bindings/thermal/brcm,ns-thermal b/Documentation/devicetree/bindings/thermal/brcm,ns-thermal new file mode 100644 index 000000000000..c561c7349f17 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/brcm,ns-thermal @@ -0,0 +1,26 @@ +* Broadcom Northstar Thermal + +This binding describes thermal sensor that is part of Northstar's DMU (Device +Management Unit). + +Required properties: +- compatible : Must be "brcm,ns-thermal" +- reg : iomem address range of PVTMON registers +- #thermal-sensor-cells : Should be <0> + +Example: + +thermal: thermal@1800c2c0 { + compatible = "brcm,ns-thermal"; + reg = <0x1800c2c0 0x10>; + #thermal-sensor-cells = <0>; +}; + +thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + coefficients = <(-556) 418000>; + thermal-sensors = <&thermal>; + }; +};