Merge "disp: msm: dsi: add a new DT property to support ext bridge hpd"

This commit is contained in:
qctecmdr 2023-08-17 04:30:53 -07:00 • committed by Gerrit - the friendly Code Review server
commit 3dc145e9e4
3 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
*/
@ -470,6 +471,7 @@ struct dsi_split_link_config {
* @append_tx_eot: Append EOT packets for forward transmissions if set to
* true.
* @ext_bridge_mode: External bridge is connected.
* @ext_bridge_hpd_en: Enable hpd for external bridge.
* @force_hs_clk_lane: Send continuous clock to the panel.
* @phy_type: DPHY/CPHY is enabled for this panel.
* @dsi_split_link_config: Split Link Configuration.
@ -500,6 +502,7 @@ struct dsi_host_common_cfg {
bool ignore_rx_eot;
bool append_tx_eot;
bool ext_bridge_mode;
bool ext_bridge_hpd_en;
bool force_hs_clk_lane;
enum dsi_phy_type phy_type;
struct dsi_split_link_config split_link;

View file

@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
*/
@ -749,6 +750,8 @@ int dsi_conn_set_info_blob(struct drm_connector *connector,
bpp = dsi_ctrl_pixel_format_to_bpp(fmt);
sde_kms_info_add_keyint(info, "bit_depth", bpp);
if (dsi_display->panel->host_config.ext_bridge_hpd_en)
sde_kms_info_add_keystr(info, "ext bridge hpd support", "true");
end:
return 0;

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
*/
@ -1138,7 +1138,8 @@ static int dsi_panel_parse_misc_host_config(struct dsi_host_common_cfg *host,
host->ext_bridge_mode = utils->read_bool(utils->data,
"qcom,mdss-dsi-ext-bridge-mode");
host->ext_bridge_hpd_en = utils->read_bool(utils->data,
"qcom,mdss-dsi-ext-bridge-hpd");
host->force_hs_clk_lane = utils->read_bool(utils->data,
"qcom,mdss-dsi-force-clock-lane-hs");
panel_cphy_mode = utils->read_bool(utils->data,