Skip to content

Commit 88071e3

Browse files
AaronDotdlezcano
authored andcommitted
dt-bindings: thermal: loongson,ls2k-thermal: Fix binding check issues
Add the missing 'thermal-sensor-cells' property which is required for every thermal sensor as it's used when using phandles. And add the thermal-sensor.yaml reference. In fact, it was a careless mistake when submitting the driver that caused it to not work properly. So the fix is necessary, although it will result in the ABI break. Fixes: 72684d9 ("thermal: dt-bindings: add loongson-2 thermal") Cc: Yinbo Zhu <[email protected]> Signed-off-by: Binbin Zhou <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/6d69362632271ab0af9a5fbfa3bc46a0894f1d54.1700817227.git.zhoubinbin@loongson.cn
1 parent 788494b commit 88071e3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ maintainers:
1010
- zhanghongchen <[email protected]>
1111
- Yinbo Zhu <[email protected]>
1212

13+
allOf:
14+
- $ref: /schemas/thermal/thermal-sensor.yaml#
15+
1316
properties:
1417
compatible:
1518
oneOf:
@@ -26,12 +29,16 @@ properties:
2629
interrupts:
2730
maxItems: 1
2831

32+
'#thermal-sensor-cells':
33+
const: 1
34+
2935
required:
3036
- compatible
3137
- reg
3238
- interrupts
39+
- '#thermal-sensor-cells'
3340

34-
additionalProperties: false
41+
unevaluatedProperties: false
3542

3643
examples:
3744
- |
@@ -41,4 +48,5 @@ examples:
4148
reg = <0x1fe01500 0x30>;
4249
interrupt-parent = <&liointc0>;
4350
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
51+
#thermal-sensor-cells = <1>;
4452
};

0 commit comments

Comments
 (0)