]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
arm64: dts: allwinner: pinetab: Add HDMI support
authorDang Huynh <danct12@disroot.org>
Tue, 14 Sep 2021 19:37:32 +0000 (02:37 +0700)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 16 Sep 2021 13:51:57 +0000 (15:51 +0200)
This patch enables HDMI display on PINE64 PineTab.

The PineTab has a HDMI Type C (mini) port.

Signed-off-by: Dang Huynh <danct12@disroot.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210914193732.3047668-1-danct12@disroot.org
arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts

index 6a4af14718f57a20501d73d09ab218f1e52e3a16..adb0b28b06d835113ca5020e6b74486417884f3b 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
+       hdmi-connector {
+               compatible = "hdmi-connector";
+               type = "c";
+
+               port {
+                       hdmi_con_in: endpoint {
+                               remote-endpoint = <&hdmi_out_con>;
+                       };
+               };
+       };
+
        i2c-csi {
                compatible = "i2c-gpio";
                sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* PE13 */
        regulator-name = "vcc-rtc";
 };
 
+&simplefb_hdmi {
+       vcc-hdmi-supply = <&reg_dldo1>;
+};
+
+&hdmi {
+       hvcc-supply = <&reg_dldo1>;
+       status = "okay";
+};
+
+&hdmi_out {
+       hdmi_out_con: endpoint {
+               remote-endpoint = <&hdmi_con_in>;
+       };
+};
+
 &sound {
        status = "okay";
        simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;