arm64: dts: imx8mm-venice: Fix GSC vdd_bat data size.
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Mon, 5 Jun 2023 09:04:42 +0000 (11:04 +0200)
committerShawn Guo <shawnguo@kernel.org>
Fri, 9 Jun 2023 14:18:11 +0000 (22:18 +0800)
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>
arch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7903.dts
arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts
arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts

index 72cf250d9b4f90076da7b69dafd0dc78d0964ae8..de7f67a4ff2a7fd99ff37711daa92db10e2a3952 100644 (file)
                        };
 
                        channel@8 {
-                               gw,mode = <1>;
+                               gw,mode = <3>;
                                reg = <0x08>;
                                label = "vdd_bat";
                        };
index df3b2c93d2d583e3435193ac33db3be0c6343b87..0ec2ce3dd7218f4ad4d5febb7a26383419964d4a 100644 (file)
                        };
 
                        channel@8 {
-                               gw,mode = <1>;
+                               gw,mode = <3>;
                                reg = <0x08>;
                                label = "vdd_bat";
                        };
index c33ec6826d324d123ecc1e4d5b71bf32059dceef..03cd29063312f22fac55b6aa0d5d9899e3bacead 100644 (file)
                        };
 
                        channel@8 {
-                               gw,mode = <1>;
+                               gw,mode = <3>;
                                reg = <0x08>;
                                label = "vdd_bat";
                        };
index 363020a08c9b8b6764e051ea004b27167a397944..6f26914602c8841c6dc182d1f57986bcc29b844e 100644 (file)
                        };
 
                        channel@8 {
-                               gw,mode = <1>;
+                               gw,mode = <3>;
                                reg = <0x08>;
                                label = "vdd_bat";
                        };
index 7c12518dbc96371ce1eeefb6238455322f8da247..2ddba4213001b202239085e31aaec529e3c5b5fd 100644 (file)
                        };
 
                        channel@8 {
-                               gw,mode = <1>;
+                               gw,mode = <3>;
                                reg = <0x08>;
                                label = "vdd_bat";
                        };
index eb51d648359bed38b1b4a2e87c953be82f4864ba..92514b71b5f4a99b00cf1f4b2ed0666184553d8a 100644 (file)
                        };
 
                        channel@8 {
-                               gw,mode = <1>;
+                               gw,mode = <3>;
                                reg = <0x08>;
                                label = "vdd_bat";
                        };