Am 08.10.2016 um 21:35 schrieb Andrey Utkin andrey_utkin@fastmail.com:
On Sat, Oct 08, 2016 at 08:22:55PM +0200, aTc wrote:
I don't see the emmc under linux, i only have one /dev/mmcblk* and that's the sd card. u-boot does seem to detect it, so i guess it's missing from the dts, or is there something else going on ?
Not sure if I say anything new to you... MMC and microSD card reader are connected to same SDIO bus (?) line. And there's some circuitry switching between them, this is supposed to be done by tiny chip, I believe its name is like twl6040,
Yes, almost. It is a txs02612.
and implementation of this on-demand switching is a pending task.
Here is a collection of some details what I think we finally should have:
http://projects.goldelico.com/p/gta04-kernel/issues/698/
A driver skeleton exists but has no function except proposing bindings:
http://git.goldelico.com/?p=gta04-kernel.git;a=shortlog;h=refs/heads/work/hn...
but no code... I think we should first find out where to place the driver (drivers/misc or drivers/mmc/card or drivers/mmc/misc?).
And there is some DT preparation (of course completely untested):
http://git.goldelico.com/?p=gta04-kernel.git;a=blob;f=arch/arm/boot/dts/omap...
http://git.goldelico.com/?p=gta04-kernel.git;a=blob;f=arch/arm/boot/dts/omap...
Our U-Boot/MLO also has some preliminary code to control the switch. And hardware controls, which one is taken for initially locating MLO.
BR, Nikolaus