mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
drm/bridge: waveshare-dsi: support DSI LCD kits with LVDS panels
Several Waveshare DSI LCD kits use LVDS panels and the ICN6202 DSI2LVDS bridge. Support that setup by handling waveshare,dsi2lvds compatible. The only difference with the existing waveshare,dsi2dpi is the bridge's output type (LVDS vs DPI). Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20260412-ws-lcd-v3-2-db22c2631828@oss.qualcomm.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
This commit is contained in:
parent
7fd2875a93
commit
17394e05b2
|
|
@ -177,7 +177,7 @@ static int ws_bridge_probe(struct i2c_client *i2c)
|
|||
regmap_write(ws->reg_map, 0xc2, 0x01);
|
||||
regmap_write(ws->reg_map, 0xac, 0x01);
|
||||
|
||||
ws->bridge.type = DRM_MODE_CONNECTOR_DPI;
|
||||
ws->bridge.type = (uintptr_t)i2c_get_match_data(i2c);
|
||||
ws->bridge.of_node = dev->of_node;
|
||||
devm_drm_bridge_add(dev, &ws->bridge);
|
||||
|
||||
|
|
@ -185,7 +185,8 @@ static int ws_bridge_probe(struct i2c_client *i2c)
|
|||
}
|
||||
|
||||
static const struct of_device_id ws_bridge_of_ids[] = {
|
||||
{.compatible = "waveshare,dsi2dpi",},
|
||||
{.compatible = "waveshare,dsi2dpi", .data = (void *)DRM_MODE_CONNECTOR_DPI, },
|
||||
{.compatible = "waveshare,dsi2lvds", .data = (void *)DRM_MODE_CONNECTOR_LVDS, },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user