BASIC GPIO GATED CLOCK WHICH CAN BE ENABLED AND DISABLED(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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_unprepare are functional and they control a gpio that can sleep 😴 fr fr, that's the sleepy one.
  • enable β€” clk_enable and clk_disable are functional and they control a non-sleeping gpio. no napping allowed on this path πŸ’…
  • rate β€” inherits its rate from its parent. no clk_set_rate support, so don't even try it πŸ™ˆ
  • parent β€” fixed parent, periodt. no clk_set_parent support 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