* [PATCH v2 1/4] ARM: dts: armadillo800eva: Convert to named i2c-gpio bindings
2017-11-30 12:57 [PATCH v2 0/4] ARM: dts: renesas: Convert to named i2c-gpio bindings Geert Uytterhoeven
@ 2017-11-30 12:57 ` Geert Uytterhoeven
2017-12-02 15:26 ` Linus Walleij
2017-11-30 12:57 ` [PATCH v2 2/4] ARM: dts: lager: " Geert Uytterhoeven
` (3 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2017-11-30 12:57 UTC (permalink / raw)
To: linux-arm-kernel
Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
more error-prone unnamed variant.
Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
flags, which were implicitly assumed before.
The latter gets rid of the message:
gpio-208 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
gpio-91 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- Add GPIO_OPEN_DRAIN to the GPIO flags,
- Reword.
---
arch/arm/boot/dts/r8a7740-armadillo800eva.dts | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva.dts b/arch/arm/boot/dts/r8a7740-armadillo800eva.dts
index 8c85d3ee5f5e7bfd..527c60bafbcface0 100644
--- a/arch/arm/boot/dts/r8a7740-armadillo800eva.dts
+++ b/arch/arm/boot/dts/r8a7740-armadillo800eva.dts
@@ -138,9 +138,8 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "i2c-gpio";
- gpios = <&pfc 208 GPIO_ACTIVE_HIGH /* sda */
- &pfc 91 GPIO_ACTIVE_HIGH /* scl */
- >;
+ sda-gpios = <&pfc 208 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ scl-gpios = <&pfc 91 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>;
};
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH v2 1/4] ARM: dts: armadillo800eva: Convert to named i2c-gpio bindings
2017-11-30 12:57 ` [PATCH v2 1/4] ARM: dts: armadillo800eva: " Geert Uytterhoeven
@ 2017-12-02 15:26 ` Linus Walleij
0 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2017-12-02 15:26 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 30, 2017 at 1:57 PM, Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
> named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
> gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
> more error-prone unnamed variant.
>
> Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
> flags, which were implicitly assumed before.
>
> The latter gets rid of the message:
>
> gpio-208 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
> gpio-91 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 2/4] ARM: dts: lager: Convert to named i2c-gpio bindings
2017-11-30 12:57 [PATCH v2 0/4] ARM: dts: renesas: Convert to named i2c-gpio bindings Geert Uytterhoeven
2017-11-30 12:57 ` [PATCH v2 1/4] ARM: dts: armadillo800eva: " Geert Uytterhoeven
@ 2017-11-30 12:57 ` Geert Uytterhoeven
2017-12-02 15:25 ` Linus Walleij
2017-11-30 12:57 ` [PATCH v2 3/4] ARM: dts: koelsch: " Geert Uytterhoeven
` (2 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2017-11-30 12:57 UTC (permalink / raw)
To: linux-arm-kernel
Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
more error-prone unnamed variant.
Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
flags, which were implicitly assumed before.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- New.
---
arch/arm/boot/dts/r8a7790-lager.dts | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index e3d27783b6b56b42..f2ea632381e7d1af 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -272,9 +272,8 @@
#size-cells = <0>;
compatible = "i2c-gpio";
status = "disabled";
- gpios = <&gpio1 17 GPIO_ACTIVE_HIGH /* sda */
- &gpio1 16 GPIO_ACTIVE_HIGH /* scl */
- >;
+ sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>;
};
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH v2 2/4] ARM: dts: lager: Convert to named i2c-gpio bindings
2017-11-30 12:57 ` [PATCH v2 2/4] ARM: dts: lager: " Geert Uytterhoeven
@ 2017-12-02 15:25 ` Linus Walleij
0 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2017-12-02 15:25 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 30, 2017 at 1:57 PM, Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
> named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
> gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
> more error-prone unnamed variant.
>
> Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
> flags, which were implicitly assumed before.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 3/4] ARM: dts: koelsch: Convert to named i2c-gpio bindings
2017-11-30 12:57 [PATCH v2 0/4] ARM: dts: renesas: Convert to named i2c-gpio bindings Geert Uytterhoeven
2017-11-30 12:57 ` [PATCH v2 1/4] ARM: dts: armadillo800eva: " Geert Uytterhoeven
2017-11-30 12:57 ` [PATCH v2 2/4] ARM: dts: lager: " Geert Uytterhoeven
@ 2017-11-30 12:57 ` Geert Uytterhoeven
2017-12-02 15:26 ` Linus Walleij
2017-11-30 12:57 ` [PATCH v2 4/4] ARM: dts: alt: " Geert Uytterhoeven
2017-12-01 8:18 ` [PATCH v2 0/4] ARM: dts: renesas: " Simon Horman
4 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2017-11-30 12:57 UTC (permalink / raw)
To: linux-arm-kernel
Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
more error-prone unnamed variant.
Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
flags, which were implicitly assumed before.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- New.
---
arch/arm/boot/dts/r8a7791-koelsch.dts | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts
index fac9cdea49650591..a50924d12b6f37d5 100644
--- a/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
@@ -312,9 +312,8 @@
#size-cells = <0>;
compatible = "i2c-gpio";
status = "disabled";
- gpios = <&gpio7 16 GPIO_ACTIVE_HIGH /* sda */
- &gpio7 15 GPIO_ACTIVE_HIGH /* scl */
- >;
+ sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>;
};
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH v2 3/4] ARM: dts: koelsch: Convert to named i2c-gpio bindings
2017-11-30 12:57 ` [PATCH v2 3/4] ARM: dts: koelsch: " Geert Uytterhoeven
@ 2017-12-02 15:26 ` Linus Walleij
0 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2017-12-02 15:26 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 30, 2017 at 1:57 PM, Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
> named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
> gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
> more error-prone unnamed variant.
>
> Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
> flags, which were implicitly assumed before.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 4/4] ARM: dts: alt: Convert to named i2c-gpio bindings
2017-11-30 12:57 [PATCH v2 0/4] ARM: dts: renesas: Convert to named i2c-gpio bindings Geert Uytterhoeven
` (2 preceding siblings ...)
2017-11-30 12:57 ` [PATCH v2 3/4] ARM: dts: koelsch: " Geert Uytterhoeven
@ 2017-11-30 12:57 ` Geert Uytterhoeven
2017-12-02 15:25 ` Linus Walleij
2017-12-01 8:18 ` [PATCH v2 0/4] ARM: dts: renesas: " Simon Horman
4 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2017-11-30 12:57 UTC (permalink / raw)
To: linux-arm-kernel
Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
more error-prone unnamed variant.
Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
flags, which were implicitly assumed before.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- New.
---
arch/arm/boot/dts/r8a7794-alt.dts | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts
index bd98790d964e13a7..60c6515c499660eb 100644
--- a/arch/arm/boot/dts/r8a7794-alt.dts
+++ b/arch/arm/boot/dts/r8a7794-alt.dts
@@ -143,9 +143,8 @@
#size-cells = <0>;
compatible = "i2c-gpio";
status = "disabled";
- gpios = <&gpio4 9 GPIO_ACTIVE_HIGH /* sda */
- &gpio4 8 GPIO_ACTIVE_HIGH /* scl */
- >;
+ sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <5>;
};
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH v2 4/4] ARM: dts: alt: Convert to named i2c-gpio bindings
2017-11-30 12:57 ` [PATCH v2 4/4] ARM: dts: alt: " Geert Uytterhoeven
@ 2017-12-02 15:25 ` Linus Walleij
0 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2017-12-02 15:25 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 30, 2017 at 1:57 PM, Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
> named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
> gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
> more error-prone unnamed variant.
>
> Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
> flags, which were implicitly assumed before.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 0/4] ARM: dts: renesas: Convert to named i2c-gpio bindings
2017-11-30 12:57 [PATCH v2 0/4] ARM: dts: renesas: Convert to named i2c-gpio bindings Geert Uytterhoeven
` (3 preceding siblings ...)
2017-11-30 12:57 ` [PATCH v2 4/4] ARM: dts: alt: " Geert Uytterhoeven
@ 2017-12-01 8:18 ` Simon Horman
2017-12-01 11:09 ` Wolfram Sang
4 siblings, 1 reply; 12+ messages in thread
From: Simon Horman @ 2017-12-01 8:18 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 30, 2017 at 01:57:22PM +0100, Geert Uytterhoeven wrote:
> Hi Simon, Magnus,
>
> Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
> named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
> gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
> more error-prone unnamed variant.
>
> This patch series switches all Renesas boards to the new bindings, and
> adds the missing GPIO_OPEN_DRAIN I/O flags, which were implicitly
> assumed before. The latter gets rid of messages like:
>
> gpio-208 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
> gpio-91 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
>
> Patch 1 was extracted from series "[PATCH/RFC 0/3] i2c: gpio: Add
> support for named gpios in DT", hence the v2. All other patches are
> new.
>
> Note that after this series is applied, the i2c-gpio buses are no longer
> detected when booting new DTBs on old (v4.14 and older) kernels, which
> should not be an issue. Booting old DTBs on new kernels is not
> affected.
>
> Thanks for applying!
Thanks, applied.
^ permalink raw reply [flat|nested] 12+ messages in thread* [PATCH v2 0/4] ARM: dts: renesas: Convert to named i2c-gpio bindings
2017-12-01 8:18 ` [PATCH v2 0/4] ARM: dts: renesas: " Simon Horman
@ 2017-12-01 11:09 ` Wolfram Sang
2017-12-04 8:35 ` Simon Horman
0 siblings, 1 reply; 12+ messages in thread
From: Wolfram Sang @ 2017-12-01 11:09 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Dec 01, 2017 at 09:18:55AM +0100, Simon Horman wrote:
> On Thu, Nov 30, 2017 at 01:57:22PM +0100, Geert Uytterhoeven wrote:
> > Hi Simon, Magnus,
> >
> > Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
> > named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
> > gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
> > more error-prone unnamed variant.
> >
> > This patch series switches all Renesas boards to the new bindings, and
> > adds the missing GPIO_OPEN_DRAIN I/O flags, which were implicitly
> > assumed before. The latter gets rid of messages like:
> >
> > gpio-208 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
> > gpio-91 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
> >
> > Patch 1 was extracted from series "[PATCH/RFC 0/3] i2c: gpio: Add
> > support for named gpios in DT", hence the v2. All other patches are
> > new.
> >
> > Note that after this series is applied, the i2c-gpio buses are no longer
> > detected when booting new DTBs on old (v4.14 and older) kernels, which
> > should not be an issue. Booting old DTBs on new kernels is not
> > affected.
> >
> > Thanks for applying!
>
> Thanks, applied.
Phew, you guys are fast. For the record:
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171201/85d3a398/attachment.sig>
^ permalink raw reply [flat|nested] 12+ messages in thread* [PATCH v2 0/4] ARM: dts: renesas: Convert to named i2c-gpio bindings
2017-12-01 11:09 ` Wolfram Sang
@ 2017-12-04 8:35 ` Simon Horman
0 siblings, 0 replies; 12+ messages in thread
From: Simon Horman @ 2017-12-04 8:35 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Dec 01, 2017 at 12:09:08PM +0100, Wolfram Sang wrote:
> On Fri, Dec 01, 2017 at 09:18:55AM +0100, Simon Horman wrote:
> > On Thu, Nov 30, 2017 at 01:57:22PM +0100, Geert Uytterhoeven wrote:
> > > Hi Simon, Magnus,
> > >
> > > Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
> > > named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
> > > gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
> > > more error-prone unnamed variant.
> > >
> > > This patch series switches all Renesas boards to the new bindings, and
> > > adds the missing GPIO_OPEN_DRAIN I/O flags, which were implicitly
> > > assumed before. The latter gets rid of messages like:
> > >
> > > gpio-208 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
> > > gpio-91 (?): enforced open drain please flag it properly in DT/ACPI DSDT/board file
> > >
> > > Patch 1 was extracted from series "[PATCH/RFC 0/3] i2c: gpio: Add
> > > support for named gpios in DT", hence the v2. All other patches are
> > > new.
> > >
> > > Note that after this series is applied, the i2c-gpio buses are no longer
> > > detected when booting new DTBs on old (v4.14 and older) kernels, which
> > > should not be an issue. Booting old DTBs on new kernels is not
> > > affected.
> > >
> > > Thanks for applying!
> >
> > Thanks, applied.
>
> Phew, you guys are fast. For the record:
>
> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Thanks, I'll see about adding your tag.
^ permalink raw reply [flat|nested] 12+ messages in thread