Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/panel: Add support for AUO G104SN02 V2 panel

This patch adds support for AUO G104SN02 V2 800x600 10.4" panel to DRM
simple panel driver.

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1513430016.1930.4.camel@googlemail.com

authored by

Christoph Fritz and committed by
Thierry Reding
4451c287 7ff9288c

+38
+12
Documentation/devicetree/bindings/display/panel/auo,g104sn02.txt
··· 1 + AU Optronics Corporation 10.4" (800x600) color TFT LCD panel 2 + 3 + Required properties: 4 + - compatible: should be "auo,g104sn02" 5 + - power-supply: as specified in the base binding 6 + 7 + Optional properties: 8 + - backlight: as specified in the base binding 9 + - enable-gpios: as specified in the base binding 10 + 11 + This binding is compatible with the simple-panel binding, which is specified 12 + in simple-panel.txt in this directory.
+26
drivers/gpu/drm/panel/panel-simple.c
··· 581 581 }, 582 582 }; 583 583 584 + static const struct drm_display_mode auo_g104sn02_mode = { 585 + .clock = 40000, 586 + .hdisplay = 800, 587 + .hsync_start = 800 + 40, 588 + .hsync_end = 800 + 40 + 216, 589 + .htotal = 800 + 40 + 216 + 128, 590 + .vdisplay = 600, 591 + .vsync_start = 600 + 10, 592 + .vsync_end = 600 + 10 + 35, 593 + .vtotal = 600 + 10 + 35 + 2, 594 + .vrefresh = 60, 595 + }; 596 + 597 + static const struct panel_desc auo_g104sn02 = { 598 + .modes = &auo_g104sn02_mode, 599 + .num_modes = 1, 600 + .bpc = 8, 601 + .size = { 602 + .width = 211, 603 + .height = 158, 604 + }, 605 + }; 606 + 584 607 static const struct display_timing auo_g133han01_timings = { 585 608 .pixelclock = { 134000000, 141200000, 149000000 }, 586 609 .hactive = { 1920, 1920, 1920 }, ··· 2094 2071 }, { 2095 2072 .compatible = "auo,b133xtn01", 2096 2073 .data = &auo_b133xtn01, 2074 + }, { 2075 + .compatible = "auo,g104sn02", 2076 + .data = &auo_g104sn02, 2097 2077 }, { 2098 2078 .compatible = "auo,g133han01", 2099 2079 .data = &auo_g133han01,