Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2075108ybx; Thu, 7 Nov 2019 22:53:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwkxafis/nBXAvfaKUSMap/292gmGZDLwAVsBDpLQ9ED/KWLVs1+aVX2x8oc+lIkBPi+Z65 X-Received: by 2002:a17:906:f42:: with SMTP id h2mr7117824ejj.39.1573195991233; Thu, 07 Nov 2019 22:53:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573195991; cv=none; d=google.com; s=arc-20160816; b=O7udpgCm9bBNe5XyBUHGM1IVdS7y3I65ha0pYA5fWlfA+o6tE/LcG47m60AQTh4p8n oxTkJBkB1Djq0vMAsXpn92prOE4R8dUZ0cZMcdwdq0nIxvzMvqEuVpwrQDkN3oE+HEXB vpE2joTx2aey98a5TdS7S3yDKKSSJWzvxPnC6Ti50Ih6S5vlCOL4VFFSp/Bh7t5fAasy dVaXvlykkBJXXDccvn6+YiVN4HW0aSoANHCEBzoNSEi4ndCDTB529C6UfDn9VKX7gj6T jr29O6Hf45DwR3gVn8YiFhjNJ1asoqJ21/AXbdl/PkhoXpVByVexYfwN92TGQ4pU0GA4 mQUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8nurVYs1SECmgwu+UEWZyJ9kjacVE9qDql8FJXzXbE8=; b=cmov9b/zntAFkbujvdx+ikPgU0q4xZjNzyrfBPwrdtxrv0sRargO95ek1XoPPMTheF ppYw5MgkdM3fXChdtLyePzb9egzfCqd4mpBtOAK8tI0N7nUqleFZMoBTlPwjXBUwpK1c +FEFXzkeo6txG/EK50bzVofotQbk1f4JhFNwhV40320UWRWVhJbjho82rU3bpDCYuYTl CBk/4M2uh1kDnHav4XwoF+dUXd8h83ytJj59jUisWRJXvnkHAiq3GVLwOX8xXxwqGCtc VqZdU7SORsDp+xJkCqvkwmssxtrd7SoOSaKLS40A08e90CwAgtuF2VWBEqBedm41QVSo oRFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QNpsW4NF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si3012629edv.43.2019.11.07.22.52.46; Thu, 07 Nov 2019 22:53:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QNpsW4NF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729895AbfKHGvW (ORCPT + 99 others); Fri, 8 Nov 2019 01:51:22 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37199 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbfKHGvV (ORCPT ); Fri, 8 Nov 2019 01:51:21 -0500 Received: by mail-ed1-f65.google.com with SMTP id k14so4159734eds.4 for ; Thu, 07 Nov 2019 22:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8nurVYs1SECmgwu+UEWZyJ9kjacVE9qDql8FJXzXbE8=; b=QNpsW4NFmzsS+XUVAs/uhSZeSLZ/S4bUWIk7M+2epMgrnZXbz1YFokVtVhhDqjfb15 WmsGs535TaFPfX8dbBMqFV0qNltQWEW7oDtq6gh1V5lpNoFSfty1lenCiVvk9aVlQRHu HCcZAIlRd+llrlc+1W8KI8RW7jDlSE/MQTCDQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8nurVYs1SECmgwu+UEWZyJ9kjacVE9qDql8FJXzXbE8=; b=HQUs+FHKZfkTUth/Q/N3Nh9rsEixXGj72Z+TkOE+QvSyHx9Oy2uM6BqrK7kBdL1M+T wF9sIsv0sWrqxWShGwdf4mNnM3uSDH2ZbO0fRW0M45geiOZ+y1V/ucadfA20J1LNXzcO WheM+Sfk/hF9lhZ0L07hXaUsIeDxLdQ9oXs2Fzn377p7ddmfvxC5Rs9bSnvuj71AHllg ynMDnt93mTOWukh6uA7OAtkPCLI7CbA188sGmoXJoX1e7CLHrniuNd5wfao6lXGZKr/k My0i4BJHXvAR4kg3dbuADK1s/ErEa7br7tFyJd0kQU819qascnMiOTDIKDR+TxWwm/tw EWow== X-Gm-Message-State: APjAAAVavtoqE0JTn+nCSFq/3edScyECvb8U0lnSH3yEeSy8IP+5dXGz UM3yawmVBCUJ3mw4xGF/l7WwY06uQmceVEzUvDgm/A== X-Received: by 2002:a50:de0b:: with SMTP id z11mr8533667edk.33.1573195873053; Thu, 07 Nov 2019 22:51:13 -0800 (PST) MIME-Version: 1.0 References: <7a5ac8741df0aaeb8782a4f6235802f50ce3d39f.1571132350.git.xji@analogixsemi.com> In-Reply-To: <7a5ac8741df0aaeb8782a4f6235802f50ce3d39f.1571132350.git.xji@analogixsemi.com> From: Pi-Hsun Shih Date: Fri, 8 Nov 2019 14:50:36 +0800 Message-ID: Subject: Re: [PATCH v3 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver To: Xin Ji Cc: "devel@driverdev.osuosl.org" , Laurent Pinchart , Andrzej Hajda , Neil Armstrong , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Dan Carpenter , Nicolas Boichat , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Sheng Pan , "lkp@intel.com" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Oct 15, 2019 at 5:52 PM Xin Ji wrote: > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. > > The ANX7625 can support both USB Type-C PD feature and MIPI DSI/DPI > to DP feature. This driver only enabled MIPI DSI/DPI to DP feature. > > Signed-off-by: Xin Ji > --- > drivers/gpu/drm/bridge/Makefile | 2 +- > drivers/gpu/drm/bridge/analogix/Kconfig | 6 + > drivers/gpu/drm/bridge/analogix/Makefile | 1 + > drivers/gpu/drm/bridge/analogix/anx7625.c | 2043 +++++++++++++++++++++++++++++ > drivers/gpu/drm/bridge/analogix/anx7625.h | 406 ++++++ > 5 files changed, 2457 insertions(+), 1 deletion(-) > create mode 100644 drivers/gpu/drm/bridge/analogix/anx7625.c > create mode 100644 drivers/gpu/drm/bridge/analogix/anx7625.h > > diff --git a/drivers/gpu/drm/bridge/Makefile b/drivers/gpu/drm/bridge/Makefile > index 4934fcf..bcd388a 100644 > --- a/drivers/gpu/drm/bridge/Makefile > +++ b/drivers/gpu/drm/bridge/Makefile > @@ -12,8 +12,8 @@ obj-$(CONFIG_DRM_SII9234) += sii9234.o > obj-$(CONFIG_DRM_THINE_THC63LVD1024) += thc63lvd1024.o > obj-$(CONFIG_DRM_TOSHIBA_TC358764) += tc358764.o > obj-$(CONFIG_DRM_TOSHIBA_TC358767) += tc358767.o > -obj-$(CONFIG_DRM_ANALOGIX_DP) += analogix/ > obj-$(CONFIG_DRM_I2C_ADV7511) += adv7511/ > obj-$(CONFIG_DRM_TI_SN65DSI86) += ti-sn65dsi86.o > obj-$(CONFIG_DRM_TI_TFP410) += ti-tfp410.o > +obj-y += analogix/ > obj-y += synopsys/ > diff --git a/drivers/gpu/drm/bridge/analogix/Kconfig b/drivers/gpu/drm/bridge/analogix/Kconfig > index e930ff9..b2f127e 100644 > --- a/drivers/gpu/drm/bridge/analogix/Kconfig > +++ b/drivers/gpu/drm/bridge/analogix/Kconfig > @@ -2,3 +2,9 @@ > config DRM_ANALOGIX_DP > tristate > depends on DRM > + > +config ANALOGIX_ANX7625 > + tristate "Analogix MIPI to DP interface support" > + help > + ANX7625 is an ultra-low power 4K mobile HD transmitter designed > + for portable devices. It converts MIPI/DPI to DisplayPort1.3 4K. > diff --git a/drivers/gpu/drm/bridge/analogix/Makefile b/drivers/gpu/drm/bridge/analogix/Makefile > index fdbf3fd..8a52867 100644 > --- a/drivers/gpu/drm/bridge/analogix/Makefile > +++ b/drivers/gpu/drm/bridge/analogix/Makefile > @@ -1,3 +1,4 @@ > # SPDX-License-Identifier: GPL-2.0-only > +obj-$(CONFIG_ANALOGIX_ANX7625) += anx7625.o > analogix_dp-objs := analogix_dp_core.o analogix_dp_reg.o > obj-$(CONFIG_DRM_ANALOGIX_DP) += analogix_dp.o > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c > new file mode 100644 > index 0000000..456b95c > --- /dev/null > +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c > @@ -0,0 +1,2043 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright(c) 2016, Analogix Semiconductor. All rights reserved. > + * > + */ > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include