mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
A compatible string 'enum' mistakenly has 'const: ' in the compatible
strings. Remove these.
Fixes: 0b28594d67
("dt-bindings: thermal: Add YAML schema for sun8i-thermal driver bindings")
Cc: Vasily Khoruzhick <anarsoul@gmail.com>
Cc: Yangtao Li <tiny.windzz@gmail.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Amit Kucheria <amitk@kernel.org>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@siol.net>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20210202181538.3936235-1-robh@kernel.org
165 lines
3.3 KiB
YAML
165 lines
3.3 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/thermal/allwinner,sun8i-a83t-ths.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Allwinner SUN8I Thermal Controller Device Tree Bindings
|
|
|
|
maintainers:
|
|
- Vasily Khoruzhick <anarsoul@gmail.com>
|
|
- Yangtao Li <tiny.windzz@gmail.com>
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- allwinner,sun8i-a83t-ths
|
|
- allwinner,sun8i-h3-ths
|
|
- allwinner,sun8i-r40-ths
|
|
- allwinner,sun50i-a64-ths
|
|
- allwinner,sun50i-a100-ths
|
|
- allwinner,sun50i-h5-ths
|
|
- allwinner,sun50i-h6-ths
|
|
|
|
clocks:
|
|
minItems: 1
|
|
maxItems: 2
|
|
items:
|
|
- description: Bus Clock
|
|
- description: Module Clock
|
|
|
|
clock-names:
|
|
minItems: 1
|
|
maxItems: 2
|
|
items:
|
|
- const: bus
|
|
- const: mod
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
nvmem-cells:
|
|
maxItems: 1
|
|
description: Calibration data for thermal sensors
|
|
|
|
nvmem-cell-names:
|
|
const: calibration
|
|
|
|
# See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for details
|
|
"#thermal-sensor-cells":
|
|
enum:
|
|
- 0
|
|
- 1
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- allwinner,sun50i-a100-ths
|
|
- allwinner,sun50i-h6-ths
|
|
|
|
then:
|
|
properties:
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
clock-names:
|
|
maxItems: 1
|
|
|
|
else:
|
|
properties:
|
|
clocks:
|
|
minItems: 2
|
|
|
|
clock-names:
|
|
minItems: 2
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: allwinner,sun8i-h3-ths
|
|
|
|
then:
|
|
properties:
|
|
"#thermal-sensor-cells":
|
|
const: 0
|
|
|
|
else:
|
|
properties:
|
|
"#thermal-sensor-cells":
|
|
const: 1
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- allwinner,sun8i-h3-ths
|
|
- allwinner,sun8i-r40-ths
|
|
- allwinner,sun50i-a64-ths
|
|
- allwinner,sun50i-a100-ths
|
|
- allwinner,sun50i-h5-ths
|
|
- allwinner,sun50i-h6-ths
|
|
|
|
then:
|
|
required:
|
|
- clocks
|
|
- clock-names
|
|
- resets
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- '#thermal-sensor-cells'
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
thermal-sensor@1f04000 {
|
|
compatible = "allwinner,sun8i-a83t-ths";
|
|
reg = <0x01f04000 0x100>;
|
|
interrupts = <0 31 0>;
|
|
nvmem-cells = <&ths_calibration>;
|
|
nvmem-cell-names = "calibration";
|
|
#thermal-sensor-cells = <1>;
|
|
};
|
|
|
|
- |
|
|
thermal-sensor@1c25000 {
|
|
compatible = "allwinner,sun8i-h3-ths";
|
|
reg = <0x01c25000 0x400>;
|
|
clocks = <&ccu 0>, <&ccu 1>;
|
|
clock-names = "bus", "mod";
|
|
resets = <&ccu 2>;
|
|
interrupts = <0 31 0>;
|
|
nvmem-cells = <&ths_calibration>;
|
|
nvmem-cell-names = "calibration";
|
|
#thermal-sensor-cells = <0>;
|
|
};
|
|
|
|
- |
|
|
thermal-sensor@5070400 {
|
|
compatible = "allwinner,sun50i-h6-ths";
|
|
reg = <0x05070400 0x100>;
|
|
clocks = <&ccu 0>;
|
|
clock-names = "bus";
|
|
resets = <&ccu 2>;
|
|
interrupts = <0 15 0>;
|
|
nvmem-cells = <&ths_calibration>;
|
|
nvmem-cell-names = "calibration";
|
|
#thermal-sensor-cells = <1>;
|
|
};
|
|
|
|
...
|