@@ -9,6 +9,25 @@ blocks that can be used to create functional hardware objects/devices
99such as network interfaces, crypto accelerator instances, L2 switches,
1010etc.
1111
12+ For an overview of the DPAA2 architecture and fsl-mc bus see:
13+ Documentation/networking/dpaa2/overview.rst
14+
15+ As described in the above overview, all DPAA2 objects in a DPRC share the
16+ same hardware "isolation context" and a 10-bit value called an ICID
17+ (isolation context id) is expressed by the hardware to identify
18+ the requester.
19+
20+ The generic 'iommus' property is insufficient to describe the relationship
21+ between ICIDs and IOMMUs, so an iommu-map property is used to define
22+ the set of possible ICIDs under a root DPRC and how they map to
23+ an IOMMU.
24+
25+ For generic IOMMU bindings, see
26+ Documentation/devicetree/bindings/iommu/iommu.txt.
27+
28+ For arm-smmu binding, see:
29+ Documentation/devicetree/bindings/iommu/arm,smmu.txt.
30+
1231Required properties:
1332
1433 - compatible
@@ -88,14 +107,34 @@ Sub-nodes:
88107 Value type: <phandle>
89108 Definition: Specifies the phandle to the PHY device node associated
90109 with the this dpmac.
110+ Optional properties:
111+
112+ - iommu-map: Maps an ICID to an IOMMU and associated iommu-specifier
113+ data.
114+
115+ The property is an arbitrary number of tuples of
116+ (icid-base,iommu,iommu-base,length).
117+
118+ Any ICID i in the interval [icid-base, icid-base + length) is
119+ associated with the listed IOMMU, with the iommu-specifier
120+ (i - icid-base + iommu-base).
91121
92122Example:
93123
124+ smmu: iommu@5000000 {
125+ compatible = "arm,mmu-500";
126+ #iommu-cells = <1>;
127+ stream-match-mask = <0x7C00>;
128+ ...
129+ };
130+
94131 fsl_mc: fsl-mc@80c000000 {
95132 compatible = "fsl,qoriq-mc";
96133 reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */
97134 <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
98135 msi-parent = <&its>;
136+ /* define map for ICIDs 23-64 */
137+ iommu-map = <23 &smmu 23 41>;
99138 #address-cells = <3>;
100139 #size-cells = <1>;
101140
0 commit comments