]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: imx6: change voltage-divider's io-channel-cells to 1
authorFrank Li <Frank.Li@nxp.com>
Thu, 16 Oct 2025 16:00:10 +0000 (12:00 -0400)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Oct 2025 06:42:54 +0000 (14:42 +0800)
Change voltage-divider's io-channel-cells to 1 to fix below CHECK_DTBS
warnings:
arch/arm/boot/dts/nxp/imx/imx6dl-plym2m.dtb: voltage-divider-vaccu (voltage-divider): #io-channel-cells: 1 was expected
        from schema $id: http://devicetree.org/schemas/iio/afe/voltage-divider.yaml

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6dl-prtvt7.dts
arch/arm/boot/dts/nxp/imx/imx6dl-victgo.dts

index c9dc48c1f9b1c36e33a55c64b9fa64262f011f8e..353f7097cb7e0256c7c89a36cb7568f229370f4b 100644 (file)
@@ -55,7 +55,7 @@
 
        iio-hwmon {
                compatible = "iio-hwmon";
-               io-channels = <&vdiv_vaccu>;
+               io-channels = <&vdiv_vaccu 0>;
        };
 
        keys {
                io-channels = <&adc_ts 2>;
                output-ohms = <2500>;
                full-ohms = <64000>;
-               #io-channel-cells = <0>;
+               #io-channel-cells = <1>;
        };
 };
 
index e258e7b3b3fe792d061002a6b70bef4b22c5e89e..76b0007d20ad22eee738ab40ed126435a8fd17fd 100644 (file)
@@ -35,7 +35,7 @@
 
        iio-hwmon {
                compatible = "iio-hwmon";
-               io-channels = <&vdiv_vaccu>, <&vdiv_hitch_pos>;
+               io-channels = <&vdiv_vaccu 0>, <&vdiv_hitch_pos 0>;
        };
 
        panel {
                io-channels = <&adc_ts 2>;
                output-ohms = <2500>;
                full-ohms = <64000>;
-               #io-channel-cells = <0>;
+               #io-channel-cells = <1>;
        };
 
        vdiv_hitch_pos: voltage-divider-hitch-pos {
                io-channels = <&adc_ts 6>;
                output-ohms = <3300>;
                full-ohms = <13300>;
-               #io-channel-cells = <0>;
+               #io-channel-cells = <1>;
        };
 };