Re: [PATCH 2/6] mfd: zx297520v3: Add socsys to the mfd host driver
From: Lee Jones
Date: Wed Dec 02 2026 - 12:12:14 EST
On Fri, 20 Nov 2026, Stefan Dösinger wrote:
> This patch adds the parts of the zx297520v3 socsys controller, that can
> be exposed via established driver APIs to the MFD host driver, so that
> drivers in the respective subsystems can consume them. For now these are
> a reset controller for Ethernet and maybe more, and a power domain
> controller for USB, GSM and possibly a cryptographic engine.
>
> Signed-off-by: Stefan Dösinger <stefandoesinger@xxxxxxxxx>
>
> ---
>
> This series does not contain a driver for the reset child, as
> implementing Ethernet is beyond the scope of the series and needs other
> prerequisites (namely pincontrol).
> ---
> drivers/mfd/zte-zx297520v3-crm.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/mfd/zte-zx297520v3-crm.c b/drivers/mfd/zte-zx297520v3-crm.c
> index 7c29a860be3f..3d542e3dd7b8 100644
> --- a/drivers/mfd/zte-zx297520v3-crm.c
> +++ b/drivers/mfd/zte-zx297520v3-crm.c
> @@ -23,6 +23,7 @@ enum zx_device_type {
> TYPE_TOPCRM,
> TYPE_MATRIXCRM,
> TYPE_LSPCRM,
> + TYPE_SOCSYS,
> };
>
> static const struct mfd_cell zx297520v3_topcrm_cells[] = {
> @@ -42,6 +43,11 @@ static const struct mfd_cell zx297520v3_lspcrm_cells[] = {
> MFD_CELL_NAME("zx297520v3-lspreset"),
> };
>
> +static const struct mfd_cell zx297520v3_socsys_cells[] = {
> + MFD_CELL_NAME("zx297520v3-socsys-reset"),
> + MFD_CELL_NAME("zx297520v3-socsys-power"),
> +};
Where are the drivers for these?
> static int zx297520v3_crm_probe(struct platform_device *pdev)
> {
> struct device *dev = &pdev->dev;
> @@ -77,6 +83,11 @@ static int zx297520v3_crm_probe(struct platform_device *pdev)
> "Failed to deassert reset control\n");
> break;
>
> + case TYPE_SOCSYS:
> + cells = zx297520v3_socsys_cells;
> + num_cells = ARRAY_SIZE(zx297520v3_socsys_cells);
> + break;
> +
> default:
> return -ENODEV;
> }
> @@ -88,6 +99,7 @@ static const struct of_device_id of_match_zx297520v3_crm[] = {
> { .compatible = "zte,zx297520v3-topcrm", .data = (void *)TYPE_TOPCRM },
> { .compatible = "zte,zx297520v3-matrixcrm", .data = (void *)TYPE_MATRIXCRM },
> { .compatible = "zte,zx297520v3-lspcrm", .data = (void *)TYPE_LSPCRM },
> + { .compatible = "zte,zx297520v3-socsys", .data = (void *)TYPE_SOCSYS },
> { }
> };
> MODULE_DEVICE_TABLE(of, of_match_zx297520v3_crm);
>
> --
> 2.56.1
>
--
Lee Jones