Skip to content

Commit 2f7b832

Browse files
sresravnborg
authored andcommitted
drm/panel: simple: Add support for AUO G190EAN01 panel
Add timings for the G190EAN01 dual channel LVDS panel. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200415172725.84257-2-sebastian.reichel@collabora.com
1 parent 50de2e9 commit 2f7b832

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-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
@@ -57,6 +57,8 @@ properties:
5757
- auo,g133han01
5858
# AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel
5959
- auo,g185han01
60+
# AU Optronics Corporation 19.0" (1280x1024) TFT LCD panel
61+
- auo,g190ean01
6062
# AU Optronics Corporation 31.5" FHD (1920x1080) TFT LCD panel
6163
- auo,p320hvn03
6264
# AU Optronics Corporation 21.5" FHD (1920x1080) color TFT LCD panel

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,36 @@ static const struct panel_desc auo_g185han01 = {
922922
.connector_type = DRM_MODE_CONNECTOR_LVDS,
923923
};
924924

925+
static const struct display_timing auo_g190ean01_timings = {
926+
.pixelclock = { 90000000, 108000000, 135000000 },
927+
.hactive = { 1280, 1280, 1280 },
928+
.hfront_porch = { 126, 184, 1266 },
929+
.hback_porch = { 84, 122, 844 },
930+
.hsync_len = { 70, 102, 704 },
931+
.vactive = { 1024, 1024, 1024 },
932+
.vfront_porch = { 4, 26, 76 },
933+
.vback_porch = { 2, 8, 25 },
934+
.vsync_len = { 2, 8, 25 },
935+
};
936+
937+
static const struct panel_desc auo_g190ean01 = {
938+
.timings = &auo_g190ean01_timings,
939+
.num_timings = 1,
940+
.bpc = 8,
941+
.size = {
942+
.width = 376,
943+
.height = 301,
944+
},
945+
.delay = {
946+
.prepare = 50,
947+
.enable = 200,
948+
.disable = 110,
949+
.unprepare = 1000,
950+
},
951+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
952+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
953+
};
954+
925955
static const struct display_timing auo_p320hvn03_timings = {
926956
.pixelclock = { 106000000, 148500000, 164000000 },
927957
.hactive = { 1920, 1920, 1920 },
@@ -3486,6 +3516,9 @@ static const struct of_device_id platform_of_match[] = {
34863516
}, {
34873517
.compatible = "auo,g185han01",
34883518
.data = &auo_g185han01,
3519+
}, {
3520+
.compatible = "auo,g190ean01",
3521+
.data = &auo_g190ean01,
34893522
}, {
34903523
.compatible = "auo,p320hvn03",
34913524
.data = &auo_p320hvn03,

0 commit comments

Comments
 (0)