spi device from handle

Michael Remski mremski at comcast.net
Fri Jan 13 03:02:54 EST 2012

kernel 2.6.33

relevant section of dts has:
spi at 7000 {
 	fpga0: fpga at 0 {
 		#address-cells = <1>;
 		#size-cells = <0>;
 		compatible = "fsl, espi-fpga";
 		reg = <0>;
 		linux,modalias = "spidev";
 		spi-max-frequency = <1572864>;

I have another device driver that needs to talk to this fpga device, but 
for the life of me I can't figure out the appropriate hooks to get there. 
The device can be talked to from userland via /dev/spixyx.k, but how do I 
get to the device from another driver?

Any little hints would be appreciated.  Upgrading kernel is not an option 



More information about the Linuxppc-dev mailing list