devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Punit Agrawal <punit.agrawal@arm.com>
To: linux-pm@vger.kernel.org
Cc: Punit Agrawal <punit.agrawal@arm.com>,
	lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Sudeep Holla <sudeep.holla@arm.com>
Subject: [PATCH 4/9] Documentation: add DT bindings for ARM SCPI sensors
Date: Wed, 22 Jul 2015 15:02:38 +0100	[thread overview]
Message-ID: <1437573763-6525-5-git-send-email-punit.agrawal@arm.com> (raw)
In-Reply-To: <1437573763-6525-1-git-send-email-punit.agrawal@arm.com>

The System Control Processor (SCP) provides access to SoC sensors via
the System Control and Power Interface (SCPI) Message Protocol. Add
bindings to allow probing of these sensors. Also support referencing
of the sensors for setting up thermal zones via the thermal DT
bindings.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
---
 Documentation/devicetree/bindings/arm/arm,scpi.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/arm,scpi.txt b/Documentation/devicetree/bindings/arm/arm,scpi.txt
index e3757bc..5cb2b18 100644
--- a/Documentation/devicetree/bindings/arm/arm,scpi.txt
+++ b/Documentation/devicetree/bindings/arm/arm,scpi.txt
@@ -74,8 +74,18 @@ Required sub-node properties:
 - compatible : should be "arm,juno-scp-shmem" for Non-secure SRAM based
 	       shared memory on Juno platforms
 
+Sensor bindings for the sensors based on SCPI Message Protocol
+--------------------------------------------------------------
+SCPI provides an API to access the various sensors on the SoC.
+
+Required properties:
+- compatible : should be "arm,scpi-sensors".
+- #thermal-sensor-cells: should be set to 1. This property follows the
+			 thermal device tree bindings[2].
+
 [0] http://community.arm.com/servlet/JiveServlet/download/8401-45-18326/DUI0922B_scp_message_interface.pdf
 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
+[2] Documentation/devicetree/bindings/thermal/thermal.txt
 
 Example:
 
@@ -124,6 +134,11 @@ scpi_protocol: scpi@2e000000 {
 			clock-output-names = "pxlclk0", "pxlclk1";
 		};
 	};
+
+	scpi_sensors0: sensors {
+		compatible = "arm,scpi-sensors";
+		#thermal-sensor-cells = <1>;
+	};
 };
 
 cpu@0 {
-- 
2.1.4

  parent reply	other threads:[~2015-07-22 14:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 14:02 [PATCH 0/9] Platform support for thermal management on Junoe Punit Agrawal
     [not found] ` <1437573763-6525-1-git-send-email-punit.agrawal-5wv7dgnIgG8@public.gmane.org>
2015-07-22 14:02   ` [PATCH 1/9] devicetree: bindings: Add optional dynamic-power-coefficient property Punit Agrawal
2015-07-22 14:02 ` [PATCH 2/9] cpufreq-dt: Supply power coefficient when registering cooling devices Punit Agrawal
2015-07-22 14:02 ` [PATCH 3/9] cpufreq: arm_big_little: Add support to register a cpufreq cooling device Punit Agrawal
2015-07-22 14:02 ` Punit Agrawal [this message]
2015-07-22 14:02 ` [PATCH 5/9] firmware: arm_scpi: Extend to support sensors Punit Agrawal
2015-07-22 14:02 ` [PATCH 6/9] hwmon: Support sensors exported via ARM SCP interface Punit Agrawal
2015-07-22 15:33   ` Guenter Roeck
     [not found]     ` <55AFB7BC.6090802-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2015-07-24 14:08       ` Punit Agrawal
2015-07-22 14:02 ` [PATCH 7/9] hwmon: Support registration of thermal zones for SCP temperature sensors Punit Agrawal
2015-07-22 15:58   ` Guenter Roeck
     [not found]     ` <55AFBDC1.3000604-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2015-07-24 14:12       ` Punit Agrawal
2015-07-22 14:02 ` [PATCH 8/9] arm64: dts: Add sensor node to Juno dt Punit Agrawal
2015-07-22 14:02 ` [PATCH 9/9] arm64: dts: Create SoC thermal zone for Juno Punit Agrawal
2015-07-23  9:29 ` [PATCH 0/9] Platform support for thermal management on Junoe Viresh Kumar
2015-07-24 14:16   ` Punit Agrawal
2015-07-25  1:27     ` Viresh Kumar

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=1437573763-6525-5-git-send-email-punit.agrawal@arm.com \
    --to=punit.agrawal@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sudeep.holla@arm.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;
as well as URLs for NNTP newsgroup(s).