Re: Creating a new platform_bus inside a spi_driver

2014-11-15 Thread DATACOM - Erico Nunes
On 11/13/2014 06:52 AM, Stanimir Varbanov wrote: > Hi Grant, Arnd and Erico > > On 11/11/2014 01:07 PM, Grant Likely wrote: >> On Fri, 07 Nov 2014 18:04:35 +0100 >> , Arnd Bergmann >> wrote: >>> On Friday 07 November 2014 14:37:26 DATACOM - Érico Nunes wrote: Hello Arnd and all, >>>

Re: Creating a new platform_bus inside a spi_driver

2014-11-13 Thread Stanimir Varbanov
Hi Grant, Arnd and Erico On 11/11/2014 01:07 PM, Grant Likely wrote: > On Fri, 07 Nov 2014 18:04:35 +0100 > , Arnd Bergmann > wrote: >> On Friday 07 November 2014 14:37:26 DATACOM - Érico Nunes wrote: >>> Hello Arnd and all, >>> >>> On 11/07/2014 08:04 AM, Arnd Bergmann wrote: On Thursday

Re: Creating a new platform_bus inside a spi_driver

2014-11-11 Thread Grant Likely
On Thu, 06 Nov 2014 18:02:52 -0200 , DATACOM - Érico Nunes wrote: > > Hello, > > In our board we have a FPGA whose programmable logic communicates with the > main > processor via SPI. Inside the programmable logic we also have a range of > registers (writable via SPI commands) which implemen

Re: Creating a new platform_bus inside a spi_driver

2014-11-11 Thread Grant Likely
On Fri, 07 Nov 2014 18:04:35 +0100 , Arnd Bergmann wrote: > On Friday 07 November 2014 14:37:26 DATACOM - Érico Nunes wrote: > > Hello Arnd and all, > > > > On 11/07/2014 08:04 AM, Arnd Bergmann wrote: > > > On Thursday 06 November 2014 18:02:52 DATACOM - Érico Nunes wrote: > > >> The idea is

Re: Creating a new platform_bus inside a spi_driver

2014-11-07 Thread Arnd Bergmann
On Friday 07 November 2014 14:37:26 DATACOM - Érico Nunes wrote: > Hello Arnd and all, > > On 11/07/2014 08:04 AM, Arnd Bergmann wrote: > > On Thursday 06 November 2014 18:02:52 DATACOM - Érico Nunes wrote: > >> The idea is that "fpga-spi" is a spi_driver which instantiates all of the > >> "fpga-d

Re: Creating a new platform_bus inside a spi_driver

2014-11-07 Thread DATACOM - Érico Nunes
Hello Arnd and all, On 11/07/2014 08:04 AM, Arnd Bergmann wrote: > On Thursday 06 November 2014 18:02:52 DATACOM - Érico Nunes wrote: >> The idea is that "fpga-spi" is a spi_driver which instantiates all of the >> "fpga-deviceN" as platform_devices, through the use of >> of_platform_populate(dev->

Re: Creating a new platform_bus inside a spi_driver

2014-11-07 Thread Arnd Bergmann
On Thursday 06 November 2014 18:02:52 DATACOM - Érico Nunes wrote: > > The idea is that "fpga-spi" is a spi_driver which instantiates all of the > "fpga-deviceN" as platform_devices, through the use of > of_platform_populate(dev->of_node, NULL, NULL, dev). > > The visible problem we're facing wit

Creating a new platform_bus inside a spi_driver

2014-11-06 Thread DATACOM - Érico Nunes
Hello, In our board we have a FPGA whose programmable logic communicates with the main processor via SPI. Inside the programmable logic we also have a range of registers (writable via SPI commands) which implement functionality of several distinct "devices". Our approach to implement a driver fr