Enable the display engine and DW-HDMI controller on the Orange Pi 4 Pro.
Add the HDMI Type-A connector node, define reg_cldo2 on the AXP318W PMIC,
and connect reg_cldo2 as the HDMI 1.8V supply.

Signed-off-by: Alastair D'Silva <[email protected]>
---
 .../allwinner/sun60i-a733-orangepi-4-pro.dts  | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-orangepi-4-pro.dts 
b/arch/arm64/boot/dts/allwinner/sun60i-a733-orangepi-4-pro.dts
index 374287d962a8..a11b195a0f57 100644
--- a/arch/arm64/boot/dts/allwinner/sun60i-a733-orangepi-4-pro.dts
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-orangepi-4-pro.dts
@@ -21,6 +21,32 @@ aliases {
        chosen {
                stdout-path = "serial0:115200n8";
        };
+
+       hdmi-connector {
+               compatible = "hdmi-connector";
+               type = "a";
+
+               port {
+                       hdmi_con_in: endpoint {
+                               remote-endpoint = <&hdmi_out_con>;
+                       };
+               };
+       };
+};
+
+&de {
+       status = "okay";
+};
+
+&hdmi {
+       hvcc-supply = <&reg_cldo2>;
+       status = "okay";
+};
+
+&hdmi_out {
+       hdmi_out_con: endpoint {
+               remote-endpoint = <&hdmi_con_in>;
+       };
 };
 
 &hosc {
@@ -51,6 +77,12 @@ axp318w: pmic@36 {
                #interrupt-cells = <1>;
 
                regulators {
+                       reg_cldo2: cldo2 {
+                               regulator-name = "vcc18-hdmi";
+                               regulator-min-microvolt = <1800000>;
+                               regulator-max-microvolt = <1800000>;
+                       };
+
                        reg_dcdc2: dcdc2 {
                                regulator-name = "vdd-cpu";
                                regulator-min-microvolt = <500000>;
-- 
2.53.0

Reply via email to