arm64: dts: ti: k3-j721e-sk: Enable HDMI
authorRahul T R <r-ravikumar@ti.com>
Thu, 5 May 2022 09:07:09 +0000 (14:37 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 5 May 2022 17:15:16 +0000 (22:45 +0530)
Add node for dvi bridge and the endpoint nodes to
describe connection from
DSS => TI TFP410 DPI-to-DVI Bridge => HDMI connector.
Also add the required pinmux for HDMI hotplug and
powerdown

Signed-off-by: Rahul T R <r-ravikumar@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Aradhya Bhatia <a-bhatia1@ti.com>
Link: https://lore.kernel.org/r/20220505090709.9252-3-r-ravikumar@ti.com
arch/arm64/boot/dts/ti/k3-j721e-sk.dts

index 07b1e40fbc47004feb7953a0f83172379a94df32..80358cba6954c8140b74e47bea2123a798f2016e 100644 (file)
                        };
                };
        };
+
+       hdmi-connector {
+               compatible = "hdmi-connector";
+               label = "hdmi";
+               type = "a";
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&hdmi_hpd_pins_default>;
+
+               ddc-i2c-bus = <&main_i2c1>;
+
+               /* HDMI_HPD */
+               hpd-gpios = <&main_gpio1 0 GPIO_ACTIVE_HIGH>;
+
+               port {
+                       hdmi_connector_in: endpoint {
+                               remote-endpoint = <&tfp410_out>;
+                       };
+               };
+       };
+
+       dvi-bridge {
+               compatible = "ti,tfp410";
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&hdmi_pdn_pins_default>;
+
+               powerdown-gpios = <&main_gpio0 127 GPIO_ACTIVE_LOW>;
+               ti,deskew = <0>;
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+
+                               tfp410_in: endpoint {
+                                       remote-endpoint = <&dpi1_out>;
+                                       pclk-sample = <1>;
+                               };
+                       };
+
+                       port@1 {
+                               reg = <1>;
+
+                               tfp410_out: endpoint {
+                                       remote-endpoint =
+                                               <&hdmi_connector_in>;
+                               };
+                       };
+               };
+       };
 };
 
 &main_pmx0 {
                >;
        };
 
+       hdmi_hpd_pins_default: hdmi-hpd-pins-default {
+               pinctrl-single,pins = <
+                       J721E_IOPAD(0x204, PIN_INPUT, 7) /* (AD5) UART1_RTSn.GPIO1_0 */
+               >;
+       };
+
+       hdmi_pdn_pins_default: hdmi-pdn-pins-default {
+               pinctrl-single,pins = <
+                       J721E_IOPAD(0x200, PIN_INPUT, 7) /* (AC4) UART1_CTSn.GPIO0_127 */
+               >;
+       };
+
        /* Reset for M.2 E Key slot on PCIe0  */
        ekey_reset_pins_default: ekey-reset-pns-pins-default {
                pinctrl-single,pins = <
 };
 
 &dss_ports {
-       port {
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       port@0  {
+               reg = <0>;
+
                dpi0_out: endpoint {
                        remote-endpoint = <&dp0_in>;
                };
        };
+
+       port@1 {
+               reg = <1>;
+
+               dpi1_out: endpoint {
+                       remote-endpoint = <&tfp410_in>;
+               };
+       };
 };
 
 &dp0_ports {