Thread (1 message) 1 message, 1 author, 2015-01-29

Re: Supporting two SMSC9221 interfaces on GPMC in a dts

From: Tony Lindgren <hidden>
Date: 2015-01-29 16:20:20
Also in: linux-omap

Hi,

Adding devicetree list to Cc as well if somebody has a good solution.

* Ash Charles [off-list ref] [150128 18:54]:
Hi,

The Gumstix Tobi-Duo board has two SMSC9221 NICs attached to the GPMC
interface of an OMAP3.  I'm trying to figure out how best to include
both interfaces in the device tree file.
With just one interface, I can #include "omap-gpmc-smsc9221.dtsi", add
the extra board specific settings in to "ethernet@gpmc" in the board
file as well as any settings needed for the gpmc.

For two interfaces though, I can setup the gpmc details, configure one
"ethernet@gpmc" node as before but then, need to manually create (i.e.
copy the meat from the "omap-gpmc-smsc9221.dtsi") a second node.
 
Yeah I think this is how we did it for omap3-sbc-*.dts*.
This works but seems, well, verbose.  Is there a way to setup multiple
interfaces without having to duplicate the omap-gpmc-smsc9221.dtsi
content?
Hmm I wonder if the "[PATCH] dtc: parser: Add label while overriding
nodes" would help with this too?

I agree it would be nice to be able to have device specific .dtsi
file that can be included multiple times for the most common devices.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help