Commit e0bbcc62 authored by Douglas Anderson's avatar Douglas Anderson

drm/bridge: ti-sn65dsi86: Add support for the DP AUX bus

We want to provide our panel with access to the DP AUX channel. The
way to do this is to let our panel be a child of ours using the fancy
new DP AUX bus support.
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210611101711.v10.8.Ib5fe0638da85800141ce141bb8e441c5f25438d4@changeid
parent a1e3667a
...@@ -303,6 +303,7 @@ config DRM_TI_SN65DSI86 ...@@ -303,6 +303,7 @@ config DRM_TI_SN65DSI86
select DRM_PANEL select DRM_PANEL
select DRM_MIPI_DSI select DRM_MIPI_DSI
select AUXILIARY_BUS select AUXILIARY_BUS
select DRM_DP_AUX_BUS
help help
Texas Instruments SN65DSI86 DSI to eDP Bridge driver Texas Instruments SN65DSI86 DSI to eDP Bridge driver
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_bridge.h> #include <drm/drm_bridge.h>
#include <drm/drm_dp_aux_bus.h>
#include <drm/drm_dp_helper.h> #include <drm/drm_dp_helper.h>
#include <drm/drm_mipi_dsi.h> #include <drm/drm_mipi_dsi.h>
#include <drm/drm_of.h> #include <drm/drm_of.h>
...@@ -1426,12 +1427,17 @@ static int ti_sn_aux_probe(struct auxiliary_device *adev, ...@@ -1426,12 +1427,17 @@ static int ti_sn_aux_probe(struct auxiliary_device *adev,
const struct auxiliary_device_id *id) const struct auxiliary_device_id *id)
{ {
struct ti_sn65dsi86 *pdata = dev_get_drvdata(adev->dev.parent); struct ti_sn65dsi86 *pdata = dev_get_drvdata(adev->dev.parent);
int ret;
pdata->aux.name = "ti-sn65dsi86-aux"; pdata->aux.name = "ti-sn65dsi86-aux";
pdata->aux.dev = &adev->dev; pdata->aux.dev = &adev->dev;
pdata->aux.transfer = ti_sn_aux_transfer; pdata->aux.transfer = ti_sn_aux_transfer;
drm_dp_aux_init(&pdata->aux); drm_dp_aux_init(&pdata->aux);
ret = devm_of_dp_aux_populate_ep_devices(&pdata->aux);
if (ret)
return ret;
/* /*
* The eDP to MIPI bridge parts don't work until the AUX channel is * The eDP to MIPI bridge parts don't work until the AUX channel is
* setup so we don't add it in the main driver probe, we add it now. * setup so we don't add it in the main driver probe, we add it now.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment