]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dt-bindings: memory: mtk-smi: No need mediatek,larb-id for mt8167
authorYong Wu <yong.wu@mediatek.com>
Thu, 13 Jan 2022 11:10:52 +0000 (19:10 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:40:22 +0000 (14:40 +0200)
commit5657eaefd88445fd93408d3c8002cbd0986d6a1f
treeb1a7737fa15314428f76693978464a55a4aef5d2
parent1b6653f822b3eec07e56adadc416e32929e73283
dt-bindings: memory: mtk-smi: No need mediatek,larb-id for mt8167

BugLink: https://bugs.launchpad.net/bugs/1969110
commit ddc3a324889686ec9b358de20fdeec0d2668c7a8 upstream.

Mute the warning from "make dtbs_check":

larb@14016000: 'mediatek,larb-id' is a required property
arch/arm64/boot/dts/mediatek/mt8167-pumpkin.dt.yaml
larb@15001000: 'mediatek,larb-id' is a required property
arch/arm64/boot/dts/mediatek/mt8167-pumpkin.dt.yaml
larb@16010000: 'mediatek,larb-id' is a required property
arch/arm64/boot/dts/mediatek/mt8167-pumpkin.dt.yaml

As the description of mediatek,larb-id, the property is only
required when the larbid is not consecutive from its IOMMU point of view.

Also, from the description of mediatek,larbs in
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml, all the larbs
must sort by the larb index.

In mt8167, there is only one IOMMU HW and three larbs. The drivers already
know its larb index from the mediatek,larbs property of IOMMU, thus no
need this property.

Fixes: 27bb0e42855a ("dt-bindings: memory: mediatek: Convert SMI to DT schema")
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220113111057.29918-3-yong.wu@mediatek.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit e918b36600d6f51fe7ac241a11f8d586f32588bb)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml