[Linux-stm32] [PATCH] ARM: dts: stm32: Consistently enable internal pull-ups for SD bus

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Oct 15 09:47:58 EDT 2020


Hello,

On 10/15/20 3:40 PM, Marek Vasut wrote:
>>> Currently the
>>> stm32mp15-pinmux.dtsi is not consistent in that aspect. I am not arguing
>>> about any one single board, but about the dtsi, I suspect by default the
>>> pull ups should be enabled, and possibly on board-DT-level they should
>>> be disabled if not needed instead ?
>>
>> I think this is a good idea. But existing boards should be fixed up so that
>> their old behavior is maintained.
> 
> So, which boards do we fix. The automation-1 board and the ST ones ?

fixed up, not fixed. I don't know if ST is fine with the changes, for
the MC-1, please do:

-------------- 8< -------------
diff --git a/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts b/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts
index 5700e6b700d3..7134466256b3 100644
--- a/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts
@@ -208,6 +208,14 @@ pins2 {
        };
 };

+&sdmmc2_d47_pins_b {
+       /* board already has external 47K pull-ups */
+
+       pins {
+               /delete-property/ bias-pull-up;
+               bias-disable;
+       };
+};
+
 &sdmmc2 {
        pinctrl-names = "default", "opendrain", "sleep";
        pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_b>;


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list