Skip to content

Commit d1dc7ee

Browse files
Haxk20dlezcano
authored andcommitted
dt-bindings: thermal: sun8i: Add H616 THS controller
This controller is similar to the H6, but covers four sensors and uses slightly different calibration methods. Also the H616 requires to poke a bit in the SYS_CFG register range for correct operation, so add a phandle property to point there. Signed-off-by: Martin Botka <[email protected]> Signed-off-by: Andre Przywara <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Acked-by: Vasily Khoruzhick <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f8cfe02 commit d1dc7ee

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ properties:
2121
- allwinner,sun50i-a100-ths
2222
- allwinner,sun50i-h5-ths
2323
- allwinner,sun50i-h6-ths
24+
- allwinner,sun50i-h616-ths
2425

2526
clocks:
2627
minItems: 1
@@ -50,6 +51,10 @@ properties:
5051
nvmem-cell-names:
5152
const: calibration
5253

54+
allwinner,sram:
55+
maxItems: 1
56+
description: phandle to device controlling temperate offset SYS_CFG register
57+
5358
# See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for details
5459
"#thermal-sensor-cells":
5560
enum:
@@ -65,6 +70,7 @@ allOf:
6570
- allwinner,sun20i-d1-ths
6671
- allwinner,sun50i-a100-ths
6772
- allwinner,sun50i-h6-ths
73+
- allwinner,sun50i-h616-ths
6874

6975
then:
7076
properties:
@@ -82,6 +88,17 @@ allOf:
8288
clock-names:
8389
minItems: 2
8490

91+
- if:
92+
not:
93+
properties:
94+
compatible:
95+
contains:
96+
const: allwinner,sun50i-h616-ths
97+
98+
then:
99+
properties:
100+
allwinner,sram: false
101+
85102
- if:
86103
properties:
87104
compatible:
@@ -101,17 +118,12 @@ allOf:
101118
const: 1
102119

103120
- if:
104-
properties:
105-
compatible:
106-
contains:
107-
enum:
108-
- allwinner,sun8i-h3-ths
109-
- allwinner,sun8i-r40-ths
110-
- allwinner,sun20i-d1-ths
111-
- allwinner,sun50i-a64-ths
112-
- allwinner,sun50i-a100-ths
113-
- allwinner,sun50i-h5-ths
114-
- allwinner,sun50i-h6-ths
121+
not:
122+
properties:
123+
compatible:
124+
contains:
125+
enum:
126+
- allwinner,sun8i-a83t-ths
115127

116128
then:
117129
required:

0 commit comments

Comments
 (0)