Commit c79d8096 authored by Nicolas Cavallari's avatar Nicolas Cavallari Committed by Shawn Guo

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: default avatarNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Acked-by: default avatarTim Harvey <tharvey@gateworks.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 71c2ac9a
......@@ -149,7 +149,7 @@ channel@6 {
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
......
......@@ -354,7 +354,7 @@ channel@6 {
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
......
......@@ -327,7 +327,7 @@ channel@6 {
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
......
......@@ -293,7 +293,7 @@ channel@6 {
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
......
......@@ -325,7 +325,7 @@ channel@6 {
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
......
......@@ -281,7 +281,7 @@ channel@6 {
};
channel@8 {
gw,mode = <1>;
gw,mode = <3>;
reg = <0x08>;
label = "vdd_bat";
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment