[1/2] dt-bindings: thermal: add support for Raspberry Pi thermal

Submitted by Rafał Miłecki on March 18, 2017, 12:01 a.m.

Details

Message ID 20170318000132.9212-1-zajec5@gmail.com
State Rejected
Headers show

Commit Message

Rafał Miłecki March 18, 2017, 12:01 a.m.
From: Rafał Miłecki <rafal@milecki.pl>

This commit documents binding for BCM2835 SoC thermal used in Raspberry
Pi devices.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 .../bindings/thermal/raspberrypi,bcm2835-thermal        | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/thermal/raspberrypi,bcm2835-thermal

Comments

Eric Anholt March 18, 2017, 12:09 a.m.
Rafał Miłecki <zajec5@gmail.com> writes:

> From: Rafał Miłecki <rafal@milecki.pl>
>
> This commit documents binding for BCM2835 SoC thermal used in Raspberry
> Pi devices.

There's already a native (non-firmware) thermal driver just waiting for
the maintainer to merge it.

https://www.spinics.net/lists/arm-kernel/msg566217.html
Rafał Miłecki March 18, 2017, 8:58 a.m.
On 18 March 2017 at 01:09, Eric Anholt <eric@anholt.net> wrote:
> Rafał Miłecki <zajec5@gmail.com> writes:
>
>> From: Rafał Miłecki <rafal@milecki.pl>
>>
>> This commit documents binding for BCM2835 SoC thermal used in Raspberry
>> Pi devices.
>
> There's already a native (non-firmware) thermal driver just waiting for
> the maintainer to merge it.
>
> https://www.spinics.net/lists/arm-kernel/msg566217.html

Oh my, you did a nice work there guys! Well, this patch can obviously
be dropped.

Patch hide | download patch | download mbox

diff --git a/Documentation/devicetree/bindings/thermal/raspberrypi,bcm2835-thermal b/Documentation/devicetree/bindings/thermal/raspberrypi,bcm2835-thermal
new file mode 100644
index 000000000000..fbffa9291ba9
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/raspberrypi,bcm2835-thermal
@@ -0,0 +1,17 @@ 
+* Broadcom BCM2835 SoC Raspberry Pi Thermal
+
+This binding describes thermal sensor that is part of BCM2835 SoC.
+
+Required properties:
+- compatible : Must be "raspberrypi,bcm2835-thermal"
+- firmware : Reference to the Raspberry Pi firmware device node, see
+	raspberrypi,bcm2835-firmware for details
+- #thermal-sensor-cells : Should be <0>
+
+Example:
+
+thermal {
+	compatible = "raspberrypi,bcm2835-thermal";
+	firmware = <&firmware>;
+	#thermal-sensor-cells = <0>;
+};