[PATCH v3] uio/pdrv_genirq: Add OF support
John Williams
john.williams at petalogix.com
Fri Apr 22 09:46:53 EST 2011
Hi Wolfram,
On Thu, Apr 21, 2011 at 10:08 PM, Wolfram Sang <w.sang at pengutronix.de> wrote:
> On Tue, Apr 19, 2011 at 11:58:25AM +1000, John Williams wrote:
>
>> As we discussed at ELC, putting a real vendor/device in there is also
>> broken because all instances in the system wil bind to the generic
>> uio, which is not necessarily what is desired.
>
> IIRC I pointed you to mpc5200b-psc devices which also have multiple functions
> and have seperate bindings for these functions. It fits the "hardware
> description" character of a dt, because it says this PSC is a UART or an
> SPI or whatever.
Right, and my interpretation of that was basically - modify the device
tree as required to make the correct driver bind to the device.
Is that correct?
It's the same underlying piece of silicon, you are just using the
device tree to tell Linux how it should behave at runtime, and which
driver to bind.
If so, it seems to be exactly what Arnd and Grant don't want - having
the device tree describe Linux behaviour.
In the hardware, it's a multifunction device, so surely a clean DTS
would just have 'mpc5200b', but no attempt to describe how Linux
should bind to it and configure it. Instead this should be done at
runtime, using some yet-to-be-determined mechanism.
The difference between what you are doing for these multifunction
devices, versus the generic-uio approach, is surely only a matter of
degree rather than fundamentals?
Regards,
John
More information about the devicetree-discuss
mailing list