ARM: dts: dra76-evm: add HDMI output
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 25 Nov 2019 13:10:59 +0000 (15:10 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 12 Dec 2019 17:22:20 +0000 (09:22 -0800)
Add DRA76 EVM HDMI output for the base board.

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

index 1fb6f13fb5e23c4fcb25174956cdba2a7fcf17e5..86a3e79909a860da39e72fd643543f64fbc7f827 100644 (file)
        model = "TI DRA762 EVM";
        compatible = "ti,dra76-evm", "ti,dra762", "ti,dra7";
 
+       aliases {
+               display0 = &hdmi0;
+
+               sound0 = &sound0;
+               sound1 = &hdmi;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x80000000 0x0 0x80000000>;
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <1800000>;
        };
+
+       hdmi0: connector {
+               compatible = "hdmi-connector";
+               label = "hdmi";
+
+               type = "a";
+
+               port {
+                       hdmi_connector_in: endpoint {
+                               remote-endpoint = <&tpd12s015_out>;
+                       };
+               };
+       };
+
+       tpd12s015: encoder {
+               compatible = "ti,tpd12s015";
+
+               gpios = <&gpio7 30 GPIO_ACTIVE_HIGH>,   /* gpio7_30, CT CP HPD */
+                       <&gpio7 31 GPIO_ACTIVE_HIGH>,   /* gpio7_31, LS OE */
+                       <&gpio7 12 GPIO_ACTIVE_HIGH>;   /* gpio7_12/sp1_cs2, HPD */
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+
+                               tpd12s015_in: endpoint {
+                                       remote-endpoint = <&hdmi_out>;
+                               };
+                       };
+
+                       port@1 {
+                               reg = <1>;
+
+                               tpd12s015_out: endpoint {
+                                       remote-endpoint = <&hdmi_connector_in>;
+                               };
+                       };
+               };
+       };
 };
 
 &i2c1 {
        phy-supply = <&ldo3_reg>;
 };
 
+&dss {
+       status = "ok";
+       vdda_video-supply = <&ldo5_reg>;
+};
+
+&hdmi {
+       status = "ok";
+
+       vdda-supply = <&ldo1_reg>;
+
+       port {
+               hdmi_out: endpoint {
+                       remote-endpoint = <&tpd12s015_in>;
+               };
+       };
+};
+
 &qspi {
        spi-max-frequency = <96000000>;
        m25p80@0 {