Allwinner Memory Bus (MBUS) controller

Schema identifier ($id): "http://devicetree.org/schemas/arm/sunxi/allwinner,sun4i-a10-mbus.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

The MBUS controller drives the MBUS that other devices in the SoC will use to perform DMA. It also has a register interface that allows to monitor and control the bandwidth and priorities for masters on that bus.

Each device having to perform their DMA through the MBUS must have the interconnects and interconnect-names properties set to the MBUS controller and with "dma-mem" as the interconnect name.

Properties and child nodes (properties) #

#interconnect-cells — required here #

Exact value (const): 1

The content of the cell is the MBUS ID.

compatible — required here #

Allowed values (enum): "allwinner,sun5i-a13-mbus", "allwinner,sun8i-a33-mbus", "allwinner,sun8i-a50-mbus", "allwinner,sun8i-a83t-mbus", "allwinner,sun8i-h3-mbus", "allwinner,sun8i-r40-mbus", "allwinner,sun8i-v3s-mbus", "allwinner,sun8i-v536-mbus", "allwinner,sun20i-d1-mbus", "allwinner,sun50i-a64-mbus", "allwinner,sun50i-a100-mbus", "allwinner,sun50i-h5-mbus", "allwinner,sun50i-h6-mbus", "allwinner,sun50i-h616-mbus", "allwinner,sun50i-r329-mbus"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

MBUS interconnect/bandwidth limit/PMU registers

Item 2

DRAM controller/PHY registers

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "mbus"

Item 2

Exact value (const): "dram"

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

MBUS interconnect module clock

Item 2

DRAM controller/PHY module clock

Item 3

Register bus clock, shared by MBUS and DRAM

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "mbus"

Item 2

Exact value (const): "dram"

Item 3

Exact value (const): "bus"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

MBUS PMU activity interrupt.

dma-ranges — required here #

See section 2.3.9 of the DeviceTree Specification.

#address-cells — not listed as required here #

true — No constraints added by this property rule.

#size-cells — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "#interconnect-cells", "compatible", "reg", "clocks", "dma-ranges"

Condition (if) #

This rule must not match (not) #

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun5i-a13-mbus", "allwinner,sun8i-r40-mbus"

When the condition matches (then) #

Properties and child nodes (properties) #

reg — not listed as required here #

Minimum number of items (minItems): 2

reg-names — required here #

Minimum number of items (minItems): 2

clocks — not listed as required here #

Minimum number of items (minItems): 3

clock-names — required here #

Minimum number of items (minItems): 3

Required in this object (required): "reg-names", "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties) #

reg — not listed as required here #

Maximum number of items (maxItems): 1

reg-names — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sun50i-a64-ccu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

dram-controller@1c01000 {
    compatible = "allwinner,sun5i-a13-mbus";
    reg = <0x01c01000 0x1000>;
    clocks = <&ccu CLK_MBUS>;
    #address-cells = <1>;
    #size-cells = <1>;
    dma-ranges = <0x00000000 0x40000000 0x20000000>;
    #interconnect-cells = <1>;
};
dram-controller@1c62000 {
    compatible = "allwinner,sun50i-a64-mbus";
    reg = <0x01c62000 0x1000>,
          <0x01c63000 0x1000>;
    reg-names = "mbus", "dram";
    clocks = <&ccu CLK_MBUS>,
             <&ccu CLK_DRAM>,
             <&ccu CLK_BUS_DRAM>;
    clock-names = "mbus", "dram", "bus";
    interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <1>;
    dma-ranges = <0x00000000 0x40000000 0xc0000000>;
    #interconnect-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page