Re: [PATCH v4 13/14] gpio: ad7768: Add AD7768 GPIO auxiliary driver
From: Linus Walleij
Date: Tue Aug 25 2026 - 15:42:25 EST
On Fri, Aug 21, 2026 at 4:09 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>
>From my PoV this is a beauty, so:
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij