Enable the Peripheral DMA controller (PDMA0) on the SpacemiT K1-based
Banana Pi F3 board by setting its status to "okay". This board-specific
configuration activates the PDMA controller defined in the SoC's base
device tree.
Signed-off-by: Guodong Xu <guodong@riscstar.com>
---
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
index 2363f0e65724..115222c065ab 100644
--- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
@@ -45,3 +45,7 @@ &uart0 {
pinctrl-0 = <&uart0_2_cfg>;
status = "okay";
};
+
+&pdma0 {
+ status = "okay";
+};
--
2.43.0
Hi Guodong, On 20:57 Wed 11 Jun , Guodong Xu wrote: > Enable the Peripheral DMA controller (PDMA0) on the SpacemiT K1-based > Banana Pi F3 board by setting its status to "okay". This board-specific > configuration activates the PDMA controller defined in the SoC's base > device tree. > Although this series is actively developed under Bananapi-f3 board but it should work fine with jupiter board, so I'd suggest to enable it too, thanks > Signed-off-by: Guodong Xu <guodong@riscstar.com> > --- > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > index 2363f0e65724..115222c065ab 100644 > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > @@ -45,3 +45,7 @@ &uart0 { > pinctrl-0 = <&uart0_2_cfg>; > status = "okay"; > }; > + > +&pdma0 { > + status = "okay"; > +}; > -- > 2.43.0 > > -- Yixun Lan (dlan)
On Wed, Jun 11, 2025 at 9:58 PM Yixun Lan <dlan@gentoo.org> wrote: > > Hi Guodong, > > On 20:57 Wed 11 Jun , Guodong Xu wrote: > > Enable the Peripheral DMA controller (PDMA0) on the SpacemiT K1-based > > Banana Pi F3 board by setting its status to "okay". This board-specific > > configuration activates the PDMA controller defined in the SoC's base > > device tree. > > > Although this series is actively developed under Bananapi-f3 board > but it should work fine with jupiter board, so I'd suggest to enable > it too, thanks > I'd be glad to include the Jupiter board as well. Since I don't have Jupiter hardware for testing, could someone with access verify it works before I add it to the series? -Guodong > > Signed-off-by: Guodong Xu <guodong@riscstar.com> > > --- > > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > index 2363f0e65724..115222c065ab 100644 > > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > @@ -45,3 +45,7 @@ &uart0 { > > pinctrl-0 = <&uart0_2_cfg>; > > status = "okay"; > > }; > > + > > +&pdma0 { > > + status = "okay"; > > +}; > > -- > > 2.43.0 > > > > > > -- > Yixun Lan (dlan)
Hi Guodong, On 22:32 Wed 11 Jun , Guodong Xu wrote: > On Wed, Jun 11, 2025 at 9:58 PM Yixun Lan <dlan@gentoo.org> wrote: > > > > Hi Guodong, > > > > On 20:57 Wed 11 Jun , Guodong Xu wrote: > > > Enable the Peripheral DMA controller (PDMA0) on the SpacemiT K1-based > > > Banana Pi F3 board by setting its status to "okay". This board-specific > > > configuration activates the PDMA controller defined in the SoC's base > > > device tree. > > > > > Although this series is actively developed under Bananapi-f3 board > > but it should work fine with jupiter board, so I'd suggest to enable > > it too, thanks > > > > I'd be glad to include the Jupiter board as well. Since I don't have Jupiter > hardware for testing, could someone with access verify it works before I > add it to the series? > Do you have any suggestion how to test? like if any test cases there? I would assume it work fine on jupiter since it's a SoC level feature? instead of board specific.. -- Yixun Lan (dlan)
On Wed, Jun 11, 2025 at 11:02 PM Yixun Lan <dlan@gentoo.org> wrote: > > Hi Guodong, > > On 22:32 Wed 11 Jun , Guodong Xu wrote: > > On Wed, Jun 11, 2025 at 9:58 PM Yixun Lan <dlan@gentoo.org> wrote: > > > > > > Hi Guodong, > > > > > > On 20:57 Wed 11 Jun , Guodong Xu wrote: > > > > Enable the Peripheral DMA controller (PDMA0) on the SpacemiT K1-based > > > > Banana Pi F3 board by setting its status to "okay". This board-specific > > > > configuration activates the PDMA controller defined in the SoC's base > > > > device tree. > > > > > > > Although this series is actively developed under Bananapi-f3 board > > > but it should work fine with jupiter board, so I'd suggest to enable > > > it too, thanks > > > > > > > I'd be glad to include the Jupiter board as well. Since I don't have Jupiter > > hardware for testing, could someone with access verify it works before I > > add it to the series? > > > Do you have any suggestion how to test? like if any test cases there? > I am using the dmatest (CONFIG_DMATEST) for memory-to-memory and using spi3 to test device-to-memory / memory-to-device. > I would assume it work fine on jupiter since it's a SoC level feature? > instead of board specific.. > Yeah, that's a SoC level device. I would say a boot test and some basic mem-to-mem test should be enough. -Guodong > -- > Yixun Lan (dlan)
© 2016 - 2025 Red Hat, Inc.