Re: [PATCH v3 13/14] gpio: ad7768: Add AD7768 GPIO auxiliary driver
From: Linus Walleij
Date: Fri Aug 14 2026 - 03:05:46 EST
On Thu, Aug 13, 2026 at 3:58 PM Janani Sunil <janani.sunil@xxxxxxxxxx> wrote:
> The AD7768 provides five GPIOs controlled through registers shared
> with the parent IIO device. Register an auxiliary gpio-regmap driver
> and use the parent device for runtime PM.
>
> The device has separate input-state and output-latch registers. Add a
> reg_mask_xlate() callback that checks the line direction and reads the
> programmed output latch for output lines while retaining input-state
> reads for input lines.
>
> Signed-off-by: Janani Sunil <janani.sunil@xxxxxxxxxx>
Nice patch!
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij