ARM: dts: imx6ul-tx6ul: Use preferred i2c-gpios properties
authorFabio Estevam <festevam@gmail.com>
Tue, 12 Sep 2023 21:38:36 +0000 (18:38 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 25 Sep 2023 02:34:53 +0000 (10:34 +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:

imx6ul-tx6ul-0011.dtb: i2c-gpio: 'sda-gpios' is a required property
from schema $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml#
imx6ul-tx6ul-0011.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@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6ul-tx6ul.dtsi

index 6bd90473050b002ea6fd20a369788ff1f48ed6e6..1db146ac1c176b9ebf31d7b6d8d944c6bd0d822b 100644 (file)
                #size-cells = <0>;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_i2c_gpio>;
-               gpios = <
-                       &gpio5 1 GPIO_ACTIVE_HIGH /* SDA */
-                       &gpio5 0 GPIO_ACTIVE_HIGH /* SCL */
-               >;
+               sda-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
+               scl-gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;
                clock-frequency = <400000>;
                status = "okay";