esdhc binding compatiable
Mitch Bradley
wmb at firmworks.com
Wed May 6 03:01:09 EST 2009
>
> On May 4, 2009, at 4:11 PM, Scott Wood wrote:
>
>> On Mon, May 04, 2009 at 08:54:28AM -0500, Kumar Gala wrote:
>>> There has been some discussion on various lists about what the binding
>>> doc says w/regards to compat binding for eSHDC on 83xx, 85xx, pxxxx.
>>>
>>> My thinking is that we wanted to avoid "fsl,eshdc" as possibly being
>>> to generic (some theory that esdhc might be same or similar controller
>>> on iMX devices from FSL). If that's the case I'm thinking something
>>> like:
>>
>> If it's the *same* controller, then it should have the same compatible
>> (and the same driver).
>
> Define the *same*. I believe things might be 90/95% the same but
> there is probably some 5/10% SoC unique integration changes between an
> eSDHC on a PPC vs ARM SoC from FSL. For example in the imx version
> they have a few registers called ADMA Error Status & ADMA Address
> which we don't have on PQ devices.
If the devices have the same basic programming model - which is pretty
clearly the case if they are 90% identical - then you would want to
maintain one driver instead of two. The compatible property would be
the same to bind the one driver. Invent additional properties as
necessary to describe variations. Try to describe the differences
directly, e.g. "has-adma-address", instead of having an ever-growing
table in the driver that effectively says "if this is variant XYX from
manufacturer PDQ, then we happen to know that has an ADMA address
register". That prevents having to rev the driver for every new model -
you only have to rev the driver when a new kind of variation is invented.
More information about the devicetree-discuss
mailing list