ARM: dts: imx51-zii-rdu1: Use preferred i2c-gpios properties
authorFabio Estevam <festevam@denx.de>
Tue, 12 Sep 2023 21:38:37 +0000 (18:38 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 25 Sep 2023 02:35:05 +0000 (10:35 +0800)
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:

imx51-zii-rdu1.dtb: i2c-gpio: 'sda-gpios' is a required property
from schema $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml#
imx51-zii-rdu1.dtb: i2c-gpio: '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>
arch/arm/boot/dts/nxp/imx/imx51-zii-rdu1.dts

index 5d4b29d765853ed27d581bde482596da5e7d84a0..7cd17b43b4b26f252c03ef2237bcce35d9f85f09 100644 (file)
                compatible = "i2c-gpio";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_swi2c>;
-               gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>, /* sda */
-                       <&gpio3 4 GPIO_ACTIVE_HIGH>; /* scl */
+               sda-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+               scl-gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
                i2c-gpio,delay-us = <50>;
                status = "okay";