public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* PSC-SPI and MMC-SPI driver on lite5200b EVB. Device registration problems.
@ 2008-09-23 12:43 gianfranco.casanova
  2008-09-23 14:38 ` Grant Likely
  0 siblings, 1 reply; 3+ messages in thread
From: gianfranco.casanova @ 2008-09-23 12:43 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]

Hi guys

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.

I've modified the lite5200b.dts file, I'd have SPI on PSC6 and mmc_spi connected to SPI on PSC6

first I've commented 

//		spi@f00 {
//			compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
//			reg = <0xf00 0x20>;
//			interrupts = <2 13 0 2 14 0>;
//			interrupt-parent = <&mpc5200_pic>;
//		};

and then uncommented

		// PSC6 in spi mode example
		spi@2c00 {		// PSC6
			compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
			cell-index = <5>;
			reg = <0x2c00 0x100>;
			interrupts = <2 4 0>;
			interrupt-parent = <&mpc5200_pic>;
			mmc_spi@0 {
				linux,modalias = "mmc_spi";
			};
		};

I've also added a node to spi@2c00 (I'm not sure about last change).

My question are:
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?

b) Why in /proc/devices I do not see any spi device (mpc5200b-psc-spi) or something like that?
Adding some printk I have:
Fun = mpc52xx_psc_spi_init Ret = 0
Is my of_register_platform_driver was ok.

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.

Any suggestion?

Thanks J

[-- Attachment #2: Type: text/html, Size: 4056 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-23 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-23 12:43 PSC-SPI and MMC-SPI driver on lite5200b EVB. Device registration problems gianfranco.casanova
2008-09-23 14:38 ` Grant Likely
2008-09-23 15:03   ` Jon Smirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox