arm64: dts: imx8mm-venice: Fix GSC vdd_bat data size.

On these boards, vdd_bat is 16bit, not 24bit.  Reading them as 24bit
values yield garbage values because of the additional byte, which is a
configurable fan trippoint[1].

So set their mode to mode_voltage_16bit = 3 instead of
mode_voltage_24bit = 1.

[1]: http://trac.gateworks.com/wiki/gsc#SystemTemperatureandVoltageMonitor

Only tested on GW7100.

Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Acked-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
Nicolas Cavallari
2023-06-09 22:18:11 +08:00
committed by Shawn Guo
parent 71c2ac9a2a
commit c79d809603
6 changed files with 6 additions and 6 deletions
@@ -149,7 +149,7 @@
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
@@ -354,7 +354,7 @@
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
@@ -327,7 +327,7 @@
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
@@ -293,7 +293,7 @@
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
@@ -325,7 +325,7 @@
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
@@ -281,7 +281,7 @@
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};