Re: multiple drivers for same hardware
From: Mitch Bradley <hidden>
Date: 2012-01-13 19:21:09
On 1/13/2012 8:52 AM, Kumar Gala wrote:
We have some scenarios in which we might have 2 different drivers (one in kernel or one user space as an example) and wanted to see how we'd convey in the device tree which driver should "claim" the specific device instance. From glancing at the OF specs it seems we could utilize the precedence order of compatible as a means to specify. So something like: [ bind with UIO instead of standard driver ] compatible = "gianfar-lnx-uio", "gianfar"; vs [ bind with stock kernel driver ] compatible = "gianfar";
That is certainly the standard way of doing it.
The other thought I had was introducing a new property like: linux-drv = "gianfar-uio"; compatible = "gianfar"; thoughts?
Why add a new mechanism when there is an existing one that does what you want?
- k _______________________________________________ devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org https://lists.ozlabs.org/listinfo/devicetree-discuss