Message ID | 1578420957-32229-2-git-send-email-wahrenst@gmx.net (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Daniel Lezcano |
Headers | show |
Series | ARM: Enable thermal support for Raspberry Pi 4 | expand |
On 07/01/2020 19:15, Stefan Wahren wrote: > Since the BCM2711 doesn't have a AVS TMON block, the thermal information > must be retrieved from the AVS ring oscillator block. This block is part > of the AVS monitor which contains a bunch of raw sensors. > > Signed-off-by: Stefan Wahren <wahrenst@gmx.net> > Reviewed-by: Rob Herring <robh@kernel.org> > Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> > =2D-- There are spurious characters in the patch. > .../bindings/thermal/brcm,avs-ro-thermal.yaml | 45 +++++++++++++++++= > +++++ > 1 file changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/brcm,avs-ro-= > thermal.yaml > > diff --git a/Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal= > .yaml b/Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml > new file mode 100644 > index 0000000..98e7b57 > =2D-- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml > @@ -0,0 +1,45 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/thermal/brcm,avs-ro-thermal.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Broadcom AVS ring oscillator thermal > + > +maintainers: > + - Stefan Wahren <wahrenst@gmx.net> > + > +description: |+ > + The thermal node should be the child of a syscon node with the > + required property: > + > + - compatible: Should be one of the following: > + "brcm,bcm2711-avs-monitor", "syscon", "simple-mfd" > + > + Refer to the the bindings described in > + Documentation/devicetree/bindings/mfd/syscon.txt > + > +properties: > + compatible: > + const: brcm,bcm2711-thermal > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + avs-monitor@7d5d2000 { > + compatible =3D "brcm,bcm2711-avs-monitor", > + "syscon", "simple-mfd"; > + reg =3D <0x7d5d2000 0xf00>; > + > + thermal: thermal { > + compatible =3D "brcm,bcm2711-thermal"; > + #thermal-sensor-cells =3D <0>; > + }; > + }; > +... > =2D- > 2.7.4 >
diff --git a/Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml b/Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml new file mode 100644 index 0000000..98e7b57 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/brcm,avs-ro-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom AVS ring oscillator thermal + +maintainers: + - Stefan Wahren <wahrenst@gmx.net> + +description: |+ + The thermal node should be the child of a syscon node with the + required property: + + - compatible: Should be one of the following: + "brcm,bcm2711-avs-monitor", "syscon", "simple-mfd" + + Refer to the the bindings described in + Documentation/devicetree/bindings/mfd/syscon.txt + +properties: + compatible: + const: brcm,bcm2711-thermal + + reg: + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + avs-monitor@7d5d2000 { + compatible = "brcm,bcm2711-avs-monitor", + "syscon", "simple-mfd"; + reg = <0x7d5d2000 0xf00>; + + thermal: thermal { + compatible = "brcm,bcm2711-thermal"; + #thermal-sensor-cells = <0>; + }; + }; +...