ARM: dts: aspeed: Enable video engine on romulus and wtherspoon
authorEddie James <eajames@linux.ibm.com>
Tue, 2 Apr 2019 02:42:29 +0000 (02:42 +0000)
committerJoel Stanley <joel@jms.id.au>
Thu, 20 Jun 2019 07:07:26 +0000 (16:37 +0930)
Enable the video engine and add it's optional reserved memory region.
Use 32MB for the reserved memory since the video engine could need up to
two 1920x1200@32bpp source buffers.

Source buffers: 2 * 1920 * 1200 * 4 = 18432000 bytes
In addition, the V4L2 subsystem will allocate any number of compression
buffers, each at most 1/8th the size of the source buffer.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts

index 8aba8b4..9628ecb 100644 (file)
                        compatible = "shared-dma-pool";
                        reusable;
                };
+
+               video_engine_memory: jpegbuffer {
+                       size = <0x02000000>;    /* 32M */
+                       alignment = <0x01000000>;
+                       compatible = "shared-dma-pool";
+                       reusable;
+               };
        };
 
        leds {
        status = "okay";
 };
 
+&video {
+       status = "okay";
+       memory-region = <&video_engine_memory>;
+};
+
 #include "ibm-power9-dual.dtsi"
index 85b9e40..31ea34e 100644 (file)
                        compatible = "shared-dma-pool";
                        reusable;
                };
+
+               video_engine_memory: jpegbuffer {
+                       size = <0x02000000>;    /* 32MM */
+                       alignment = <0x01000000>;
+                       compatible = "shared-dma-pool";
+                       reusable;
+               };
        };
 
        gpio-keys {
        status = "okay";
 };
 
+&video {
+       status = "okay";
+       memory-region = <&video_engine_memory>;
+};
+
 #include "ibm-power9-dual.dtsi"