Jump to content

Aliagord

Members
  • Posts

    5
  • Joined

  • Last visited

  1. I thought my screen had a problem, so i brought an other, but problem is the same
  2. Hi, I found how to change the chipselect, with: ili9486: ili9486@0{ compatible = "ilitek,ili9486"; reg = <0>; I tried ALL combinaisons possible, but it doesn't works... I don't understand...
  3. Hi, I modify my DTS to: And now i have this in the log: root@orangepizero:~# dmesg | grep spi [ 3.216559] spidev@0 enforce active low on chipselect handle [ 4.780881] spidev spi1.1: probing from DT [ 10.577651] [drm] Initialized ili9486 1.0.0 20200118 for spi1.0 on minor 0 [ 12.461700] ili9486 spi1.0: [drm] fb0: ili9486drmfb frame buffer device I think the problem is the spi1.0 and spi1.1: 1st number : bus 2nd number : cs I tried to use param_spidev_spi_cs=0, but spi1.0 doesn't appear in /dev... it said: [ 3.221863] sun6i-spi 1c69000.spi: chipselect 0 already in use So, my objective is to put the chip to 1 in the DTS, but i don't know how
  4. Hi, Thanks for your answer ! I found documentation, i tried to apply it. This page for exemple : https://linux-sunxi.org/SPIdev In my /boot/config i added this : CONFIG_EXPERIMENTAL=y And i changed this : CONFIG_SPI_SPIDEV=m to this : CONFIG_SPI_SPIDEV=y Or this page : https://docs.armbian.com/User-Guide_Allwinner_overlays/ I found this command to add overlay : sudo armbian-add-overlay <overlay_file.dts> And this : armbianEnv.txt entries reference overlay_prefix - prefix for the DT and overlay file names, set at OS image creation time overlays - list of overlays to activate from kernel directory user_overlays - list of overlays to activate from /boot/overlay-user/ directory param_* - overlay parameters They said "Allwinner H3 contains 2 SPI" so, the 0 and the 1. But i think the 0 is always used, so i choose param_spidev_spi_bus=1
  5. Hello, It's my first message, I'm very proud to be part of your community, Armbian is epic ! I'm trying to add a chinese screen copy to my orangepizero (H2+ cpu). This is my screen: https://www.aliexpress.com/item/32587995145.html (copie of https://www.waveshare.com/3.5inch-rpi-lcd-a.htm) 1) Yesterday i setup my screen on Armbian_5.91_Orangepizero_Debian_buster_next_4.19.59 with success with: nano /boot/armbianEnv.txt : overlays=spi-spidev spi-add-cs1 param_spidev_spi_bus=1 param_spidev_spi_cs=1 nano /etc/modules-load.d/fbtft.conf : fbtft fbtft_device nano /etc/modprobe.d/fbtft.conf : options fbtft_device rotate=90 name=piscreen speed=32000000 busnum=1 gpios=reset:2,dc:18 txbuflen=32768 fps=25 It created a framebuffer (fb0) which worked without problem. 2) I also tried with Armbian_20.05.3_Orangepizero_buster_current_5.4.45 with success with: nano /boot/armbianEnv.txt : overlays=spi-spidev spi-add-cs1 param_spidev_spi_bus=1 param_spidev_spi_cs=1 Create DTS file: And added to armbian with: armbian-add-overlay foo.dts After reboot, the screen worked too ! 3) But with the 5.9.14 kernel, it doesn't work ! (Armbian_20.11.3_Orangepizero_buster_current_5.9.14.img) I tried with DTS file + spi overlay in armbianEnv.txt, but nothing... This is my "dmesg | grep spi" : [ 3.223574] spidev@1 enforce active low on chipselect handle [ 3.224724] spi_master spi1: cannot find modalias for /soc/spi@1c69000/spidev@1 [ 3.224759] spi_master spi1: Failed to create SPI device for /soc/spi@1c69000/spidev@1 [ 10.585918] [drm] Initialized ili9486 1.0.0 20200118 for spi1.0 on minor 0 [ 12.495270] ili9486 spi1.0: [drm] fb0: ili9486drmfb frame buffer device This is my "ls /dev" As we can see i have "fb0" but no "spi1.1"... I already checked everything on the web and each topic in this forum, like that: I hope you can help me ! Thanks you a lot ! And sorry for my poor english, maybe I made some spelling mistakes !
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines