<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.27">
<TITLE>PSC-SPI and MMC-SPI driver on lite5200b EVB. Device registration problems.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi guys<BR>
<BR>
I'm using a lite5200b EVB (u-boot 1.2, kernel 2.6.26.3), using the psc-spi driver and the mmc-spi driver.<BR>
<BR>
I've modified the lite5200b.dts file, I'd have SPI on PSC6 and mmc_spi connected to SPI on PSC6<BR>
<BR>
first I've commented<BR>
<BR>
// spi@f00 {<BR>
// compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";<BR>
// reg = <0xf00 0x20>;<BR>
// interrupts = <2 13 0 2 14 0>;<BR>
// interrupt-parent = <&mpc5200_pic>;<BR>
// };<BR>
<BR>
and then uncommented<BR>
<BR>
// PSC6 in spi mode example<BR>
spi@2c00 { // PSC6<BR>
compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";<BR>
cell-index = <5>;<BR>
reg = <0x2c00 0x100>;<BR>
interrupts = <2 4 0>;<BR>
interrupt-parent = <&mpc5200_pic>;<BR>
mmc_spi@0 {<BR>
linux,modalias = "mmc_spi";<BR>
};<BR>
};<BR>
<BR>
I've also added a node to spi@2c00 (I'm not sure about last change).<BR>
<BR>
My question are:<BR>
a) Is this the right way to insert a node in device tree (in this example for mmc-spi) or there are an other way to pass the information to mmc-spi that SPI is on PSC6?<BR>
<BR>
b) Why in /proc/devices I do not see any spi device (mpc5200b-psc-spi) or something like that?<BR>
Adding some printk I have:<BR>
Fun = mpc52xx_psc_spi_init Ret = 0<BR>
Is my of_register_platform_driver was ok.<BR>
<BR>
c) BTW a Block device mmc in /proc/devices is added (not mmc-spi as I'm waiting), if I try to create a node and then write on device nothing happens.<BR>
<BR>
Any suggestion?<BR>
<BR>
Thanks J</FONT>
</P>
</BODY>
</HTML>