Jump to content

DenisS

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by DenisS

  1. I installed my overlay: two spi's appearing: den@nanopineo:~$ ls /dev/ | grep spi spidev0.0 spidev0.1 den@nanopineo:~$ sudo cat /sys/kernel/debug/gpio gpiochip0: GPIOs 0-223, parent: platform/1c20800.pinctrl, 1c20800.pinctrl: gpio-67 ( |spi0 CS0 ) out hi ACTIVE LOW gpio-166 ( |cd ) in hi ACTIVE LOW gpio-200 ( |sysfs ) out hi gpio-203 ( |sysfs ) in lo gpio-204 ( |usb0_id_det ) in hi IRQ gpiochip1: GPIOs 352-383, parent: platform/1f02c00.pinctrl, 1f02c00.pinctrl: gpio-355 ( |k1 ) in hi IRQ ACTIVE LOW gpio-358 ( |vdd-cpux ) out lo den@nanopineo:~$ dmesg | grep spi [ 2.600676] spidev@0 enforce active low on chipselect handle [ 4.022764] sun8i-h3-pinctrl 1c20800.pinctrl: unsupported function spi0 on pin PG8 [ 4.022867] spidev spi0.1: there is not valid maps for state default https://paste.armbian.com/yurepiyuve spi 0.0 doesn't work! How do I get it to work ? And set PG8 as cs1?
  2. https://paste.armbian.com/wosilicuda
  3. I have board which has 2 slaves on the SPI bus, requiring ce0 and ce1. My system: Armbian 23.8.1 Bookworm with Linux 6.1.47-current-sunxi I applied overlays: spi-add-cs1 and spi-spidev, there's an spi in the system. As soon as I apply spi-double-spidev-bus.dts, the spi disappears. How to make two cs? As soon as I apply spi-double-spidev-bus.dts, the spi disappears. Also, as I assume there is a problem with CS1, I reassign it with my overlay: CS is reassigned in the system, but the spi device polls once. When polling again, errors occur. When I manually set the cs there are no re-polling errors. I use "spi-device" - accessing the SPI serial bus using Node.js on Linux boards https://github.com/fivdi/spi-device On another board, the author's "spi-device" SPI polling works without problems https://github.com/fivdi/spi-device/issues/27 Please help to make sense of these two issues.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines