summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamin Guo <samin.guo@starfivetech.com>2023-08-23 10:43:54 +0800
committerSeung-Woo Kim <sw0312.kim@samsung.com>2023-10-06 09:49:38 +0900
commita0668cbec05e6403fd028c9bfe813e66a9edff68 (patch)
treee55e4551b37833a878b17551489fe2fe107b2ab9
parentfdab41d2cec76e75fc65dbddb31ee32e022c8078 (diff)
downloadlinux-starfive-a0668cbec05e6403fd028c9bfe813e66a9edff68.tar.gz
linux-starfive-a0668cbec05e6403fd028c9bfe813e66a9edff68.tar.bz2
linux-starfive-a0668cbec05e6403fd028c9bfe813e66a9edff68.zip
riscv: dts: starfive: jh7110: add dma-coherent for vpu/jpu
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
-rw-r--r--arch/riscv/boot/dts/starfive/jh7110.dtsi3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi
index c66f130adc1f..d24ed3b113f7 100644
--- a/arch/riscv/boot/dts/starfive/jh7110.dtsi
+++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi
@@ -998,6 +998,7 @@
jpu: jpu@13090000 {
compatible = "starfive,jpu";
+ dma-coherent;
reg = <0x0 0x13090000 0x0 0x300>;
interrupts = <14>;
clocks = <&syscrg JH7110_SYSCLK_CODAJ12_AXI>,
@@ -1016,6 +1017,7 @@
vpu_dec: vpu_dec@130A0000 {
compatible = "starfive,vdec";
+ dma-coherent;
reg = <0x0 0x130A0000 0x0 0x10000>;
interrupts = <13>;
clocks = <&syscrg JH7110_SYSCLK_WAVE511_AXI>,
@@ -1039,6 +1041,7 @@
vpu_enc: vpu_enc@130B0000 {
compatible = "starfive,venc";
+ dma-coherent;
reg = <0x0 0x130B0000 0x0 0x10000>;
interrupts = <15>;
clocks = <&syscrg JH7110_SYSCLK_VENC_AXI>,