mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-11 20:05:22 +02:00
dt-bindings: thermal: loongson,ls2k-thermal: Fix binding check issues
[ Upstream commit88071e31e9
] 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:72684d99a8
("thermal: dt-bindings: add loongson-2 thermal") Cc: Yinbo Zhu <zhuyinbo@loongson.cn> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/6d69362632271ab0af9a5fbfa3bc46a0894f1d54.1700817227.git.zhoubinbin@loongson.cn Stable-dep-of:c8c4353685
("dt-bindings: thermal: loongson,ls2k-thermal: Fix incorrect compatible definition") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2d5ca6e4a2
commit
27cacfc081
|
@ -10,6 +10,9 @@ maintainers:
|
||||||
- zhanghongchen <zhanghongchen@loongson.cn>
|
- zhanghongchen <zhanghongchen@loongson.cn>
|
||||||
- Yinbo Zhu <zhuyinbo@loongson.cn>
|
- Yinbo Zhu <zhuyinbo@loongson.cn>
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: /schemas/thermal/thermal-sensor.yaml#
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
oneOf:
|
oneOf:
|
||||||
|
@ -26,12 +29,16 @@ properties:
|
||||||
interrupts:
|
interrupts:
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
|
'#thermal-sensor-cells':
|
||||||
|
const: 1
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
- reg
|
- reg
|
||||||
- interrupts
|
- interrupts
|
||||||
|
- '#thermal-sensor-cells'
|
||||||
|
|
||||||
additionalProperties: false
|
unevaluatedProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- |
|
- |
|
||||||
|
@ -41,4 +48,5 @@ examples:
|
||||||
reg = <0x1fe01500 0x30>;
|
reg = <0x1fe01500 0x30>;
|
||||||
interrupt-parent = <&liointc0>;
|
interrupt-parent = <&liointc0>;
|
||||||
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
|
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
|
||||||
|
#thermal-sensor-cells = <1>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user