Skip to content

Commit b15a5ce

Browse files
Fei Shaohverkuil
authored andcommitted
dt-bindings: media: mediatek,jpeg: Relax IOMMU max item count
On MediaTek platforms with Multimedia MMU (M4U), a multimedia hardware can be assigned with a local arbiter (LARB) which has a maximum of 32 ports for MediaTek's IOMMU infrastructure. That means there can be at most 32 items in the iommus property in theory. Instead of relaxing the max item count every time a newly introduced device tree hits the limit, bump the number to 32 as an one-time effort. On the other hand, all existing and foreseeable JPEG decoder nodes at this point have at least 2 IOMMUs, so set minItems to 2 accordingly. Signed-off-by: Fei Shao <fshao@chromium.org> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
1 parent 3edd1fc commit b15a5ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ properties:
4444
maxItems: 1
4545

4646
iommus:
47-
maxItems: 2
47+
minItems: 2
48+
maxItems: 32
4849
description: |
4950
Points to the respective IOMMU block with master port as argument, see
5051
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.

Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ properties:
3939

4040
iommus:
4141
minItems: 2
42-
maxItems: 4
42+
maxItems: 32
4343
description: |
4444
Points to the respective IOMMU block with master port as argument, see
4545
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.

0 commit comments

Comments
 (0)