riscv: dts: starfive: jh7110: add dma-coherent for vpu/jpu 05/299605/3
authorSamin Guo <samin.guo@starfivetech.com>
Wed, 23 Aug 2023 02:43:54 +0000 (10:43 +0800)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 6 Oct 2023 00:49:38 +0000 (09:49 +0900)
Use DMA-Coherent to avoid DIRECT_REMAP when allocating DMA
buffers

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
[sw0312.kim: cherry-pick the commit dfb44f0122ba from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ia0d3955010e963c0fb635e10081c1a2ab31155d4

arch/riscv/boot/dts/starfive/jh7110.dtsi

index c66f130..d24ed3b 100644 (file)
 
                jpu: jpu@13090000 {
                        compatible = "starfive,jpu";
+                       dma-coherent;
                        reg = <0x0 0x13090000 0x0 0x300>;
                        interrupts = <14>;
                        clocks = <&syscrg JH7110_SYSCLK_CODAJ12_AXI>,
 
                vpu_dec: vpu_dec@130A0000 {
                        compatible = "starfive,vdec";
+                       dma-coherent;
                        reg = <0x0 0x130A0000 0x0 0x10000>;
                        interrupts = <13>;
                        clocks = <&syscrg JH7110_SYSCLK_WAVE511_AXI>,
 
                vpu_enc: vpu_enc@130B0000 {
                        compatible = "starfive,venc";
+                       dma-coherent;
                        reg = <0x0 0x130B0000 0x0 0x10000>;
                        interrupts = <15>;
                        clocks = <&syscrg JH7110_SYSCLK_VENC_AXI>,