Commit 8df80c18 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Krzysztof Kozlowski

ARM: dts: exynos: Convert to new i2c-gpio bindings

The updated "i2c-gpio" driver bindings require to define the SDA and SCL
GPIO lines in the separate properties and mark both as GPIO_OPEN_DRAIN.
Covert all Exynos dts files to follow this style.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 8807d356
...@@ -57,7 +57,8 @@ vemmc_reg: voltage-regulator-0 { ...@@ -57,7 +57,8 @@ vemmc_reg: voltage-regulator-0 {
i2c_max77836: i2c-gpio-0 { i2c_max77836: i2c-gpio-0 {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpd0 2 GPIO_ACTIVE_HIGH>, <&gpd0 3 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpd0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpd0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -52,7 +52,8 @@ power_key { ...@@ -52,7 +52,8 @@ power_key {
i2c_max77836: i2c-gpio-0 { i2c_max77836: i2c-gpio-0 {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpd0 2 GPIO_ACTIVE_HIGH>, <&gpd0 3 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpd0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpd0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -128,8 +128,8 @@ i2c_max17042_fuel: i2c-gpio { ...@@ -128,8 +128,8 @@ i2c_max17042_fuel: i2c-gpio {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
sda-gpios = <&gpy4 0 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpy4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpy4 1 GPIO_ACTIVE_HIGH>; scl-gpios = <&gpy4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>; i2c-gpio,delay-us = <5>;
battery@36 { battery@36 {
......
...@@ -164,7 +164,8 @@ hdmi_en: voltage-regulator-hdmi-5v { ...@@ -164,7 +164,8 @@ hdmi_en: voltage-regulator-hdmi-5v {
hdmi_ddc: i2c-ddc { hdmi_ddc: i2c-ddc {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpe4 2 GPIO_ACTIVE_HIGH &gpe4 3 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpe4 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpe4 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <100>; i2c-gpio,delay-us = <100>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -53,7 +53,8 @@ ps_als_reg: voltage-regulator-8 { ...@@ -53,7 +53,8 @@ ps_als_reg: voltage-regulator-8 {
i2c_ak8975: i2c-gpio-0 { i2c_ak8975: i2c-gpio-0 {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpy2 4 GPIO_ACTIVE_HIGH>, <&gpy2 5 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpy2 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpy2 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <2>; i2c-gpio,delay-us = <2>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -68,7 +69,8 @@ ak8975@c { ...@@ -68,7 +69,8 @@ ak8975@c {
i2c_cm36651: i2c-gpio-2 { i2c_cm36651: i2c-gpio-2 {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpf0 0 GPIO_ACTIVE_HIGH>, <&gpf0 1 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpf0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpf0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <2>; i2c-gpio,delay-us = <2>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -140,7 +140,8 @@ key-ok { ...@@ -140,7 +140,8 @@ key-ok {
i2c_max77693: i2c-gpio-1 { i2c_max77693: i2c-gpio-1 {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpm2 0 GPIO_ACTIVE_HIGH>, <&gpm2 1 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpm2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpm2 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <2>; i2c-gpio,delay-us = <2>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -188,7 +189,8 @@ charger { ...@@ -188,7 +189,8 @@ charger {
i2c_max77693_fuel: i2c-gpio-3 { i2c_max77693_fuel: i2c-gpio-3 {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>, <&gpf1 4 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpf1 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpf1 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <2>; i2c-gpio,delay-us = <2>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -228,7 +230,8 @@ touchkey@20 { ...@@ -228,7 +230,8 @@ touchkey@20 {
i2c-mhl { i2c-mhl {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpf0 4 GPIO_ACTIVE_HIGH>, <&gpf0 6 GPIO_ACTIVE_HIGH>; sda-gpios = <&gpf0 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpf0 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <100>; i2c-gpio,delay-us = <100>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -641,9 +641,8 @@ i2c_ddc: i2c-gpio { ...@@ -641,9 +641,8 @@ i2c_ddc: i2c-gpio {
pinctrl-0 = <&i2c2_gpio_bus>; pinctrl-0 = <&i2c2_gpio_bus>;
status = "okay"; status = "okay";
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpa0 6 0 /* sda */ sda-gpios = <&gpa0 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
&gpa0 7 0 /* scl */ scl-gpios = <&gpa0 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
>;
i2c-gpio,delay-us = <2>; i2c-gpio,delay-us = <2>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
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