Skip to content

Commit 03e909a

Browse files
sresravnborg
authored andcommitted
drm/panel: simple: Add support for AUO G121EAN01.4 panel
Add timings for the AUO G121EAN01.4 panel. Signed-off-by: Sebastian Reichel <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent d9ccd1f commit 03e909a

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Documentation/devicetree/bindings/display/panel/panel-simple.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ properties:
5353
- auo,g101evn010
5454
# AU Optronics Corporation 10.4" (800x600) color TFT LCD panel
5555
- auo,g104sn02
56+
# AU Optronics Corporation 12.1" (1280x800) TFT LCD panel
57+
- auo,g121ean01
5658
# AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel
5759
- auo,g133han01
5860
# AU Optronics Corporation 15.6" (1366x768) TFT LCD panel

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,31 @@ static const struct panel_desc auo_g104sn02 = {
862862
},
863863
};
864864

865+
static const struct drm_display_mode auo_g121ean01_mode = {
866+
.clock = 66700,
867+
.hdisplay = 1280,
868+
.hsync_start = 1280 + 58,
869+
.hsync_end = 1280 + 58 + 8,
870+
.htotal = 1280 + 58 + 8 + 70,
871+
.vdisplay = 800,
872+
.vsync_start = 800 + 6,
873+
.vsync_end = 800 + 6 + 4,
874+
.vtotal = 800 + 6 + 4 + 10,
875+
.vrefresh = 60,
876+
};
877+
878+
static const struct panel_desc auo_g121ean01 = {
879+
.modes = &auo_g121ean01_mode,
880+
.num_modes = 1,
881+
.bpc = 8,
882+
.size = {
883+
.width = 261,
884+
.height = 163,
885+
},
886+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
887+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
888+
};
889+
865890
static const struct display_timing auo_g133han01_timings = {
866891
.pixelclock = { 134000000, 141200000, 149000000 },
867892
.hactive = { 1920, 1920, 1920 },
@@ -3535,6 +3560,9 @@ static const struct of_device_id platform_of_match[] = {
35353560
}, {
35363561
.compatible = "auo,g104sn02",
35373562
.data = &auo_g104sn02,
3563+
}, {
3564+
.compatible = "auo,g121ean01",
3565+
.data = &auo_g121ean01,
35383566
}, {
35393567
.compatible = "auo,g133han01",
35403568
.data = &auo_g133han01,

0 commit comments

Comments
 (0)