Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp51807pxj; Wed, 23 Jun 2021 15:25:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEt9ytesZmEboXLrUNDH5D0TkvWSpW+Fk4gQoavSh2f8HOzkYdCPH3RggVu29FcgLzyTV0 X-Received: by 2002:a17:906:82cd:: with SMTP id a13mr2146109ejy.229.1624487119728; Wed, 23 Jun 2021 15:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624487119; cv=none; d=google.com; s=arc-20160816; b=f3kH1oxRnm526+BkkbWVYHqqGfsQvqrFcfx2tkpoTVQ5ZTNp5Bd9lwiIuSiok+bc1r DwTmH+/yAAxCTRODMU3+jgdjA1/MmVu6feGRma7YdK9dyiCPjNJLmyN1t9TQ8fCN3JUp WWu/BP+ipVIrh4ZuIbc/WBtSgFMDMdrDXYBfpsuy1q9l1ET0JccHbarArBBZaqBe7ect igpHpigBwJnV7qM2DmMMYxoHc6SQ6ozp8ZUBuRZr/7SCDyISQYKQzSW39p5k9S1QhWel zujfvt+obzDJ3MHAxl/TQ1qLJcVPMGdvwwSjmFVXfm3aAVxonBsj+N23ruJ5tduFBYM0 hZxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DyyjkZEcK0Dtfh49lYLC/4GvSCPG0/enr4QWS6ESgH4=; b=nI9QA04JMmfeqKb6M5tb6InzTfigGlolqgWSHV9xXRTBE75Fti+xMPOijLhOpNqCWf 7yfhhpfZ+ftqDVrMIVCRTomlFwrwbNn59WnMjUOT0tWW4gGhalc+0xMM3Yph7Kgk98sH h1eYELS7DFFuxKQqDr2EXUasgVjsO56MI1loRkbcx+ONn/8slOR6syqlBo9FyRaTgDlM 2mUUoVqoNR1xwmy/lV0X+8c3lT6ZXJH4LsNj3xGp9LMGyrUE10t/Wtw1r7vmGrrCwzUQ vQCGALl0TIKkWYIWXyJbSURIA5Ol3uwYZ18eC4nRhmuxhy0fK8C5QW/ADTh5ylLeeOJ3 RrFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=a8inAFKv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i27si796911ejh.691.2021.06.23.15.24.55; Wed, 23 Jun 2021 15:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=a8inAFKv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbhFWWZ0 (ORCPT + 99 others); Wed, 23 Jun 2021 18:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbhFWWZ0 (ORCPT ); Wed, 23 Jun 2021 18:25:26 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADB4FC061574; Wed, 23 Jun 2021 15:23:07 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CFEFF5A1; Thu, 24 Jun 2021 00:23:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1624486986; bh=veFFZSszQ862R1/8cm/SinKD4NXadBHftwARlaPsSe8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a8inAFKvUl/8dgdFPFPrIIwdPce/AA81ebZcFp7qOqKU/epQEfPNkqXxmS8Exm3cO H9posXCLJTp/fOsEVFU5PsQFIB0+oGX9mDQZjupt06aMQeaN2fgv50A06Cl2x01i9c 3tT+vzkddBEhiq24rdpC4RauLryrUyX4CDwmIAxE= Date: Thu, 24 Jun 2021 01:22:36 +0300 From: Laurent Pinchart To: Jagan Teki Cc: Peng Fan , Shawn Guo , Sascha Hauer , Tomasz Figa , Fancy Fang , devicetree@vger.kernel.org, Francis Laniel , Matteo Lisi , Neil Armstrong , Robert Foss , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Andrzej Hajda , NXP Linux Team , Milco Pratesi , Anthony Brandon , linux-phy@lists.infradead.org, linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH 2/9] drm: bridge: Add Samsung SEC MIPI DSIM bridge driver Message-ID: References: <20210621072424.111733-1-jagan@amarulasolutions.com> <20210621072424.111733-3-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210621072424.111733-3-jagan@amarulasolutions.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jagan, Thank you for the patch. On Mon, Jun 21, 2021 at 12:54:17PM +0530, Jagan Teki wrote: > Samsung SEC MIPI DSIM Bridge controller is MIPI DSI bridge > available in NXP's i.MX8M Mini and Nano Processors. > > Add bridge driver for it. > > Cc: Andrzej Hajda > Cc: Neil Armstrong > Cc: Robert Foss > Cc: Laurent Pinchart > Signed-off-by: Jagan Teki > --- > drivers/gpu/drm/bridge/Kconfig | 15 + > drivers/gpu/drm/bridge/Makefile | 1 + > drivers/gpu/drm/bridge/sec-dsim.c | 1535 +++++++++++++++++++++++++++++ > 3 files changed, 1551 insertions(+) > create mode 100644 drivers/gpu/drm/bridge/sec-dsim.c > > diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig > index 19109c0b5481..a183eb165a35 100644 > --- a/drivers/gpu/drm/bridge/Kconfig > +++ b/drivers/gpu/drm/bridge/Kconfig > @@ -189,6 +189,21 @@ config DRM_PARADE_PS8640 > The PS8640 is a high-performance and low-power > MIPI DSI to eDP converter > > +config DRM_SEC_MIPI_DSIM > + tristate "Samsung SEC MIPI DSIM Bridge controller" > + depends on DRM > + depends on COMMON_CLK > + depends on OF && HAS_IOMEM > + select DRM_KMS_HELPER > + select DRM_MIPI_DSI > + select DRM_PANEL_BRIDGE > + select GENERIC_PHY_MIPI_DPHY > + select MFD_SYSCON > + select REGMAP_MMIO > + help > + This enables the Samsung SEC MIPI DSIM Bridge controller as > + for example found on NXP's i.MX8M Mini and Nano Processors. > + > config DRM_SIL_SII8620 > tristate "Silicon Image SII8620 HDMI/MHL bridge" > depends on OF > diff --git a/drivers/gpu/drm/bridge/Makefile b/drivers/gpu/drm/bridge/Makefile > index 88e4edf81087..ff802a4ffe65 100644 > --- a/drivers/gpu/drm/bridge/Makefile > +++ b/drivers/gpu/drm/bridge/Makefile > @@ -12,6 +12,7 @@ obj-$(CONFIG_DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW) += megachips-stdpxxxx-ge-b850v > obj-$(CONFIG_DRM_NXP_PTN3460) += nxp-ptn3460.o > obj-$(CONFIG_DRM_PARADE_PS8622) += parade-ps8622.o > obj-$(CONFIG_DRM_PARADE_PS8640) += parade-ps8640.o > +obj-$(CONFIG_DRM_SEC_MIPI_DSIM) += sec-dsim.o > obj-$(CONFIG_DRM_SIL_SII8620) += sil-sii8620.o > obj-$(CONFIG_DRM_SII902X) += sii902x.o > obj-$(CONFIG_DRM_SII9234) += sii9234.o > diff --git a/drivers/gpu/drm/bridge/sec-dsim.c b/drivers/gpu/drm/bridge/sec-dsim.c > new file mode 100644 > index 000000000000..5b6645bb94e7 > --- /dev/null > +++ b/drivers/gpu/drm/bridge/sec-dsim.c > @@ -0,0 +1,1535 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Samsung SEC MIPI DSIM Bridge > + * > + * Copyright (C) 2018 NXP > + * Copyright (c) 2014 Samsung Electronics Co., Ltd > + * Copyright (C) 2021 Amarula Solutions(India) > + * > + * Based on the drivers/gpu/drm/exynos/exynos_drm_dsi.c > + * > + * Authors: > + * Tomasz Figa > + * Andrzej Hajda > + * Fancy Fang > + * Jagan Teki > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include