Jump to content

DenisS

Members
  • Posts

    5
  • Joined

  • Last visited

  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. 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.
  3. Hi everybody, In a project I'm working on, I've added two PCA9535 I/O expanders to use 32 additional inputs on my Nano Pi Neo. I've connected the INT line from both multiplexers to the gpio11 interrupt pin on the Nano Pi Neo, and attached to that a pull-up resistor of 10k. I've used interrupts before, but my question is how to poll both PCA9535 I/O using one interrupt? my DTS when polling one (It works!): /dts-v1/; /plugin/; / { compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; fragment@0 { /* This fragment is required only if using interrupts */ target = <&pio>; __overlay__ { pca9535_pin_irq: pca9535_pin_irq { pins = "PA11"; function = "irq"; bias-pull-up; }; }; }; fragment@1 { target = <&i2c1>; __overlay__ { #address-cells = <1>; #size-cells = <0>; pca9535@20 { compatible = "nxp,pca9535"; reg = <0x20>; status = "okay"; gpio-controller; #gpio-cells = <2>; gpio-line-names = "DI1", "DI2", "DI3", "DI4", "DI5", "DI6", "DI7", "DI8", "DI9", "DI10", "DI11", "DI12", "DI13", "DI14", "DI15", "DI16"; /* Below are optional properties for supporting interrupts */ interrupt-controller; #interrupt-cells = <2>; interrupt-parent = <&pio>; interrupts = <0 11 2>; /* PA11 IRQ_TYPE_EDGE_FALLING */ pinctrl-names = "default"; pinctrl-0 = <&pca9535_pin_irq>; }; }; }; }; Any chance somebody could help me out? Any help is greatly appreciated! Thanks a lot, Denis
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines