From patchwork Thu Jun 5 15:06:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 31421 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2CCDB20BF9 for ; Thu, 5 Jun 2014 15:08:01 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf1199210pbb.2 for ; Thu, 05 Jun 2014 08:08:00 -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=5zunCcKLC/u5wuq5CZB6suFd9Pc0ldDf9iwunx2zSCQ=; b=a35Wq5YF2BTVSwk1PS5fA3exvF3rz4M2JotqBKbkgtaZvnHVm25tQE3cmWiY9SCmzC jAjZ0bHKx9ipEMmrRwbvpHL7rOX6jmNFVJDWoWpTeOcLPdsXwrz8ZsXc36mBRIfTPUaR 5JyUaqckMODPsNx0Ub+vCelg6n4qII5YCOF8cV3bJTaPv+FnwTZF16WisSrw51P91IZa YKteYeGsaTGilmeBnrkC6+7Ho26yR78EsTcXVlAntQpqxOgmz47IqlNwY3T+wPTKRv1r hEbNNWv7mJmAYGj9oxf4e1r3t7dzVMUCvX2qonmHO+xnpby3IfjGF2gV65TRpPha2ClF OKEQ== X-Gm-Message-State: ALoCoQnXStU3fZ87isxSrhQvhn0WFS1G2oJdDxAKpCFuzONu+0CTsudgt+zqe9ajOoNh9jMw2ok1 X-Received: by 10.68.202.99 with SMTP id kh3mr23753854pbc.8.1401980880131; Thu, 05 Jun 2014 08:08:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.201 with SMTP id z67ls231520qgd.94.gmail; Thu, 05 Jun 2014 08:07:59 -0700 (PDT) X-Received: by 10.58.74.38 with SMTP id q6mr50179830vev.7.1401980879956; Thu, 05 Jun 2014 08:07:59 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id fw5si2621310vcb.46.2014.06.05.08.07.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Jun 2014 08:07:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lc6so1310051vcb.29 for ; Thu, 05 Jun 2014 08:07:59 -0700 (PDT) X-Received: by 10.220.15.8 with SMTP id i8mr2751884vca.45.1401980879853; Thu, 05 Jun 2014 08:07:59 -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 vs6csp23850vcb; Thu, 5 Jun 2014 08:07:59 -0700 (PDT) X-Received: by 10.52.138.232 with SMTP id qt8mr19091812vdb.44.1401980878990; Thu, 05 Jun 2014 08:07:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gg3si3897126veb.2.2014.06.05.08.07.58; Thu, 05 Jun 2014 08:07:58 -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 S1752180AbaFEPHl (ORCPT + 27 others); Thu, 5 Jun 2014 11:07:41 -0400 Received: from mail-ig0-f169.google.com ([209.85.213.169]:55265 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbaFEPHj (ORCPT ); Thu, 5 Jun 2014 11:07:39 -0400 Received: by mail-ig0-f169.google.com with SMTP id a13so3216018igq.4 for ; Thu, 05 Jun 2014 08:07:38 -0700 (PDT) X-Received: by 10.50.79.131 with SMTP id j3mr21020519igx.23.1401980858400; Thu, 05 Jun 2014 08:07:38 -0700 (PDT) Received: from localhost.localdomain (host86-181-29-77.range86-181.btcentralplus.com. [86.181.29.77]) by mx.google.com with ESMTPSA id 2sm19108949igs.17.2014.06.05.08.07.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Jun 2014 08:07:37 -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, ajitpal.singh@st.com, edubezval@gmail.com, rui.zhang@intel.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: Thu, 5 Jun 2014 16:06:54 +0100 Message-Id: <1401980819-19962-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1401980819-19962-1-git-send-email-lee.jones@linaro.org> References: <1401980819-19962-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.220.170 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 Acked-by: Peter Griffin 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..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 = ; + };