disp: msm: dsi: add indexing for panel timing nodes

The order of the panel timing nodes specified in the device tree is
not guaranteed to be the same while being parsed in the driver. This
results in unintended modes being set as preferred timing mode. The change
introduces cell-index property, so that the timing modes can be
accurately indexed and parsed.

Change-Id: I8ccd4d5a15643bfe72bc8be084f5e91fac26feb4
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
Satya Rama Aditya Pinapala
2021-03-21 20:22:59 -07:00
committed by Gerrit - the friendly Code Review server
parent 19e9831a45
commit 2fec1685d0
4 changed files with 14 additions and 7 deletions

View File

@@ -660,6 +660,7 @@ struct dsi_display_mode_priv_info {
* @dsi_mode_flags: Flags to signal other drm components via private flags
* @panel_mode_caps: panel mode capabilities.
* @is_preferred: Is mode preferred
* @mode_idx: Mode index as defined by devicetree.
* @priv_info: Mode private info
*/
struct dsi_display_mode {
@@ -668,6 +669,7 @@ struct dsi_display_mode {
u32 dsi_mode_flags;
u32 panel_mode_caps;
bool is_preferred;
u32 mode_idx;
struct dsi_display_mode_priv_info *priv_info;
};