Re: [linux-sunxi] Re: Passing the platform data for SPI device

2014-01-27 Thread viniciusfre
Em quinta-feira, 23 de janeiro de 2014 17h24min27s UTC-3, Tomas Novotny escreveu: On Thu, 23 Jan 2014 19:11:32 +0100, Gustavo Zamboni gustavozamb...@gmail.com wrote: Hi Gustavo, Why dont you just add the device to the fex file ?? activate your spix_para parameters

Re: [linux-sunxi] Re: Passing the platform data for SPI device

2014-01-27 Thread Tomas Novotny
On Mon, 27 Jan 2014 08:42:51 -0800 (PST), vinicius...@gmail.com vinicius...@gmail.com wrote: Em quinta-feira, 23 de janeiro de 2014 17h24min27s UTC-3, Tomas Novotny escreveu: On Thu, 23 Jan 2014 19:11:32 +0100, Gustavo Zamboni gustavozamb...@gmail.com wrote: Hi Gustavo,

[linux-sunxi] Re: Passing the platform data for SPI device

2014-01-23 Thread viniciusfre
Em terça-feira, 21 de janeiro de 2014 08h44min19s UTC-3, Tomas Novotny escreveu: Hi All, I'm trying to use some SPI devices on A10s OLinuXino. It was flawless for simple MCU driven by spidev (everything needed is defined in FEX). Now I'm trying to connect external CAN over SPI

Re: [linux-sunxi] Re: Passing the platform data for SPI device

2014-01-23 Thread Gustavo Zamboni
Why dont you just add the device to the fex file ?? activate your spix_para parameters and add something like: |[spi_devices]| spi_dev_num=1 |[spi_board0]| |modalias| |= |||mcp251x |max_speed_hz| |= ||1200| |bus_num| |= ||1| |chip_select| |= ||0| |mode| |= ||3| |full_duplex| |= ||0|

Re: [linux-sunxi] Re: Passing the platform data for SPI device

2014-01-23 Thread Tomas Novotny
On Thu, 23 Jan 2014 09:03:28 -0800 (PST), vinicius...@gmail.com vinicius...@gmail.com wrote: Em quinta-feira, 23 de janeiro de 2014 13h59min19s UTC-3, vinic...@gmail.com escreveu: Em terça-feira, 21 de janeiro de 2014 08h44min19s UTC-3, Tomas Novotny escreveu: Hi All,

Re: [linux-sunxi] Re: Passing the platform data for SPI device

2014-01-23 Thread Tomas Novotny
On Thu, 23 Jan 2014 19:11:32 +0100, Gustavo Zamboni gustavozamb...@gmail.com wrote: Hi Gustavo, Why dont you just add the device to the fex file ?? activate your spix_para parameters and add something like: |[spi_devices]| spi_dev_num=1 |[spi_board0]| |modalias| |= |||mcp251x

Re: [linux-sunxi] Re: Passing the platform data for SPI device

2014-01-23 Thread Gustavo Zamboni
I'm sorry, i didnt see you needed that. you can use on of the script parse functions to get the oscilator frequency value from the fex. Of course you will have to change the spi src as vinicius said. Gustavo Le 23/01/2014 21:24, Tomas Novotny a écrit : On Thu, 23 Jan 2014 19:11:32 +0100,