Lines Matching +full:lvds +full:- +full:encoder

1 // SPDX-License-Identifier: GPL-2.0+
3 * R-Car Display Unit Encoder
5 * Copyright (C) 2013-2014 Renesas Electronics Corporation
21 /* -----------------------------------------------------------------------------
22 * Encoder
70 bridge = devm_drm_panel_bridge_add_typed(rcdu->dev, panel, in rcar_du_encoder_init()
77 return -EPROBE_DEFER; in rcar_du_encoder_init()
81 rcdu->lvds[output - RCAR_DU_OUTPUT_LVDS0] = bridge; in rcar_du_encoder_init()
85 rcdu->dsi[output - RCAR_DU_OUTPUT_DSI0] = bridge; in rcar_du_encoder_init()
89 * Create and initialize the encoder. On Gen3, skip the LVDS1 output if in rcar_du_encoder_init()
90 * the LVDS1 encoder is used as a companion for LVDS0 in dual-link in rcar_du_encoder_init()
91 * mode, or any LVDS output if it isn't connected. The latter may happen in rcar_du_encoder_init()
92 * on D3 or E3 as the LVDS encoders are needed to provide the pixel in rcar_du_encoder_init()
93 * clock to the DU, even when the LVDS outputs are not used. in rcar_du_encoder_init()
95 if (rcdu->info->gen >= 3) { in rcar_du_encoder_init()
98 return -ENOLINK; in rcar_du_encoder_init()
103 return -ENOLINK; in rcar_du_encoder_init()
106 dev_dbg(rcdu->dev, "initializing encoder %pOF for output %s\n", in rcar_du_encoder_init()
109 renc = drmm_encoder_alloc(&rcdu->ddev, struct rcar_du_encoder, base, in rcar_du_encoder_init()
115 renc->output = output; in rcar_du_encoder_init()
117 /* Attach the bridge to the encoder. */ in rcar_du_encoder_init()
118 ret = drm_bridge_attach(&renc->base, bridge, NULL, in rcar_du_encoder_init()
121 dev_err(rcdu->dev, in rcar_du_encoder_init()
123 bridge->of_node, rcar_du_output_name(output), ret); in rcar_du_encoder_init()
128 connector = drm_bridge_connector_init(&rcdu->ddev, &renc->base); in rcar_du_encoder_init()
130 dev_err(rcdu->dev, in rcar_du_encoder_init()
136 return drm_connector_attach_encoder(connector, &renc->base); in rcar_du_encoder_init()