arm64: tegra: Enable HDMI on P2972-0000
authorThierry Reding <treding@nvidia.com>
Fri, 23 Nov 2018 12:31:38 +0000 (13:31 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 15:31:32 +0000 (16:31 +0100)
Add the 5V HDMI regulator and hook up the VDD_1V0 and VDD_1V8HS supplies
from the PMIC to the display block. Also enable the display hub which is
responsible for instantiating the display controllers. Finally, enable
the third SOR that drives the TMDS signals to the HDMI connector.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts

index 57d3f00464cea6605559adb79fbac78aff3d7e9d..204a207ff4bd8cd183a1a7f3a64aade4c00ffd36 100644 (file)
                                        in-ldo4-6-supply = <&vdd_5v0_sys>;
                                        in-ldo7-8-supply = <&vdd_1v8ls>;
 
-                                       sd0 {
+                                       vdd_1v0: sd0 {
                                                regulator-name = "VDD_1V0";
                                                regulator-min-microvolt = <1000000>;
                                                regulator-max-microvolt = <1000000>;
                                                regulator-boot-on;
                                        };
 
-                                       sd1 {
+                                       vdd_1v8hs: sd1 {
                                                regulator-name = "VDD_1V8HS";
                                                regulator-min-microvolt = <1800000>;
                                                regulator-max-microvolt = <1800000>;
                        regulator-always-on;
                        regulator-boot-on;
                };
+
+               vdd_hdmi: regulator@1 {
+                       compatible = "regulator-fixed";
+                       reg = <1>;
+
+                       regulator-name = "VDD_5V0_HDMI_CON";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+                       gpio = <&gpio TEGRA194_MAIN_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
        };
 };
index d4cd241b7666e50678bdfdf7a9a74a85046e9e85..c781f28d1cc425ebbcffc79c276de88948255340 100644 (file)
                        status = "okay";
                };
 
+               ddc: i2c@31c0000 {
+                       status = "okay";
+               };
+
                pwm@c340000 {
                        status = "okay";
                };
+
+               host1x@13e00000 {
+                       display-hub@15200000 {
+                               status = "okay";
+                       };
+
+                       dpaux@155e0000 {
+                               status = "okay";
+                       };
+
+                       sor@15b80000 {
+                               status = "okay";
+
+                               avdd-io-supply = <&vdd_1v0>;
+                               vdd-pll-supply = <&vdd_1v8hs>;
+                               hdmi-supply = <&vdd_hdmi>;
+
+                               nvidia,ddc-i2c-bus = <&ddc>;
+                               nvidia,hpd-gpio = <&gpio TEGRA194_MAIN_GPIO(M, 2)
+                                                        GPIO_ACTIVE_LOW>;
+                       };
+               };
        };
 
        fan {