ARM: dts: imx23-sansa: Use preferred i2c-gpios properties
authorFabio Estevam <festevam@denx.de>
Thu, 7 Dec 2023 10:12:12 +0000 (07:12 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:23 +0000 (20:14 +0000)
[ Upstream commit e3aa1a82fb20ee97597022f6528823a8ab82bde6 ]

The 'gpios' property to describe the SDA and SCL GPIOs is considered
deprecated according to i2c-gpio.yaml.

Switch to the preferred 'sda-gpios' and 'scl-gpios' properties.

This fixes the following schema warnings:

imx23-sansa.dtb: i2c-0: 'sda-gpios' is a required property
from schema $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml#
imx23-sansa.dtb: i2c-0: 'scl-gpios' is a required property
from schema $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml#

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/nxp/mxs/imx23-sansa.dts

index 46057d9..c2efcc2 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "i2c-gpio";
-               gpios = <
-                       &gpio1 24 0             /* SDA */
-                       &gpio1 22 0             /* SCL */
-               >;
+               sda-gpios = <&gpio1 24 0>;
+               scl-gpios = <&gpio1 22 0>;
                i2c-gpio,delay-us = <2>;        /* ~100 kHz */
        };
 
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "i2c-gpio";
-               gpios = <
-                       &gpio0 31 0             /* SDA */
-                       &gpio0 30 0             /* SCL */
-               >;
+               sda-gpios = <&gpio0 31 0>;
+               scl-gpios = <&gpio0 30 0>;
                i2c-gpio,delay-us = <2>;        /* ~100 kHz */
 
                touch: touch@20 {