arm64: dts: meson-gx: add support for simplefb
authorMaxime Jourdan <mjourdan@baylibre.com>
Wed, 16 Jan 2019 12:40:30 +0000 (13:40 +0100)
committerKevin Hilman <khilman@baylibre.com>
Thu, 17 Jan 2019 19:59:57 +0000 (11:59 -0800)
SimpleFB allows transferring a framebuffer from the firmware/bootloader
to the kernel, while making sure the related clocks and power supplies
stay enabled.

Add nodes for CVBS and HDMI Simple Framebuffers.

Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-gx.dtsi
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi

index 9b0ac18..86a14f3 100644 (file)
                };
        };
 
+       chosen {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               simplefb_cvbs: framebuffer-cvbs {
+                       compatible = "amlogic,simple-framebuffer",
+                                    "simple-framebuffer";
+                       amlogic,pipeline = "vpu-cvbs";
+                       power-domains = <&pwrc_vpu>;
+                       status = "disabled";
+               };
+
+               simplefb_hdmi: framebuffer-hdmi {
+                       compatible = "amlogic,simple-framebuffer",
+                                    "simple-framebuffer";
+                       amlogic,pipeline = "vpu-hdmi";
+                       power-domains = <&pwrc_vpu>;
+                       status = "disabled";
+               };
+       };
+
        cpus {
                #address-cells = <0x2>;
                #size-cells = <0x0>;
index a7b883c..a60d365 100644 (file)
        resets = <&reset RESET_SD_EMMC_C>;
 };
 
+&simplefb_hdmi {
+       clocks = <&clkc CLKID_HDMI_PCLK>,
+                <&clkc CLKID_CLK81>,
+                <&clkc CLKID_GCLK_VENCI_INT0>;
+};
+
 &spicc {
        clocks = <&clkc CLKID_SPICC>;
        clock-names = "core";
index d5c3d78..3093ae4 100644 (file)
        resets = <&reset RESET_SD_EMMC_C>;
 };
 
+&simplefb_hdmi {
+       clocks = <&clkc CLKID_HDMI_PCLK>,
+                <&clkc CLKID_CLK81>,
+                <&clkc CLKID_GCLK_VENCI_INT0>;
+};
+
 &spicc {
        clocks = <&clkc CLKID_SPICC>;
        clock-names = "core";