Skip to content

Commit 2f793d0

Browse files
dramforeverdlan17
authored andcommitted
riscv: dts: spacemit: Add DMA translation buses for K1
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 <[email protected]> Reviewed-by: Guodong Xu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yixun Lan <[email protected]>
1 parent c71dbeb commit 2f793d0

File tree

1 file changed

+53
-0
lines changed
  • arch/riscv/boot/dts/spacemit

1 file changed

+53
-0
lines changed

arch/riscv/boot/dts/spacemit/k1.dtsi

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,5 +769,58 @@
769769
reg-io-width = <4>;
770770
status = "reserved"; /* for TEE usage */
771771
};
772+
773+
camera-bus {
774+
compatible = "simple-bus";
775+
ranges;
776+
#address-cells = <2>;
777+
#size-cells = <2>;
778+
dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
779+
<0x0 0x80000000 0x1 0x00000000 0x1 0x80000000>;
780+
};
781+
782+
dma-bus {
783+
compatible = "simple-bus";
784+
ranges;
785+
#address-cells = <2>;
786+
#size-cells = <2>;
787+
dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
788+
<0x1 0x00000000 0x1 0x80000000 0x3 0x00000000>;
789+
};
790+
791+
multimedia-bus {
792+
compatible = "simple-bus";
793+
ranges;
794+
#address-cells = <2>;
795+
#size-cells = <2>;
796+
dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
797+
<0x0 0x80000000 0x1 0x00000000 0x3 0x80000000>;
798+
};
799+
800+
network-bus {
801+
compatible = "simple-bus";
802+
ranges;
803+
#address-cells = <2>;
804+
#size-cells = <2>;
805+
dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
806+
<0x0 0x80000000 0x1 0x00000000 0x0 0x80000000>;
807+
};
808+
809+
pcie-bus {
810+
compatible = "simple-bus";
811+
ranges;
812+
#address-cells = <2>;
813+
#size-cells = <2>;
814+
dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
815+
<0x0 0xb8000000 0x1 0x38000000 0x3 0x48000000>;
816+
};
817+
818+
storage-bus {
819+
compatible = "simple-bus";
820+
ranges;
821+
#address-cells = <2>;
822+
#size-cells = <2>;
823+
dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>;
824+
};
772825
};
773826
};

0 commit comments

Comments
 (0)