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: 354059 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 AD2EE1400A3 for ; Fri, 30 May 2014 19:41:21 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755355AbaE3JlA (ORCPT ); Fri, 30 May 2014 05:41:00 -0400 Received: from mail-ig0-f172.google.com ([209.85.213.172]:35662 "EHLO mail-ig0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932689AbaE3JjD (ORCPT ); Fri, 30 May 2014 05:39:03 -0400 Received: by mail-ig0-f172.google.com with SMTP id uy17so577893igb.11 for ; Fri, 30 May 2014 02:39:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sNKlX5/mIKvTtstlaSNSL1VFWsAioVct8qizB7aRfH8=; b=NaZq6uSRQcQr21LbkWuRZoGwbdQuDaj5NlFaQGURgbmMcj/r6rtEVmK0/9XzAGguqs fmw6cqzRDmfqB8/mLEzpyYSzR6cpD6x8oqZmjcGRPGfVH2oO6+VYCibWcEGJRWSgn3nK gJ1XzTVFrApoMI8wshEwXwUqjaFyj0UtVrJTWEYr3c19Q8TZHirUk0TGMcq9PKP8+gnS 3GEVnBqQ1eGhu86JEynd4Pt4YCUTugzRIDVvOPsutUMtd0ufKU8Z3k0nukxjcZyg7PS/ WZIA+nD45V9sTuWLN9f4uceP0UowS/u9yeO0maKd7ypEjA3C89vykBEHE9yJ4674jr1W XUug== X-Gm-Message-State: ALoCoQm/jNKQ1x4oNvS8bh79N8JgrCBSkpRmM81GdtQxAUIIrMRD8Q1how7ql+1wafCmHdjSn62/ 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 = ; + };