* [PATCH] ARM: dts: stm32: Consistently enable internal pull-ups for SD bus
@ 2020-10-09 21:07 Marek Vasut
[not found] ` <de661f344d554feb9e14a78e742e9bb1@SFHDAG2NODE3.st.com>
0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2020-10-09 21:07 UTC (permalink / raw)
To: u-boot
The default state of SD bus and clock line is logical HI. SD card IO is
open-drain and pulls the bus lines LO. Always enable the SD bus pull ups
to guarantee this behavior. Note that on systems with bus voltage level
shifter on the SD bus, the pull ups might also be built into the level
shifter, however that should have no negative impact.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
---
arch/arm/dts/stm32mp15-pinctrl.dtsi | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/dts/stm32mp15-pinctrl.dtsi b/arch/arm/dts/stm32mp15-pinctrl.dtsi
index 154832983c..2f8ff44a7a 100644
--- a/arch/arm/dts/stm32mp15-pinctrl.dtsi
+++ b/arch/arm/dts/stm32mp15-pinctrl.dtsi
@@ -1184,13 +1184,13 @@
<STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
slew-rate = <1>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
pins2 {
pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
slew-rate = <2>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
};
@@ -1340,13 +1340,13 @@
<STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
slew-rate = <1>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
pins2 {
pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
slew-rate = <2>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
};
--
2.28.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ARM: dts: stm32: Consistently enable internal pull-ups for SD bus
[not found] ` <de661f344d554feb9e14a78e742e9bb1@SFHDAG2NODE3.st.com>
@ 2020-12-09 10:22 ` Patrick DELAUNAY
2020-12-09 13:57 ` Marek Vasut
0 siblings, 1 reply; 4+ messages in thread
From: Patrick DELAUNAY @ 2020-12-09 10:22 UTC (permalink / raw)
To: u-boot
Hi Marek,
On 12/9/20 11:11 AM, Patrick DELAUNAY wrote:
> From: Marek Vasut <marex@denx.de>
> Sent: vendredi 9 octobre 2020 23:08
>
> The default state of SD bus and clock line is logical HI. SD card IO is open-drain and pulls the bus lines LO. Always enable the SD bus pull ups to guarantee this behavior. Note that on systems with bus voltage level shifter on the SD bus, the pull ups might also be built into the level shifter, however that should have no negative impact.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Patrice Chotard <patrice.chotard@st.com>
> Cc: Patrick Delaunay <patrick.delaunay@st.com>
> ---
> arch/arm/dts/stm32mp15-pinctrl.dtsi | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/dts/stm32mp15-pinctrl.dtsi b/arch/arm/dts/stm32mp15-pinctrl.dtsi
> index 154832983c..2f8ff44a7a 100644
> --- a/arch/arm/dts/stm32mp15-pinctrl.dtsi
> +++ b/arch/arm/dts/stm32mp15-pinctrl.dtsi
> @@ -1184,13 +1184,13 @@
> <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
> slew-rate = <1>;
> drive-push-pull;
> - bias-disable;
> + bias-pull-up;
> };
> pins2 {
> pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
> slew-rate = <2>;
> drive-push-pull;
> - bias-disable;
> + bias-pull-up;
> };
> };
>
> @@ -1340,13 +1340,13 @@
> <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
> slew-rate = <1>;
> drive-push-pull;
> - bias-disable;
> + bias-pull-up;
> };
> pins2 {
> pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
> slew-rate = <2>;
> drive-push-pull;
> - bias-disable;
> + bias-pull-up;
> };
> };
>
> --
> 2.28.0
>
I don't see consensus on this device tree modification in Linux kernel
side [1].
And for the DH board the modification is now done in SOM dtsi files
after [2].
So can I close this patchset in patchwork ?
And if the modification is accepted in kernel device tree , I will get
it with my next device
tree alignment...
[1]
https://st-md-mailman.stormreply.com/pipermail/linux-stm32/2020-October/008554.html
[2] "ARM: dts: stm32: Enable internal pull-ups for SDMMC1 on DHCOM SoM
<http://patchwork.ozlabs.org/project/uboot/list/?series=217761>"
http://patchwork.ozlabs.org/project/uboot/list/?series=217761&state=*
Regards
Patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: dts: stm32: Consistently enable internal pull-ups for SD bus
2020-12-09 10:22 ` Patrick DELAUNAY
@ 2020-12-09 13:57 ` Marek Vasut
0 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2020-12-09 13:57 UTC (permalink / raw)
To: u-boot
On 12/9/20 11:22 AM, Patrick DELAUNAY wrote:
Hi,
[...]
>> @@ -1340,13 +1340,13 @@
>> ?????????????????? <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
>> ????????????? slew-rate = <1>;
>> ????????????? drive-push-pull;
>> -??????????? bias-disable;
>> +??????????? bias-pull-up;
>> ????????? };
>> ????????? pins2 {
>> ????????????? pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
>> ????????????? slew-rate = <2>;
>> ????????????? drive-push-pull;
>> -??????????? bias-disable;
>> +??????????? bias-pull-up;
>> ????????? };
>> ????? };
>> --
>> 2.28.0
>>
> I don't see consensus on this device tree modification in Linux kernel
> side [1].
>
> And for the DH board the modification is now done in SOM dtsi files
> after [2].
>
> So can I close this patchset in patchwork ?
Yes
> And if the modification is accepted in kernel device tree , I will get
> it with my next device
>
> tree alignment...
I plan to realign the DTs after 2021.01 is out too.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: dts: stm32: Consistently enable internal pull-ups for SD bus
@ 2020-10-09 21:08 Marek Vasut
0 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2020-10-09 21:08 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Marek Vasut, Alexandre Torgue, Patrice Chotard, Patrick Delaunay,
Maxime Coquelin, linux-stm32
The default state of SD bus and clock line is logical HI. SD card IO is
open-drain and pulls the bus lines LO. Always enable the SD bus pull ups
to guarantee this behavior. Note that on systems with bus voltage level
shifter on the SD bus, the pull ups might also be built into the level
shifter, however that should have no negative impact.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
---
arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
index b2d19583450c..73d9a5b7f5ba 100644
--- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi
@@ -1291,13 +1291,13 @@ pins1 {
<STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
slew-rate = <1>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
pins2 {
pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
slew-rate = <2>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
};
@@ -1447,13 +1447,13 @@ pins1 {
<STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
slew-rate = <1>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
pins2 {
pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
slew-rate = <2>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
};
@@ -1510,7 +1510,7 @@ pins {
<STM32_PINMUX('C', 7, AF10)>; /* SDMMC2_D7 */
slew-rate = <1>;
drive-push-pull;
- bias-disable;
+ bias-pull-up;
};
};
--
2.28.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-09 13:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09 21:07 [PATCH] ARM: dts: stm32: Consistently enable internal pull-ups for SD bus Marek Vasut
[not found] ` <de661f344d554feb9e14a78e742e9bb1@SFHDAG2NODE3.st.com>
2020-12-09 10:22 ` Patrick DELAUNAY
2020-12-09 13:57 ` Marek Vasut
2020-10-09 21:08 Marek Vasut
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.