arm: dts: qcom: apq8064-ifc6410: Add HDMI support
authorArchit Taneja <architt@codeaurora.org>
Fri, 23 Sep 2016 06:33:07 +0000 (12:03 +0530)
committerAndy Gross <andy.gross@linaro.org>
Sat, 19 Nov 2016 05:30:29 +0000 (23:30 -0600)
Add HDMI support on IFC6410. Populate the regulators required by HDMI-TX
and PHY. Establish the link between the MDP4 DTV encoder and HDMI. Create
a generic micro HDMI connector DT node. The msm drm driver doesn't parse
for HDMI connectors in DT, but it will do so later.

Cc: devicetree@vger.kernel.org
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-apq8064-ifc6410.dts

index 2eeb090..3d37cab 100644 (file)
                };
        };
 
+       hdmi-out {
+               compatible = "hdmi-connector";
+               type = "d";
+
+               port {
+                       hdmi_con: endpoint {
+                               remote-endpoint = <&hdmi_out>;
+                       };
+               };
+       };
+
        soc {
                pinctrl@800000 {
                        card_detect: card_detect {
                                        bias-disable;
                                };
                        };
+
+                       hdmi_pinctrl: hdmi-pinctrl {
+                               mux {
+                                       pins = "gpio70", "gpio71", "gpio72";
+                                       function = "hdmi";
+                               };
+
+                               pinconf_ddc {
+                                       pins = "gpio70", "gpio71";
+                                       bias-pull-up;
+                                       drive-strength = <2>;
+                               };
+
+                               pinconf_hpd {
+                                       pins = "gpio72";
+                                       bias-pull-down;
+                                       drive-strength = <16>;
+                               };
+                       };
                };
 
                rpm@108000 {
                                mmc-pwrseq = <&sdcc4_pwrseq>;
                        };
                };
+
+               hdmi-tx@4a00000 {
+                       status = "okay";
+
+                       core-vdda-supply = <&pm8921_hdmi_switch>;
+                       hdmi-mux-supply = <&ext_3p3v>;
+
+                       hpd-gpios = <&tlmm_pinmux 72 GPIO_ACTIVE_HIGH>;
+
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&hdmi_pinctrl>;
+
+                       ports {
+                               port@0 {
+                                       endpoint {
+                                               remote-endpoint = <&mdp_dtv_out>;
+                                       };
+                               };
+
+                               port@1 {
+                                       endpoint {
+                                               remote-endpoint = <&hdmi_con>;
+                                       };
+                               };
+                       };
+               };
+
+               hdmi-phy@4a00400 {
+                       status = "okay";
+
+                       core-vdda-supply = <&pm8921_hdmi_switch>;
+               };
+
+               mdp@5100000 {
+                       status = "okay";
+
+                       ports {
+                               port@3 {
+                                       endpoint {
+                                               remote-endpoint = <&hdmi_in>;
+                                       };
+                               };
+                       };
+               };
        };
 };