ARM: dts: aspeed: ast2600-evb: Enable video engine
authorHoward Chiu <howard_chiu@aspeedtech.com>
Tue, 29 Mar 2022 03:24:03 +0000 (03:24 +0000)
committerJoel Stanley <joel@jms.id.au>
Thu, 19 May 2022 07:43:25 +0000 (17:13 +0930)
Enable video engine and reserve memory for it.

Signed-off-by: Howard Chiu <howard_chiu@aspeedtech.com>
Link: https://lore.kernel.org/r/SG2PR06MB23159B914BF7EF937FEDD2B5E61E9@SG2PR06MB2315.apcprd06.prod.outlook.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-ast2600-evb.dts

index 788448cdd6b3f63e5016344b1454e7666206ebd1..6fcd9406987b67b9a2f27a5592f849d3ba6938e2 100644 (file)
                reg = <0x80000000 0x80000000>;
        };
 
+       reserved-memory {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+
+               video_engine_memory: video {
+                       size = <0x04000000>;
+                       alignment = <0x01000000>;
+                       compatible = "shared-dma-pool";
+                       reusable;
+               };
+       };
+
        vcc_sdhci0: regulator-vcc-sdhci0 {
                compatible = "regulator-fixed";
                regulator-name = "SDHCI0 Vcc";
        vqmmc-supply = <&vccq_sdhci1>;
        clk-phase-sd-hs = <7>, <200>;
 };
+
+&video {
+       status = "okay";
+       memory-region = <&video_engine_memory>;
+};