diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2016-09-10 14:54:26 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2016-09-10 14:54:26 +0200 |
commit | 2b1c6b21b5e6c82ebb55d7fb7df90e60e88cbb14 (patch) | |
tree | ba6d48b4fec219d07110f5d55afc19bc309d2bdb /target/linux/brcm2708/patches-4.4/0337-drm-panel-simple-Add-the-7-DPI-panel-from-Adafruit.patch | |
parent | ac08cb06f6734ebf73ed855cbc836c566f80eaca (diff) | |
download | master-31e0f0ae-2b1c6b21b5e6c82ebb55d7fb7df90e60e88cbb14.tar.gz master-31e0f0ae-2b1c6b21b5e6c82ebb55d7fb7df90e60e88cbb14.tar.bz2 master-31e0f0ae-2b1c6b21b5e6c82ebb55d7fb7df90e60e88cbb14.zip |
brcm2708: update linux 4.4 patches to latest version
As usual these patches were extracted and rebased from the raspberry pi repo:
https://github.com/raspberrypi/linux/tree/rpi-4.4.y
Also adds support for Raspberry Pi Compute Module 3 (untested).
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.4/0337-drm-panel-simple-Add-the-7-DPI-panel-from-Adafruit.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.4/0337-drm-panel-simple-Add-the-7-DPI-panel-from-Adafruit.patch | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.4/0337-drm-panel-simple-Add-the-7-DPI-panel-from-Adafruit.patch b/target/linux/brcm2708/patches-4.4/0337-drm-panel-simple-Add-the-7-DPI-panel-from-Adafruit.patch new file mode 100644 index 0000000000..c62a62170e --- /dev/null +++ b/target/linux/brcm2708/patches-4.4/0337-drm-panel-simple-Add-the-7-DPI-panel-from-Adafruit.patch @@ -0,0 +1,86 @@ +From 59c699fe982aa0df961465654c4d87d109b127e6 Mon Sep 17 00:00:00 2001 +From: Eric Anholt <eric@anholt.net> +Date: Thu, 24 Mar 2016 17:23:48 -0700 +Subject: [PATCH] drm/panel: simple: Add the 7" DPI panel from Adafruit + +This is a basic TFT panel with a 40-pin FPC connector on it. The +specification doesn't define timings, but the Adafruit instructions +were setting up 800x480 CVT. + +v2: Add .bus_format and vsync/hsync flags. + +Signed-off-by: Eric Anholt <eric@anholt.net> +Acked-by: Rob Herring <robh@kernel.org> +[treding@nvidia.com: keep entries properly sorted] +Signed-off-by: Thierry Reding <treding@nvidia.com> + +(cherry picked from commit 8070fdbd024727c752f815b18e5339c681a01bbe) +--- + .../bindings/display/panel/ontat,yx700wv03.txt | 7 ++++ + drivers/gpu/drm/panel/panel-simple.c | 37 ++++++++++++++++++++++ + 2 files changed, 44 insertions(+) + create mode 100644 Documentation/devicetree/bindings/display/panel/ontat,yx700wv03.txt + +--- /dev/null ++++ b/Documentation/devicetree/bindings/display/panel/ontat,yx700wv03.txt +@@ -0,0 +1,7 @@ ++On Tat Industrial Company 7" DPI TFT panel. ++ ++Required properties: ++- compatible: should be "ontat,yx700wv03" ++ ++This binding is compatible with the simple-panel binding, which is specified ++in simple-panel.txt in this directory. +--- a/drivers/gpu/drm/panel/panel-simple.c ++++ b/drivers/gpu/drm/panel/panel-simple.c +@@ -1003,6 +1003,40 @@ static const struct panel_desc okaya_rs8 + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + }; + ++/* ++ * 800x480 CVT. The panel appears to be quite accepting, at least as far as ++ * pixel clocks, but this is the timing that was being used in the Adafruit ++ * installation instructions. ++ */ ++static const struct drm_display_mode ontat_yx700wv03_mode = { ++ .clock = 29500, ++ .hdisplay = 800, ++ .hsync_start = 824, ++ .hsync_end = 896, ++ .htotal = 992, ++ .vdisplay = 480, ++ .vsync_start = 483, ++ .vsync_end = 493, ++ .vtotal = 500, ++ .vrefresh = 60, ++ .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, ++}; ++ ++/* ++ * Specification at: ++ * https://www.adafruit.com/images/product-files/2406/c3163.pdf ++ */ ++static const struct panel_desc ontat_yx700wv03 = { ++ .modes = &ontat_yx700wv03_mode, ++ .num_modes = 1, ++ .bpc = 8, ++ .size = { ++ .width = 154, ++ .height = 83, ++ }, ++ .bus_format = MEDIA_BUS_FMT_RGB888_1X24, ++}; ++ + static const struct drm_display_mode ortustech_com43h4m85ulc_mode = { + .clock = 25000, + .hdisplay = 480, +@@ -1179,6 +1213,9 @@ static const struct of_device_id platfor + .compatible = "okaya,rs800480t-7x0gp", + .data = &okaya_rs800480t_7x0gp, + }, { ++ .compatible = "ontat,yx700wv03", ++ .data = &ontat_yx700wv03, ++ }, { + .compatible = "ortustech,com43h4m85ulc", + .data = &ortustech_com43h4m85ulc, + }, { |