public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Peter Griffin <peter.griffin@linaro.org>
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
Date: Thu, 5 Jun 2014 15:56:18 +0100	[thread overview]
Message-ID: <20140605145618.GF24240@lee--X1> (raw)
In-Reply-To: <20140605120147.GA7446@griffinp-ThinkPad-X1-Carbon-2nd>

thermal: sti: Supply Device Tree documentation

Signed-off-by: Ajit Pal Singh <ajitpal.singh@st.com>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

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,<SoC>-<module>-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	= <GIC_SPI 23 IRQ_TYPE_NONE>;
+	};

  parent reply	other threads:[~2014-06-05 14:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30  9:38 [PATCH 0/6] thermal: sti: Add new Thermal driver Lee Jones
2014-05-30  9:38 ` [PATCH 1/6] thermal: sti: Supply Device Tree documentation Lee Jones
2014-06-05 12:01   ` [STLinux Kernel] " Peter Griffin
2014-06-05 12:25     ` Lee Jones
2014-06-05 14:56     ` Lee Jones [this message]
2014-05-30  9:38 ` [PATCH 2/6] thermal: sti: Introduce ST Thermal core code Lee Jones
2014-05-30  9:38 ` [PATCH 3/6] thermal: sti: Add support for ST's System Config Register based Thermal controller Lee Jones
2014-06-05 15:16   ` [STLinux Kernel] " Peter Griffin
2014-06-05 15:22     ` Peter Griffin
2014-05-30  9:38 ` [PATCH 4/6] thermal: sti: Add support for ST's Memory Mapped " Lee Jones
2014-06-05 15:26   ` [STLinux Kernel] " Peter Griffin
2014-05-30  9:38 ` [PATCH 5/6] ARM: STi: DT: STiH416: Supply Thermal Controller Device Tree nodes Lee Jones
2014-05-30  9:38 ` [PATCH 6/6] ARM: multi_v7_defconfig: Configure in ST's Thermal Controller Lee Jones
2014-07-01  2:07 ` [PATCH 0/6] thermal: sti: Add new Thermal driver Zhang Rui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140605145618.GF24240@lee--X1 \
    --to=lee.jones@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=eduardo.valentin@ti.com \
    --cc=kernel@stlinux.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox