Commit 0c64f75d authored by Maxime Ripard's avatar Maxime Ripard

ARM: dts: sunxi: Switch to new GPIOs properties for i2c-gpio

The i2c-gpio driver uses named gpios now and the array of GPIOs is
deprecated. Switch to the new binding.
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
parent 5400cdc1
...@@ -58,13 +58,13 @@ chosen { ...@@ -58,13 +58,13 @@ chosen {
/delete-property/stdout-path; /delete-property/stdout-path;
}; };
i2c_lcd: i2c-gpio { i2c_lcd: i2c {
/* The lcd panel i2c interface is hooked up via gpios */ /* The lcd panel i2c interface is hooked up via gpios */
compatible = "i2c-gpio"; compatible = "i2c-gpio";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&i2c_lcd_pins>; pinctrl-0 = <&i2c_lcd_pins>;
gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>, /* PG12, sda */ sda-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
<&pio 6 10 GPIO_ACTIVE_HIGH>; /* PG10, scl */ scl-gpios = <&pio 6 10 GPIO_ACTIVE_HIGH>; /* PG10 */
i2c-gpio,delay-us = <5>; i2c-gpio,delay-us = <5>;
}; };
}; };
......
...@@ -65,8 +65,8 @@ i2c_lcd: i2c { ...@@ -65,8 +65,8 @@ i2c_lcd: i2c {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&i2c_lcd_pins>; pinctrl-0 = <&i2c_lcd_pins>;
gpios = <&pio 0 23 GPIO_ACTIVE_HIGH>, /* PA23, sda */ sda-gpios = <&pio 0 23 GPIO_ACTIVE_HIGH>; /* PA23 */
<&pio 0 24 GPIO_ACTIVE_HIGH>; /* PA24, scl */ scl-gpios = <&pio 0 24 GPIO_ACTIVE_HIGH>; /* PA24 */
i2c-gpio,delay-us = <5>; i2c-gpio,delay-us = <5>;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment