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>
Sun, 8 Oct 2017 01:00:11 +0000 (01:00 +0000)
commitc1ef09e3096f4cdf11a59ad97538d194d081f015
treefbaf50829f0280bc661b1d382bac2c0544c47316
parentb6ea97a245e93c059afdd97460b83c7b50bd20e2
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]