From patchwork Fri Mar 31 07:31:31 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: 9655557 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 0AF6C60352 for ; Fri, 31 Mar 2017 07:31:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0F892864A for ; Fri, 31 Mar 2017 07:31:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5B3028678; Fri, 31 Mar 2017 07:31:52 +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 6946228663 for ; Fri, 31 Mar 2017 07:31:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932661AbdCaHbp (ORCPT ); Fri, 31 Mar 2017 03:31:45 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33048 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932651AbdCaHbn (ORCPT ); Fri, 31 Mar 2017 03:31:43 -0400 Received: by mail-lf0-f67.google.com with SMTP id r36so6552897lfi.0; Fri, 31 Mar 2017 00:31:42 -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=nT0wwlHZHHKGnikX1SBmrWdsIpOW4WdBZ9ImO2ctHpwpwX4drXwJ2A+AePiyUydMVl ojXKdnEAX3PZQaAr9Odb8jJVe+rEJhY7tpSPE80dKjaY8dcstSW8M3fQ4hL7yp2jOFEO Zgvu+l/b77vndW/wiOmA0zroM1sTnzAoUG7SgTqPoKWSwZi2G/ESHROgjQhZvJmgu6MT 3CF1/US23lvoal67iuD7Hr/a6teeilbywwhexMEe19HmdK9+5FkRlQ80WOD8l72FVCTq G12WXa1ey2gkimzBNoRgv9AZf7kaYiHpqiP/pKV/SXsRY6Fx3hzHsIGUfxCtlwBNalLC Nq0w== 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=qpl/kO1JclASnZXfcUg+7CTk4BTPNfwiCvTKHVrYr7EjpOBw1MBD7FX31kbzoMVQQi 2+E4YiX689voq8z6ohGVghr4UIRcV+A9Ak9vo4eVGAPrfprQ2/gOtePYQAXXi4aavO4+ p8YdHe/yF284gAbr1kiF2FBdVF8ZG+mHrL+oOE1L4LQhbOdpqjrvS8wlsphxdqRaLkKF Hx18czb7wFAcWz6E10bheR10x7+O4GBoT4HpI3v5Rz2bXM+NQ12iyv2AEe9eNdgw+QBv QSH342wBdj5+ssGtcUo5hMqyti4nwqsn4hOUY2Ixn84qtS+CnQLtbxRDhEXz9UXyAzbv rfCg== X-Gm-Message-State: AFeK/H2FC+AOmZIi63I/Sb5bf+lHWWVFU/ylQ8R0tiC6JUrEHLH1BvOEy421rIvgmDjY8w== X-Received: by 10.46.6.17 with SMTP id 17mr573077ljg.20.1490945501462; Fri, 31 Mar 2017 00:31:41 -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 17sm783763ljp.58.2017.03.31.00.31.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Mar 2017 00:31:40 -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 V3 1/2] dt-bindings: thermal: add support for Broadcom's Northstar thermal Date: Fri, 31 Mar 2017 09:31:31 +0200 Message-Id: <20170331073132.21457-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170323223045.15786-1-zajec5@gmail.com> References: <20170323223045.15786-1-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>; + }; +};