From patchwork Thu Jun 5 14:56:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 31420 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 840C620BF9 for ; Thu, 5 Jun 2014 14:56:29 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 142sf894460ykq.8 for ; Thu, 05 Jun 2014 07:56:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :references:mime-version:in-reply-to:user-agent:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe :content-type:content-disposition; bh=HE0Y+rUMZgMBE1DwElwXV+TTljNmDzniAKlrY+COZwY=; b=Kija3UlGMuSobKjoAofSdOKW67rS6zW7ICljZ/0twEfhL+xjeMgI87vtIAguZ2k2M1 C5ZSHtd+Uo1JOPWqkRdUTSfoT4GIe9Vm7f12dSrTPhk9t2JtJrjVNZ9AbSiXtGPiKvo0 SiLhWNZJDsPuJu7JxWm+6zvyCLgpuQjISySxwA8klCpGNmXqMQ2renzw9XVUr8eLrd2H nvSER8clAVOm5YD05AMoHJXa7nY1mRinllhsUlBmWvwlSj4dhmqLrx3mYstdlylMMgii CKYg23EH6h3odW7tKLzi1xHc49DhYZVuNb/q99XzGeejTAbrIN529CZy27X93EUNCHD6 dMCQ== X-Gm-Message-State: ALoCoQmCxpIWLLoyXnH9dzjLNmwFyEC3VrRuPfYuKxQptwNOjJexYoBQuTizLasldPnUVcPpfQ2D X-Received: by 10.58.165.33 with SMTP id yv1mr26176326veb.30.1401980189251; Thu, 05 Jun 2014 07:56:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.74 with SMTP id w68ls225251qgw.53.gmail; Thu, 05 Jun 2014 07:56:29 -0700 (PDT) X-Received: by 10.53.12.229 with SMTP id et5mr22364755vdd.32.1401980189066; Thu, 05 Jun 2014 07:56:29 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id dh1si3856557veb.23.2014.06.05.07.56.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Jun 2014 07:56:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id ik5so1285329vcb.19 for ; Thu, 05 Jun 2014 07:56:29 -0700 (PDT) X-Received: by 10.58.216.163 with SMTP id or3mr1005102vec.80.1401980188950; Thu, 05 Jun 2014 07:56:28 -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.221.54.6 with SMTP id vs6csp22963vcb; Thu, 5 Jun 2014 07:56:28 -0700 (PDT) X-Received: by 10.68.138.227 with SMTP id qt3mr78270557pbb.6.1401980188074; Thu, 05 Jun 2014 07:56:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kj11si13248403pbd.143.2014.06.05.07.56.27; Thu, 05 Jun 2014 07:56:27 -0700 (PDT) Received-SPF: none (google.com: devicetree-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 S1751221AbaFEO40 (ORCPT + 8 others); Thu, 5 Jun 2014 10:56:26 -0400 Received: from mail-ig0-f171.google.com ([209.85.213.171]:57443 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbaFEO4Z (ORCPT ); Thu, 5 Jun 2014 10:56:25 -0400 Received: by mail-ig0-f171.google.com with SMTP id c1so7634979igq.16 for ; Thu, 05 Jun 2014 07:56:24 -0700 (PDT) X-Received: by 10.50.7.101 with SMTP id i5mr20971087iga.0.1401980184870; Thu, 05 Jun 2014 07:56:24 -0700 (PDT) Received: from lee--X1 (host86-181-29-77.range86-181.btcentralplus.com. [86.181.29.77]) by mx.google.com with ESMTPSA id j3sm19058021igx.8.2014.06.05.07.56.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 05 Jun 2014 07:56:24 -0700 (PDT) Date: Thu, 5 Jun 2014 15:56:18 +0100 From: Lee Jones To: Peter Griffin Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel@stlinux.com, linux-pm@vger.kernel.org, eduardo.valentin@ti.com, rui.zhang@intel.com Subject: [PATCH v1 1/6] thermal: sti: Supply Device Tree documentation Message-ID: <20140605145618.GF24240@lee--X1> References: <1401442715-6350-1-git-send-email-lee.jones@linaro.org> <1401442715-6350-2-git-send-email-lee.jones@linaro.org> <20140605120147.GA7446@griffinp-ThinkPad-X1-Carbon-2nd> MIME-Version: 1.0 In-Reply-To: <20140605120147.GA7446@griffinp-ThinkPad-X1-Carbon-2nd> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.220.174 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: , Content-Disposition: inline thermal: sti: Supply Device Tree documentation Signed-off-by: Ajit Pal Singh Acked-by: Peter Griffin Signed-off-by: Lee Jones --- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/thermal/st-thermal.txt b/Documentation/devicetree/bindings/thermal/st-thermal.txt new file mode 100644 index 0000000..3b9251b --- /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 = ; + };