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

dt-bindings: memory: mediatek: Add mt8188 smi binding

Add mt8188 smi supporting in the bindings.

In mt8188, there are two smi-common HW, one is for vdo(video output),
the other is for vpp(video processing pipe). They connect with different
smi-larbs, then some setting(bus_sel) is different. Differentiate them
with the compatible string.

Something like this:

IOMMU(VDO) IOMMU(VPP)
| |
SMI_COMMON_VDO SMI_COMMON_VPP
---------------- ----------------
| | ... | | ...
larb0 larb2 ... larb1 larb3 ...

Signed-off-by: Chengci.Xu <chengci.xu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220817124608.10062-2-chengci.xu@mediatek.com

authored by

Chengci.Xu and committed by
Krzysztof Kozlowski
9d9fde47 568035b0

+6 -1
+3 -1
Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
··· 16 16 MediaTek SMI have two generations of HW architecture, here is the list 17 17 which generation the SoCs use: 18 18 generation 1: mt2701 and mt7623. 19 - generation 2: mt2712, mt6779, mt8167, mt8173, mt8183, mt8186, mt8192 and mt8195. 19 + generation 2: mt2712, mt6779, mt8167, mt8173, mt8183, mt8186, mt8188, mt8192 and mt8195. 20 20 21 21 There's slight differences between the two SMI, for generation 2, the 22 22 register which control the iommu port is at each larb's register base. But ··· 37 37 - mediatek,mt8173-smi-common 38 38 - mediatek,mt8183-smi-common 39 39 - mediatek,mt8186-smi-common 40 + - mediatek,mt8188-smi-common-vdo 41 + - mediatek,mt8188-smi-common-vpp 40 42 - mediatek,mt8192-smi-common 41 43 - mediatek,mt8195-smi-common-vdo 42 44 - mediatek,mt8195-smi-common-vpp
+3
Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
··· 25 25 - mediatek,mt8173-smi-larb 26 26 - mediatek,mt8183-smi-larb 27 27 - mediatek,mt8186-smi-larb 28 + - mediatek,mt8188-smi-larb 28 29 - mediatek,mt8192-smi-larb 29 30 - mediatek,mt8195-smi-larb 30 31 ··· 79 78 enum: 80 79 - mediatek,mt8183-smi-larb 81 80 - mediatek,mt8186-smi-larb 81 + - mediatek,mt8188-smi-larb 82 82 - mediatek,mt8195-smi-larb 83 83 84 84 then: ··· 113 111 - mediatek,mt2712-smi-larb 114 112 - mediatek,mt6779-smi-larb 115 113 - mediatek,mt8186-smi-larb 114 + - mediatek,mt8188-smi-larb 116 115 - mediatek,mt8192-smi-larb 117 116 - mediatek,mt8195-smi-larb 118 117