/* * Locate the DRM bridge from the DT node. For the DPAD outputs, if the * DT node has a single port, assume that it describes a panel and * create a panel bridge.
*/ if ((output == RCAR_DU_OUTPUT_DPAD0 ||
output == RCAR_DU_OUTPUT_DPAD1) &&
rcar_du_encoder_count_ports(enc_node) == 1) { struct drm_panel *panel = of_drm_find_panel(enc_node);
if (IS_ERR(panel)) return PTR_ERR(panel);
bridge = devm_drm_panel_bridge_add_typed(rcdu->dev, panel,
DRM_MODE_CONNECTOR_DPI); if (IS_ERR(bridge)) return PTR_ERR(bridge);
} else {
bridge = of_drm_find_bridge(enc_node); if (!bridge) return -EPROBE_DEFER;
/* * Create and initialize the encoder. On Gen3, skip the LVDS1 output if * the LVDS1 encoder is used as a companion for LVDS0 in dual-link * mode, or any LVDS output if it isn't connected. The latter may happen * on D3 or E3 as the LVDS encoders are needed to provide the pixel * clock to the DU, even when the LVDS outputs are not used.
*/ if (rcdu->info->gen >= 3) { if (output == RCAR_DU_OUTPUT_LVDS1 &&
rcar_lvds_dual_link(bridge)) return -ENOLINK;
/* Attach the bridge to the encoder. */
ret = drm_bridge_attach(&renc->base, bridge, NULL,
DRM_BRIDGE_ATTACH_NO_CONNECTOR); if (ret) {
dev_err(rcdu->dev, "failed to attach bridge %pOF for output %s (%d)\n",
bridge->of_node, rcar_du_output_name(output), ret); return ret;
}
/* Create the connector for the chain of bridges. */
connector = drm_bridge_connector_init(&rcdu->ddev, &renc->base); if (IS_ERR(connector)) {
dev_err(rcdu->dev, "failed to created connector for output %s (%ld)\n",
rcar_du_output_name(output), PTR_ERR(connector)); return PTR_ERR(connector);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.