From patchwork Fri May 30 09:38:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 4269401 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 33E41BEEA7 for ; Fri, 30 May 2014 09:41:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4CCA1201EC for ; Fri, 30 May 2014 09:41:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 744A2200E7 for ; Fri, 30 May 2014 09:41:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932662AbaE3JlA (ORCPT ); Fri, 30 May 2014 05:41:00 -0400 Received: from mail-ig0-f171.google.com ([209.85.213.171]:34041 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932676AbaE3JjD (ORCPT ); Fri, 30 May 2014 05:39:03 -0400 Received: by mail-ig0-f171.google.com with SMTP id c1so580245igq.10 for ; Fri, 30 May 2014 02:39:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sNKlX5/mIKvTtstlaSNSL1VFWsAioVct8qizB7aRfH8=; b=R6AWvtC3g75UJ28ArTQblzDR9Q3RKm9psGGCZCwEQHKWmAOIw4CdjTD/ozENqaLpKG mY5fhpFIAc1NT2/iRjgYpVvZDT88lWs8BwZfKVsY/JjFVzwl/T4OboQxIAEzKHkaDWyd mgIvfpRrd+ijmuHfn6KruxLOa8K/39kOCKcROqNmypNeFmoH5ACsYkg1nfYR82Qhr1KW 6NzsbFJEBBG0MoP8N4j5gfDVmTpSSqM8E0T4EF9UW5lz9Y5Sv3d8ayzb3D2MlN6ovlRu ugwItLy/S/aJENmQxKnqa+InxPtjPc/qtkRzlHf9oetlz6LDKCGbrtO68nxNTF7WiGFU y9zQ== X-Gm-Message-State: ALoCoQmQISoxE5Ko2LclkuKRnSc+vPF2d0oz1P/XPO6zXnETbfhAFAe/ObpKsB9SjcuLYZ56fngd X-Received: by 10.42.253.130 with SMTP id na2mr13348187icb.82.1401442742716; Fri, 30 May 2014 02:39:02 -0700 (PDT) Received: from localhost.localdomain (host109-148-113-200.range109-148.btcentralplus.com. [109.148.113.200]) by mx.google.com with ESMTPSA id kw1sm4289587igb.4.2014.05.30.02.39.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 May 2014 02:39:02 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, rui.zhang@intel.com, eduardo.valentin@ti.com, ajitpal.singh@st.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, maxime.coquelin@st.com, patrice.chotard@st.com Subject: [PATCH 1/6] thermal: sti: Supply Device Tree documentation Date: Fri, 30 May 2014 10:38:30 +0100 Message-Id: <1401442715-6350-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1401442715-6350-1-git-send-email-lee.jones@linaro.org> References: <1401442715-6350-1-git-send-email-lee.jones@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ajit Pal Singh Signed-off-by: Lee Jones --- .../devicetree/bindings/thermal/st-thermal.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/st-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/st-thermal.txt b/Documentation/devicetree/bindings/thermal/st-thermal.txt new file mode 100644 index 0000000..8537fdc --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/st-thermal.txt @@ -0,0 +1,42 @@ +Binding for Thermal Sensor driver for STMicroelectronics STi series of SoCs. + +Required parameters: +------------------- + +compatible : st,--thermal; should be one of: + "st,stih415-sas-thermal", + "st,stih415-mpe-thermal", + "st,stih416-sas-thermal" + "st,stih416-mpe-thermal" + "st,stid127-thermal" or + "st,stih407-thermal" + according to the SoC type (stih415, stih416, stid127, stih407) + and module type (sas or mpe). On stid127 & stih407 there is only + one die/module, so there is no module type in the compatible + string. +clock-names : Should be "thermal". + See: Documentation/devicetree/bindings/resource-names.txt +clocks : Phandle of the clock used by the thermal sensor. + See: Documentation/devicetree/bindings/clock/clock-bindings.txt + +Optional parameters: +------------------- + +reg : For non-sysconf based sensors, this should be the physical base + address and length of the sensor's registers. +interrupts : Standard way to define interrupt number. + Interrupt is mandatory to be defined when compatible is + "stih416-mpe-thermal". + NB: For thermal sensor's for which no interrupt has been + defined, a polling delay of 1000ms will be used to read the + temperature from device. + +Example: + + temp1@fdfe8000 { + compatible = "st,stih416-mpe-thermal"; + reg = <0xfdfe8000 0x10>; + clock-names = "thermal"; + clocks = <&CLK_M_MPETHSENS>; + interrupts = ; + };