2018-07-26 07:22:28

by Patrice CHOTARD

[permalink] [raw]
Subject: [PATCH 0/4] Remove cd-inverted property for STM32Fx boards

From: Patrice Chotard <[email protected]>

This series remove cd-inverted property from STM32Fx boards DT files.
As GPIOS are used for card detect, the polarity can be indicated using
GPIO_ACTIVE_(HIGH|LOW), so cd-inverted becomes useless.

Patrice Chotard (4):
ARM: dts: stm32: Remove cd-inverted property for stm32429i-eval
ARM: dts: stm32: Remove cd-inverted property for stm32f469-disco
ARM: dts: stm32: Remove cd-inverted property for stm32f769-disco
ARM: dts: stm32: Remove cd-inverted property for stm32f746-disco

arch/arm/boot/dts/stm32429i-eval.dts | 3 +--
arch/arm/boot/dts/stm32f469-disco.dts | 3 +--
arch/arm/boot/dts/stm32f746-disco.dts | 3 +--
arch/arm/boot/dts/stm32f769-disco.dts | 3 +--
4 files changed, 4 insertions(+), 8 deletions(-)

--
1.9.1



2018-07-26 07:22:06

by Patrice CHOTARD

[permalink] [raw]
Subject: [PATCH 2/4] ARM: dts: stm32: Remove cd-inverted property for stm32f469-disco

From: Patrice Chotard <[email protected]>

Remove cd-inverted property and update cd-gpios active level
accordingly

Signed-off-by: Patrice Chotard <[email protected]>
---
arch/arm/boot/dts/stm32f469-disco.dts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
index 3ee768cb86fc..7937b43d7788 100644
--- a/arch/arm/boot/dts/stm32f469-disco.dts
+++ b/arch/arm/boot/dts/stm32f469-disco.dts
@@ -210,8 +210,7 @@
&sdio {
status = "okay";
vmmc-supply = <&mmc_vcard>;
- cd-gpios = <&gpiog 2 GPIO_ACTIVE_HIGH>;
- cd-inverted;
+ cd-gpios = <&gpiog 2 GPIO_ACTIVE_LOW>;
broken-cd;
pinctrl-names = "default", "opendrain";
pinctrl-0 = <&sdio_pins>;
--
1.9.1


2018-07-26 07:22:17

by Patrice CHOTARD

[permalink] [raw]
Subject: [PATCH 3/4] ARM: dts: stm32: Remove cd-inverted property for stm32f769-disco

From: Patrice Chotard <[email protected]>

Remove cd-inverted property and update cd-gpios active level
accordingly

Signed-off-by: Patrice Chotard <[email protected]>
---
arch/arm/boot/dts/stm32f769-disco.dts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts
index 360d3bb7da66..cd6ddef4c1da 100644
--- a/arch/arm/boot/dts/stm32f769-disco.dts
+++ b/arch/arm/boot/dts/stm32f769-disco.dts
@@ -139,8 +139,7 @@
&sdio2 {
status = "okay";
vmmc-supply = <&mmc_vcard>;
- cd-gpios = <&gpioi 15 GPIO_ACTIVE_HIGH>;
- cd-inverted;
+ cd-gpios = <&gpioi 15 GPIO_ACTIVE_LOW>;
broken-cd;
pinctrl-names = "default", "opendrain";
pinctrl-0 = <&sdio_pins_b>;
--
1.9.1


2018-07-26 07:23:00

by Patrice CHOTARD

[permalink] [raw]
Subject: [PATCH 1/4] ARM: dts: stm32: Remove cd-inverted property for stm32429i-eval

From: Patrice Chotard <[email protected]>

Remove cd-inverted property and update cd-gpios active level
accordingly

Signed-off-by: Patrice Chotard <[email protected]>
---
arch/arm/boot/dts/stm32429i-eval.dts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts
index 7eb786a2d624..ed7d7f46465e 100644
--- a/arch/arm/boot/dts/stm32429i-eval.dts
+++ b/arch/arm/boot/dts/stm32429i-eval.dts
@@ -264,8 +264,7 @@
&sdio {
status = "okay";
vmmc-supply = <&mmc_vcard>;
- cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_HIGH>;
- cd-inverted;
+ cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "opendrain";
pinctrl-0 = <&sdio_pins>;
pinctrl-1 = <&sdio_pins_od>;
--
1.9.1


2018-07-26 07:23:13

by Patrice CHOTARD

[permalink] [raw]
Subject: [PATCH 4/4] ARM: dts: stm32: Remove cd-inverted property for stm32f746-disco

From: Patrice Chotard <[email protected]>

Remove cd-inverted property and update cd-gpios active level
accordingly

Signed-off-by: Patrice Chotard <[email protected]>
---
arch/arm/boot/dts/stm32f746-disco.dts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm32f746-disco.dts
index f9ad71f7c807..e3a7bd338d61 100644
--- a/arch/arm/boot/dts/stm32f746-disco.dts
+++ b/arch/arm/boot/dts/stm32f746-disco.dts
@@ -101,8 +101,7 @@
&sdio1 {
status = "okay";
vmmc-supply = <&mmc_vcard>;
- cd-gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
- cd-inverted;
+ cd-gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "opendrain";
pinctrl-0 = <&sdio_pins_a>;
pinctrl-1 = <&sdio_pins_od_a>;
--
1.9.1


2018-09-20 12:55:17

by Alexandre Torgue

[permalink] [raw]
Subject: Re: [PATCH 0/4] Remove cd-inverted property for STM32Fx boards

Hi Patrice

On 07/26/2018 09:19 AM, [email protected] wrote:
> From: Patrice Chotard <[email protected]>
>
> This series remove cd-inverted property from STM32Fx boards DT files.
> As GPIOS are used for card detect, the polarity can be indicated using
> GPIO_ACTIVE_(HIGH|LOW), so cd-inverted becomes useless.
>
> Patrice Chotard (4):
> ARM: dts: stm32: Remove cd-inverted property for stm32429i-eval
> ARM: dts: stm32: Remove cd-inverted property for stm32f469-disco
> ARM: dts: stm32: Remove cd-inverted property for stm32f769-disco
> ARM: dts: stm32: Remove cd-inverted property for stm32f746-disco
>
> arch/arm/boot/dts/stm32429i-eval.dts | 3 +--
> arch/arm/boot/dts/stm32f469-disco.dts | 3 +--
> arch/arm/boot/dts/stm32f746-disco.dts | 3 +--
> arch/arm/boot/dts/stm32f769-disco.dts | 3 +--
> 4 files changed, 4 insertions(+), 8 deletions(-)
>

Series applied on stm32-next.

Regards
Alex