Re: [PATCH v3 1/3] soc: qcom: Add pmic-gio GIO framework driver

From: Konrad Dybcio

Date: Thu Dec 03 2026 - 07:57:28 EST


On 11/19/26 7:55 AM, Fenglin Wu wrote:
> Qualcomm SoCCP battery-management firmware on Glymur platform
> introduces a new interface which is called General I/O (GIO).
> It exposes functions through fixed-size register blocks grouped
> into virtual peripherals such as core, battery, USB-C, service,
> settings, debug, and OEM, etc. The data blocks must be accessed
> using block-aligned transactions. It also generates alert
> notifications which could be identified by a pair of peripheral
> and alert ID.
>
> Add a transport-agnostic PMIC GIO framework that validates register
> accesses against the common GIO register definitions, and exposes the
> firmware register space through regmap using transport-provided read
> and write operations. The framework tracks transport availability
> and notify consumers when its state changes, and route alerts through
> a virtual IRQ domain while retaining their payload data. It also
> provides a group of managed helpers for registering GIO transports,
> state notifiers, IRQ mappings, and auxiliary consumer devices required
> by the transport and the consumer drivers.
>
> Signed-off-by: Fenglin Wu <fenglin.wu@xxxxxxxxxxxxxxxx>
> ---
[...]


> +struct pmic_gio_irq {
> + u8 peripheral_id;
> + u8 alert_id;
> +};
> +
> +struct pmic_gio_irq_chip {
> + const struct pmic_gio_irq *irqs;
> + int num_irqs;
> +};

These can be private

Konrad