drm/panel: Add support for the Raspberry Pi 7" Touchscreen.
authorEric Anholt <eric@anholt.net>
Tue, 26 Apr 2016 20:46:13 +0000 (13:46 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:45:25 +0000 (15:45 +0100)
commiteb20c01747f9cb52d8dac26b924030a23889cf15
tree7f01c00a56ba78c97de2cb7f1eb11a12d2f84317
parentdaf94a9f359e58aad9f7360a89572dbf99f38de2
drm/panel: Add support for the Raspberry Pi 7" Touchscreen.

This driver communicates with the Atmel microcontroller for sequencing
the poweron of the TC358762 DSI-DPI bridge and controlling the
backlight PWM.

The following lines are required in config.txt, to keep the firmware
from trying to bash our I2C lines and steal the DSI interrupts:

    disable_touchscreen=1
    ignore_lcd=2
    mask_gpu_interrupt1=0x1000

This means that the firmware won't power on the panel at boot time (no
rainbow) and the touchscreen input won't work.  The native input
driver for the touchscreen still needs to be written.

v2: Set the same default orientation as the closed source firmware
    used, which is the best for viewing angle.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/panel/Kconfig
drivers/gpu/drm/panel/Makefile
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c [new file with mode: 0644]