forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: interconnect: Convert Allwinner MBUS controller to a schema
The older Allwinner SoCs have an MBUS controller that is used by Linux, with a matching Device Tree binding. Now that we have the DT validation in place, let's convert the device tree bindings for that controller over to a YAML schemas. Signed-off-by: Maxime Ripard <maxime@cerno.tech> Signed-off-by: Rob Herring <robh@kernel.org>
- Loading branch information
1 parent
f78ed3c
commit 2609a12
Showing
2 changed files
with
65 additions
and
37 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/arm/sunxi/allwinner,sun4i-a10-mbus.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Allwinner Memory Bus (MBUS) controller | ||
|
||
maintainers: | ||
- Chen-Yu Tsai <wens@csie.org> | ||
- Maxime Ripard <mripard@kernel.org> | ||
|
||
description: | | ||
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: | ||
"#interconnect-cells": | ||
const: 1 | ||
description: | ||
The content of the cell is the MBUS ID. | ||
|
||
compatible: | ||
enum: | ||
- allwinner,sun5i-a13-mbus | ||
- allwinner,sun8i-h3-mbus | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
dma-ranges: | ||
description: | ||
See section 2.3.9 of the DeviceTree Specification. | ||
|
||
required: | ||
- "#interconnect-cells" | ||
- compatible | ||
- reg | ||
- clocks | ||
- dma-ranges | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/sun5i-ccu.h> | ||
mbus: dram-controller@1c01000 { | ||
compatible = "allwinner,sun5i-a13-mbus"; | ||
reg = <0x01c01000 0x1000>; | ||
clocks = <&ccu CLK_MBUS>; | ||
dma-ranges = <0x00000000 0x40000000 0x20000000>; | ||
#interconnect-cells = <1>; | ||
}; | ||
... |
37 changes: 0 additions & 37 deletions
37
Documentation/devicetree/bindings/arm/sunxi/sunxi-mbus.txt
This file was deleted.
Oops, something went wrong.