Skip to content

Commit db7d3cb

Browse files
mripardjoergroedel
authored andcommitted
dt-bindings: iommu: Add Allwinner H6 IOMMU bindings
The Allwinner H6 has introduced an IOMMU. Let's add a device tree binding for it. Signed-off-by: Maxime Ripard <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/f3e1633677a9cf9cf36fe3582f0168fae94c1b3e.1589378833.git-series.maxime@cerno.tech Signed-off-by: Joerg Roedel <[email protected]>
1 parent ec9b40c commit db7d3cb

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iommu/allwinner,sun50i-h6-iommu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Allwinner H6 IOMMU Device Tree Bindings
8+
9+
maintainers:
10+
- Chen-Yu Tsai <[email protected]>
11+
- Maxime Ripard <[email protected]>
12+
13+
properties:
14+
"#iommu-cells":
15+
const: 1
16+
description:
17+
The content of the cell is the master ID.
18+
19+
compatible:
20+
const: allwinner,sun50i-h6-iommu
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
clocks:
29+
maxItems: 1
30+
31+
resets:
32+
maxItems: 1
33+
34+
required:
35+
- "#iommu-cells"
36+
- compatible
37+
- reg
38+
- interrupts
39+
- clocks
40+
- resets
41+
42+
additionalProperties: false
43+
44+
examples:
45+
- |
46+
#include <dt-bindings/interrupt-controller/arm-gic.h>
47+
#include <dt-bindings/interrupt-controller/irq.h>
48+
49+
#include <dt-bindings/clock/sun50i-h6-ccu.h>
50+
#include <dt-bindings/reset/sun50i-h6-ccu.h>
51+
52+
iommu: iommu@30f0000 {
53+
compatible = "allwinner,sun50i-h6-iommu";
54+
reg = <0x030f0000 0x10000>;
55+
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
56+
clocks = <&ccu CLK_BUS_IOMMU>;
57+
resets = <&ccu RST_BUS_IOMMU>;
58+
#iommu-cells = <1>;
59+
};
60+
61+
...

0 commit comments

Comments
 (0)