]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
arm64: dts: renesas: r8a77965-salvator-x: Enable DU external clocks and HDMI
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 27 Apr 2018 22:02:19 +0000 (23:02 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 16 May 2018 08:45:06 +0000 (10:45 +0200)
The DU1 external dot clock is provided by the fixed frequency clock
generator X21, while the DU0 and DU3 clocks are provided by the
programmable Versaclock5 clock generator.

Enable the clocks, and the HDMI encoder for the M3-N Salvator-X board
and hook it up to the HDMI connector.

Based on patches from Takeshi Kihara <takeshi.kihara.df@renesas.com>

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts

index 75d890d91df932f6e45fe8f8923491727808ccfa..340a3c72b65aad6c11638768b931718ad19c02c9 100644 (file)
                reg = <0x0 0x48000000 0x0 0x78000000>;
        };
 };
+
+&du {
+       clocks = <&cpg CPG_MOD 724>,
+                <&cpg CPG_MOD 723>,
+                <&cpg CPG_MOD 721>,
+                <&versaclock5 1>,
+                <&x21_clk>,
+                <&versaclock5 2>;
+       clock-names = "du.0", "du.1", "du.3",
+                     "dclkin.0", "dclkin.1", "dclkin.3";
+};
+
+&hdmi0 {
+       status = "okay";
+
+       ports {
+               port@1 {
+                       reg = <1>;
+                       rcar_dw_hdmi0_out: endpoint {
+                               remote-endpoint = <&hdmi0_con>;
+                       };
+               };
+       };
+};
+
+&hdmi0_con {
+       remote-endpoint = <&rcar_dw_hdmi0_out>;
+};