lkml.org 
[lkml]   [2022]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/8] mtk_iommu: Specify phandles to infracfg and pericfg
Date
The IOMMU has registers in the infracfg and/or pericfg iospaces: as
for the currently supported SoCs, MT2712 and MT8173 need a phandle to
infracfg, while MT8195 needs one to pericfg.

Before this change, the driver was checking for a SoC-specific infra/peri
compatible but, sooner or later, these lists are going to grow a lot...
...and this is why it was chosen to add phandles (as it was done with
some other drivers already - look at mtk-pm-domains, mt8192-afe

Please note that, while it was necessary to update the devicetrees for
MT8173 and MT2712e, there was no update for MT8195 because there is no
IOMMU node in there yet.

AngeloGioacchino Del Regno (8):
dt-bindings: iommu: mediatek: Add mediatek,infracfg phandle
iommu: mtk_iommu: Lookup phandle to retrieve syscon to infracfg
dt-bindings: iommu: mediatek: Add mediatek,pericfg phandle
iommu: mtk_iommu: Lookup phandle to retrieve syscon to pericfg
arm64: dts: mediatek: mt8173: Add mediatek,infracfg phandle for IOMMU
arm64: dts: mediatek: mt2712e: Add mediatek,infracfg phandle for IOMMU
dt-bindings: iommu: mediatek: Require mediatek,infracfg for
mt2712/8173
dt-bindings: iommu: mediatek: Require mediatek,pericfg for
mt8195-infra

.../bindings/iommu/mediatek,iommu.yaml | 30 +++++++++
arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 2 +
arch/arm64/boot/dts/mediatek/mt8173.dtsi | 1 +
drivers/iommu/mtk_iommu.c | 66 ++++++++++++-------
4 files changed, 75 insertions(+), 24 deletions(-)

--
2.35.1

\
 
 \ /
  Last update: 2022-05-17 15:24    [W:0.161 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site