From mboxrd@z Thu Jan 1 00:00:00 1970 From: architt@codeaurora.org (Archit Taneja) Date: Mon, 17 Jul 2017 13:36:57 +0530 Subject: [PATCH v5 4/7] drm/bridge/synopsys: Add MIPI DSI host controller bridge In-Reply-To: References: <1499071287-10414-1-git-send-email-philippe.cornu@st.com> <1499071287-10414-5-git-send-email-philippe.cornu@st.com> <0145b068-c28e-3664-86ae-0561c1da8eb5@codeaurora.org> Message-ID: <136ab12b-adfc-7acf-c3a5-3efc680eddbd@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 07/17/2017 01:24 PM, Philippe CORNU wrote: > > > On 07/12/2017 08:05 AM, Archit Taneja wrote: >> >> >> On 07/03/2017 02:11 PM, Philippe CORNU wrote: >>> Add a Synopsys Designware MIPI DSI host DRM bridge driver, based on the >>> Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. >>> >> >> The patch looks good now. One thing that needs to be updated is to make >> drm_bridge_add() not return anything. > > Hi Archit and many thanks for your review. > I have just sent a v6 version adding the drm_bridge_add() small fix. > >> >> The later patches in the series would be dependent on this patch, right? > yes > >> Since the ST patches go via drm-misc too, we could either push all these >> together, or I could push the bridge driver to drm-misc-next, and the ST >> patches can be pushed after. Any preference? If not, I'll do the latter. >> >> Archit >> > The v6 version has been tested on today drm-misc-next branch (few > minutes ago). You can push the entire serie as it is maybe the most > simple solution. Or you can push "up to the synopsys part" and Benjamin > & I will push the remaining part. In fact, it is up to you, simply tell > us your preferred approach. Thanks. I'll push patches 1-4 after some build testing. You can push the rest afterwards. Thanks, Archit > > Once again, many thanks, > Philippe > > >>> Signed-off-by: Philippe CORNU >>> --- >>> drivers/gpu/drm/bridge/synopsys/Kconfig | 6 + >>> drivers/gpu/drm/bridge/synopsys/Makefile | 2 + >>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 979 >>> ++++++++++++++++++++++++++ >>> include/drm/bridge/dw_mipi_dsi.h | 39 + >>> 4 files changed, 1026 insertions(+) >>> create mode 100644 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >>> create mode 100644 include/drm/bridge/dw_mipi_dsi.h >>> >>> diff --git a/drivers/gpu/drm/bridge/synopsys/Kconfig >>> b/drivers/gpu/drm/bridge/synopsys/Kconfig >>> index 40d2827..f00ee26 100644 >>> --- a/drivers/gpu/drm/bridge/synopsys/Kconfig >>> +++ b/drivers/gpu/drm/bridge/synopsys/Kconfig >>> @@ -21,3 +21,9 @@ config DRM_DW_HDMI_I2S_AUDIO >>> help >>> Support the I2S Audio interface which is part of the Synopsys >>> Designware HDMI block. >>> + >>> +config DRM_DW_MIPI_DSI >>> + tristate >>> + select DRM_KMS_HELPER >>> + select DRM_MIPI_DSI >>> + select DRM_PANEL_BRIDGE >>> diff --git a/drivers/gpu/drm/bridge/synopsys/Makefile >>> b/drivers/gpu/drm/bridge/synopsys/Makefile >>> index 17aa7a6..5f57d36 100644 >>> --- a/drivers/gpu/drm/bridge/synopsys/Makefile >>> +++ b/drivers/gpu/drm/bridge/synopsys/Makefile >>> @@ -3,3 +3,5 @@ >>> obj-$(CONFIG_DRM_DW_HDMI) += dw-hdmi.o >>> obj-$(CONFIG_DRM_DW_HDMI_AHB_AUDIO) += dw-hdmi-ahb-audio.o >>> obj-$(CONFIG_DRM_DW_HDMI_I2S_AUDIO) += dw-hdmi-i2s-audio.o >>> + >>> +obj-$(CONFIG_DRM_DW_MIPI_DSI) += dw-mipi-dsi.o >>> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >>> b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >>> new file mode 100644 >>> index 0000000..406000e >>> --- /dev/null >>> +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >>> @@ -0,0 +1,979 @@ >>> +/* >>> + * Copyright (c) 2016, Fuzhou Rockchip Electronics Co., Ltd >>> + * Copyright (C) STMicroelectronics SA 2017 >>> + * >>> + * This program is free software; you can redistribute it and/or modify >>> + * it under the terms of the GNU General Public License as published by >>> + * the Free Software Foundation; either version 2 of the License, or >>> + * (at your option) any later version. >>> + * >>> + * Modified by Philippe Cornu >>> + * This generic Synopsys DesignWare MIPI DSI host driver is based on the >>> + * Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. >>> + */ >>> + >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include