mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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>
This commit is contained in:
parent
ab1b3469fc
commit
1f5be2d7f7
|
|
@ -636,6 +636,14 @@ static const struct pmif_data mt8195_pmif_arb = {
|
||||||
.soc_chan = 2,
|
.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,
|
static int mtk_spmi_irq_init(struct device_node *node,
|
||||||
const struct pmif_data *pdata,
|
const struct pmif_data *pdata,
|
||||||
struct pmif_bus *pbus)
|
struct pmif_bus *pbus)
|
||||||
|
|
@ -833,6 +841,9 @@ static const struct of_device_id mtk_spmi_match_table[] = {
|
||||||
}, {
|
}, {
|
||||||
.compatible = "mediatek,mt8195-spmi",
|
.compatible = "mediatek,mt8195-spmi",
|
||||||
.data = &mt8195_pmif_arb,
|
.data = &mt8195_pmif_arb,
|
||||||
|
}, {
|
||||||
|
.compatible = "mediatek,mt8196-spmi",
|
||||||
|
.data = &mt8196_pmif_arb,
|
||||||
}, {
|
}, {
|
||||||
/* sentinel */
|
/* sentinel */
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user