Skip to content

Commit debcd8f

Browse files
fltoLinus Walleij
authored andcommitted
drm/panel: simple: add lg,acx467akm-7 panel
Add ACX467AKM-7 4.95" 1080×1920 LCD panel that is found on the LG Nexus 5 (hammerhead) phone. Signed-off-by: Jonathan Marek <jonathan@marek.ca> [masneyb@onstation.org: checkpatch fixes; rename jdi,1080p-hammerhead binding to lg,acx467akm-7.] Signed-off-by: Brian Masney <masneyb@onstation.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20181124200628.24393-2-masneyb@onstation.org
1 parent 9e0b597 commit debcd8f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3025,6 +3025,34 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
30253025
.lanes = 4,
30263026
};
30273027

3028+
static const struct drm_display_mode lg_acx467akm_7_mode = {
3029+
.clock = 150000,
3030+
.hdisplay = 1080,
3031+
.hsync_start = 1080 + 2,
3032+
.hsync_end = 1080 + 2 + 2,
3033+
.htotal = 1080 + 2 + 2 + 2,
3034+
.vdisplay = 1920,
3035+
.vsync_start = 1920 + 2,
3036+
.vsync_end = 1920 + 2 + 2,
3037+
.vtotal = 1920 + 2 + 2 + 2,
3038+
.vrefresh = 60,
3039+
};
3040+
3041+
static const struct panel_desc_dsi lg_acx467akm_7 = {
3042+
.desc = {
3043+
.modes = &lg_acx467akm_7_mode,
3044+
.num_modes = 1,
3045+
.bpc = 8,
3046+
.size = {
3047+
.width = 62,
3048+
.height = 110,
3049+
},
3050+
},
3051+
.flags = 0,
3052+
.format = MIPI_DSI_FMT_RGB888,
3053+
.lanes = 4,
3054+
};
3055+
30283056
static const struct of_device_id dsi_of_match[] = {
30293057
{
30303058
.compatible = "auo,b080uan01",
@@ -3041,6 +3069,9 @@ static const struct of_device_id dsi_of_match[] = {
30413069
}, {
30423070
.compatible = "panasonic,vvx10f004b00",
30433071
.data = &panasonic_vvx10f004b00
3072+
}, {
3073+
.compatible = "lg,acx467akm-7",
3074+
.data = &lg_acx467akm_7
30443075
}, {
30453076
/* sentinel */
30463077
}

0 commit comments

Comments
 (0)