]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 19 Sep 2017 10:07:54 +0000 (12:07 +0200)
commit7d5ea1fda525a9ab2aaf26ad5a581cc33d2d937d
treeb15fa957829890e7a4d1d9aadf01757f1c87315b
parent1c97aa6c365f31df94323b716f6e621bc9d8fa4f
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/panel/Kconfig
drivers/gpu/drm/panel/Makefile
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c [new file with mode: 0644]