Skip to contentSkip to conversation

ARM: at91/dts: at91sam9g20ek_2mmc: fix card detection

PATCH New Robert Nelson 1 participant 2 messages Apr 10, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: at91/dts: at91sam9g20ek_2mmc: fix card detection

Use cd-inverted to fix card detection on the at91sam9g20-ek Rev C Dev board.

With: v3.9-rc6:
atmel_mci fffa8000.mmc: version: 0x210
atmel_mci fffa8000.mmc: using PDC
atmel_mci fffa8000.mmc: Atmel MCI controller at 0xfffa8000 irq 30, 2 slots Waiting for root device /dev/mmcblk0p2...

With: v3.9-rc6 + this patch, card is now detected.
atmel_mci fffa8000.mmc: version: 0x210
atmel_mci fffa8000.mmc: using PDC
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address 0007
atmel_mci fffa8000.mmc: Atmel MCI controller at 0xfffa8000 irq 30, 2 slots
mmcblk0: mmc0:0007 SD02G 1.89 GiB
mmcblk0: p1 p2

Although other issues still remain:
mmcblk0: retrying using single block read
mmcblk0: error -115 sending stop command, original cmd response 0xb00, card status 0x900
mmcblk0: error -110 transferring data, sector 834296, nr 8, cmd response 0xb00, card status 0x0
mmcblk0: retrying using single block read

---
 arch/arm/boot/dts/at91sam9g20ek_2mmc.dts |    1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/at91sam9g20ek_2mmc.dts +1 -0
index 66467b1..d1b1521 100644
@@ -24,6 +24,7 @@
 					reg = <0>;
 					bus-width = <4>;
 					cd-gpios = <&pioC 2 0>;
+					cd-inverted;
 				};
 			};
 
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 ARM: at91/dts: at91sam9g20ek_2mmc: fix card detection

Quoted 1 line · Robert Nelson

Use cd-inverted to fix card detection on the at91sam9g20-ek Rev C Dev board.

Please Ignore this patch for now... As after more testing it looks more like pinmux problem.. Aka removing a card (used to load at91bootstrap/u-boot) during boot and then inserting the card again after "Waiting for root device" shows up.. Results in nothing...

[    1.023437] atmel_mci fffa8000.mmc: version: 0x210
[    1.031250] atmel_mci fffa8000.mmc: no DMA channel available
[    1.039062] atmel_mci fffa8000.mmc: using PDC
[    1.132812] atmel_mci fffa8000.mmc: Atmel MCI controller at
0xfffa8000 irq 30, 2 slots
[    1.140625] Waiting for root device /dev/mmcblk0p2...

Regards,

Signature · 2 lines
Robert Nelson
http://www.rcn-ee.com/