cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
3,855 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
Highlighted
Xilinx Employee
Xilinx Employee
3,849 Views
Registered: ‎03-13-2012

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
Highlighted
Visitor
Visitor
3,831 Views
Registered: ‎03-03-2014

I added to my DTS:

broken-cd;

wp-inverted;

 

now the SD card is usable.

Thanks a lot !

0 Kudos