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 33*d7b101a3SMaxime Ripard - allwinner,sun8i-r40-mbus 34f0df2e05SJernej Skrabec - allwinner,sun50i-a64-mbus 352609a127SMaxime Ripard 362609a127SMaxime Ripard reg: 372609a127SMaxime Ripard maxItems: 1 382609a127SMaxime Ripard 392609a127SMaxime Ripard clocks: 402609a127SMaxime Ripard maxItems: 1 412609a127SMaxime Ripard 422609a127SMaxime Ripard dma-ranges: 432609a127SMaxime Ripard description: 442609a127SMaxime Ripard See section 2.3.9 of the DeviceTree Specification. 452609a127SMaxime Ripard 46f88d59fcSRob Herring '#address-cells': true 47f88d59fcSRob Herring 48f88d59fcSRob Herring '#size-cells': true 49f88d59fcSRob Herring 502609a127SMaxime Ripardrequired: 512609a127SMaxime Ripard - "#interconnect-cells" 522609a127SMaxime Ripard - compatible 532609a127SMaxime Ripard - reg 542609a127SMaxime Ripard - clocks 552609a127SMaxime Ripard - dma-ranges 562609a127SMaxime Ripard 572609a127SMaxime RipardadditionalProperties: false 582609a127SMaxime Ripard 592609a127SMaxime Ripardexamples: 602609a127SMaxime Ripard - | 612609a127SMaxime Ripard #include <dt-bindings/clock/sun5i-ccu.h> 622609a127SMaxime Ripard 632609a127SMaxime Ripard mbus: dram-controller@1c01000 { 642609a127SMaxime Ripard compatible = "allwinner,sun5i-a13-mbus"; 652609a127SMaxime Ripard reg = <0x01c01000 0x1000>; 662609a127SMaxime Ripard clocks = <&ccu CLK_MBUS>; 67f88d59fcSRob Herring #address-cells = <1>; 68f88d59fcSRob Herring #size-cells = <1>; 692609a127SMaxime Ripard dma-ranges = <0x00000000 0x40000000 0x20000000>; 702609a127SMaxime Ripard #interconnect-cells = <1>; 712609a127SMaxime Ripard }; 722609a127SMaxime Ripard 732609a127SMaxime Ripard... 74