Eliza EVK comes with two HDMI outputs: native eARC and via Lontium
DSI2HDMI converter.  Add the first one, with the 5V power supply.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
 arch/arm64/boot/dts/qcom/eliza-evk.dtsi | 103 ++++++++++++++++++++++++++++++++
 1 file changed, 103 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/eliza-evk.dtsi 
b/arch/arm64/boot/dts/qcom/eliza-evk.dtsi
index 2fc945658300..533d52ecaacb 100644
--- a/arch/arm64/boot/dts/qcom/eliza-evk.dtsi
+++ b/arch/arm64/boot/dts/qcom/eliza-evk.dtsi
@@ -12,6 +12,29 @@ chosen {
                stdout-path = "serial0:115200n8";
        };
 
+       hdmi_5p0_reg: regulator-hdmi-5v0 {
+               compatible = "regulator-fixed";
+               regulator-name = "hdmi_5p0";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&tlmm 184 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+               pinctrl-0 = <&hdmi_5p0_state>;
+               pinctrl-names = "default";
+       };
+
+       hdmi-0-connector {
+               compatible = "hdmi-connector";
+               type = "a";
+
+               port {
+                       hdmi_0_connector_in: endpoint {
+                               remote-endpoint = <&mdss_hdmi_out>;
+                       };
+               };
+       };
+
        pmic-glink {
                compatible = "qcom,eliza-pmic-glink",
                             "qcom,sm8550-pmic-glink",
@@ -51,6 +74,34 @@ pmic_glink_ss_in: endpoint {
        };
 };
 
+&mdss {
+       status = "okay";
+};
+
+&mdss_hdmi {
+       pinctrl-0 = <&hdmi_ddc_default>,
+                   <&hdmi_cec_active>,
+                   <&hdmi_hpd_active>;
+       pinctrl-1 = <&hdmi_ddc_default>,
+                   <&hdmi_cec_sleep>,
+                   <&hdmi_hpd_sleep>;
+       pinctrl-names = "default", "sleep";
+
+       core-vcc-supply = <&vreg_l2b>;
+       core-vdda-supply = <&vreg_l4b>;
+       vddio-supply = <&hdmi_5p0_reg>;
+
+       status = "okay";
+};
+
+&mdss_hdmi_out {
+       remote-endpoint = <&hdmi_0_connector_in>;
+};
+
+&mdss_hdmi_phy {
+       status = "okay";
+};
+
 &pm7550ba_eusb2_repeater {
        vdd18-supply = <&vreg_l7b>;
        vdd3-supply = <&vreg_l17b>;
@@ -70,11 +121,63 @@ &sdhc_2 {
 };
 
 &tlmm {
+       hdmi_ddc_default: hdmi-ddc-state {
+               hdmi-ddc-scl-pins {
+                       pins = "gpio6";
+                       function = "hdmi_ddc_scl";
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+
+               hdmi-ddc-sda-pins {
+                       pins = "gpio7";
+                       function = "hdmi_ddc_sda";
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+       };
+
+       hdmi_cec_active: hdmi-cec-active-state {
+               pins = "gpio46";
+               function = "hdmi_tx_cec";
+               drive-strength = <16>;
+               bias-pull-up;
+       };
+
+       hdmi_cec_sleep: hdmi-cec-sleep-state {
+               pins = "gpio46";
+               function = "hdmi_tx_cec";
+               drive-strength = <2>;
+               bias-pull-up;
+       };
+
+       hdmi_hpd_active: hdmi-hpd-active-state {
+               pins = "gpio47";
+               function = "hdmi_hot_plug";
+               drive-strength = <16>;
+               bias-pull-down;
+       };
+
+       hdmi_hpd_sleep: hdmi-hpd-sleep-state {
+               pins = "gpio47";
+               function = "hdmi_hot_plug";
+               drive-strength = <2>;
+               bias-pull-down;
+       };
+
        sd_cd: sd-cd-state {
                pins = "gpio58";
                function = "gpio";
                bias-pull-up;
        };
+
+       hdmi_5p0_state: hdmi-5p0-state {
+               pins = "gpio184";
+               function = "gpio";
+               drive-strength = <8>;
+               bias-disable;
+               output-low;
+       };
 };
 
 &uart13 {

-- 
2.53.0

Reply via email to