Skip to content

Commit d034dbb

Browse files
AngeloGioacchino Del Regnojoergroedel
authored andcommitted
dt-bindings: iommu: mediatek: Add mediatek,infracfg phandle
Add property "mediatek,infracfg" to let the mtk_iommu driver retrieve a phandle to the infracfg syscon instead of performing a per-soc compatible lookup in the entire devicetree and set it as a required property for MT2712 and MT8173. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Link: https://lore.kernel.org/r/20220616110830.26037-2-angelogioacchino.delregno@collabora.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent a111daf commit d034dbb

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ properties:
101101
items:
102102
- const: bclk
103103

104+
mediatek,infracfg:
105+
$ref: /schemas/types.yaml#/definitions/phandle
106+
description: The phandle to the mediatek infracfg syscon
107+
104108
mediatek,larbs:
105109
$ref: /schemas/types.yaml#/definitions/phandle-array
106110
minItems: 1
@@ -167,6 +171,18 @@ allOf:
167171
required:
168172
- power-domains
169173

174+
- if:
175+
properties:
176+
compatible:
177+
contains:
178+
enum:
179+
- mediatek,mt2712-m4u
180+
- mediatek,mt8173-m4u
181+
182+
then:
183+
required:
184+
- mediatek,infracfg
185+
170186
- if: # The IOMMUs don't have larbs.
171187
not:
172188
properties:
@@ -191,6 +207,7 @@ examples:
191207
interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_LOW>;
192208
clocks = <&infracfg CLK_INFRA_M4U>;
193209
clock-names = "bclk";
210+
mediatek,infracfg = <&infracfg>;
194211
mediatek,larbs = <&larb0>, <&larb1>, <&larb2>,
195212
<&larb3>, <&larb4>, <&larb5>;
196213
#iommu-cells = <1>;

0 commit comments

Comments
 (0)