• Fabrizio Castro's avatar
    drm: of: Add drm_of_lvds_get_dual_link_pixel_order · 65290075
    Fabrizio Castro authored
    An LVDS dual-link connection is made of two links, with even
    pixels transitting on one link, and odd pixels on the other
    link. The device tree can be used to fully describe dual-link
    LVDS connections between encoders and bridges/panels.
    The sink of an LVDS dual-link connection is made of two ports,
    the corresponding OF graph port nodes can be marked
    with either dual-lvds-even-pixels or dual-lvds-odd-pixels,
    and that fully describes an LVDS dual-link connection,
    including pixel order.
    
    drm_of_lvds_get_dual_link_pixel_order is a new helper
    added by this patch, given the source port nodes it
    returns DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS if the source
    port nodes belong to an LVDS dual-link connection, with even
    pixels expected to be generated from the first port, and odd
    pixels expected to be generated from the second port.
    If the new helper returns DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS,
    odd pixels are expected to be generated from the first port,
    and even pixels from the other port.
    Signed-off-by: default avatarFabrizio Castro <fabrizio.castro@bp.renesas.com>
    Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
    65290075
drm_of.h 4.09 KB