Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-07-08 Thread Henk Stegeman
It now works, in the dts interrupt-controller = < &gpt6 >; // Use GPT6 as should have been interrupt-parent = < &gpt6 >; // Use GPT6 as On Tue, Jul 7, 2009 at 5:57 PM, Grant Likely wrote: > On Tue, Jul 7, 2009 at 8:31 AM, Henk Stegeman wrote: >> I tried to make use of the irq-controller

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-07-07 Thread Grant Likely
On Tue, Jul 7, 2009 at 8:31 AM, Henk Stegeman wrote: > I tried to make use of the irq-controller mode of the GPT as > suggested, however I'm not getting the IRQ. > Does anyone have an idea what I could be missing? (I've been testing > with 2.6.30). Make sure the 5200 general purpose timer driver i

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-07-07 Thread Henk Stegeman
I tried to make use of the irq-controller mode of the GPT as suggested, however I'm not getting the IRQ. Does anyone have an idea what I could be missing? (I've been testing with 2.6.30). The driver reports from it's probe: [1.502853] spi_master spi32766.0 Unable to get sample IRQ from of My

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-06-16 Thread Kári Davíðsson
Now my driver gets probed. This "modalias" error was due to wrong "compatible" attribute of my of node. But I still need to have the call to of_register_spi_devices(). The attached patch shows what I mean. rg kd Grant Likely wrote: On Mon, Jun 15, 2009 at 10:36 AM, Kári Davíðsson wrote: Is

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-06-15 Thread Grant Likely
On Mon, Jun 15, 2009 at 10:36 AM, Kári Davíðsson wrote: > Is this true? > > Grant Likely wrote: >> >> Yes, this is right.  The psc_spi driver automatically registers all >> spi children that it finds in the device tree onto the SPI bus. >> Therefore registering an spi_driver() is the right thing to

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-06-15 Thread Kári Davíðsson
Is this true? Grant Likely wrote: Yes, this is right. The psc_spi driver automatically registers all spi children that it finds in the device tree onto the SPI bus. Therefore registering an spi_driver() is the right thing to do. I am writing an SPI protocol driver and I find that my driver i

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-03-27 Thread Yann Pelletier
I'm trying to do the same sort of thing On Fri, Feb 13, 2009 at 3:40 AM, Henk Stegeman https://ozlabs.org/mailman/listinfo/linuxppc-dev>> wrote: > I'm busy adding support for slave deviced behind mpc52xx-psc-spi. > One complication I have is that my SPI slave device has an interrupt output > to

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-02-13 Thread Henk Stegeman
Thanks Greg, I'm having success more success with the driver now, The device gets nicely probed and the probe function gets the properties from the device tree, The following patch from Anton Vorontsov: http://kerneltrap.org/mailarchive/linux-kernel/2008/5/23/1922744 Was very useful as exampl

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-02-13 Thread Grant Likely
On Fri, Feb 13, 2009 at 3:40 AM, Henk Stegeman wrote: > I'm busy adding support for slave deviced behind mpc52xx-psc-spi. > One complication I have is that my SPI slave device has an interrupt output > to the CPU. > My idea is to add it as a gpios property in the slave device's > configuration: >

Re: Chipselect in SPI binding with mpc5200-psc-spi

2009-02-13 Thread Henk Stegeman
I'm busy adding support for slave deviced behind mpc52xx-psc-spi. One complication I have is that my SPI slave device has an interrupt output to the CPU. My idea is to add it as a gpios property in the slave device's configuration: s...@2400 {// PSC3 (SPI IF to the IO-controller )

Re: Chipselect in SPI binding with mpc5200-psc-spi

2008-10-29 Thread Grant Likely
On Wed, Oct 29, 2008 at 7:43 AM, Henk Stegeman <[EMAIL PROTECTED]> wrote: > .. > .. > In my dts > > I have my chipselect defined as follows: > > gpt4: [EMAIL PROTECTED] {// General Purpose Timer GPT4 in GPIO > mode for > SMC4000IO chip select. > compatible = "fsl,mpc5200b-g

Chipselect in SPI binding with mpc5200-psc-spi

2008-10-29 Thread Henk Stegeman
.. .. In my dts I have my chipselect defined as follows: gpt4: [EMAIL PROTECTED] {// General Purpose Timer GPT4 in GPIO mode for SMC4000IO chip select. compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio"; cell-index = <4>; reg = <0x640 0x10