of_get_drm_...display_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the of_get_drm_panel_display_mode page β€” it's the one that gets you a panel-timing drm_display_mode straight out of devicetree πŸ¦‹ (and just so you know, this is the Kernel API Manual, bestie πŸ’…)


πŸŽ€ SYNOPSIS πŸŽ€

int of_get_drm_panel_display_mode (struct device_node *np , struct
        drm_display_mode *dmode , u32 *bus_flags );

🌸 ARGUMENTS 🌸

  • np β€” the device_node that's holding your panel-timing spec πŸ“‹
  • dmode β€” this one gets set to the return value, iykyk ✨
  • bus_flags β€” the tea on pixelclk, sync and DE polarity 🫢

πŸ’– DESCRIPTION πŸ’–

so the two Device Tree properties width-mm and height-mm are mandatory β€” like, not optional, they're required, periodt πŸ’€ β€” and they get read and set right onto the display mode. that's the whole vibe check.

πŸ‘‘ RETURN πŸ‘‘

Zero on success, negative error code on failure. no cap, that's it. πŸ’…

🌈 SEE ALSO 🌈


and that's the whole page, bestie β€” mwah πŸ§šπŸ’œ

this lil icon lives over in ./drivers/gpu/drm, and it's stamped October 2026 β€” go forth and get those panel timings, you absolute main character πŸŒŸπŸŽ€

πŸ“¦ where this page comes from