Skip to content

Commit d9ccd1f

Browse files
sresravnborg
authored andcommitted
drm/panel: simple: Add support for AUO G156XTN01.0 panel
Add timings for the AUO G156XTN01.0 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 2f7b832 commit d9ccd1f

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
@@ -55,6 +55,8 @@ properties:
5555
- auo,g104sn02
5656
# AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel
5757
- auo,g133han01
58+
# AU Optronics Corporation 15.6" (1366x768) TFT LCD panel
59+
- auo,g156xtn01
5860
# AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel
5961
- auo,g185han01
6062
# AU Optronics Corporation 19.0" (1280x1024) TFT LCD panel

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,31 @@ static const struct panel_desc auo_g133han01 = {
892892
.connector_type = DRM_MODE_CONNECTOR_LVDS,
893893
};
894894

895+
static const struct drm_display_mode auo_g156xtn01_mode = {
896+
.clock = 76000,
897+
.hdisplay = 1366,
898+
.hsync_start = 1366 + 33,
899+
.hsync_end = 1366 + 33 + 67,
900+
.htotal = 1560,
901+
.vdisplay = 768,
902+
.vsync_start = 768 + 4,
903+
.vsync_end = 768 + 4 + 4,
904+
.vtotal = 806,
905+
.vrefresh = 60,
906+
};
907+
908+
static const struct panel_desc auo_g156xtn01 = {
909+
.modes = &auo_g156xtn01_mode,
910+
.num_modes = 1,
911+
.bpc = 8,
912+
.size = {
913+
.width = 344,
914+
.height = 194,
915+
},
916+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
917+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
918+
};
919+
895920
static const struct display_timing auo_g185han01_timings = {
896921
.pixelclock = { 120000000, 144000000, 175000000 },
897922
.hactive = { 1920, 1920, 1920 },
@@ -3513,6 +3538,9 @@ static const struct of_device_id platform_of_match[] = {
35133538
}, {
35143539
.compatible = "auo,g133han01",
35153540
.data = &auo_g133han01,
3541+
}, {
3542+
.compatible = "auo,g156xtn01",
3543+
.data = &auo_g156xtn01,
35163544
}, {
35173545
.compatible = "auo,g185han01",
35183546
.data = &auo_g185han01,

0 commit comments

Comments
 (0)