]> git.ipfire.org Git - thirdparty/linux.git/commit
spmi: mtk-pmif: Add multi-bus support for SPMI 2.0
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fri, 23 Jan 2026 18:20:30 +0000 (10:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 18:24:38 +0000 (19:24 +0100)
commit078117963b2c678921c86f2485b0d5baf5b86131
treedda43a1fa32c6ef622f3a6b54f3cd81a63211e17
parent5abb6c7aca41d827320113b6865f56d2038a4f2c
spmi: mtk-pmif: Add multi-bus support for SPMI 2.0

In preparation for adding support for MT8196/MT6991 SoCs having
multiple SPMI busses, move the bus specific parameters into a new
pmif_bus structure and keep the SoC-specific data in the already
existing struct pmif, and add means to register multiple SPMI
controllers.

While this needs a different devicetree node structure, where each
of the controllers are in subnodes of a main SPMI node, and where
each has its own resources (iospaces and clocks), support for the
legacy single-controller was retained and doesn't require any DT
change in the currently supported SoCs.

Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://patch.msgid.link/20260123182039.224314-3-sboyd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-mtk-pmif.c