From e0a251cca2937caaf35bc4effdc88efffcdf084f Mon Sep 17 00:00:00 2001 From: Yu Wu Date: Thu, 22 Jul 2021 16:56:56 +0800 Subject: [PATCH] ARM: dts: msm: add support 120hz dual cphy cmd panel for waipio cdp Add support waipio dual cphy cmd panel on cdp, dual cphy panel can be enabled through below commands: fastboot oem select-display-panel prim:r66451_120hz_fhd_dsc_cmd_cphy fastboot oem select-display-panel :sec:r66451_sec_120hz_fhd_dsc_cmd_cphy Also change timing mode order to 120Hz,90Hz,60Hz. Change-Id: Ib067cf5fca0b532dfc72e56b3fd477979dcc1ef5 --- ...nel-r66451-dsc-fhd-plus-120hz-cmd-cphy.dtsi | 18 ++++++++++-------- display/waipio-sde-display-cdp.dtsi | 3 +++ display/waipio-sde-display-common.dtsi | 9 +++++---- display/waipio-sde-display-mtp.dtsi | 4 ++++ display/waipio-sde-display-qrd.dtsi | 3 +++ 5 files changed, 25 insertions(+), 12 deletions(-) mode change 100755 => 100644 display/waipio-sde-display-common.dtsi diff --git a/display/dsi-panel-r66451-dsc-fhd-plus-120hz-cmd-cphy.dtsi b/display/dsi-panel-r66451-dsc-fhd-plus-120hz-cmd-cphy.dtsi index 8f403500..44db2eda 100644 --- a/display/dsi-panel-r66451-dsc-fhd-plus-120hz-cmd-cphy.dtsi +++ b/display/dsi-panel-r66451-dsc-fhd-plus-120hz-cmd-cphy.dtsi @@ -11,6 +11,8 @@ qcom,dsi-ctrl-num = <0>; qcom,dsi-phy-num = <0>; + qcom,dsi-sec-ctrl-num = <1>; + qcom,dsi-sec-phy-num = <1>; qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; qcom,mdss-dsi-bllp-eof-power-mode; @@ -41,7 +43,7 @@ qcom,mdss-dsi-display-timings { timing@0 { cell-index = <0>; - qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2340>; qcom,mdss-dsi-h-front-porch = <96>; @@ -60,7 +62,7 @@ qcom,mdss-dsi-timing-switch-command = [ 39 01 00 00 00 00 02 b0 00 39 01 00 00 00 00 1a c2 09 24 0c 00 00 - 0c 09 3c 00 09 3c 00 00 00 00 00 00 + 0c 00 00 00 09 3c 00 00 00 00 00 00 00 00 00 00 00 30 00 6c ]; @@ -119,10 +121,6 @@ 39 01 00 00 00 00 05 2b 00 00 09 23 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29 - 39 01 00 00 00 00 02 b0 00 - 39 01 00 00 00 00 1a c2 09 24 0c 00 00 - 0c 09 3c 00 09 3c 00 00 00 00 00 00 - 00 00 00 00 00 30 00 6c ]; qcom,mdss-dsi-off-command = [ @@ -243,7 +241,7 @@ timing@2 { cell-index = <2>; - qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2340>; qcom,mdss-dsi-h-front-porch = <96>; @@ -262,7 +260,7 @@ qcom,mdss-dsi-timing-switch-command = [ 39 01 00 00 00 00 02 b0 00 39 01 00 00 00 00 1a c2 09 24 0c 00 00 - 0c 00 00 00 09 3c 00 00 00 00 00 00 + 0c 09 3c 00 09 3c 00 00 00 00 00 00 00 00 00 00 00 30 00 6c ]; @@ -321,6 +319,10 @@ 39 01 00 00 00 00 05 2b 00 00 09 23 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29 + 39 01 00 00 00 00 02 b0 00 + 39 01 00 00 00 00 1a c2 09 24 0c 00 00 + 0c 09 3c 00 09 3c 00 00 00 00 00 00 + 00 00 00 00 00 30 00 6c ]; qcom,mdss-dsi-off-command = [ diff --git a/display/waipio-sde-display-cdp.dtsi b/display/waipio-sde-display-cdp.dtsi index e5fad7d9..eee30121 100644 --- a/display/waipio-sde-display-cdp.dtsi +++ b/display/waipio-sde-display-cdp.dtsi @@ -22,12 +22,15 @@ &dsi_r66451_amoled_120hz_cmd_cphy { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,panel-sec-supply-entries = <&dsi_panel_pwr_supply>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-sec-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-brightness-max-level = <255>; qcom,mdss-dsi-bl-inverted-dbv; qcom,platform-reset-gpio = <&tlmm 0 0>; + qcom,platform-sec-reset-gpio = <&tlmm 4 0>; }; &dsi_r66451_amoled_cmd { diff --git a/display/waipio-sde-display-common.dtsi b/display/waipio-sde-display-common.dtsi old mode 100755 new mode 100644 index 1d125ea6..67a88dde --- a/display/waipio-sde-display-common.dtsi +++ b/display/waipio-sde-display-common.dtsi @@ -322,10 +322,11 @@ qcom,mdss-dsi-panel-status-read-length = <1>; qcom,dsi-select-clocks = "pll_byte_clk0", "pll_dsi_clk0"; + qcom,dsi-select-sec-clocks = "pll_byte_clk1", "pll_dsi_clk1"; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 00 00 00 1d 13 03 - 19 02 02 04 00 00 00]; + qcom,mdss-dsi-panel-phy-timings = [00 00 00 00 20 1b 05 + 19 06 02 04 00 00 00]; qcom,display-topology = <2 2 1>; qcom,default-topology-index = <0>; }; @@ -338,8 +339,8 @@ }; timing@2 { - qcom,mdss-dsi-panel-phy-timings = [00 00 00 00 20 1b 05 - 19 06 02 04 00 00 00]; + qcom,mdss-dsi-panel-phy-timings = [00 00 00 00 1d 13 03 + 19 02 02 04 00 00 00]; qcom,display-topology = <2 2 1>; qcom,default-topology-index = <0>; }; diff --git a/display/waipio-sde-display-mtp.dtsi b/display/waipio-sde-display-mtp.dtsi index 5e10a1df..25ab96e6 100644 --- a/display/waipio-sde-display-mtp.dtsi +++ b/display/waipio-sde-display-mtp.dtsi @@ -20,11 +20,15 @@ &dsi_r66451_amoled_120hz_cmd_cphy { qcom,panel-supply-entries = <&dsi_panel_pwr_supply_sim>; + qcom,panel-sec-supply-entries = <&dsi_panel_pwr_supply_sim>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-sec-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-brightness-max-level = <255>; qcom,mdss-dsi-bl-inverted-dbv; + qcom,platform-reset-gpio = <&tlmm 0 0>; + qcom,platform-sec-reset-gpio = <&tlmm 4 0>; }; &dsi_r66451_amoled_cmd { diff --git a/display/waipio-sde-display-qrd.dtsi b/display/waipio-sde-display-qrd.dtsi index 5c8e15a2..ac921e08 100644 --- a/display/waipio-sde-display-qrd.dtsi +++ b/display/waipio-sde-display-qrd.dtsi @@ -223,12 +223,15 @@ &dsi_r66451_amoled_120hz_cmd_cphy { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,panel-sec-supply-entries = <&dsi_panel_pwr_supply_sim>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-sec-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-brightness-max-level = <255>; qcom,mdss-dsi-bl-inverted-dbv; qcom,platform-reset-gpio = <&tlmm 0 0>; + qcom,platform-sec-reset-gpio = <&tlmm 4 0>; }; &qupv3_se4_spi {