From: Punit Agrawal <punit.agrawal@arm.com>
To: Rob Herring <robh@kernel.org>, sudeep.holla@arm.com
Cc: "linux-arm-kernel\@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"devicetree\@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Rob Herring <robh+dt@kernel.org>,
Eduardo Valentin <edubezval@gmail.com>,
Liviu Dudau <liviu.dudau@arm.com>,
Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH v4 1/5] Documentation: add DT bindings for ARM SCPI sensors
Date: Wed, 30 Sep 2015 09:57:37 +0100 [thread overview]
Message-ID: <9hh612s708u.fsf@e105922-lin.cambridge.arm.com> (raw)
In-Reply-To: <CAL_Jsq+_Rrv5XqNsL-gwQZv3HK20dQC3jY7qCoxQ8KWhhs4Fdw@mail.gmail.com> (Rob Herring's message of "Tue, 29 Sep 2015 13:20:55 -0500")
Rob Herring <robh@kernel.org> writes:
> On Tue, Sep 15, 2015 at 11:50 AM, Punit Agrawal <punit.agrawal@arm.com> wrote:
>> 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>
>
> Acked-by: Rob Herring <robh@kernel.org>
Thanks, Rob!
Sudeep, now that we have acks for all the patches, are you OK to take
this patchset along with your series adding support for SCPI?
Punit
>
>> Cc: Mark Rutland <mark.rutland@arm.com>
>> Cc: Sudeep Holla <sudeep.holla@arm.com>
>> ---
>> Documentation/devicetree/bindings/arm/arm,scpi.txt | 38 ++++++++++++++++++++++
>> 1 file changed, 38 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/arm/arm,scpi.txt b/Documentation/devicetree/bindings/arm/arm,scpi.txt
>> index f002460..86302de 100644
>> --- a/Documentation/devicetree/bindings/arm/arm,scpi.txt
>> +++ b/Documentation/devicetree/bindings/arm/arm,scpi.txt
>> @@ -72,8 +72,25 @@ 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].
>> +
>> + Valid cell values are raw identifiers (Sensor
>> + ID) as used by the firmware. Refer to
>> + platform documentation for your
>> + implementation for the IDs to use. For Juno
>> + R0 and Juno R1 refer to [3].
>> +
>> [0] http://infocenter.arm.com/help/topic/com.arm.doc.dui0922b/index.html
>> [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
>> +[2] Documentation/devicetree/bindings/thermal/thermal.txt
>> +[3] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0922b/apas03s22.html
>>
>> Example:
>>
>> @@ -122,6 +139,11 @@ scpi_protocol: scpi@2e000000 {
>> clock-output-names = "pxlclk0", "pxlclk1";
>> };
>> };
>> +
>> + scpi_sensors0: sensors {
>> + compatible = "arm,scpi-sensors";
>> + #thermal-sensor-cells = <1>;
>> + };
>> };
>>
>> cpu@0 {
>> @@ -136,6 +158,17 @@ hdlcd@7ff60000 {
>> clocks = <&scpi_clk 4>;
>> };
>>
>> +thermal-zones {
>> + soc_thermal {
>> + polling-delay-passive = <100>;
>> + polling-delay = <1000>;
>> +
>> + /* sensor ID */
>> + thermal-sensors = <&scpi_sensors0 3>;
>> + ...
>> + };
>> +};
>> +
>> In the above example, the #clock-cells is set to 1 as required.
>> scpi_dvfs has 3 output clocks namely: atlclk, aplclk, and gpuclk with 0,
>> 1 and 2 as clock-indices. scpi_clk has 2 output clocks namely: pxlclk0
>> @@ -148,3 +181,8 @@ scpi_dvfs i.e. "atlclk".
>> Similarly the second example is hdlcd@7ff60000 and it has pxlclk1 as input
>> clock. '4' in the clock specifier here points to the second entry
>> in the output clocks of scpi_clocks i.e. "pxlclk1"
>> +
>> +The thermal-sensors property in the soc_thermal node uses the
>> +temperature sensor provided by SCP firmware to setup a thermal
>> +zone. The ID "3" is the sensor identifier for the temperature sensor
>> +as used by the firmware.
>> --
>> 2.5.1
>>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-09-30 8:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 16:50 [PATCH v4 0/5] SCPI sensors support Punit Agrawal
2015-09-15 16:50 ` [PATCH v4 1/5] Documentation: add DT bindings for ARM SCPI sensors Punit Agrawal
2015-09-22 14:31 ` Punit Agrawal
2015-09-29 15:11 ` Punit Agrawal
2015-09-29 18:20 ` Rob Herring
2015-09-30 8:57 ` Punit Agrawal [this message]
2015-09-15 16:50 ` [PATCH v4 2/5] firmware: arm_scpi: Extend to support sensors Punit Agrawal
2015-10-02 16:36 ` Sudeep Holla
2015-10-05 12:48 ` Punit Agrawal
2015-09-15 16:50 ` [PATCH v4 3/5] hwmon: Support sensors exported via ARM SCP interface Punit Agrawal
2015-09-15 16:51 ` [PATCH v4 4/5] hwmon: Support thermal zones registration for SCP temperature sensors Punit Agrawal
2015-09-15 16:51 ` [PATCH v4 5/5] arm64: dts: Add sensor node to Juno dt Punit Agrawal
2015-09-24 16:36 ` Liviu Dudau
2015-09-25 14:37 ` Punit Agrawal
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=9hh612s708u.fsf@e105922-lin.cambridge.arm.com \
--to=punit.agrawal@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=liviu.dudau@arm.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=robh@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
all inboxes | Powered by JetHome®