Jump to content

grecha

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

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

  1. Hello! I would like to connect orangepi-4-lts to ili9341. I have new blank Armbian. $ uname -a Linux orangepi4-lts 5.15.52-rockchip64 #22.05.4 SMP PREEMPT I did overlay based on allwinner: /dts-v1/; /plugin/; / { compatible = "rockchip,rk3399"; fragment@0 { target = <&gpio1>; __overlay__ { ili9341_pins: ili9341_pins { pins = "PC7", "PD0"; function = "gpio_out", "gpio_out"; }; }; }; fragment@1 { target = <&spi1>; __overlay__ { status = "okay"; cs-gpios = <&gpio1 10 1>; ili9341: ili9341@0 { compatible = "ilitek, ili9341"; reg = <1>; pinctrl-names = "default"; pinctrl-0 = <&ili9341_pins>; spi-max-frequency = <16000000>; rotate = <90>; bgr; fps = <25>; buswidth = <8>; reset-gpios = <&gpio1 23 1>; dc-gpios = <&gpio1 24 0>; debug = <0>; }; }; }; }; Setting /boot/armbianEnv.txt verbosity=1 bootlogo=true extraargs=systemd.unified_cgroup_hierarchy=0 overlay_prefix=rockchip fdtfile=rockchip/rk3399-orangepi-4-lts.dtb rootdev=UUID=ce86a0ca-f0e5-4dba-af37-15cc3fb2f4e0 rootfstype=ext4 param_spidev_spi_bus=1 param_spidev_spi_cs=0 user_overlays=ili9341 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u Restart, TFT not turn on. I watch debugiing uart, no errors: ## Executing script at 00500000 Boot script loaded from mmc 1 320 bytes read in 4 ms (78.1 KiB/s) 16356833 bytes read in 696 ms (22.4 MiB/s) 30540288 bytes read in 1295 ms (22.5 MiB/s) 81458 bytes read in 14 ms (5.5 MiB/s) 1233 bytes read in 7 ms (171.9 KiB/s) Applying user provided DT overlay ili9341.dtbo 2698 bytes read in 9 ms (292 KiB/s) Applying kernel provided DT fixup script (rockchip-fixup.scr) ## Executing script at 09000000 Moving Image from 0x2080000 to 0x2200000, end=3fc0000 ## Loading init Ramdisk from Legacy Image at 06000000 ... Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 16356769 Bytes = 15.6 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01f00000 Booting using the fdt blob at 0x1f00000 Loading Ramdisk to f4f65000, end f5efe5a1 ... OK Loading Device Tree to 00000000f4ee8000, end 00000000f4f64fff ... OK Starting kernel ... Watching system boot log: grecha@orangepi4-lts:~$ sudo dmesg | grep spi [ 2.053302] rockchip-spi ff1d0000.spi: cs1 >= max 1 [ 2.053318] spi_master spi1: spi_device register error /spi@ff1d0000/ili9341@0 [ 2.053345] spi_master spi1: Failed to create SPI device for /spi@ff1d0000/ili9341@0 grecha@orangepi4-lts:~$ sudo dmesg | grep ili9341 [ 2.053318] spi_master spi1: spi_device register error /spi@ff1d0000/ili9341@0 [ 2.053345] spi_master spi1: Failed to create SPI device for /spi@ff1d0000/ili9341@0 Please, help me. Why is this overlay not working?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines