Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1772257ybg; Thu, 4 Jun 2020 19:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTJhblQO4SE1ptRfODWZmXgPOzigaCM/il3m/huPUfAot5Ypnq/slyJ+nqQn5wRM+pRBwm X-Received: by 2002:aa7:c541:: with SMTP id s1mr7269669edr.167.1591324760371; Thu, 04 Jun 2020 19:39:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591324760; cv=pass; d=google.com; s=arc-20160816; b=AsWnbodXqZNoXUl0eNOpy/HQfzBWq4AhE4QC6DjUTWRiuAgKlS6+r5yQaLkvomKB3b KiPKmfSZjMWESQ/u9A3PURT5hVwqMVlgq7QROST/m1ndG08USSAKtYo8BkAD2mBRDDyx iBvSqiDuhvDcy/j0uCXs1JuUgz2NEe+ep4T6TIBEcFxXHn45tmxT3Vs599odhjML7Nxa 1MIr4EAXOMHaUsKLahICJDBmDK/wKmrlw3IWKbKKTZf7Lr9mQFfoV95hlE11zlP9NWTi IplG4Ys7BB2k/yWoftI3+fPk3ZUTql2UZpxdGfMp8KGRYKcECKg9WvFk5KovRqiyWyVJ Js3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature; bh=T4z8mmFV1+VZqe4vAsAAkI8n53nfhnq5RCqJbPHdY6o=; b=s33ZZ+sPYLwFOETt6NRgDZ9Ox9yzz7PegqIUsyN+9fb5OC7FRpCJ5mtaZfD/8uF29I QpBPNWXkD3N71DJery3I/SDvsEH5gYMhKCR51Lx2qxB3hNF/ssArNeuG6e4YJBJMf2qU vKIkWgU7TpvkPWMAt+ohrddJjOw+MH97x/uItjV7Yy/QmeLrTfAj7RTUYee4z5KKZ1vE JLuSUWIIIsU+TdjPQZ88y+FeKvhwGezkHyAYir9tqfRi1XtyEze21rjAMpNmrGoR9pvD yoWCxVkAbjppYIaEZIXbeHWjNf7FIXu0nSUvgRuIc0enC9trX9MV7d3P5vk5FTjlgrf4 aS0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=cw7uJe7k; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si1703494edr.463.2020.06.04.19.38.57; Thu, 04 Jun 2020 19:39:20 -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 header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=cw7uJe7k; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbgFECes (ORCPT + 99 others); Thu, 4 Jun 2020 22:34:48 -0400 Received: from mail-bn8nam12on2113.outbound.protection.outlook.com ([40.107.237.113]:13761 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725986AbgFECes (ORCPT ); Thu, 4 Jun 2020 22:34:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LnyNykSH2D3t/ktGKtZ4JgLjEokBLXP8hQSpzgk2+8yCaEayHBzz87zm2ZEFySQOQ5CaIZqGpN4HfqA+tj41cvXMj/sbIjzuqwMynTBNjK+35oWAKZoE9yC0PterCgGCjMH7/fuy0cye2tuosqxlGIzMW21ZE3uWmxQxTnqJhaWSi4jfsBzjN8CChxDzG+Weixav/HT3C3XHpdKts51War+1zOpYqEAQtn+FJij5JynvH+gDBhe92BKV/VpkPJ3dfyBZ+UGLtxGL1yd3dCPGx5qL1lt0yjyDOD+hyBkzptacctzNIb/ykE5vaQOnjXlNKLp7jOelcbpdBe4VYKm2uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T4z8mmFV1+VZqe4vAsAAkI8n53nfhnq5RCqJbPHdY6o=; b=f5Vk2XZwSFXL9yezo3Hwph2sVdhb+6vf9fHd0VRmVdfYAOxGo5wkGVUF8RqZibw6PR/51Fs0LrSYCTStKei4l2e/zQ20bt6H2eCI+60WKJnXnprqI0ponhfJOsM5CfwyHqnbhRNhsMMVCinAoPLKsbTa218unQEQw+yHC+6i8Pz9K693NKkKZ88LpAlTdmQWhC4C98YfyC2SYtRYH3YFiKFmy2eh/8hn19HmUeS+h767AD8JUEtvlNJQZkgRZAFeuBwTX+H77wG4MgbDVFLgXFN+jFDGnopgf011tKvPUCh64leQCXjwASXsy246zB5OQGdF/VQ2GavgCnMax1LKeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analogixsemi.com; dmarc=pass action=none header.from=analogixsemi.com; dkim=pass header.d=analogixsemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Analogixsemi.onmicrosoft.com; s=selector2-Analogixsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T4z8mmFV1+VZqe4vAsAAkI8n53nfhnq5RCqJbPHdY6o=; b=cw7uJe7kAdGLNM07HePcJ116p312LBLgWnw6DUQWN8Yv0+7OQM0KfiiXTXOx1TWWE/vPA9J9KVgTSaApuprPRKOgbjWlZrgM2w5HZg54xXg91mGFhs6aJUzVpBDp4RWQJhuemlNWN7VBO1KMeKh4ziYExwkdotaMAAZ3GP9knqo= Authentication-Results: analogixsemi.com; dkim=none (message not signed) header.d=none;analogixsemi.com; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BY5PR04MB6961.namprd04.prod.outlook.com (2603:10b6:a03:22b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Fri, 5 Jun 2020 02:33:22 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::844e:398b:2165:631b]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::844e:398b:2165:631b%7]) with mapi id 15.20.3066.018; Fri, 5 Jun 2020 02:33:22 +0000 Date: Fri, 5 Jun 2020 10:33:13 +0800 From: Xin Ji To: Laurent Pinchart Cc: devel@driverdev.osuosl.org, Hsin-Yi Wang , Nicolas Boichat , Dan Carpenter , Andrzej Hajda , Neil Armstrong , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Pi-Hsun Shih , Sheng Pan Subject: Re: [PATCH v12 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP Message-ID: <20200605023313.GA5626@xin-VirtualBox> References: <6541121f0c048f3ae707de44eb45e2729af7a831.1591253353.git.xji@analogixsemi.com> <20200604080805.GD5828@pendragon.ideasonboard.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200604080805.GD5828@pendragon.ideasonboard.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-ClientProxiedBy: HK2PR02CA0211.apcprd02.prod.outlook.com (2603:1096:201:20::23) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from xin-VirtualBox (114.247.245.254) by HK2PR02CA0211.apcprd02.prod.outlook.com (2603:1096:201:20::23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3066.18 via Frontend Transport; Fri, 5 Jun 2020 02:33:20 +0000 X-Originating-IP: [114.247.245.254] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 172d8068-49eb-487b-969b-08d808f8d069 X-MS-TrafficTypeDiagnostic: BY5PR04MB6961: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-Forefront-PRVS: 0425A67DEF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tie/Fp0NFN2qTZ06W8B6RJq8cmqnMftcGX7CkiSSkIUAocIIvXsqseD3u381Ima2/3nVx7xPmQY+1PdOJvETiqpnaQGzcIkKrihhncnYsbqBg+fYlD+EuiasR9VNq7oEKzaBm9mp6cSPiclwWKdMChbgIWQ5KS4rS+Ziv7ff4iMMSu82B8td2XLb4iRQ2y1gWdwoKl7HwX/NQnlLWouDRm3CgtyFy/4QrK2r75mby4R01/ob17sNzfr3sShP4U4BLwJSlw4AeA4fZh1JwWMxjILyVcgEl3XTYuD5KCP+Ko6MmWT17Higc1P8yFSgXgX6rfUj/snxS4NVcXZzfmak526UkAoWmu4n9oT/Xb094ro= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR04MB6739.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(376002)(366004)(136003)(39840400004)(346002)(396003)(26005)(1076003)(107886003)(30864003)(966005)(66946007)(6496006)(86362001)(6916009)(66556008)(5660300002)(478600001)(52116002)(2906002)(66476007)(33656002)(9686003)(16526019)(316002)(186003)(8936002)(4326008)(8676002)(6666004)(83380400001)(54906003)(956004)(33716001)(55016002)(7416002)(559001)(579004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: +x8X9AuHFOsKuaR3KHGcgB2f1log4zTr85tPNIYTd3N++mP1fcpfG7nEauZJ/+/FtIUVfd+IpZATDsN89NjCkAsG2tJC2XmJcG8W+nkdb5Grc2R8pTqPcpukOfFMwF0XCa2F7H2tyUQANgernXp/khCRTjPnakTe+riAItEitE86cdM/IWl9z4QJzYqjKI73iIh5wVTHfTxr999RfC1qQuB7SID0H5MEEwTbDRUp2OhmRcsUZceq4pgbGahtAqFIM0FpnqYADmPnnqO/m3fWcLg3nmMbqgu+/SuRRGOp2tYrFkBBacGBsZoPJsMwG62rDQVxvtzzIEsZUfRgi5KCKR2BgdWJuoZ4lSA3/5Rc6BMA0F8K4tzw2K7vcDmKZTPwPVqi2i4FpBsfGJXCfdfXvxJorgyS64l6MemsFk4hNogVLuGgY4lzmhzKqcBOCzQ2M84bKgzk79GjZ95Y8AvYGO08XeD+s/9o32MR3/F8TeI= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 172d8068-49eb-487b-969b-08d808f8d069 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2020 02:33:22.0909 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b099b0b4-f26c-4cf5-9a0f-d5be9acab205 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5KD+pkEWYvytbdUaBjZgIXUeprt47JtXqa0sOnKbEnvW7l61DneebUbT6tjy9e96t81QwsHEPIPFKsh2L+xTsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6961 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 04, 2020 at 11:08:05AM +0300, Laurent Pinchart wrote: > Hello Xin, > > Thank you for the patch. > > On Thu, Jun 04, 2020 at 03:58:05PM +0800, 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. > > > > Signed-off-by: Xin Ji > > --- > > drivers/gpu/drm/bridge/analogix/Kconfig | 9 + > > drivers/gpu/drm/bridge/analogix/Makefile | 1 + > > drivers/gpu/drm/bridge/analogix/anx7625.c | 1961 +++++++++++++++++++++++++++++ > > drivers/gpu/drm/bridge/analogix/anx7625.h | 397 ++++++ > > 4 files changed, 2368 insertions(+) > > 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/analogix/Kconfig b/drivers/gpu/drm/bridge/analogix/Kconfig > > index e1fa7d8..024ea2a 100644 > > --- a/drivers/gpu/drm/bridge/analogix/Kconfig > > +++ b/drivers/gpu/drm/bridge/analogix/Kconfig > > @@ -25,3 +25,12 @@ config DRM_ANALOGIX_ANX78XX > > config DRM_ANALOGIX_DP > > tristate > > depends on DRM > > + > > +config DRM_ANALOGIX_ANX7625 > > + tristate "Analogix Anx7625 MIPI to DP interface support" > > + depends on DRM > > + depends on OF > > + 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 97669b3..44da392 100644 > > --- a/drivers/gpu/drm/bridge/analogix/Makefile > > +++ b/drivers/gpu/drm/bridge/analogix/Makefile > > @@ -1,5 +1,6 @@ > > # SPDX-License-Identifier: GPL-2.0-only > > analogix_dp-objs := analogix_dp_core.o analogix_dp_reg.o analogix-i2c-dptx.o > > obj-$(CONFIG_DRM_ANALOGIX_ANX6345) += analogix-anx6345.o > > +obj-$(CONFIG_DRM_ANALOGIX_ANX7625) += anx7625.o > > obj-$(CONFIG_DRM_ANALOGIX_ANX78XX) += analogix-anx78xx.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..f1cc6bb > > --- /dev/null > > +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c > > @@ -0,0 +1,1961 @@ > > +// SPDX-License-Identifier: GPL-2.0-only > > +/* > > + * Copyright(c) 2020, 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