Re: [PATCH v12 0/2] A proposal to add a gpio-enabled clock driver.
From: Jerome Brunet
Date: Mon Nov 30 2026 - 04:41:25 EST
> A gpio-enabled clock represents an input clock, which state is determined
> by a GPIO signal. It's similar to a gated-fixed-clock, but GPIO direction
> is inverted. Consumers can use the output clock to wait until the clock
> is ready and only then initialize / access dependent peripherals.
>
> The usage example for such a driver is when peripherals depend on PLLs in
> a FPGA, which can't be directly accessed by the CPU, but need a GPIO pin
> to check whether clock is actually usable. E.g. some of the IPs might not
> have a proper split between registers and IP core, which means that if an
> external clock and/or PLL lock is missing and one tries to access the
> registers, the response never comes, thus the CPU stalls.
>
> Signed-off-by: Vyacheslav Yurkov <uvv.mail@xxxxxxxxx>
> Signed-off-by: Vyacheslav Yurkov <V.Yurkov.EXT@xxxxxxxxxx>
> ---
> Changes in v12:
> - Use new devm_kzalloc_obj() API
> - Make poll-timeout-us mandatory, use polling inteval as a max of 1/10 of
> the specified timeout or 10us.
What is the reason for this change ?
> - Remove range check from the driver
> - Link to v11: https://lore.kernel.org/r/20261121-feature-clock-guard-v11-0-00c633a667a2@xxxxxxxxxx
>
I had also asked to wait for the DT guys review before reposting
--
Jerome