drm_of_lvds_...data_mapping(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_of_lvds_get_data_mapping(9) β€” the Kernel API Manual, but make it iconic πŸŽ€

okay so bestie, welcome to the drm_of_lvds_get_data_mapping page of the Kernel API Manual β€” yes that whole name is a mouthful, but she's worth it, trust πŸ’–


✨ NAME ✨

drm_of_lvds_get_data_mapping β€” literally just "Get LVDS data mapping", no cap, that's the whole vibe πŸ¦‹


🌸 SYNOPSIS 🌸

int drm_of_lvds_get_data_mapping (const struct device_node *port );

like... she takes one thing and she gives you back an int, that's the entire relationship 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the DT port node of the LVDS source or sink. That's it. That's the whole argument. she's low maintenance, we love her for it πŸ™ˆ

πŸ’« DESCRIPTION πŸ’«

so what does she actually do? she takes the DT "data-mapping" property string value and converts it into a media bus format value. that's the glow-up: string in, format value out. main character energy fr fr πŸ‘‘


πŸ”₯ RETURN πŸ”₯

here's the part where she gives you something back β€” and bestie, the options are giving variety:

  • MEDIA_BUS_FMT_RGB666_1X7X3_SPWG β€” when the data-mapping is "jeida-18" πŸ’œ
  • MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA β€” when the data-mapping is "jeida-24" πŸ’œ
  • MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA β€” when the data-mapping is "jeida-30" πŸ’œ
  • MEDIA_BUS_FMT_RGB888_1X7X4_SPWG β€” when the data-mapping is "vesa-24" 🌈
  • MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG β€” when the data-mapping is "vesa-30" 🌈
  • -EINVAL β€” when the "data-mapping" property is unsupported πŸ’€ like, she doesn't know her, she's not gonna pretend
  • -ENODEV β€” when the "data-mapping" property is missing 😭 gone, not found, she looked everywhere
ngl the -EINVAL vs -ENODEV difference matters, bestie β€” one means "that value isn't a thing I support," the other means "there's no value at all." different problems, different drama πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, if you wanna go down the rabbit hole (iykyk) 🧚

  • 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_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_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)

⭐ the cute sign-off ⭐

this page lives over in ./drivers/gpu/drm, and it was stamped October 2026 β€” so yeah, mark your calendars bestie, she's dated and she's proud of it 🫢 stay slay, read your manpages, and remember: -EINVAL is not a personality trait πŸ’…βœ¨

πŸ“¦ where this page comes from