of_find_mip...vice_by_node(9)
π of_find_mipi_dsi_device_by_node(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one is short and sweet and honestly kind of iconic: it's the little lookup girlie that goes "you gave me a device tree node, lemme find the MIPI DSI device that matches it" π
πΈ NAME πΈ
of_find_mipi_dsi_device_by_node β find the MIPI DSI device matching a device tree node π¦
like, the whole job. that's it. she's a matcher. a finder. a "who's this diva" detector. no cap.
β¨ SYNOPSIS β¨
struct mipi_dsi_device * of_find_mipi_dsi_device_by_node (struct device_node *np );
one function, one argument, one pointer return. she's lowkey minimal and honestly? respect π
π«Ά ARGUMENTS π«Ά
npβ the device tree node π³ that you want to match up with a MIPI DSI device. that's the whole input, bestie, just hand over the node and let her cook.
π RETURN π
she gives you back a pointer to the MIPI DSI device corresponding to np π₯
β¦or NULL if no such device exists π β or if it hasn't been registered yet, which is the sneaky part, so don't come for her if the driver probe ordering isn't vibing. NULL means "not a thing (yet)", not "you did something wrong" (probably). ngl, always check the return value, NULL is not a personality trait, it's a warning β
π SEE ALSO π
the squad, the crew, the whole friend group π she does not exist in a vacuum:
Kernel file ./drivers/gpu/drm/drm_mipi_dsi.c β that's where she lives, go say hi π
dsi helpers(9)mipi_dsi_device_register_full(9)mipi_dsi_device_unregister(9)devm_mipi_dsi_device_register_full(9)of_find_mipi_dsi_host_by_node(9)mipi_dsi_attach(9)mipi_dsi_detach(9)devm_mipi_dsi_attach(9)mipi_dsi_packet_format_is_short(9)mipi_dsi_packet_format_is_long(9)mipi_dsi_create_packet(9)mipi_dsi_shutdown_peripheral(9)mipi_dsi_turn_on_peripheral(9)mipi_dsi_compression_mode_ext(9)mipi_dsi_compression_mode(9)mipi_dsi_picture_parameter_set(9)mipi_dsi_generic_write(9)mipi_dsi_generic_write_multi(9)mipi_dsi_dual_generic_write_multi(9)mipi_dsi_generic_read(9)drm_mipi_dsi_get_input_bus_fmt(9)mipi_dsi_dcs_write_buffer(9)mipi_dsi_dcs_write_buffer_chatty(9)mipi_dsi_dcs_write_buffer_multi(9)mipi_dsi_dual_dcs_write_buffer_multi(9)mipi_dsi_dcs_write(9)mipi_dsi_dcs_read(9)mipi_dsi_dcs_read_multi(9)mipi_dsi_dcs_nop(9)mipi_dsi_dcs_soft_reset(9)mipi_dsi_dcs_get_power_mode(9)mipi_dsi_dcs_get_pixel_format(9)mipi_dsi_dcs_enter_sleep_mode(9)mipi_dsi_dcs_exit_sleep_mode(9)mipi_dsi_dcs_set_display_off(9)mipi_dsi_dcs_set_display_on(9)mipi_dsi_dcs_set_column_address(9)mipi_dsi_dcs_set_page_address(9)mipi_dsi_dcs_set_tear_on(9)mipi_dsi_dcs_set_pixel_format(9)mipi_dsi_dcs_set_tear_scanline(9)mipi_dsi_dcs_set_display_brightness(9)mipi_dsi_dcs_get_display_brightness(9)mipi_dsi_dcs_set_display_brightness_large(9)mipi_dsi_dcs_get_display_brightness_large(9)mipi_dsi_picture_parameter_set_multi(9)mipi_dsi_compression_mode_ext_multi(9)mipi_dsi_compression_mode_multi(9)mipi_dsi_dcs_nop_multi(9)mipi_dsi_dcs_enter_sleep_mode_multi(9)mipi_dsi_dcs_exit_sleep_mode_multi(9)mipi_dsi_dcs_set_display_off_multi(9)mipi_dsi_dcs_set_display_on_multi(9)mipi_dsi_dcs_set_tear_on_multi(9)mipi_dsi_turn_on_peripheral_multi(9)mipi_dsi_dcs_set_tear_off_multi(9)mipi_dsi_dcs_soft_reset_multi(9)mipi_dsi_dcs_set_display_brightness_multi(9)mipi_dsi_dcs_set_pixel_format_multi(9)mipi_dsi_dcs_set_column_address_multi(9)mipi_dsi_dcs_set_page_address_multi(9)mipi_dsi_dcs_set_tear_scanline_multi(9)mipi_dsi_shutdown_peripheral_multi(9)mipi_dsi_driver_register_full(9)mipi_dsi_driver_unregister(9)
that's a lot of friends but she's an extrovert, it's giving main character energy π iykyk.
heads up bestie:nphas to actually be a device tree node, and aNULLreturn is a real possibility β either the device doesn't exist or it just hasn't been registered yet. it's giving "not yet, bestie" not necessarily "never" π«Ά check before you dereference, fr fr π
so yeah, that's the page πΈ β from ./drivers/gpu/drm, dated October 2026, part of the Kernel API Manual (the manpage itself is literally titled of_find_mip...vice_by_node(9) because even the header got truncated, tragic π). mwah, go read the DSI helpers next, ily, bye πππ¦
π¦ 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