Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fei Shao and committed by
Hans Verkuil
b15a5ce8 3edd1fc4

+3 -2
+2 -1
Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml
··· 44 44 maxItems: 1 45 45 46 46 iommus: 47 - maxItems: 2 47 + minItems: 2 48 + maxItems: 32 48 49 description: | 49 50 Points to the respective IOMMU block with master port as argument, see 50 51 Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
+1 -1
Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml
··· 39 39 40 40 iommus: 41 41 minItems: 2 42 - maxItems: 4 42 + maxItems: 32 43 43 description: | 44 44 Points to the respective IOMMU block with master port as argument, see 45 45 Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.