bcm27xx: update to latest patches from RPi foundation
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-5.4 / 950-0757-dt-bindings-Add-Broadcom-AVS-RO-thermal.patch
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
5
6 Commit ee31ff373da6602e7a4e60fe11322b41ac38eb22 upstream.
7
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.
11
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>
18 ---
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
22
23 --- /dev/null
24 +++ b/Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml
25 @@ -0,0 +1,45 @@
26 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
27 +%YAML 1.2
28 +---
29 +$id: http://devicetree.org/schemas/thermal/brcm,avs-ro-thermal.yaml#
30 +$schema: http://devicetree.org/meta-schemas/core.yaml#
31 +
32 +title: Broadcom AVS ring oscillator thermal
33 +
34 +maintainers:
35 + - Stefan Wahren <wahrenst@gmx.net>
36 +
37 +description: |+
38 + The thermal node should be the child of a syscon node with the
39 + required property:
40 +
41 + - compatible: Should be one of the following:
42 + "brcm,bcm2711-avs-monitor", "syscon", "simple-mfd"
43 +
44 + Refer to the the bindings described in
45 + Documentation/devicetree/bindings/mfd/syscon.txt
46 +
47 +properties:
48 + compatible:
49 + const: brcm,bcm2711-thermal
50 +
51 + reg:
52 + maxItems: 1
53 +
54 +required:
55 + - compatible
56 + - reg
57 +
58 +examples:
59 + - |
60 + avs-monitor@7d5d2000 {
61 + compatible = "brcm,bcm2711-avs-monitor",
62 + "syscon", "simple-mfd";
63 + reg = <0x7d5d2000 0xf00>;
64 +
65 + thermal: thermal {
66 + compatible = "brcm,bcm2711-thermal";
67 + #thermal-sensor-cells = <0>;
68 + };
69 + };
70 +...