UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor ch.bergmann
Visitor
3,647 Views
Registered: ‎03-03-2014

kernel 3.12 driver for micro SD card

Hallo,

 

I am using the Xilinx OSL kernel 3.12 on a custom board with a micro SD card.

The system can boot from SD card, but in the Linux file system there is no device node /dev/mmcblk0

 

In the boot messages you can see these messages: 

sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0100000.ps7-sdio [e0100000.ps7-sdio] using ADMA

 

In the DTS I am using:

ps7_sd_0: ps7-sdio@e0100000 {
   clock-frequency = <50000000>;
   clock-names = "clk_xin", "clk_ahb";
   clocks = <&clkc 21>, <&clkc 32>;
   compatible = "xlnx,ps7-sdio-1.00.a", "generic-sdhci", "arasan,sdhci-8.9a";
   interrupt-parent = <&ps7_scugic_0>;
   interrupts = <0 24 4>;
   reg = <0xe0100000 0x1000>;
   xlnx,has-cd = <0x0>;
   xlnx,has-power = <0x0>;
   xlnx,has-wp = <0x0>;
  } ;

 

What can I do to use the SD card in Linux ?

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
3,641 Views
Registered: ‎03-13-2012

Re: kernel 3.12 driver for micro SD card

You may want to look at the 'broken-cd' and 'wp-inverted' DT properties and see if those help (https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/mmc/mmc.txt ).

Also, this might be helpful: https://patchwork.kernel.org/patch/3706671/ , though, you need to see the card first.

0 Kudos
Visitor ch.bergmann
Visitor
3,623 Views
Registered: ‎03-03-2014

Re: kernel 3.12 driver for micro SD card

I added to my DTS:

broken-cd;

wp-inverted;

 

now the SD card is usable.

Thanks a lot !

0 Kudos