BASIC GPIO GATED CLOCK WHICH CAN BE ENABLED AND DISABLED(9)
π basic gpio g...and disabled(9) β Kernel API Manual
okay so bestie, welcome to the glow-up doc for the basic gpio gated clock which can be enabled and disabled with gpio output. it's a clock, it's gated, and a GPIO pin is doing the gating. iconic behaviour honestly β¨
π DESCRIPTION
this is a basic gpio gated clock which can be enabled and disabled with a gpio output. that's the whole vibe. let's break down its traits because the way this thing is built is lowkey elegant π¦
- prepare β
clk_prepare/clk_unprepareare functional and they control a gpio that can sleep π΄ fr fr, that's the sleepy one. - enable β
clk_enableandclk_disableare functional and they control a non-sleeping gpio. no napping allowed on this path π - rate β inherits its rate from its parent. no
clk_set_ratesupport, so don't even try it π - parent β fixed parent, periodt. no
clk_set_parentsupport either π
ngl, the split between prepare and enable here is doing main character energy β sleepy gpio on one side, wide-awake gpio on the other π«Ά
β¨ SEE ALSO β¨
- Kernel file
./drivers/clk/clk-gpio.c struct clk_gpio(9)- basic clock multiplexer which can be controlled with a gpio output(9)
- gated fixed clock, controlled with a gpio output and a regulator(9)
struct clk_gated_fixed(9)
that's the whole page bestie, short and slay π it lives over in ./drivers/clk, October 2026 edition β go read the source, it's giving lore πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms