drm_of_get_p..._orientation(9)
π¦ drm_of_get_panel_orientation(9) β the Kernel API Manual, bestie edition π¦
okay so this is a page from the Kernel API Manual and it's literally all about drm_of_get_panel_orientation β yes the name is a whole mouthful, the header truncates it, iykyk π
β¨ NAME β¨
drm_of_get_panel_orientation β bestie, this is the one that looks up the orientation of the panel through the "rotation" binding from a device tree node π
πΈ SYNOPSIS πΈ
int drm_of_get_panel_orientation (const struct device_node *np , enum
drm_panel_orientation *orientation );
π ARGUMENTS π
npβ the device tree node of the panel π like, that's the thing you're inspecting, periodt.orientationβ the orientation enum that gets filled in π«Ά it's the output, it's giving "here's your answer" energy.
π DESCRIPTION π
So what it does: it looks up the rotation of a panel in the device tree β¨ The orientation of the panel is expressed as a property name "rotation" in the device tree. And the rotation in the device tree is counter clockwise β not me stressing this, it's literally in the spec π
π₯ RETURN π₯
0β when a valid rotation value (0,90,180, or270) is read π« or when the rotation property just doesn't exist (no cap, that's a success too).- a negative error code on failure π so like, if you get a negative number, something went wrong, bestie.
π§ SEE ALSO π§
okay this is the whole friend group, go say hi to all of them π
- Kernel file
./drivers/gpu/drm/drm_of.c overview(9)drm_of_crtc_port_mask(9)drm_of_find_possible_crtcs(9)drm_of_component_match_add(9)drm_of_component_probe(9)drm_of_find_panel_or_bridge(9)drm_of_lvds_get_dual_link_pixel_order(9)drm_of_lvds_get_dual_link_pixel_order_sink(9)drm_of_lvds_get_data_mapping(9)drm_of_get_data_lanes_count(9)drm_of_get_data_lanes_count_ep(9)drm_of_get_data_lanes_count_remote(9)drm_of_get_dsi_bus(9)
π and that's the whole page, bestie β this one lives in ./drivers/gpu/drm, dated October 2026. slay, go read some device trees, ily π«Άβ¨
π¦ 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