spmi: mtk-pmif: Add support for MT8196 SPMI Controller

Add support for the SPMI controller found in the MT8196 SoC:
this supports SPMI 2.0 and features two SPMI buses.

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-6-sboyd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
master
AngeloGioacchino Del Regno 2026-01-23 10:20:33 -08:00 committed by Greg Kroah-Hartman
parent ab1b3469fc
commit 1f5be2d7f7
1 changed files with 11 additions and 0 deletions

View File

@ -636,6 +636,14 @@ static const struct pmif_data mt8195_pmif_arb = {
.soc_chan = 2,
};
static const struct pmif_data mt8196_pmif_arb = {
.regs = mt8195_regs,
.spmimst_regs = mt8195_spmi_regs,
.soc_chan = 2,
.spmi_ver = 2,
.num_spmi_buses = 2,
};
static int mtk_spmi_irq_init(struct device_node *node,
const struct pmif_data *pdata,
struct pmif_bus *pbus)
@ -833,6 +841,9 @@ static const struct of_device_id mtk_spmi_match_table[] = {
}, {
.compatible = "mediatek,mt8195-spmi",
.data = &mt8195_pmif_arb,
}, {
.compatible = "mediatek,mt8196-spmi",
.data = &mt8196_pmif_arb,
}, {
/* sentinel */
},