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

Commit c317043c authored by Sandeep Panda's avatar Sandeep Panda
Browse files

msm: mdss: add support to read force clock lane HS property



This change adds support to read force clock lane to HS
property from panel dt file.

Change-Id: I20c42e0f7914c8fb91c6cb7ea6fd2802359a6be6
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent 64590efd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -380,6 +380,7 @@ Optional properties:
					"vflip" = panel is flipped in vertical direction
- qcom,panel-ack-disabled: A boolean property to indicate, whether we need to wait for any ACK from the panel
			   for any commands that we send.
- qcom,mdss-dsi-force-clock-lane-hs:	Boolean to force dsi clock lanes to HS mode always.

Note, if a given optional qcom,* binding is not present, then the driver will configure
the default values specified.
@@ -512,5 +513,6 @@ Example:
						<40 120 128>,
						<128 240 64>;
		qcom,mdss-dsi-panel-orientation = "180"
		qcom,mdss-dsi-force-clock-lane-hs;
	};
};
+4 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, 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
@@ -1723,6 +1723,9 @@ static int mdss_panel_parse_dt(struct device_node *np,
	mdss_dsi_parse_dcs_cmds(np, &ctrl_pdata->off_cmds,
		"qcom,mdss-dsi-off-command", "qcom,mdss-dsi-off-command-state");

	pinfo->mipi.force_clk_lane_hs = of_property_read_bool(np,
		"qcom,mdss-dsi-force-clock-lane-hs");

	rc = mdss_dsi_parse_panel_features(np, ctrl_pdata);
	if (rc) {
		pr_err("%s: failed to parse panel features\n", __func__);
+1 −1
Original line number Diff line number Diff line
@@ -289,7 +289,7 @@ struct mipi_panel_info {
	/* The packet-size should not bet changed */
	char no_max_pkt_size;
	/* Clock required during LP commands */
	char force_clk_lane_hs;
	bool force_clk_lane_hs;

	char vsync_enable;
	char hw_vsync_mode;