1 From 5bf715958613e73008ed107182306fb4f37024e5 Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <stefan.wahren@i2se.com>
3 Date: Mon, 13 Jan 2020 19:56:15 +0100
4 Subject: [PATCH] dt-bindings: Add Broadcom AVS RO thermal
6 Commit ee31ff373da6602e7a4e60fe11322b41ac38eb22 upstream.
8 Since the BCM2711 doesn't have a AVS TMON block, the thermal information
9 must be retrieved from the AVS ring oscillator block. This block is part
10 of the AVS monitor which contains a bunch of raw sensors.
12 Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
13 Reviewed-by: Rob Herring <robh@kernel.org>
14 Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
15 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
16 Link: https://lore.kernel.org/r/1578941778-23321-2-git-send-email-stefan.wahren@i2se.com
17 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
19 .../bindings/thermal/brcm,avs-ro-thermal.yaml | 45 +++++++++++++++++++
20 1 file changed, 45 insertions(+)
21 create mode 100644 Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml
24 +++ b/Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml
26 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
29 +$id: http://devicetree.org/schemas/thermal/brcm,avs-ro-thermal.yaml#
30 +$schema: http://devicetree.org/meta-schemas/core.yaml#
32 +title: Broadcom AVS ring oscillator thermal
35 + - Stefan Wahren <wahrenst@gmx.net>
38 + The thermal node should be the child of a syscon node with the
41 + - compatible: Should be one of the following:
42 + "brcm,bcm2711-avs-monitor", "syscon", "simple-mfd"
44 + Refer to the the bindings described in
45 + Documentation/devicetree/bindings/mfd/syscon.txt
49 + const: brcm,bcm2711-thermal
60 + avs-monitor@7d5d2000 {
61 + compatible = "brcm,bcm2711-avs-monitor",
62 + "syscon", "simple-mfd";
63 + reg = <0x7d5d2000 0xf00>;
66 + compatible = "brcm,bcm2711-thermal";
67 + #thermal-sensor-cells = <0>;