Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6fab21b authored by Venkata Prahlad Valluru's avatar Venkata Prahlad Valluru
Browse files

video: fbdev: msm: add skip-panel-reset dt property



When set, will skip panel reset during panel ON
and OFF. This is needed for panels with in-cell design,
where panel reset will affect touch.

Change-Id: I6525379cf18d179b8c820edf7301810b7fdc858d
Signed-off-by: default avatarVenkata Prahlad Valluru <vvalluru@codeaurora.org>
parent 83881e30
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -521,6 +521,7 @@ the fps window.
					in floating state(not LP00 or LP11) to turn on this property. Software
					turns off PHY pmic power supply, phy ldo and DSI Lane ldo during
					idle screen (footswitch control off) when this property is enabled.
- qcom,skip-panel-reset:		Boolean. when set, will skip panel reset during panel ON/OFF.
[[Optional config sub-nodes]]		These subnodes provide different configurations for a given same panel.
					Default configuration can be chosen by specifying phandle of the
					selected subnode in the qcom,config-select.
+9 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -425,6 +425,11 @@ int mdss_dsi_panel_reset(struct mdss_panel_data *pdata, int enable)
		return rc;
	}

	if (pinfo->skip_panel_reset && !pinfo->cont_splash_enabled) {
		pr_debug("%s: skip_panel_reset is set\n", __func__);
		return 0;
	}

	pr_debug("%s: enable = %d\n", __func__, enable);

	if (enable) {
@@ -2942,6 +2947,9 @@ static int mdss_panel_parse_dt(struct device_node *np,
	pinfo->mipi.force_clk_lane_hs = of_property_read_bool(np,
		"qcom,mdss-dsi-force-clock-lane-hs");

	pinfo->skip_panel_reset =
		of_property_read_bool(np, "qcom,mdss-skip-panel-reset");

	rc = mdss_dsi_parse_panel_features(np, ctrl_pdata);
	if (rc) {
		pr_err("%s: failed to parse panel features\n", __func__);
+7 −1
Original line number Diff line number Diff line
/* Copyright (c) 2008-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2008-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -774,6 +774,12 @@ struct mdss_panel_info {
	/* persistence mode on/off */
	bool persist_mode;

	/*
	 * Skip panel reset during panel on/off.
	 * Set for some in-cell panels
	 */
	bool skip_panel_reset;

	/* HDR properties of display panel*/
	struct mdss_panel_hdr_properties hdr_properties;
};