xref: /freebsd/sys/contrib/device-tree/Bindings/iommu/sprd,iommu.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*2eb4d8dcSEmmanuel Vadot# Copyright 2020 Unisoc Inc.
3*2eb4d8dcSEmmanuel Vadot%YAML 1.2
4*2eb4d8dcSEmmanuel Vadot---
5*2eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/iommu/sprd,iommu.yaml#
6*2eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*2eb4d8dcSEmmanuel Vadot
8*2eb4d8dcSEmmanuel Vadottitle: Unisoc IOMMU and Multi-media MMU
9*2eb4d8dcSEmmanuel Vadot
10*2eb4d8dcSEmmanuel Vadotmaintainers:
11*2eb4d8dcSEmmanuel Vadot  - Chunyan Zhang <zhang.lyra@gmail.com>
12*2eb4d8dcSEmmanuel Vadot
13*2eb4d8dcSEmmanuel Vadotproperties:
14*2eb4d8dcSEmmanuel Vadot  compatible:
15*2eb4d8dcSEmmanuel Vadot    enum:
16*2eb4d8dcSEmmanuel Vadot      - sprd,iommu-v1
17*2eb4d8dcSEmmanuel Vadot
18*2eb4d8dcSEmmanuel Vadot  "#iommu-cells":
19*2eb4d8dcSEmmanuel Vadot    const: 0
20*2eb4d8dcSEmmanuel Vadot    description:
21*2eb4d8dcSEmmanuel Vadot      Unisoc IOMMUs are all single-master IOMMU devices, therefore no
22*2eb4d8dcSEmmanuel Vadot      additional information needs to associate with its master device.
23*2eb4d8dcSEmmanuel Vadot      Please refer to the generic bindings document for more details,
24*2eb4d8dcSEmmanuel Vadot      Documentation/devicetree/bindings/iommu/iommu.txt
25*2eb4d8dcSEmmanuel Vadot
26*2eb4d8dcSEmmanuel Vadot  reg:
27*2eb4d8dcSEmmanuel Vadot    maxItems: 1
28*2eb4d8dcSEmmanuel Vadot
29*2eb4d8dcSEmmanuel Vadot  clocks:
30*2eb4d8dcSEmmanuel Vadot    description:
31*2eb4d8dcSEmmanuel Vadot      Reference to a gate clock phandle, since access to some of IOMMUs are
32*2eb4d8dcSEmmanuel Vadot      controlled by gate clock, but this is not required.
33*2eb4d8dcSEmmanuel Vadot
34*2eb4d8dcSEmmanuel Vadotrequired:
35*2eb4d8dcSEmmanuel Vadot  - compatible
36*2eb4d8dcSEmmanuel Vadot  - reg
37*2eb4d8dcSEmmanuel Vadot  - "#iommu-cells"
38*2eb4d8dcSEmmanuel Vadot
39*2eb4d8dcSEmmanuel VadotadditionalProperties: false
40*2eb4d8dcSEmmanuel Vadot
41*2eb4d8dcSEmmanuel Vadotexamples:
42*2eb4d8dcSEmmanuel Vadot  - |
43*2eb4d8dcSEmmanuel Vadot    iommu_disp: iommu@63000800 {
44*2eb4d8dcSEmmanuel Vadot      compatible = "sprd,iommu-v1";
45*2eb4d8dcSEmmanuel Vadot      reg = <0x63000800 0x80>;
46*2eb4d8dcSEmmanuel Vadot      #iommu-cells = <0>;
47*2eb4d8dcSEmmanuel Vadot    };
48*2eb4d8dcSEmmanuel Vadot
49*2eb4d8dcSEmmanuel Vadot  - |
50*2eb4d8dcSEmmanuel Vadot    iommu_jpg: iommu@62300300 {
51*2eb4d8dcSEmmanuel Vadot      compatible = "sprd,iommu-v1";
52*2eb4d8dcSEmmanuel Vadot      reg = <0x62300300 0x80>;
53*2eb4d8dcSEmmanuel Vadot      #iommu-cells = <0>;
54*2eb4d8dcSEmmanuel Vadot      clocks = <&mm_gate 1>;
55*2eb4d8dcSEmmanuel Vadot    };
56*2eb4d8dcSEmmanuel Vadot
57*2eb4d8dcSEmmanuel Vadot...
58