All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] mtk_iommu: Specify phandles to infracfg and pericfg
@ 2022-05-18 10:04 ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 56+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-05-18 10:04 UTC (permalink / raw)
  To: yong.wu
  Cc: joro, will, robh+dt, krzysztof.kozlowski+dt, matthias.bgg, iommu,
	linux-mediatek, devicetree, linux-kernel, linux-arm-kernel,
	krzysztof.kozlowski, AngeloGioacchino Del Regno

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.

Changes in v2:
 - Squashed dt-bindings patches as suggested by Matthias
 - Removed quotes from infra/peri phandle refs
 - Changed dev_warn to dev_info in patches [2/7], [3/7]

AngeloGioacchino Del Regno (7):
  dt-bindings: iommu: mediatek: Add phandles for mediatek infra/pericfg
  iommu: mtk_iommu: Lookup phandle to retrieve syscon to infracfg
  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


^ permalink raw reply	[flat|nested] 56+ messages in thread

end of thread, other threads:[~2022-06-01 20:47 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 10:04 [PATCH v2 0/7] mtk_iommu: Specify phandles to infracfg and pericfg AngeloGioacchino Del Regno
2022-05-18 10:04 ` AngeloGioacchino Del Regno
2022-05-18 10:04 ` AngeloGioacchino Del Regno
2022-05-18 10:04 ` AngeloGioacchino Del Regno
2022-05-18 10:04 ` [PATCH v2 1/7] dt-bindings: iommu: mediatek: Add phandles for mediatek infra/pericfg AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-18 11:29   ` Matthias Brugger
2022-05-18 11:29     ` Matthias Brugger
2022-05-18 11:29     ` Matthias Brugger
2022-05-18 11:29     ` Matthias Brugger
2022-05-18 11:42     ` AngeloGioacchino Del Regno
2022-05-18 11:42       ` AngeloGioacchino Del Regno
2022-05-18 11:42       ` AngeloGioacchino Del Regno
2022-05-18 11:42       ` AngeloGioacchino Del Regno
2022-06-01 20:01       ` Rob Herring
2022-06-01 20:01         ` Rob Herring
2022-06-01 20:01         ` Rob Herring
2022-06-01 20:01         ` Rob Herring
2022-05-26  8:21   ` Yong Wu
2022-05-26  8:21     ` Yong Wu
2022-05-26  8:21     ` Yong Wu
2022-05-26  8:21     ` Yong Wu via iommu
2022-05-18 10:04 ` [PATCH v2 2/7] iommu: mtk_iommu: Lookup phandle to retrieve syscon to infracfg AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-26  8:22   ` Yong Wu
2022-05-26  8:22     ` Yong Wu
2022-05-26  8:22     ` Yong Wu
2022-05-26  8:22     ` Yong Wu via iommu
2022-05-18 10:04 ` [PATCH v2 3/7] iommu: mtk_iommu: Lookup phandle to retrieve syscon to pericfg AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-18 10:04   ` AngeloGioacchino Del Regno
2022-05-26  8:22   ` Yong Wu
2022-05-26  8:22     ` Yong Wu
2022-05-26  8:22     ` Yong Wu
2022-05-26  8:22     ` Yong Wu via iommu
2022-05-18 10:05 ` [PATCH v2 4/7] arm64: dts: mediatek: mt8173: Add mediatek,infracfg phandle for IOMMU AngeloGioacchino Del Regno
2022-05-18 10:05   ` [PATCH v2 4/7] arm64: dts: mediatek: mt8173: Add mediatek, infracfg " AngeloGioacchino Del Regno
2022-05-18 10:05   ` AngeloGioacchino Del Regno
2022-05-18 10:05   ` AngeloGioacchino Del Regno
2022-05-18 10:05 ` [PATCH v2 5/7] arm64: dts: mediatek: mt2712e: Add mediatek,infracfg " AngeloGioacchino Del Regno
2022-05-18 10:05   ` [PATCH v2 5/7] arm64: dts: mediatek: mt2712e: Add mediatek, infracfg " AngeloGioacchino Del Regno
2022-05-18 10:05   ` AngeloGioacchino Del Regno
2022-05-18 10:05   ` AngeloGioacchino Del Regno
2022-05-18 10:05 ` [PATCH v2 6/7] dt-bindings: iommu: mediatek: Require mediatek,infracfg for mt2712/8173 AngeloGioacchino Del Regno
2022-05-18 10:05   ` [PATCH v2 6/7] dt-bindings: iommu: mediatek: Require mediatek, infracfg " AngeloGioacchino Del Regno
2022-05-18 10:05   ` AngeloGioacchino Del Regno
2022-05-18 10:05   ` AngeloGioacchino Del Regno
2022-05-18 10:05 ` [PATCH v2 7/7] dt-bindings: iommu: mediatek: Require mediatek,pericfg for mt8195-infra AngeloGioacchino Del Regno
2022-05-18 10:05   ` [PATCH v2 7/7] dt-bindings: iommu: mediatek: Require mediatek, pericfg " AngeloGioacchino Del Regno
2022-05-18 10:05   ` AngeloGioacchino Del Regno
2022-05-18 10:05   ` AngeloGioacchino Del Regno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.