]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: dts: sunxi: h3/h5: Add MBUS controller node
authorJernej Skrabec <jernej.skrabec@siol.net>
Wed, 23 Oct 2019 22:13:29 +0000 (00:13 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 5 Nov 2019 10:35:10 +0000 (11:35 +0100)
Both, H3 and H5, contain MBUS, which is the bus used by DMA devices to
access system memory.

MBUS controller is responsible for arbitration between channels based
on set priority and can do some other things as well, like report
bandwidth used. It also maps RAM region to different address than CPU.

Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm/boot/dts/sunxi-h3-h5.dtsi

index 8df29cd05b83f0bf7cd04d4c9f7a43b0448c2191..510f83fb234b15a4084c1e01f22cad04fd35507c 100644 (file)
                compatible = "simple-bus";
                #address-cells = <1>;
                #size-cells = <1>;
+               dma-ranges;
                ranges;
 
                display_clocks: clock@1000000 {
                        };
                };
 
+               mbus: dram-controller@1c62000 {
+                       compatible = "allwinner,sun8i-h3-mbus";
+                       reg = <0x01c62000 0x1000>;
+                       clocks = <&ccu 113>;
+                       dma-ranges = <0x00000000 0x40000000 0xc0000000>;
+                       #interconnect-cells = <1>;
+               };
+
                spi0: spi@1c68000 {
                        compatible = "allwinner,sun8i-h3-spi";
                        reg = <0x01c68000 0x1000>;