Skip to content

Commit e895d62

Browse files
wensHans Verkuil
authored andcommitted
media: dt-bindings: allwinner: h6-vpu-g2: Add IOMMU reference property
The Hantro G2 video decoder block sits behind an IOMMU. The device tree binding needs a property to reference it. Without a reference for the implementation to properly configure the IOMMU, it will fault and cause the video decoder to fail. Add an "iommus" property for referring to the IOMMU port. The master ID in the example is taken from the IOMMU fault error message on Linux, and the number seems to match the order in the user manual's IOMMU diagram. Fixes: fd6be12 ("media: dt-bindings: allwinner: document H6 Hantro G2 binding") Signed-off-by: Chen-Yu Tsai <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 5e2ac9a commit e895d62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/devicetree/bindings/media/allwinner,sun50i-h6-vpu-g2.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,17 @@ properties:
3636
resets:
3737
maxItems: 1
3838

39+
iommus:
40+
maxItems: 1
41+
3942
required:
4043
- compatible
4144
- reg
4245
- interrupts
4346
- clocks
4447
- clock-names
4548
- resets
49+
- iommus
4650

4751
additionalProperties: false
4852

@@ -59,6 +63,7 @@ examples:
5963
clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>;
6064
clock-names = "bus", "mod";
6165
resets = <&ccu RST_BUS_VP9>;
66+
iommus = <&iommu 5>;
6267
};
6368
6469
...

0 commit comments

Comments
 (0)