drm_of_find_panel_or_bridge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_of_find_panel_or_bridge(9) β€” Kernel API Manual ✨

okay bestie, welcome to the drm_of_find_panel_or_bridge(9) page, straight out of the Kernel API Manual πŸ’– this one's a little deprecated icon, so pay attention, iykyk.


🌸 NAME 🌸

drm_of_find_panel_or_bridge β€” literally returns the connected panel or bridge device 🫢


✨ SYNOPSIS ✨

int drm_of_find_panel_or_bridge (const struct device_node *np , int port
, int endpoint , struct drm_panel **panel , struct drm_bridge **bridge
);

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” the device tree node that's holding the encoder output ports, main character energy fr 🌈
  • port β€” which port in the device tree node we're looking at πŸ‘‘
  • endpoint β€” the endpoint in the device tree node, slay πŸ¦‹
  • panel β€” pointer to hold the returned drm_panel, and it must not be NULL ⚠️ on success the caller has to call drm_panel_put when they're done with the panel, no cap
  • bridge β€” pointer to hold the returned drm_bridge πŸ’œ

πŸ”₯ DESCRIPTION πŸ”₯

So given a DT node's port and endpoint number, this cutie finds the connected node and returns either the associated struct drm_panel or drm_bridge device ✨ literally that's the whole vibe.

⚠️ okay so important: this function is deprecated and should not be used in new drivers πŸ’€ no exceptions bestie. Use of_drm_get_bridge_by_endpoint instead when you're not looking for a panel, or devm_drm_of_get_bridge otherwise 🫢

It returns zero if successful, or one of the standard error codes if it fails 😭 that's it, that's the deal.


🌟 SEE ALSO 🌟

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_get_panel_orientation(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) πŸ’–


mwah πŸ’‹ that's the page!! sourced from ./drivers/gpu/drm, dated October 2026, and it's the drm_of_find_panel_or_bridge(9) page in the Kernel API Manual β€” go forth and don't use it in new drivers bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from