From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 163FBC433E0 for ; Sun, 24 May 2020 03:08:31 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D378320735 for ; Sun, 24 May 2020 03:08:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="XuDzqdHK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D378320735 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 59AF789FF6; Sun, 24 May 2020 03:08:30 +0000 (UTC) Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4B5C689FF6 for ; Sun, 24 May 2020 03:08:28 +0000 (UTC) Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5E86024D; Sun, 24 May 2020 05:08:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1590289706; bh=cCPGwr/GwX7+KL8x6ZftFms6lADC2XMhrBBIL3Nte0A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XuDzqdHKsxtPuwcClxvPVpnjtWBLJ3D3pDglPZeKZmHDpvEd/eTrItvAPO61szvEd 6eYhYinPXfVW43PkZrQA/8U9KnwSnSoWjxCSS+V2wXx4aclcPQLKL1OrrNoi7p7+Ai tmyQHEmk37ySiPHbumqqHyc96OultBfoz6J4yryI= Date: Sun, 24 May 2020 06:08:13 +0300 From: Laurent Pinchart To: Venkateshwar Rao Gannavarapu Subject: Re: [RFC PATCH 2/2] drm: xlnx: driver for Xilinx DSI TX Subsystem Message-ID: <20200524030813.GF6026@pendragon.ideasonboard.com> References: <1587417656-48078-1-git-send-email-venkateshwar.rao.gannavarapu@xilinx.com> <1587417656-48078-3-git-send-email-venkateshwar.rao.gannavarapu@xilinx.com> <20200504184348.GA3095@smtp.xilinx.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200504184348.GA3095@smtp.xilinx.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sandip Kothari , Hyun Kwon , "airlied@linux.ie" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Venkateshwar Rao Gannavarapu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi GVRao, Thank you for the patch. On Mon, May 04, 2020 at 11:43:48AM -0700, Hyun Kwon wrote: > On Mon, 2020-04-20 at 14:20:56 -0700, Venkateshwar Rao Gannavarapu wrote: > > The Xilinx MIPI DSI Tx Subsystem soft IP is used to display video > > data from AXI-4 stream interface. > > > > It supports upto 4 lanes, optional register interface for the DPHY, > > I don't see the register interface for dphy support. I think the D-PHY should be supported through a PHY driver, as it seems to be shared between different subsystems. > > multiple RGB color formats, command mode and video mode. > > This is a MIPI-DSI host driver and provides DSI bus for panels. > > This driver also helps to communicate with its panel using panel > > framework. > > > > Signed-off-by: Venkateshwar Rao Gannavarapu > > --- > > drivers/gpu/drm/xlnx/Kconfig | 11 + > > drivers/gpu/drm/xlnx/Makefile | 2 + > > drivers/gpu/drm/xlnx/xlnx_dsi.c | 755 ++++++++++++++++++++++++++++++++++++++++ Daniel Vetter has recently expressed his opiion that bridge drivers should go to drivers/gpu/drm/bridge/. It would then be drivers/gpu/drm/bridge/xlnx/. I don't have a strong opinion myself. > > 3 files changed, 768 insertions(+) > > create mode 100644 drivers/gpu/drm/xlnx/xlnx_dsi.c > > > > diff --git a/drivers/gpu/drm/xlnx/Kconfig b/drivers/gpu/drm/xlnx/Kconfig > > index aa6cd88..73873cf 100644 > > --- a/drivers/gpu/drm/xlnx/Kconfig > > +++ b/drivers/gpu/drm/xlnx/Kconfig > > @@ -11,3 +11,14 @@ config DRM_ZYNQMP_DPSUB > > This is a DRM/KMS driver for ZynqMP DisplayPort controller. Choose > > this option if you have a Xilinx ZynqMP SoC with DisplayPort > > subsystem. > > + > > +config DRM_XLNX_DSI > > + tristate "Xilinx DRM DSI Subsystem Driver" > > + select DRM_MIPI_DSI > > + select DRM_PANEL > > + select DRM_PANEL_SIMPLE > > + help > > + This enables support for Xilinx MIPI-DSI. > > This sentence is not needed with below. Could you please rephrase the whole? > > > + This is a DRM/KMS driver for Xilinx programmable DSI controller. > > + Choose this option if you have a Xilinx MIPI DSI-TX controller > > + subsytem. > > These seem incorrectly indented. > > > diff --git a/drivers/gpu/drm/xlnx/Makefile b/drivers/gpu/drm/xlnx/Makefile > > index 2b844c6..b7ee6ef 100644 > > --- a/drivers/gpu/drm/xlnx/Makefile > > +++ b/drivers/gpu/drm/xlnx/Makefile > > @@ -1,2 +1,4 @@ > > zynqmp-dpsub-objs += zynqmp_disp.o zynqmp_dpsub.o zynqmp_dp.o > > obj-$(CONFIG_DRM_ZYNQMP_DPSUB) += zynqmp-dpsub.o > > + > > +obj-$(CONFIG_DRM_XLNX_DSI) += xlnx_dsi.o > > diff --git a/drivers/gpu/drm/xlnx/xlnx_dsi.c b/drivers/gpu/drm/xlnx/xlnx_dsi.c > > new file mode 100644 > > index 0000000..b8cae59 > > --- /dev/null > > +++ b/drivers/gpu/drm/xlnx/xlnx_dsi.c > > @@ -0,0 +1,755 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Xilinx FPGA MIPI DSI Tx Controller driver > > + * > > + * Copyright (C) 2017 - 2019 Xilinx, Inc. > > + * > > + * Authors: > > + * - Saurabh Sengar > > + * - Venkateshwar Rao Gannavarapu > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include