]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dt-bindings: media: mediatek,jpeg: Relax IOMMU max item count
authorFei Shao <fshao@chromium.org>
Tue, 1 Oct 2024 11:27:21 +0000 (19:27 +0800)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 6 Mar 2025 16:28:27 +0000 (17:28 +0100)
commitb15a5ce863838c876d2b505154112e8822bc447c
tree5ade9742d092be0b995896d70380e83f87a3f662
parent3edd1fc48d2c045e8259561797c89fe78f01717e
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>
Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml
Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml