of_clk_set_defaults(9)
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βtrueif clocks supplied bynodeshould 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
- 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