xref: /freebsd/sys/contrib/device-tree/Bindings/iommu/allwinner,sun50i-h6-iommu.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/iommu/allwinner,sun50i-h6-iommu.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: Allwinner H6 IOMMU Device Tree Bindings
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11*c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadotproperties:
14*c66ec88fSEmmanuel Vadot  "#iommu-cells":
15*c66ec88fSEmmanuel Vadot    const: 1
16*c66ec88fSEmmanuel Vadot    description:
17*c66ec88fSEmmanuel Vadot      The content of the cell is the master ID.
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot  compatible:
20*c66ec88fSEmmanuel Vadot    const: allwinner,sun50i-h6-iommu
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot  reg:
23*c66ec88fSEmmanuel Vadot    maxItems: 1
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot  interrupts:
26*c66ec88fSEmmanuel Vadot    maxItems: 1
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot  clocks:
29*c66ec88fSEmmanuel Vadot    maxItems: 1
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel Vadot  resets:
32*c66ec88fSEmmanuel Vadot    maxItems: 1
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadotrequired:
35*c66ec88fSEmmanuel Vadot  - "#iommu-cells"
36*c66ec88fSEmmanuel Vadot  - compatible
37*c66ec88fSEmmanuel Vadot  - reg
38*c66ec88fSEmmanuel Vadot  - interrupts
39*c66ec88fSEmmanuel Vadot  - clocks
40*c66ec88fSEmmanuel Vadot  - resets
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel VadotadditionalProperties: false
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadotexamples:
45*c66ec88fSEmmanuel Vadot  - |
46*c66ec88fSEmmanuel Vadot      #include <dt-bindings/interrupt-controller/arm-gic.h>
47*c66ec88fSEmmanuel Vadot      #include <dt-bindings/interrupt-controller/irq.h>
48*c66ec88fSEmmanuel Vadot
49*c66ec88fSEmmanuel Vadot      #include <dt-bindings/clock/sun50i-h6-ccu.h>
50*c66ec88fSEmmanuel Vadot      #include <dt-bindings/reset/sun50i-h6-ccu.h>
51*c66ec88fSEmmanuel Vadot
52*c66ec88fSEmmanuel Vadot      iommu: iommu@30f0000 {
53*c66ec88fSEmmanuel Vadot          compatible = "allwinner,sun50i-h6-iommu";
54*c66ec88fSEmmanuel Vadot          reg = <0x030f0000 0x10000>;
55*c66ec88fSEmmanuel Vadot          interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
56*c66ec88fSEmmanuel Vadot          clocks = <&ccu CLK_BUS_IOMMU>;
57*c66ec88fSEmmanuel Vadot          resets = <&ccu RST_BUS_IOMMU>;
58*c66ec88fSEmmanuel Vadot          #iommu-cells = <1>;
59*c66ec88fSEmmanuel Vadot      };
60*c66ec88fSEmmanuel Vadot
61*c66ec88fSEmmanuel Vadot...
62