[PATCH net-next v2 3/6] riscv: dts: Add network-bus dma-ranges for SpacemiT K1
From: Vivian Wang
Date: Tue Jun 17 2025 - 23:42:56 EST
The SpacemiT K1 has various static translations of DMA accesses. Add one
of these translations, namely network-bus, as a simple-bus node with
dma-ranges. Child nodes of network-bus will come in later patches.
The node is named "network-bus" in consensus with SpacemiT [1].
[1]: https://lore.kernel.org/all/CAH1PCMaC+imcMZCFYtRdmH6ge=dPgnANn_GqVfsGRS=+YhyJCw@xxxxxxxxxxxxxx/
Signed-off-by: Vivian Wang <wangruikang@xxxxxxxxxxx>
---
arch/riscv/boot/dts/spacemit/k1.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
index de403bda2b878c60d9eb5b4d8d336e5c52498159..b1b87ce1ab70faa8fb61fb27bc1845fe40b35561 100644
--- a/arch/riscv/boot/dts/spacemit/k1.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
@@ -580,5 +580,14 @@ sec_uart1: serial@f0612000 {
reg-io-width = <4>;
status = "reserved"; /* for TEE usage */
};
+
+ network-bus {
+ compatible = "simple-bus";
+ ranges;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
+ <0x0 0x80000000 0x1 0x00000000 0x0 0x80000000>;
+ };
};
};
--
2.49.0