public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix•de>
To: Simon Richter <Simon.Richter@hogyros•de>
Cc: linuxppc-dev@ozlabs•org, linuxppc-embedded@ozlabs•org
Subject: Re: Generic MMC-over-SPI binding?
Date: Tue, 8 Jan 2008 17:11:20 +0100	[thread overview]
Message-ID: <20080108161120.GC3177@pengutronix.de> (raw)
In-Reply-To: <47838708.5050008@hogyros.de>

On Tue, Jan 08, 2008 at 03:22:00PM +0100, Simon Richter wrote:
> in an embedded system similar to the lite5200 board, there is an MMC 
> card socket connected to one of the PSCs. Ideally, I'd like to express 
> this fact via the device tree and have the kernel bind the mmc-spi 
> driver to the SPI interface, but I cannot find any place where to insert 
> this code that I feel comfortable with.
> 
>   - It is not a board-specific thing, because any board can just use any 
> SPI bus for MMC.
> 
>   - The mmc-spi driver appears to be platform independent, so I'm not 
> sure OF bindings should be added to it.
> 
>   - The generic device tree scanning does not contain any special cases 
> yet, so I don't want to add one.
> 
> My current thought is to create a new driver that just handles MMC on 
> PSCs in SPI mode by gluing all the relevant drivers together, but that 
> doesn't seem optimal to me either.

You know this driver?

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/mmc/host/mmc_spi.c;h=365024b83d3da9df9b6e4f7a9d4cf6d216ba523d;hb=HEAD

Or is your question how to express this in the device tree?

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

  reply	other threads:[~2008-01-08 16:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-08 14:22 Generic MMC-over-SPI binding? Simon Richter
2008-01-08 16:11 ` Robert Schwebel [this message]
2008-01-08 16:29   ` Simon Richter
2008-01-08 17:27 ` Arnd Bergmann
2008-01-09 17:17   ` Simon Richter
2008-01-09 21:55     ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080108161120.GC3177@pengutronix.de \
    --to=r.schwebel@pengutronix$(echo .)de \
    --cc=Simon.Richter@hogyros$(echo .)de \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox