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: 9657269 X-Patchwork-Delegate: eduardo.valentin@ti.com 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 DB5EB60350 for ; Fri, 31 Mar 2017 20:11:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1C1B286F9 for ; Fri, 31 Mar 2017 20:11:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2A99286FD; Fri, 31 Mar 2017 20:11:37 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 332A5286F9 for ; Fri, 31 Mar 2017 20:11:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933222AbdCaULf (ORCPT ); Fri, 31 Mar 2017 16:11:35 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34080 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932960AbdCaULe (ORCPT ); Fri, 31 Mar 2017 16:11:34 -0400 Received: by mail-lf0-f68.google.com with SMTP id x137so8234597lff.1; 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=fdp3pWKn9hwoS0AXfYghiUXxlTiX4fOlU4IYWJuIqhyqEB+fjRPZwSpwZFO5WfLAgj tgA1ViLANjCkY+86vCu0YBbtHr8mNfU7KBSeB7B+2h8Ixr5tZQ8PsrJUITnShcPFP1Ke IqyI2bBwAma1/EkIM5I/+MdxL7Ggo9ZKl/yNNiNXUQBs4WWjEnnevpls8S+5RXjbwzCD By/l8epzd+omeIKOsHx26WMX1UrGLCyjYWspq/aLP0WMHapEcOJTUhHoAYhZa5rg0hZw Pbg0X5Jouoa9B/PyJshDjdN5tzuJGSo7r4KIpT0TBIUM2xy9U00V8f2wGK8FNeGw9Qm+ 5hww== X-Gm-Message-State: AFeK/H03LhGD+bRbQFw4obhgmrMEbG0qlrwoiy1vNM5uBwejFeVGlEqPtLeHrGy3XaqZ4A== 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 Cc: Rob Herring , Mark Rutland , Stephen Warren , Lee Jones , Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= 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 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 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>; + }; +};