Help about chip select on SPI slave devices

2010-10-16 Thread WANG YiFei
Hi, We have a board which has 1 SPI master controller and 4 SPI slave devices, and we'd like to use 2 GPIOs to demux to chip select these slave devices. Can anyone tell me if current powerpc dts support demuxer for chip select for spi slave devices? So far as I know, in dts, SPI master can only

RE: ppc405 + MCP23S17

2010-10-13 Thread WANG YiFei
ect, then where is the right place(which .c file) to set/pass platform_data to? Regards, YiFei -Original Message- From: tiejun.chen [mailto:tiejun.c...@windriver.com] Sent: Wednesday, 13 October, 2010 3:50 PM To: WANG YiFei Cc: linuxppc-...@ozlabs.org Subject: Re: ppc405 + MCP23S17

RE: ppc405 + MCP23S17

2010-10-12 Thread WANG YiFei
YiFei -Original Message- From: tiejun.chen [mailto:tiejun.c...@windriver.com] Sent: Wednesday, October 13, 2010 11:09 AM To: WANG YiFei Cc: linuxppc-...@ozlabs.org Subject: Re: ppc405 + MCP23S17 WANG YiFei wrote: > Hi, > > > > I'm a newbie for linux device driver dev

ppc405 + MCP23S17

2010-10-12 Thread WANG YiFei
Hi, I'm a newbie for linux device driver development. We have a custom ppc405 board which has MCP23S17 (16-Bit I/O Expander with SPI Interface) on it. I noticed that current kernel has MCP23S08 driver support, I'd like to know: 1. if passing platform data to MCP23S08 driver, can it make