ARM: dts: am57xx-idk-common: add HDMI to the common dtsi
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 25 Nov 2019 13:11:00 +0000 (15:11 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 12 Dec 2019 17:22:26 +0000 (09:22 -0800)
AM571x/AM572x/AM574x IDK base boards have HDMI output. Add DT nodes to
am57xx-idk-common.dtsi to enable HDMI.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am57xx-idk-common.dtsi

index 398721c7201c8558bd2419de8bb1fac576ca733a..aa5e55f981792885292dcc28cdce6f29fd3c22ea 100644 (file)
@@ -9,6 +9,7 @@
        aliases {
                rtc0 = &tps659038_rtc;
                rtc1 = &rtc;
+               display0 = &hdmi0;
        };
 
        chosen {
                        default-state = "off";
                };
        };
+
+       hdmi0: connector@0 {
+               compatible = "hdmi-connector";
+               label = "hdmi";
+
+               type = "a";
+
+               port {
+                       hdmi_connector_in: endpoint {
+                               remote-endpoint = <&tpd12s015_out>;
+                       };
+               };
+       };
+
+       tpd12s015: encoder@0 {
+               compatible = "ti,tpd12s016", "ti,tpd12s015";
+
+               gpios = <0>, /* optional CT_CP_HPD */
+                       <0>, /* optional LS_OE */
+                       <&gpio7 12 GPIO_ACTIVE_HIGH>;   /* HPD */
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+
+                               tpd12s015_in: endpoint@0 {
+                                       remote-endpoint = <&hdmi_out>;
+                               };
+                       };
+
+                       port@1 {
+                               reg = <1>;
+
+                               tpd12s015_out: endpoint@0 {
+                                       remote-endpoint = <&hdmi_connector_in>;
+                               };
+                       };
+               };
+       };
 };
 
 &dra7_pmx_core {
 &cpu0 {
        vdd-supply = <&smps12_reg>;
 };
+
+&hdmi {
+       status = "okay";
+
+       vdda-supply = <&ldo4_reg>;
+
+       port {
+               hdmi_out: endpoint {
+                       remote-endpoint = <&tpd12s015_in>;
+               };
+       };
+};
+
+&dss {
+       status = "okay";
+};