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: 356480 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4ACDA14007B for ; Fri, 6 Jun 2014 00:56:27 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751221AbaFEO40 (ORCPT ); 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=h0KBCXn2H0tBpvnK6+nbahU9UtLuFRA3G8AN4UNUcb0=; b=Rx4SwOd2qPkkWkL1m1CBNotUHAG+mhdnqRbre3rtNpadQjAnHJxVvsclO/QPpgEcSP rcdTLt2MetgDOL5fAs0QQnoYrUIqJbScZe2GNQta5KBifna21VsbRz63li0iu/QBrV6S UHUCrs7P3JGZzRdV6BT9/1+Zea70v+pLqB8N0lb0Xp78Ds1Zm5T7xyZU0Q7zIINOkExE Y9TE4LEhBQlBZhdIXLC5SCsprY7O5ULu5l4on1Ztl7Hy/9d/5ycV+67+UecqUr8eu9BO Y+b2IIiV/o3g15pyZwPUTvF1uJnx8R1mXNqZuucI1pOtyjqlEhckgazAPoDjzZ/u2eEX GKRQ== X-Gm-Message-State: ALoCoQmPKXLnETddsbphUzpwaG66Hrhhwm7ograLJ9Gn+3qUyX94MIVWTgrWhI097G2BS9I/G6GG 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 Content-Disposition: inline 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: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 = ; + };