of_clk_set_defaults(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the of_clk_set_defaults(9) page from the Kernel API Manual β€” yes, manual name folded in near the top, we're so efficient πŸ’…

πŸŽ€ NAME πŸŽ€

of_clk_set_defaults β€” parse and set assigned clocks configuration. That's the vibe: read the assigned-clock situation and apply it, periodt ✨

✨ SYNOPSIS ✨

int of_clk_set_defaults (struct device_node *node , bool clk_supplier );

🌸 ARGUMENTS 🌸

  • node β€” the device node to apply clock settings for 🫢
  • clk_supplier β€” true if clocks supplied by node should also be considered πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function parses the 'assigned-{clocks/clock-parents/clock-rates}' properties and sets any specified clock parents and rates. It's giving assigned-clock matchmaker, and honestly? Obsessed πŸ’–

The clk_supplier argument should be set to true if node may be also a clock supplier of any clock listed in its 'assigned-clocks' or 'assigned-clock-parents' properties. If clk_supplier is false, the function exits returning 0 as soon as it determines the node is also a supplier of any of the clocks. Not me watching it dip early 😭 but that's literally the documented behavior.

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/clk/clk-conf.c β€” go read the source, bestie, iykyk πŸ“–

mwah πŸ’– this page comes from source/version ./drivers/clk, dated October 2026, and it's the of_clk_set_defaults(9) manual page. periodt.

πŸ“¦ where this page comes from