1
0
Fork 0

dt-bindings: thermal: add binding document for h3 thermal controller

This patch adds binding document for allwinner h3 thermal controller.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
alistair/sunxi64-5.4-dsi
Yangtao Li 2019-06-23 12:42:05 -04:00 committed by Alistair Francis
parent 6f520a8b55
commit 0a68ca7c3c
1 changed files with 26 additions and 3 deletions

View File

@ -16,6 +16,7 @@ description: |-
properties:
compatible:
enum:
- allwinner,sun8i-h3-ths
- allwinner,sun50i-h6-ths
reg:
@ -29,13 +30,22 @@ properties:
clocks:
minItems: 1
maxItems: 1
maxItems: 2
clock-names:
const: bus
items:
- const: bus
- const: ahb
'#thermal-sensor-cells':
const: 1
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:
@ -55,6 +65,19 @@ required:
- '#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";