Запуск spi tft на orange pi pc.

Sep 05, 2018 16:48

Имеем ili9341, Orange Pi PC и armbian с mainline kernel (4.14.14-sunxi).

Схема подключения

TFT
Orange PI

LED (8)
3.3V (1)

SCK (7)
SCLK(23)

MOSI (6)
MOSI(19)

D/C (5)
GPIO12(03)

RES (4)
GPIO11(05)

CS (3)
CS0(24)

GND (2)
GND (6)

VCC (1)
3.3V (1)

Настойка системы:

Добавить в /boot/armbianEnv.txt (включить spi)

overlays=spi-spidev
param_spidev_spi_bus=0

В файл /etc/modprobe.d/fbtft.conf

options flexfb width=320 height=240 buswidth=8 init=\
-1,0x28,-2,20,-1,0xCF,0x00,0x83,0x30,-1,0xED,0x64,0x03,0x12,0x81,-1,0xE8,0x85,0x01,0x79,\
-1,0xCB,0x39,0x2c,0x00,0x34,0x02,-1,0xF7,0x20,-1,0xEA,0x00,0x00,-1,0xC0,0x26,-1,0xC1,0x11,\
-1,0xC5,0x35,0x3E,-1,0xC7,0xBE,-1,0xB1,0x00,0x1B,-1,0xB6,0x0a,0x82,0x27,0x00,-1,0xB7,0x07,\
-1,0x3A,0x55,-1,0x36,0x38,-1,0x11,-2,120,-1,0x29,-2,20,-3
options fbtft_device name=flexfb gpios=dc:12,reset:11 speed=25000000

В файл /etc/modules-load.d/fbtft.conf

flexfb
fbtft_device

Все.

orange pi, armbian, tft

Previous post Next post
Up