[PATCH 1/3] riscv: dts: spacemit: Add DMA translation buses for K1
Guodong Xu
guodong at riscstar.com
Thu Jun 26 00:54:43 PDT 2025
On Mon, Jun 23, 2025 at 6:04 PM Vivian Wang <wangruikang at iscas.ac.cn> wrote:
>
> The SpacemiT K1 has various static translations of DMA accesses. Add
> these as simple-bus nodes with dma-ranges. Devices actually using these
> translations will be added to or moved inside the bus nodes in later
> patches.
>
> The bus names are assigned according to consensus with SpacemiT [1].
>
> Link: https://lore.kernel.org/r/CAH1PCMaC+imcMZCFYtRdmH6ge=dPgnANn_GqVfsGRS=+YhyJCw@mail.gmail.com [1]
> Signed-off-by: Vivian Wang <wangruikang at iscas.ac.cn>
> ---
> arch/riscv/boot/dts/spacemit/k1.dtsi | 53 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 53 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
> index 14097f1f6f447bd33ff3aaa07382d27ca8e59a48..99c76997b367f733c9dda2c30dd85817294ef9b7 100644
> --- a/arch/riscv/boot/dts/spacemit/k1.dtsi
> +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
> @@ -571,5 +571,58 @@ sec_uart1: serial at f0612000 {
> reg-io-width = <4>;
> status = "reserved"; /* for TEE usage */
> };
> +
> + camera-bus {
> + compatible = "simple-bus";
> + ranges;
> + #address-cells = <2>;
> + #size-cells = <2>;
> + dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
> + <0x0 0x80000000 0x1 0x00000000 0x1 0x80000000>;
> + };
> +
> + dma-bus {
> + compatible = "simple-bus";
> + ranges;
> + #address-cells = <2>;
> + #size-cells = <2>;
> + dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
> + <0x1 0x00000000 0x1 0x80000000 0x3 0x00000000>;
> + };
> +
> + multimedia-bus {
> + compatible = "simple-bus";
> + ranges;
> + #address-cells = <2>;
> + #size-cells = <2>;
> + dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
> + <0x0 0x80000000 0x1 0x00000000 0x3 0x80000000>;
> + };
> +
> + 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>;
> + };
> +
> + pcie-bus {
> + compatible = "simple-bus";
> + ranges;
> + #address-cells = <2>;
> + #size-cells = <2>;
> + dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
> + <0x0 0xb8000000 0x1 0x38000000 0x3 0x48000000>;
> + };
> +
> + storage-bus {
> + compatible = "simple-bus";
> + ranges;
> + #address-cells = <2>;
> + #size-cells = <2>;
> + dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>;
> + };
This looks good to me.
Reviewed-by: Guodong Xu <guodong at riscstar.com>
> };
> };
>
> --
> 2.49.0
>
More information about the linux-riscv
mailing list