12609a127SMaxime Ripard# SPDX-License-Identifier: GPL-2.0 22609a127SMaxime Ripard%YAML 1.2 32609a127SMaxime Ripard--- 42609a127SMaxime Ripard$id: http://devicetree.org/schemas/arm/sunxi/allwinner,sun4i-a10-mbus.yaml# 52609a127SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml# 62609a127SMaxime Ripard 72609a127SMaxime Ripardtitle: Allwinner Memory Bus (MBUS) controller 82609a127SMaxime Ripard 92609a127SMaxime Ripardmaintainers: 102609a127SMaxime Ripard - Chen-Yu Tsai <wens@csie.org> 112609a127SMaxime Ripard - Maxime Ripard <mripard@kernel.org> 122609a127SMaxime Ripard 132609a127SMaxime Riparddescription: | 142609a127SMaxime Ripard The MBUS controller drives the MBUS that other devices in the SoC 152609a127SMaxime Ripard will use to perform DMA. It also has a register interface that 162609a127SMaxime Ripard allows to monitor and control the bandwidth and priorities for 172609a127SMaxime Ripard masters on that bus. 182609a127SMaxime Ripard 192609a127SMaxime Ripard Each device having to perform their DMA through the MBUS must have 202609a127SMaxime Ripard the interconnects and interconnect-names properties set to the MBUS 212609a127SMaxime Ripard controller and with "dma-mem" as the interconnect name. 222609a127SMaxime Ripard 232609a127SMaxime Ripardproperties: 242609a127SMaxime Ripard "#interconnect-cells": 252609a127SMaxime Ripard const: 1 262609a127SMaxime Ripard description: 272609a127SMaxime Ripard The content of the cell is the MBUS ID. 282609a127SMaxime Ripard 292609a127SMaxime Ripard compatible: 302609a127SMaxime Ripard enum: 312609a127SMaxime Ripard - allwinner,sun5i-a13-mbus 322609a127SMaxime Ripard - allwinner,sun8i-h3-mbus 332609a127SMaxime Ripard 342609a127SMaxime Ripard reg: 352609a127SMaxime Ripard maxItems: 1 362609a127SMaxime Ripard 372609a127SMaxime Ripard clocks: 382609a127SMaxime Ripard maxItems: 1 392609a127SMaxime Ripard 402609a127SMaxime Ripard dma-ranges: 412609a127SMaxime Ripard description: 422609a127SMaxime Ripard See section 2.3.9 of the DeviceTree Specification. 432609a127SMaxime Ripard 442609a127SMaxime Ripardrequired: 452609a127SMaxime Ripard - "#interconnect-cells" 462609a127SMaxime Ripard - compatible 472609a127SMaxime Ripard - reg 482609a127SMaxime Ripard - clocks 492609a127SMaxime Ripard - dma-ranges 502609a127SMaxime Ripard 512609a127SMaxime RipardadditionalProperties: false 522609a127SMaxime Ripard 532609a127SMaxime Ripardexamples: 542609a127SMaxime Ripard - | 552609a127SMaxime Ripard #include <dt-bindings/clock/sun5i-ccu.h> 562609a127SMaxime Ripard 572609a127SMaxime Ripard mbus: dram-controller@1c01000 { 582609a127SMaxime Ripard compatible = "allwinner,sun5i-a13-mbus"; 592609a127SMaxime Ripard reg = <0x01c01000 0x1000>; 602609a127SMaxime Ripard clocks = <&ccu CLK_MBUS>; 612609a127SMaxime Ripard dma-ranges = <0x00000000 0x40000000 0x20000000>; 622609a127SMaxime Ripard #interconnect-cells = <1>; 632609a127SMaxime Ripard }; 642609a127SMaxime Ripard 652609a127SMaxime Ripard... 66