[U-Boot] Adding SPI slave devices To DM

Hello All,
It's quite a long time, since I touched u-boot code, I was working on adding a slave SPI device to DM, can anyone point me to a sample driver.
Cheers, --Prabhakar Lad

Hi,
On 13 May 2016 at 10:58, Lad, Prabhakar prabhakar.csengg@gmail.com wrote:
Hello All,
It's quite a long time, since I touched u-boot code, I was working on adding a slave SPI device to DM, can anyone point me to a sample driver.
I think you mean a device that uses SPI, so you could try cro_ec_spi.c or tpm_tis_st33zp24_spi.c.
There is also a patch to provide a DM interface - if you base your work on u-boot-dm/master then you will get this - dm_spi_xfer(), etc.
Cheers, --Prabhakar Lad _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Regards, Simon

Hi Simon,
On Sat, May 14, 2016 at 8:34 PM, Simon Glass sjg@chromium.org wrote:
Hi,
On 13 May 2016 at 10:58, Lad, Prabhakar prabhakar.csengg@gmail.com wrote:
Hello All,
It's quite a long time, since I touched u-boot code, I was working on adding a slave SPI device to DM, can anyone point me to a sample driver.
I think you mean a device that uses SPI, so you could try cro_ec_spi.c or tpm_tis_st33zp24_spi.c.
Thanks for the pointers.
My intention was, to use sspi command, just to power up the LCD, but since there is no slave driver for it in the u-boot source, the device didnt populate as I am using devicetree.
So would it be good to have spidev driver in u-boot as well ?
Cheers, --Prabhakar Lad

Hi,
On 14 May 2016 at 14:26, Lad, Prabhakar prabhakar.csengg@gmail.com wrote:
Hi Simon,
On Sat, May 14, 2016 at 8:34 PM, Simon Glass sjg@chromium.org wrote:
Hi,
On 13 May 2016 at 10:58, Lad, Prabhakar prabhakar.csengg@gmail.com wrote:
Hello All,
It's quite a long time, since I touched u-boot code, I was working on adding a slave SPI device to DM, can anyone point me to a sample driver.
I think you mean a device that uses SPI, so you could try cro_ec_spi.c or tpm_tis_st33zp24_spi.c.
Thanks for the pointers.
My intention was, to use sspi command, just to power up the LCD, but since there is no slave driver for it in the u-boot source, the device didnt populate as I am using devicetree.
So would it be good to have spidev driver in u-boot as well ?
Sounds useful to me.
Regards, Simon
participants (2)
-
Lad, Prabhakar
-
Simon Glass