From 35112fd29557ec0974449b34962f469625beb265 Mon Sep 17 00:00:00 2001 From: Harigovindan P Date: Thu, 15 Oct 2020 11:20:24 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Add support for sharp qhd dual dsi on shima This change adds support for sharp qhd dual dsi panel on shima platform. Change-Id: I258d1718c611433a06244ae95f02afab86b2dbda --- display/shima-sde-display-common.dtsi | 20 ++++++++++++++++++++ display/shima-sde-display-idp.dtsi | 13 +++++++++++++ 2 files changed, 33 insertions(+) diff --git a/display/shima-sde-display-common.dtsi b/display/shima-sde-display-common.dtsi index 7647aef3b1ac..d6e548f33235 100644 --- a/display/shima-sde-display-common.dtsi +++ b/display/shima-sde-display-common.dtsi @@ -4,6 +4,7 @@ #include "dsi-panel-r66451-dsc-fhd-plus-60hz-cmd.dtsi" #include "dsi-panel-r66451-dsc-fhd-plus-144hz-cmd.dtsi" #include "dsi-panel-r66451-dsc-fhd-plus-video-cphy.dtsi" +#include "dsi-panel-sharp-dsc-qhd-plus-cmd.dtsi" #include "dsi-panel-sim-video.dtsi" #include @@ -150,6 +151,25 @@ }; }; +&dsi_sharp_qhd_plus_dsc_cmd { + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { /* 120 FPS */ + qcom,mdss-dsi-panel-phy-timings = [00 1a 07 06 16 15 07 + 07 07 02 04 00 17 0b]; + qcom,display-topology = <2 2 2>; + qcom,default-topology-index = <0>; + }; + + timing@1 { /* 60 FPS*/ + qcom,mdss-dsi-panel-phy-timings = [00 1a 07 06 16 15 07 + 07 07 02 04 00 17 0b]; + qcom,display-topology = <2 2 2>; + qcom,default-topology-index = <0>; + }; + }; +}; + &dsi_r66451_amoled_cmd { qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,dsi-select-sec-clocks = "mux_byte_clk1", "mux_pixel_clk1"; diff --git a/display/shima-sde-display-idp.dtsi b/display/shima-sde-display-idp.dtsi index fd96a123258d..3c07eaa27ac0 100644 --- a/display/shima-sde-display-idp.dtsi +++ b/display/shima-sde-display-idp.dtsi @@ -68,6 +68,17 @@ qcom,mdss-dsi-bl-inverted-dbv; qcom,platform-reset-gpio = <&tlmm 24 0>; }; +&dsi_sharp_qhd_plus_dsc_cmd { + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; + pwms = <&pm8350c_pwm_2 0 0>; + qcom,bl-pmic-pwm-period-usecs = <100>; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,platform-reset-gpio = <&tlmm 24 0>; + qcom,platform-bklight-en-gpio = <&tlmm 48 0>; + qcom,platform-en-gpio = <&tlmm 47 0>; +}; &dsi_sim_vid { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; @@ -76,5 +87,7 @@ }; &sde_dsi { + pinctrl-names = "panel_active", "panel_suspend", "pwm_pin"; + pinctrl-2 = <&lcd_backlight_ctrl_default>; qcom,dsi-default-panel = <&dsi_r66451_amoled_60hz_cmd>; }; From 3725dc1308722270d93a51cac2acac223851193e Mon Sep 17 00:00:00 2001 From: Harigovindan P Date: Thu, 15 Oct 2020 11:22:15 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Enable ESD for sharp qhd dual dsi panel on shima This change enables ESD for sharp qhd dual dsi panel on shima target. Change-Id: I3d1b8b3ff09a58fc15d3f09062b8cb02b2a2a8f3 --- display/shima-sde-display.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/display/shima-sde-display.dtsi b/display/shima-sde-display.dtsi index c8b0ed462c34..576da914f8b6 100644 --- a/display/shima-sde-display.dtsi +++ b/display/shima-sde-display.dtsi @@ -133,3 +133,12 @@ qcom,mdss-dsi-panel-status-value = <0x1c>; qcom,mdss-dsi-panel-status-read-length = <1>; }; + +&dsi_sharp_qhd_plus_dsc_cmd { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x1c>; + qcom,mdss-dsi-panel-status-read-length = <1>; +};