mirror of https://github.com/torvalds/linux.git
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
This commit is contained in:
parent
d473327f8f
commit
08e9fdfbb2
|
|
@ -1,37 +0,0 @@
|
||||||
* Broadcom Northstar Thermal
|
|
||||||
|
|
||||||
This binding describes thermal sensor that is part of Northstar's DMU (Device
|
|
||||||
Management Unit).
|
|
||||||
|
|
||||||
Required properties:
|
|
||||||
- compatible : Must be "brcm,ns-thermal"
|
|
||||||
- reg : iomem address range of PVTMON registers
|
|
||||||
- #thermal-sensor-cells : Should be <0>
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
thermal: thermal@1800c2c0 {
|
|
||||||
compatible = "brcm,ns-thermal";
|
|
||||||
reg = <0x1800c2c0 0x10>;
|
|
||||||
#thermal-sensor-cells = <0>;
|
|
||||||
};
|
|
||||||
|
|
||||||
thermal-zones {
|
|
||||||
cpu_thermal: cpu-thermal {
|
|
||||||
polling-delay-passive = <0>;
|
|
||||||
polling-delay = <1000>;
|
|
||||||
coefficients = <(-556) 418000>;
|
|
||||||
thermal-sensors = <&thermal>;
|
|
||||||
|
|
||||||
trips {
|
|
||||||
cpu-crit {
|
|
||||||
temperature = <125000>;
|
|
||||||
hysteresis = <0>;
|
|
||||||
type = "critical";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
cooling-maps {
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
@ -0,0 +1,60 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/thermal/brcm,ns-thermal.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: Broadcom Northstar Thermal
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Rafał Miłecki <rafal@milecki.pl>
|
||||||
|
|
||||||
|
description:
|
||||||
|
Thermal sensor that is part of Northstar's DMU (Device Management Unit).
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: thermal-sensor.yaml#
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
const: brcm,ns-thermal
|
||||||
|
|
||||||
|
reg:
|
||||||
|
description: PVTMON registers range
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
"#thermal-sensor-cells":
|
||||||
|
const: 0
|
||||||
|
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
|
required:
|
||||||
|
- reg
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
thermal: thermal@1800c2c0 {
|
||||||
|
compatible = "brcm,ns-thermal";
|
||||||
|
reg = <0x1800c2c0 0x10>;
|
||||||
|
#thermal-sensor-cells = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
thermal-zones {
|
||||||
|
cpu-thermal {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <1000>;
|
||||||
|
coefficients = <(-556) 418000>;
|
||||||
|
thermal-sensors = <&thermal>;
|
||||||
|
|
||||||
|
trips {
|
||||||
|
cpu-crit {
|
||||||
|
temperature = <125000>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "critical";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cooling-maps {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue