diff mbox series

ARM: dts: imx23-sansa: Use preferred i2c-gpios properties

Message ID 20231207101212.2495648-1-festevam@gmail.com (mailing list archive)
State New, archived
Headers show
Series ARM: dts: imx23-sansa: Use preferred i2c-gpios properties | expand

Commit Message

Fabio Estevam Dec. 7, 2023, 10:12 a.m. UTC
From: Fabio Estevam <festevam@denx.de>

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>
---
 arch/arm/boot/dts/nxp/mxs/imx23-sansa.dts | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

Comments

Shawn Guo Dec. 14, 2023, 2:11 a.m. UTC | #1
On Thu, Dec 07, 2023 at 07:12:12AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> 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>

Applied, thanks!
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/nxp/mxs/imx23-sansa.dts b/arch/arm/boot/dts/nxp/mxs/imx23-sansa.dts
index 636cf09a2b37..b23e7ada9c80 100644
--- a/arch/arm/boot/dts/nxp/mxs/imx23-sansa.dts
+++ b/arch/arm/boot/dts/nxp/mxs/imx23-sansa.dts
@@ -175,10 +175,8 @@  i2c-0 {
 		#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 */
 	};
 
@@ -186,10 +184,8 @@  i2c-1 {
 		#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 {