arm64: dts: imx8mp-evk: Add native HDMI output
authorLiu Ying <victor.liu@nxp.com>
Fri, 23 Aug 2024 02:12:57 +0000 (10:12 +0800)
committerShawn Guo <shawnguo@kernel.org>
Wed, 4 Sep 2024 09:36:22 +0000 (17:36 +0800)
J17 on i.MX8mp EVK base board is a HDMI type A connector.
It connects with i.MX8mp HDMI PHY.  Add support for it.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-evk.dts

index 9383477..d26930f 100644 (file)
                      <0x1 0x00000000 0 0xc0000000>;
        };
 
+       native-hdmi-connector {
+               compatible = "hdmi-connector";
+               label = "HDMI OUT";
+               type = "a";
+
+               port {
+                       hdmi_in: endpoint {
+                               remote-endpoint = <&hdmi_tx_out>;
+                       };
+               };
+       };
+
        pcie0_refclk: pcie0-refclk {
                compatible = "fixed-clock";
                #clock-cells = <0>;
        status = "disabled";/* can2 pin conflict with pdm */
 };
 
+&hdmi_pvi {
+       status = "okay";
+};
+
+&hdmi_tx {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_hdmi>;
+       status = "okay";
+
+       ports {
+               port@1 {
+                       hdmi_tx_out: endpoint {
+                               remote-endpoint = <&hdmi_in>;
+                       };
+               };
+       };
+};
+
+&hdmi_tx_phy {
+       status = "okay";
+};
+
 &i2c1 {
        clock-frequency = <400000>;
        pinctrl-names = "default";
        status = "okay";
 };
 
+&lcdif3 {
+       status = "okay";
+};
+
 &micfil {
        #sound-dai-cells = <0>;
        pinctrl-names = "default";
                >;
        };
 
+       pinctrl_hdmi: hdmigrp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL     0x1c2
+                       MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA     0x1c2
+                       MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC         0x10
+               >;
+       };
+
        pinctrl_hog: hoggrp {
                fsl,pins = <
                        MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD         0x40000010