drm_of_lvds_...data_mapping(9)
π 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-EINVALvs-ENODEVdifference 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.coverview(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
- 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