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>
Thu, 9 Mar 2017 17:52:32 +0000 (17:52 +0000)
commit6dc092de9c10c8766169aecb48b0bb005c790ae5
tree22c82f24417309eaaacb0b457bb475a1dd14f4a4
parentd1ac6705c2caabe94d2bdfd2cc6a6ef7313dcaa1
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]