Jump to content

KlGrom

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. With a lot of help from going I finally could fix the problem. The problem is that the GPIO-lines needed for spi are not defined neither in the basic device.tree nor in the spidev-overlay. to get spidev0 working download the device-tree source below and compile it with dtc. Copy the resulting file "sun8i-r40-spi-spidev0.dtb" to "/boot/dtb/overlay/sun8i-r40-spi-spidev0.dtbo" Ensure that in /boot/armbianEnv.txt "overlay_prefix=sun8i-r40" is set and the line overlay=.... contains spi-spidev0 reboot sun8i-r40-spi-spidev0.dts
  2. Hi going Thanks for your answer. I found both lines and the drivers are present as modul. Also the line with .....130x_SPI=m. So the display should also work on the SPI interface. This will really help if the SPI bus starts working. But the problem is. that I get no signals on the SPI-Lines. I have started the same test-program on a Raspi B3+ under Raspian and get the attached waveform-Display. When I start the same test on the Banana Pi with Armbian I get no signals on the lines. Do you know if there is a difference in SPI-handling between Raspian and Armbian, so that my test didn't work on the BananaPi ?IMAG007.BMPsimpleTest.c The simple test with 3 Bytes sent to SPIdev0.0 is also attached.( the image is from another test which sends more bytes)
  3. SoC Allwinner R40/V40 , 1GB DDR3, no emmc, system on SDCard attached to SPI0 is an small Display with an SSD1306 controller. SSD1306 can act on I2C or SPI. The displaycontroller is connected to SPI0 - SCLK,MOSI,CS0 and two more I/O pins for reset and Data/Command switch. BananaPi acts as master. I have connected an oscilloscope to the SCLK line to see what happens. Regardless of the Display is connected or not, I can't see any changes on the clock line. If I use the SCLK line as output via /sys/class/gpio/gpio66 (created with export for GPIO PC2) I can change the level manually and trigger the oscilloscope. I checked also the spi0 statistics under /sys/class/spi_master/spi0/statistics. I have written a small test which sends 3 Bytes to spidev0.0. After calling the test, bytes_tx increases by 3 and messages by 1. So I think the driver is called correctly but there is no change on the clock line. THX for your help
  4. Maksim Kiselev made a patch yesterday to spi_sun6i.c https://lkml.org/lkml/2023/5/10/228 Maybe this will solve our problem. Does everyone know when this patch is included in Armbian ?
  5. I have changed to nightly build in the meantime. Still no output on SPI. DEBUG-CONF.txt
  6. I looked to the I/O -Pins with an oscilloscope and got no signals. The devicet-ree looks good to me.I have seen that it is not neccessary to have DMA active in the SPI-driver it's only a warning. But I got no signals. Any help would be appreciated.
  7. Hi all, I try to use SPI on the BananaPi M2 Berry. The devices are activated in the configfile and the devices spidev0,0 and spidev1.0 are shown in the /dev .directory but the spi-bus did not work. DMESG shows the following error - messages : [ 0.944871] sun6i-spi 1c05000.spi: Failed to request TX DMA channel [ 0.944893] sun6i-spi 1c05000.spi: Failed to request RX DMA channel [ 0.945987] sun6i-spi 1c06000.spi: Failed to request TX DMA channel [ 0.946006] sun6i-spi 1c06000.spi: Failed to request RX DMA channel OS version is 6.2.12-sunxi Any idea what's wrong ?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines