diff options
author | Jonathan Marek <jonathan@marek.ca> | 2018-11-24 15:06:28 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-04-17 17:02:44 -0400 |
commit | debcd8f954be2b1f643e76b2400bc7c3d12b4594 (patch) | |
tree | 91f299e0f1c557b139f6a24027491b80c236ec94 /drivers/gpu/drm/panel/panel-simple.c | |
parent | 9e0b597534b4c065e2c083c7478d6f3175088fdd (diff) |
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
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 8fee7a8b29d9..569be4efd8d1 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -3025,6 +3025,34 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = { | |||
3025 | .lanes = 4, | 3025 | .lanes = 4, |
3026 | }; | 3026 | }; |
3027 | 3027 | ||
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 | |||
3028 | static const struct of_device_id dsi_of_match[] = { | 3056 | static const struct of_device_id dsi_of_match[] = { |
3029 | { | 3057 | { |
3030 | .compatible = "auo,b080uan01", | 3058 | .compatible = "auo,b080uan01", |
@@ -3042,6 +3070,9 @@ static const struct of_device_id dsi_of_match[] = { | |||
3042 | .compatible = "panasonic,vvx10f004b00", | 3070 | .compatible = "panasonic,vvx10f004b00", |
3043 | .data = &panasonic_vvx10f004b00 | 3071 | .data = &panasonic_vvx10f004b00 |
3044 | }, { | 3072 | }, { |
3073 | .compatible = "lg,acx467akm-7", | ||
3074 | .data = &lg_acx467akm_7 | ||
3075 | }, { | ||
3045 | /* sentinel */ | 3076 | /* sentinel */ |
3046 | } | 3077 | } |
3047 | }; | 3078 | }; |