* [U-Boot] [PATCH] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect
@ 2018-09-03 14:08 Adam Ford
2018-09-05 13:08 ` Tuomas Tynkkynen
2018-09-06 13:45 ` [U-Boot] " Tom Rini
0 siblings, 2 replies; 4+ messages in thread
From: Adam Ford @ 2018-09-03 14:08 UTC (permalink / raw)
To: u-boot
When re-syncing the DTS files from the kernel, something caused
the MMC driver to no longer detect the MMC card. Undoing the
CD-invert appears to fix the issue.
Fixes: e6ea2390cde3 ("ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit
with Linux 4.18-RC4")
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/arch/arm/dts/logicpd-torpedo-37xx-devkit-u-boot.dtsi b/arch/arm/dts/logicpd-torpedo-37xx-devkit-u-boot.dtsi
index 4028fe7642..d584b4a9ab 100644
--- a/arch/arm/dts/logicpd-torpedo-37xx-devkit-u-boot.dtsi
+++ b/arch/arm/dts/logicpd-torpedo-37xx-devkit-u-boot.dtsi
@@ -20,10 +20,6 @@
clock-frequency = <400000>;
};
-&mmc1 {
- cd-inverted;
-};
-
&mmc2 {
status = "disabled";
};
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect
2018-09-03 14:08 [U-Boot] [PATCH] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect Adam Ford
@ 2018-09-05 13:08 ` Tuomas Tynkkynen
2018-09-08 13:54 ` Adam Ford
2018-09-06 13:45 ` [U-Boot] " Tom Rini
1 sibling, 1 reply; 4+ messages in thread
From: Tuomas Tynkkynen @ 2018-09-05 13:08 UTC (permalink / raw)
To: u-boot
Hi Adam,
On 09/03/2018 05:08 PM, Adam Ford wrote:
> When re-syncing the DTS files from the kernel, something caused
> the MMC driver to no longer detect the MMC card. Undoing the
> CD-invert appears to fix the issue.
>
> Fixes: e6ea2390cde3 ("ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit
> with Linux 4.18-RC4")
>
Looking at that commit, we see:
- cd-gpios = <&gpio4 31 IRQ_TYPE_LEVEL_LOW>; /* gpio127 */
+ cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio127 */
IRQ_TYPE_LEVEL_LOW is defined as 8, which in this context should get
interpreted as GPIO_TRANSITORY which is ignored by U-Boot. Thus the
card-detect polarity got toggled by that commit.
If ACTIVE_LOW is indeed the correct polarity (and I'm guessing it
is because otherwise MMC wouldn't work in Linux), this patch sounds
correct.
- Tuomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect
2018-09-03 14:08 [U-Boot] [PATCH] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect Adam Ford
2018-09-05 13:08 ` Tuomas Tynkkynen
@ 2018-09-06 13:45 ` Tom Rini
1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2018-09-06 13:45 UTC (permalink / raw)
To: u-boot
On Mon, Sep 03, 2018 at 09:08:04AM -0500, Adam Ford wrote:
> When re-syncing the DTS files from the kernel, something caused
> the MMC driver to no longer detect the MMC card. Undoing the
> CD-invert appears to fix the issue.
>
> Fixes: e6ea2390cde3 ("ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit
> with Linux 4.18-RC4")
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/arch/arm/dts/logicpd-torpedo-37xx-devkit-u-boot.dtsi b/arch/arm/dts/logicpd-torpedo-37xx-devkit-u-boot.dtsi
> index 4028fe7642..d584b4a9ab 100644
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180906/c6211e13/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect
2018-09-05 13:08 ` Tuomas Tynkkynen
@ 2018-09-08 13:54 ` Adam Ford
0 siblings, 0 replies; 4+ messages in thread
From: Adam Ford @ 2018-09-08 13:54 UTC (permalink / raw)
To: u-boot
On Wed, Sep 5, 2018 at 8:08 AM Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> wrote:
>
> Hi Adam,
>
> On 09/03/2018 05:08 PM, Adam Ford wrote:
> > When re-syncing the DTS files from the kernel, something caused
> > the MMC driver to no longer detect the MMC card. Undoing the
> > CD-invert appears to fix the issue.
> >
> > Fixes: e6ea2390cde3 ("ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit
> > with Linux 4.18-RC4")
> >
>
> Looking at that commit, we see:
>
> - cd-gpios = <&gpio4 31 IRQ_TYPE_LEVEL_LOW>; /* gpio127 */
> + cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio127 */
>
>
> IRQ_TYPE_LEVEL_LOW is defined as 8, which in this context should get
> interpreted as GPIO_TRANSITORY which is ignored by U-Boot. Thus the
> card-detect polarity got toggled by that commit.
>
> If ACTIVE_LOW is indeed the correct polarity (and I'm guessing it
> is because otherwise MMC wouldn't work in Linux), this patch sounds
> correct.
That makes a lot of sense. Thanks for that.
adam
>
> - Tuomas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-09-08 13:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-03 14:08 [U-Boot] [PATCH] ARM: dts: logicpd-torpedo-37xx-devkit-u-boot: Fix MMC Card Detect Adam Ford
2018-09-05 13:08 ` Tuomas Tynkkynen
2018-09-08 13:54 ` Adam Ford
2018-09-06 13:45 ` [U-Boot] " Tom Rini
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.