dt-bindings: thermal: loongson,ls2k-thermal: Fix incorrect compatible definition
authorBinbin Zhou <zhoubinbin@loongson.cn>
Tue, 23 Apr 2024 01:59:02 +0000 (09:59 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Apr 2024 10:40:30 +0000 (12:40 +0200)
commitc8c4353685778e75e186103411e9d01a4a3f2b90
tree49c3104396d722df3f99c59515fa2babeb3dae8c
parent25c7d8472f6e90390931e93f59135478af3e5d86
dt-bindings: thermal: loongson,ls2k-thermal: Fix incorrect compatible definition

The temperature output register of the Loongson-2K2000 is defined in the
chip configuration domain, which is different from the Loongson-2K1000,
so it can't be fallbacked.

We need to use two groups of registers to describe it: the first group
is the high and low temperature threshold setting register; the second
group is the temperature output register.

It is true that this fix will cause ABI corruption, but it is necessary
otherwise the Loongson-2K2000 temperature sensor will not work properly.

Fixes: 72684d99a854 ("thermal: dt-bindings: add loongson-2 thermal")
Cc: Yinbo Zhu <zhuyinbo@loongson.cn>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/5198999d679f1a1c3457385acb9fadfc85da1f1e.1713837379.git.zhoubinbin@loongson.cn
Documentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml