* Question about device tree and modalias
@ 2013-10-15 14:35 Jorge Ventura
0 siblings, 0 replies; only message in thread
From: Jorge Ventura @ 2013-10-15 14:35 UTC (permalink / raw)
To: devicetree-u79uwXL29TY76Z2rM5mHXA
I am beginning to study device tree and I have a question.
There is a drive available for the device enc28j60, an ethernet chip with spi interface. The drive has modalias "spi:enc28j60" what is used by the old linux device module to match with the plataform modalias.
I am including in the device tree:
fragment@1 {
target = <&spi1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins_s0>;
ti,pindir-d0-out-d1-in = <1>;
spidev@1 {
spi-max-frequency = <24000000>;
reg = <0>;
compatible = "linux,spidev";
ethernet: enc28j60@0 {
compatible = "microchip,enc28j60";
};
};
};
};
but the result for modalias is "platform:enc28j60@0.10" what doesn't match with "spi:enc28j60".
Someone can explain or point some tutorials to describe the correct way to migrate one drive to device tree model?
Sincerely,
Ventura
--
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-15 14:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-15 14:35 Question about device tree and modalias Jorge Ventura
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).