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

dt-bindings: thermal: brcm,ns-thermal: Convert to the json-schema

This helps validating DTS files.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210420210104.10555-1-zajec5@gmail.com

authored by

Rafał Miłecki and committed by
Daniel Lezcano
08e9fdfb d473327f

+60 -37
-37
Documentation/devicetree/bindings/thermal/brcm,ns-thermal.txt
··· 1 - * Broadcom Northstar Thermal 2 - 3 - This binding describes thermal sensor that is part of Northstar's DMU (Device 4 - Management Unit). 5 - 6 - Required properties: 7 - - compatible : Must be "brcm,ns-thermal" 8 - - reg : iomem address range of PVTMON registers 9 - - #thermal-sensor-cells : Should be <0> 10 - 11 - Example: 12 - 13 - thermal: thermal@1800c2c0 { 14 - compatible = "brcm,ns-thermal"; 15 - reg = <0x1800c2c0 0x10>; 16 - #thermal-sensor-cells = <0>; 17 - }; 18 - 19 - thermal-zones { 20 - cpu_thermal: cpu-thermal { 21 - polling-delay-passive = <0>; 22 - polling-delay = <1000>; 23 - coefficients = <(-556) 418000>; 24 - thermal-sensors = <&thermal>; 25 - 26 - trips { 27 - cpu-crit { 28 - temperature = <125000>; 29 - hysteresis = <0>; 30 - type = "critical"; 31 - }; 32 - }; 33 - 34 - cooling-maps { 35 - }; 36 - }; 37 - };
+60
Documentation/devicetree/bindings/thermal/brcm,ns-thermal.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,ns-thermal.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom Northstar Thermal 8 + 9 + maintainers: 10 + - Rafał Miłecki <rafal@milecki.pl> 11 + 12 + description: 13 + Thermal sensor that is part of Northstar's DMU (Device Management Unit). 14 + 15 + allOf: 16 + - $ref: thermal-sensor.yaml# 17 + 18 + properties: 19 + compatible: 20 + const: brcm,ns-thermal 21 + 22 + reg: 23 + description: PVTMON registers range 24 + maxItems: 1 25 + 26 + "#thermal-sensor-cells": 27 + const: 0 28 + 29 + unevaluatedProperties: false 30 + 31 + required: 32 + - reg 33 + 34 + examples: 35 + - | 36 + thermal: thermal@1800c2c0 { 37 + compatible = "brcm,ns-thermal"; 38 + reg = <0x1800c2c0 0x10>; 39 + #thermal-sensor-cells = <0>; 40 + }; 41 + 42 + thermal-zones { 43 + cpu-thermal { 44 + polling-delay-passive = <0>; 45 + polling-delay = <1000>; 46 + coefficients = <(-556) 418000>; 47 + thermal-sensors = <&thermal>; 48 + 49 + trips { 50 + cpu-crit { 51 + temperature = <125000>; 52 + hysteresis = <0>; 53 + type = "critical"; 54 + }; 55 + }; 56 + 57 + cooling-maps { 58 + }; 59 + }; 60 + };