Jump to content

RuslanGennadievich

Members
  • Posts

    7
  • Joined

  • Last visited

  1. Yes, you are right. My /sys/class/spi_slave folder is empty ... Okey, thankyou for help!
  2. Ok thankyou, and last question If i have /sys/class/spi_slave on Armbian, does this mean that the kernel has support spi slave?
  3. Maybe you know how add slave support to driver? Yes, on oscilloscope i verify clock line on "slave soc" and see some signal, but in slave mode it's wrong
  4. Thanks, i don't knows it. On first at this topic, sfx2000 say about rebuild kernel... I readed this link and check my kernel config, so i have this options CONFIG_SPI_SUN4I=y CONFIG_SPI_SUN6I=y CONFIG_SPI=y CONFIG_SPI_MASTER=y CONFIG_EXPERIMENTAL=y CONFIG_SPI_SPIDEV=y CONFIG_SPI_SLAVE=y CONFIG_SPI_SLAVE_TIME=m CONFIG_SPI_SLAVE_SYSTEM_CONTROL=m it's ok. But next, i dont't understund... Yes, i have /dev/spidev1.0 and /sys/class/spi_slave So, how i can use my /dev/spidev1.0 as slave? I try change my dts: (convert /boot/sun50i-h5-nanopi-neo-core2.dtb to /boot/sun50i-h5-nanopi-neo-core2.dts, edit, and compile again to dtb) In dts i added "spi-slave;" spi0 { pins = "PC0", "PC1", "PC2", "PC3"; function = "spi0"; linux,phandle = <0x21>; phandle = <0x21>; spi-slave; }; spi1 { pins = "PA15", "PA16", "PA14", "PA13"; function = "spi1"; linux,phandle = <0x23>; phandle = <0x23>; spi-slave; }; But i can't see anything change in my system. martinayotte, tell me please, how i can reconfigure or rebuild linux kernel driver to support slave?
  5. Hi I want use spi in slave mode, how i can enable slave? cat /boot/armbianEnv.txt verbosity=1 console=serial overlay_prefix=sun50i-h5 overlays=spi-add-cs1 spi-jedec-nor spi-spidev param_spidev_spi_bus=0 param_spidev_max_freq=100000000 rootdev=UUID=47313251-44b3-4a77-aef5-c53397e3a685 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines