Skip to content

Commit 03e3ec9

Browse files
vzapolskiythierryreding
authored andcommitted
drm/panel: simple: Add Sharp LQ035Q7DB03 panel support
The change adds support for Sharp LQ035Q7DB03 3.5" QVGA TFT panel. Note that this aged panel is already found in the kernel sources, for instance in board mach files mach-mx21ads.c, mach-mx27ads.c, mach-pcm043.c, lpd270.c and imx27-phytec-phycore-rdk.dts. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180706185101.31186-1-vz@mleia.com
1 parent ac1fe13 commit 03e3ec9

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Sharp LQ035Q7DB03 3.5" QVGA TFT LCD panel
2+
3+
Required properties:
4+
- compatible: should be "sharp,lq035q7db03"
5+
- power-supply: phandle of the regulator that provides the supply voltage
6+
7+
Optional properties:
8+
- enable-gpios: GPIO pin to enable or disable the panel
9+
- backlight: phandle of the backlight device attached to the panel
10+
11+
This binding is compatible with the simple-panel binding, which is specified
12+
in simple-panel.txt in this directory.

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,30 @@ static const struct panel_desc samsung_ltn140at29_301 = {
19911991
},
19921992
};
19931993

1994+
static const struct drm_display_mode sharp_lq035q7db03_mode = {
1995+
.clock = 5500,
1996+
.hdisplay = 240,
1997+
.hsync_start = 240 + 16,
1998+
.hsync_end = 240 + 16 + 7,
1999+
.htotal = 240 + 16 + 7 + 5,
2000+
.vdisplay = 320,
2001+
.vsync_start = 320 + 9,
2002+
.vsync_end = 320 + 9 + 1,
2003+
.vtotal = 320 + 9 + 1 + 7,
2004+
.vrefresh = 60,
2005+
};
2006+
2007+
static const struct panel_desc sharp_lq035q7db03 = {
2008+
.modes = &sharp_lq035q7db03_mode,
2009+
.num_modes = 1,
2010+
.bpc = 6,
2011+
.size = {
2012+
.width = 54,
2013+
.height = 72,
2014+
},
2015+
.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2016+
};
2017+
19942018
static const struct display_timing sharp_lq101k1ly04_timing = {
19952019
.pixelclock = { 60000000, 65000000, 80000000 },
19962020
.hactive = { 1280, 1280, 1280 },
@@ -2492,6 +2516,9 @@ static const struct of_device_id platform_of_match[] = {
24922516
}, {
24932517
.compatible = "samsung,ltn140at29-301",
24942518
.data = &samsung_ltn140at29_301,
2519+
}, {
2520+
.compatible = "sharp,lq035q7db03",
2521+
.data = &sharp_lq035q7db03,
24952522
}, {
24962523
.compatible = "sharp,lq101k1ly04",
24972524
.data = &sharp_lq101k1ly04,

0 commit comments

Comments
 (0)