Lines Matching defs:companion
76 struct drm_bridge *companion;
465 /* Enable the companion LVDS encoder in dual-link mode. */
466 if (lvds->link_type != RCAR_LVDS_SINGLE_LINK && lvds->companion)
467 __rcar_lvds_atomic_enable(lvds->companion, state, crtc,
497 * encoder and odd pixels from the companion encoder.
500 * companion encoder.
509 * ST_SWAP is reserved for the companion encoder, only
513 | (lvds->companion && swap_pixels ?
520 * PLL clock configuration on all instances but the companion in
523 if (lvds->link_type == RCAR_LVDS_SINGLE_LINK || lvds->companion) {
621 /* Disable the companion LVDS encoder in dual-link mode. */
622 if (lvds->link_type != RCAR_LVDS_SINGLE_LINK && lvds->companion)
623 lvds->companion->funcs->atomic_disable(lvds->companion,
713 struct device_node *companion;
720 /* Locate the companion LVDS encoder for dual-link operation, if any. */
721 companion = of_parse_phandle(dev->of_node, "renesas,companion", 0);
722 if (!companion)
726 * Sanity check: the companion encoder must have the same compatible
730 if (!of_device_is_compatible(companion, match->compatible)) {
743 port1 = of_graph_get_port_by_id(companion, 1);
760 * encoder, and odd pixels from the companion encoder.
774 lvds->companion = of_drm_find_bridge(companion);
775 if (!lvds->companion) {
781 "Dual-link configuration detected (companion encoder %pOF)\n",
782 companion);
788 * FIXME: We should not be messing with the companion encoder private
789 * data from the primary encoder, we should rather let the companion
790 * encoder work things out on its own. However, the companion encoder
796 companion_lvds = bridge_to_rcar_lvds(lvds->companion);
800 of_node_put(companion);