Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: thermal: Convert Broadcom TMON to YAML

Convert the Broadcom AVS TMON Device Tree binding to YAML to help with
validation.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211208003727.3596577-12-f.fainelli@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Florian Fainelli and committed by
Rob Herring
e4fa9ded 0cf5e46e

+57 -24
-23
Documentation/devicetree/bindings/thermal/brcm,avs-tmon.txt
··· 1 - * Broadcom STB thermal management 2 - 3 - Thermal management core, provided by the AVS TMON hardware block. 4 - 5 - Required properties: 6 - - compatible: must be one of: 7 - "brcm,avs-tmon-bcm7216" 8 - "brcm,avs-tmon-bcm7445" 9 - "brcm,avs-tmon" 10 - - reg: address range for the AVS TMON registers 11 - - interrupts: temperature monitor interrupt, for high/low threshold triggers, 12 - required except for "brcm,avs-tmon-bcm7216" 13 - - interrupt-names: should be "tmon" 14 - 15 - Example: 16 - 17 - thermal@f04d1500 { 18 - compatible = "brcm,avs-tmon-bcm7445", "brcm,avs-tmon"; 19 - reg = <0xf04d1500 0x28>; 20 - interrupts = <0x6>; 21 - interrupt-names = "tmon"; 22 - interrupt-parent = <&avs_host_l2_intc>; 23 - };
+56
Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/thermal/brcm,avs-tmon.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom STB thermal management 8 + 9 + description: Thermal management core, provided by the AVS TMON hardware block. 10 + 11 + maintainers: 12 + - Florian Fainelli <f.fainelli@gmail.com> 13 + 14 + allOf: 15 + - $ref: thermal-sensor.yaml# 16 + 17 + properties: 18 + compatible: 19 + items: 20 + - enum: 21 + - brcm,avs-tmon-bcm7216 22 + - brcm,avs-tmon-bcm7445 23 + - const: brcm,avs-tmon 24 + 25 + reg: 26 + maxItems: 1 27 + description: > 28 + Address range for the AVS TMON registers 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + interrupt-names: 34 + items: 35 + - const: tmon 36 + 37 + "#thermal-sensor-cells": 38 + const: 0 39 + 40 + additionalProperties: false 41 + 42 + required: 43 + - compatible 44 + - reg 45 + - "#thermal-sensor-cells" 46 + 47 + examples: 48 + - | 49 + thermal@f04d1500 { 50 + compatible = "brcm,avs-tmon-bcm7445", "brcm,avs-tmon"; 51 + reg = <0xf04d1500 0x28>; 52 + interrupts = <0x6>; 53 + interrupt-names = "tmon"; 54 + interrupt-parent = <&avs_host_l2_intc>; 55 + #thermal-sensor-cells = <0>; 56 + };
+1 -1
MAINTAINERS
··· 3936 3936 M: bcm-kernel-feedback-list@broadcom.com 3937 3937 L: linux-pm@vger.kernel.org 3938 3938 S: Maintained 3939 - F: Documentation/devicetree/bindings/thermal/brcm,avs-tmon.txt 3939 + F: Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml 3940 3940 F: drivers/thermal/broadcom/brcmstb* 3941 3941 3942 3942 BROADCOM STB DPFE DRIVER