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: 31163 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A62C20068 for ; Fri, 30 May 2014 09:41:08 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id uo5sf6385954pbc.0 for ; Fri, 30 May 2014 02:41:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=5l7+Ewvsh+Kd2Z3IJXRmRtGZuKej1MrqG/c91ZtwISw=; b=c7nNpSqGTrNCSas+wC/S4LKFY4hB+NelxFS/GK1XzGA1wn/ZvuO4XiDvRf+NdWk0ln dEHH45iUTtygxfOQnv+q0cuqNDggB6WDwRSZHfchbv3AmHAwgXVMBMJX3R3drhhM5Q0s iDf1Fpu0BxzrEkZDa1ofn7G/7mclBhhHKQhSGl9XsoE9AD3yl3KpgwTswBbpxeMxazgR F7F6pYxI70szXjXCiZX2VkAImUGHHptOK/YKv1KCQVfVLxcihlx0QxtNOpc5BGxBnLYW De3qMiNAWp2NIdhDl5csxkA80/1IIKr9CAUJjr62cfwVuZWdkMBw3f8N4PkUFkLfWlPp AMwg== X-Gm-Message-State: ALoCoQkt7nq+o/8ktjE7Ame2qO+BUR0+S2xSTu+cw/KMFQLMdTskh3S9YcBj4BiuM+h+2CF3lQ3s X-Received: by 10.66.66.163 with SMTP id g3mr5853166pat.3.1401442867973; Fri, 30 May 2014 02:41:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.22.39 with SMTP id 36ls968662qgm.75.gmail; Fri, 30 May 2014 02:41:07 -0700 (PDT) X-Received: by 10.53.0.135 with SMTP id ay7mr10496394vdd.11.1401442867830; Fri, 30 May 2014 02:41:07 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id o6si2594950vcn.83.2014.05.30.02.41.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 May 2014 02:41:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.180 as permitted sender) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id db12so1809945veb.39 for ; Fri, 30 May 2014 02:41:07 -0700 (PDT) X-Received: by 10.58.25.6 with SMTP id y6mr759261vef.48.1401442867721; Fri, 30 May 2014 02:41:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp97528vcb; Fri, 30 May 2014 02:41:07 -0700 (PDT) X-Received: by 10.68.254.103 with SMTP id ah7mr16641296pbd.159.1401442866917; Fri, 30 May 2014 02:41:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xu2si4708537pbb.129.2014.05.30.02.41.06; Fri, 30 May 2014 02:41:06 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933067AbaE3JlB (ORCPT + 28 others); Fri, 30 May 2014 05:41:01 -0400 Received: from mail-ig0-f176.google.com ([209.85.213.176]:54022 "EHLO mail-ig0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932685AbaE3JjD (ORCPT ); Fri, 30 May 2014 05:39:03 -0400 Received: by mail-ig0-f176.google.com with SMTP id hl10so583108igb.3 for ; Fri, 30 May 2014 02:39:02 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 = ; + };