From 48dc7cdab2e9ab176d94eb4ccc7ae4dc41fe56f6 Mon Sep 17 00:00:00 2001 From: Yu Wu Date: Fri, 24 Sep 2021 14:21:02 +0800 Subject: [PATCH] ARM: dts: msm: waipio HDK HDMI bring up Add support of HDMI display for waipio HDK, there is a 'DSI0_SW' switch on HDK main board, for which setting to 'ON' means show image through HDMI to external display monitor while setting to 'OFF' means show image to DSI panel. Users need set switch to 'ON' to turn on HDMI display. Change-Id: Iaa2e8ae6a0ccd5284b81c1ba64ab69e9e84ce87c --- display/waipio-sde-display-common.dtsi | 2 +- display/waipio-sde-display-hdk.dtsi | 98 +++++++++++++++++++++++++- 2 files changed, 98 insertions(+), 2 deletions(-) diff --git a/display/waipio-sde-display-common.dtsi b/display/waipio-sde-display-common.dtsi index 02654686..92656328 100644 --- a/display/waipio-sde-display-common.dtsi +++ b/display/waipio-sde-display-common.dtsi @@ -1114,7 +1114,7 @@ qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-timings = [00 1e 08 07 18 22 08 - 08 08 02 04 00 1a 0d]; + 08 08 02 04 1a 0c 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; diff --git a/display/waipio-sde-display-hdk.dtsi b/display/waipio-sde-display-hdk.dtsi index 21d34d7f..0f849097 100644 --- a/display/waipio-sde-display-hdk.dtsi +++ b/display/waipio-sde-display-hdk.dtsi @@ -1,5 +1,90 @@ #include "waipio-sde-display.dtsi" +&qupv3_se5_i2c { + nq@64 { + status = "disabled"; + }; +}; + +&tlmm { + lt9611_pins: lt9611_pins { + mux { + pins = "gpio44", "gpio107", "gpio109", "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio44", "gpio107", "gpio109", "gpio9"; + drive-strength = <8>; + bias-disable = <0>; + }; + }; +}; + +&qupv3_se9_i2c { + status = "ok"; + + lt9611: lt,lt9611@2b { + compatible = "lt,lt9611uxc"; + reg = <0x2b>; + interrupt-parent = <&tlmm>; + interrupts = <44 0>; + interrupt-names = "lt_irq"; + lt,irq-gpio = <&tlmm 44 0x0>; + lt,reset-gpio = <&tlmm 107 0x0>; + lt,hdmi-3p3-en = <&tlmm 109 0x0>; + lt,hdmi-1p2-en = <&tlmm 9 0x0>; + lt,non-pluggable; + + pinctrl-names = "default"; + pinctrl-0 = <<9611_pins>; + + lt,preferred-mode = "1920x1080"; + + lt,customize-modes { + lt,customize-mode-id@0 { + lt,mode-h-active = <1920>; + lt,mode-h-front-porch = <88>; + lt,mode-h-pulse-width = <44>; + lt,mode-h-back-porch = <148>; + lt,mode-h-active-high; + lt,mode-v-active = <1080>; + lt,mode-v-front-porch = <4>; + lt,mode-v-pulse-width = <5>; + lt,mode-v-back-porch = <36>; + lt,mode-v-active-high; + lt,mode-clock-in-khz = <148500>; + }; + + lt,customize-mode-id@1 { + lt,mode-h-active = <3840>; + lt,mode-h-front-porch = <176>; + lt,mode-h-pulse-width = <88>; + lt,mode-h-back-porch = <400>; + lt,mode-h-active-high; + lt,mode-v-active = <2160>; + lt,mode-v-front-porch = <8>; + lt,mode-v-pulse-width = <10>; + lt,mode-v-back-porch = <72>; + lt,mode-v-active-high; + lt,mode-clock-in-khz = <608040>; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + lt9611_in_0: endpoint { + remote-endpoint = <&ext_dsi_0_out>; + }; + }; + }; + }; +}; + &pm8350_gpios { lcd_bias_enable { lcd_bias_enable_default: lcd_bias_enable_default { @@ -42,7 +127,18 @@ pinctrl-2 = <&lcd_backlight_ctrl_default>; pinctrl-3 = <&lcd_wled_enable_default>; pinctrl-4 = <&lcd_bias_enable_default>; - qcom,dsi-default-panel = <&dsi_nt36672c_fhd_plus_90hz_video_cphy>; + qcom,dsi-default-panel = <&dsi_ext_bridge_1080p>; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ext_dsi_0_out: endpoint { + remote-endpoint = <<9611_in_0>; + }; + }; + }; }; &qupv3_se4_spi {