From 45ff58d130f8bc3cd0b0fc6e15de0300c74f57a8 Mon Sep 17 00:00:00 2001 From: Vishnuvardhan Prodduturi Date: Thu, 13 Dec 2018 15:34:38 +0530 Subject: [PATCH] ARM: dts: msm: Add display support sm6150 based trinket interposer This change adds display support for sm6150 based trinket interposer. Change-Id: Ifb1e401a0b69e10958650285e0e9c70badea11c1 Signed-off-by: Vishnuvardhan Prodduturi --- .../sm6150-interposer-trinket-idp-overlay.dts | 4 ++ .../qcom/sm6150-interposer-trinket-idp.dtsi | 43 +++++++++++++ .../boot/dts/qcom/sm6150-sde-display.dtsi | 64 ++++++++++++++++++- 3 files changed, 110 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp-overlay.dts b/arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp-overlay.dts index 2c2736ccd8b4..04867e47a3fe 100644 --- a/arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp-overlay.dts +++ b/arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp-overlay.dts @@ -23,3 +23,7 @@ qcom,msm-id = <355 0x0>; qcom,board-id = <34 0>; }; + +&dsi_td4330_truly_vid_display { + qcom,dsi-display-active; +}; diff --git a/arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp.dtsi b/arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp.dtsi index ebac486ea772..318cf5ae8f3c 100644 --- a/arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6150-interposer-trinket-idp.dtsi @@ -13,6 +13,7 @@ #include #include +#include "sm6150-sde-display.dtsi" &pm6125_gpios { key_vol_up { @@ -45,3 +46,45 @@ }; }; }; + +&sde_dp { + /delete-property/ qcom,dp-usbpd-detection; + status = "disabled"; +}; + +&mdss_dsi0 { + vdda-1p2-supply = <&L18A>; +}; + +&mdss_dsi_phy0 { + vdda-0p9-supply = <&L4A>; +}; + +&sde_dsi { + vddio-supply = <&L9A>; +}; + +&mdss_mdp { + connectors = <&sde_rscc &sde_wb &sde_dsi>; +}; + +&dsi_td4330_truly_video { + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,platform-reset-gpio = <&tlmm 91 0>; + qcom,platform-en-gpio = <&pm6125_gpios 8 0>; + qcom,platform-bklight-en-gpio = <&pmi632_gpios 6 0>; +}; + +&dsi_td4330_truly_cmd { + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,platform-te-gpio = <&tlmm 90 0>; + qcom,platform-reset-gpio = <&tlmm 91 0>; + qcom,platform-en-gpio = <&pm6125_gpios 8 0>; + qcom,platform-bklight-en-gpio = <&pmi632_gpios 6 0>; +}; diff --git a/arch/arm64/boot/dts/qcom/sm6150-sde-display.dtsi b/arch/arm64/boot/dts/qcom/sm6150-sde-display.dtsi index 499d33430e25..011016eb8441 100644 --- a/arch/arm64/boot/dts/qcom/sm6150-sde-display.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6150-sde-display.dtsi @@ -17,6 +17,8 @@ #include "dsi-panel-td4328-1080p-cmd.dtsi" #include "dsi-panel-rm69298-truly-amoled-fhd-plus-video.dtsi" #include "dsi-panel-rm69298-truly-amoled-fhd-plus-cmd.dtsi" +#include "dsi-panel-td4330-truly-singlemipi-fhd-cmd.dtsi" +#include "dsi-panel-td4330-truly-singlemipi-fhd-video.dtsi" #include &soc { @@ -170,6 +172,28 @@ qcom,dsi-panel = <&dsi_rm69298_truly_amoled_cmd>; }; + dsi_td4330_truly_vid_display: qcom,dsi-display@7 { + label = "dsi_td4330_truly_vid_display"; + qcom,display-type = "primary"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,dsi-select-clocks = "src_byte_clk0", "src_pixel_clk0"; + + qcom,dsi-panel = <&dsi_td4330_truly_video>; + }; + + dsi_td4330_truly_cmd_display: qcom,dsi-display@8 { + label = "dsi_td4330_truly_cmd_display"; + qcom,display-type = "primary"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,dsi-select-clocks = "src_byte_clk0", "src_pixel_clk0"; + + qcom,dsi-panel = <&dsi_td4330_truly_cmd>; + }; + sde_dsi: qcom,dsi-display { compatible = "qcom,dsi-display"; @@ -197,7 +221,9 @@ &dsi_td4328_truly_vid_display &dsi_td4328_truly_cmd_display &dsi_rm69298_truly_amoled_vid_display - &dsi_rm69298_truly_amoled_cmd_display>; + &dsi_rm69298_truly_amoled_cmd_display + &dsi_td4330_truly_vid_display + &dsi_td4330_truly_cmd_display>; }; sde_wb: qcom,wb-display@0 { @@ -402,3 +428,39 @@ }; }; }; + +&dsi_td4330_truly_cmd { + qcom,mdss-dsi-t-clk-post = <0x0e>; + qcom,mdss-dsi-t-clk-pre = <0x36>; + qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-panel-phy-timings = + [26 20 09 0B 06 02 04 a0 + 26 20 09 0B 06 02 04 a0 + 26 20 09 0B 06 02 04 a0 + 26 20 09 0B 06 02 04 a0 + 26 1F 09 0B 06 02 04 a0]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_td4330_truly_video { + qcom,mdss-dsi-t-clk-post = <0x0e>; + qcom,mdss-dsi-t-clk-pre = <0x36>; + qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-panel-phy-timings = + [26 20 09 0B 06 02 04 a0 + 26 20 09 0B 06 02 04 a0 + 26 20 09 0B 06 02 04 a0 + 26 20 09 0B 06 02 04 a0 + 26 1F 09 0B 06 02 04 a0]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +};