From a7b5db0465f0f8dff23f00a74ae5fd698ff65d91 Mon Sep 17 00:00:00 2001 From: Yuan Zhao Date: Fri, 21 Jun 2019 17:23:10 +0800 Subject: [PATCH] disp: msm: dsi: Add a new DT property panel test pin This pin is a output pin from panel. Panel can output signal of internal VSYNC and ERR_FLAG. Change-Id: Ib8e661ca1fdb33bb7060935edb9bc1f1a858c4b3 Signed-off-by: Yuan Zhao --- msm/dsi/dsi_panel.c | 7 +++++++ msm/dsi/dsi_panel.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index dea93b0790..c328c26a2c 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -2135,6 +2135,13 @@ static int dsi_panel_parse_gpios(struct dsi_panel *panel) goto error; } + panel->panel_test_gpio = utils->get_named_gpio(utils->data, + "qcom,mdss-dsi-panel-test-pin", + 0); + if (!gpio_is_valid(panel->panel_test_gpio)) + pr_debug("%s:%d panel test gpio not specified\n", __func__, + __LINE__); + error: return rc; } diff --git a/msm/dsi/dsi_panel.h b/msm/dsi/dsi_panel.h index 47319af619..c7303bd581 100644 --- a/msm/dsi/dsi_panel.h +++ b/msm/dsi/dsi_panel.h @@ -195,6 +195,8 @@ struct dsi_panel { enum dsi_dms_mode dms_mode; bool sync_broadcast_en; + + int panel_test_gpio; }; static inline bool dsi_panel_ulps_feature_enabled(struct dsi_panel *panel)