We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
Hello,
I’ve followed successfully an exceptional guide linked below:
I’ve got debian up and running on this board.
I would like to know if there are any additional steps required to enable SPI interface.
It appears that Freescale i.MX SPI controllers are selected to be built as module in menuconfig.
Still, I’ve got no /dev/spidevX.X
How can I configure the build to allow me to use SPI interfaces on the board?
Thank You for the instuctions!
My board is the “Android thigs” one - as far I know it’s i.MX7d PICO PI model.
I want to use the ‘standard’ spi pins from the J8 connector:
in .dts.
using rohm,dh2228fv to spidev didn’t work, the spi driver is not picking it up.
What is more, my version of the board (the initial android things brcm with 4g flash) has a little different J8 schema - JP8-24 is NC, I needed to use JP8-26 pin instead.
dmesg:
spi_imx 30840000.spi: can't get the TX DMA channel, error -19!
spi_imx 30840000.spi: dma setup error -19, use pio
spi_imx 30840000.spi: registered master spi2
spi spi2.0: spi_imx_setup: mode 0, 8 bpw, 25000000 hz
spi spi2.0: setup mode 0, 8 bits/w, 25000000 Hz max --> 0
spi_imx 30840000.spi: registered child spi2.0
With that I’ve got successful SPI communication with ADXL345.
It took a fair bit of time to figure this out, but was worth it. Thank you @RobertCNelson