95 lines
2.0 KiB
YAML
95 lines
2.0 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/thermal/sun8i-thermal.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Allwinner SUN8I Thermal Controller Device Tree Bindings
|
|
|
|
maintainers:
|
|
- Yangtao Li <tiny.windzz@gmail.com>
|
|
|
|
description: |-
|
|
This describes the device tree binding for the Allwinner thermal
|
|
controller which measures the on-SoC temperatures.
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- allwinner,sun8i-h3-ths
|
|
- allwinner,sun50i-h6-ths
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
minItems: 1
|
|
maxItems: 2
|
|
|
|
clock-names:
|
|
items:
|
|
- const: bus
|
|
- const: ahb
|
|
|
|
'#thermal-sensor-cells':
|
|
enum: [ 0, 1 ]
|
|
description: |
|
|
Definition depends on soc version:
|
|
|
|
For "allwinner,sun8i-h3-ths",
|
|
value must be 0.
|
|
For "allwinner,sun50i-h6-ths",
|
|
value must be 1.
|
|
|
|
nvmem-cells:
|
|
items:
|
|
- description: ths calibrate data
|
|
|
|
nvmem-cell-names:
|
|
items:
|
|
- const: calib
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- reset
|
|
- clocks
|
|
- clock-names
|
|
- interrupts
|
|
- '#thermal-sensor-cells'
|
|
|
|
examples:
|
|
- |
|
|
ths: ths@1c25000 {
|
|
compatible = "allwinner,sun8i-h3-ths";
|
|
reg = <0x01c25000 0x400>;
|
|
clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
|
|
clock-names = "bus", "ahb";
|
|
resets = <&ccu RST_BUS_THS>;
|
|
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
|
|
nvmem-cells = <&tsen_calib>;
|
|
nvmem-cell-names = "calib";
|
|
#thermal-sensor-cells = <0>;
|
|
};
|
|
|
|
- |
|
|
ths: ths@5070400 {
|
|
compatible = "allwinner,sun50i-h6-ths";
|
|
reg = <0x05070400 0x100>;
|
|
clocks = <&ccu CLK_BUS_THS>;
|
|
clock-names = "bus";
|
|
resets = <&ccu RST_BUS_THS>;
|
|
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
|
|
nvmem-cells = <&tsen_calib>;
|
|
nvmem-cell-names = "calib";
|
|
#thermal-sensor-cells = <1>;
|
|
};
|
|
|
|
...
|