of_get_ddr_timings(9)
π of_get_ddr_timings(9) β¨
okay so bestie, welcome to the Kernel API Manual π and honestly? this one's kind of a little data-gremlin and we're gonna love her anyway. of_get_ddr_timings is out here doing the absolute most: it pulls the ddr timings straight out of the device tree and then updates the number of frequencies available. lowkey iconic behavior πΈ
β¨ NAME β¨
of_get_ddr_timings β extracts the ddr timings and updates no of frequencies available π
π¦ SYNOPSIS π¦
const struct lpddr2_timings * of_get_ddr_timings (struct device_node
*np_ddr , struct device *dev , u32 device_type , u32 *nr_frequencies );
like, copy that exactly please, i am begging π
πΈ ARGUMENTS πΈ
np_ddrβ Pointer to ddr device tree node π³ (yes, the actual node, she needs the real one)devβ Device requesting for ddr timings π the main character making the askdevice_typeβ Type of ddr (LPDDR2 S2/S4) π know your type before you walk innr_frequenciesβ No of frequencies available for ddr (updated by this function) π₯ heads up: this function is the one updating it, it's an out-param bestie, she writes back to it
π DESCRIPTION π
So what she does is: Populates lpddr2_timings structure by extracting data from device tree node. π§ Returns pointer to populated structure. and if literally anything goes sideways while populating? If any error while populating, returns default timings provided by JEDEC. π no cap, that's the fallback β JEDEC's defaults got your back so hard.
ngl the fallback is genuinely a slay, because "error while populating" still gets you something instead of a void π«Ά
π SEE ALSO π
- Kernel file
./drivers/memory/of_memory.cβ the whole squad lives in there β¨ of_get_min_tck(9)of_lpddr3_get_min_tck(9)of_lpddr3_get_ddr_timings(9)of_lpddr2_get_info(9)
go read those too, they're all part of the same friend group iykyk π
and that's the whole vibe check bestie π¦ this little page came straight out of ./drivers/memory and it's dated October 2026 β so yeah, technically from the future, which is so her π mwah, study hard, drink water, and may all your timings populate on the first try πππ
π¦ 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