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: 4306241 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E77F29F26E for ; Thu, 5 Jun 2014 14:56:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 189CB2015A for ; Thu, 5 Jun 2014 14:56:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5188420107 for ; Thu, 5 Jun 2014 14:56:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751405AbaFEO40 (ORCPT ); Thu, 5 Jun 2014 10:56:26 -0400 Received: from mail-ig0-f176.google.com ([209.85.213.176]:51657 "EHLO mail-ig0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750809AbaFEO4Z (ORCPT ); Thu, 5 Jun 2014 10:56:25 -0400 Received: by mail-ig0-f176.google.com with SMTP id a13so3316537igq.9 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=GtvZucPjzeP7pfUDfOQWHLS4il7qrwMABM0zoOFw5Kzexyr49RJYuCu9eH2S6tn34S 3Ih4RWDalZvT82OduLcXAjnw0R+KJFwpGu5HRM9AJJskIAx5hGhitzre7hdQ3BG222Qz UJFwPjsKrwbA3N82s72GXDv9FzAkaAETpw9Zlpff/KBTv1IHKsMRzNQIIgzG+i0/ue9e i2ZU6D5Dw+FHS+V6Y6SLt8NhC4LvAIYpTpRVXp+CU+fPOTKFbL6yePr5Lhq1pisO3ftb G+JXvYtCCON9dWA5/VnZY9di12LKYWizwc3R7DeM2hGCX67w17jZ8m3SxW7D2bE3ZAaC SYOA== X-Gm-Message-State: ALoCoQl8NVtaS9xZxPLqq3k66pqNx2K7A5NBkosMTfI7nhGU+H9IcbBd4Kzj5Sc5oqYOM52BZ6Qt 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: 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=ham 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 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 linux-pm" 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 = ; + };