of_clk_add_provider(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Ok bestie, we’re in the Kernel API Manual and this page is all about of_clk_add_provider(9). What does it do? It registers a clock provider for a node. That’s the vibe. ✨

✨ SYNOPSIS ✨

int of_clk_add_provider (struct device_node *np , struct clk
*(*clk_src_get)(struct of_phandle_args *clkspec, void *data) , void
*data );

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” Device node pointer associated with clock provider. That’s the node, bestie.
  • clk_src_get β€” callback for decoding clock. Yep, callback for decoding clock.
  • data β€” context pointer for clk_src_get callback. It’s the little context bag passed along.

πŸ¦‹ DESCRIPTION πŸ¦‹

Ok so listen: this function is deprecated. Not in a cute way β€” in the actual β€œplease don’t start new stuff with this” way. Use of_clk_add_hw_provider instead. That’s the whole description, no cap. πŸ’…

Like… bestie, I’m serious. Deprecated means deprecated. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/clk/clk.c, plus all of these iconic refs:


That’s the whole page, bestie 🫢 β€” footer source/version: ./drivers/clk; date: October 2026; page: of_clk_add_provider(9). πŸ’–

πŸ“¦ where this page comes from