Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1084665pxk; Fri, 18 Sep 2020 03:26:49 -0700 (PDT) X-Received: by 2002:a17:906:4151:: with SMTP id l17mr37497451ejk.116.1600424778848; Fri, 18 Sep 2020 03:26:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXF0+A23X0F4NcUAxi2yhzF6gF8/U7vzQsMmYX9qbJTjNqfAl3VD94bDsrK0LAyLeZ5nXX X-Received: by 2002:a17:906:4151:: with SMTP id l17mr37497198ejk.116.1600424776054; Fri, 18 Sep 2020 03:26:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600424776; cv=pass; d=google.com; s=arc-20160816; b=LnTCcBePtJ9Ze4mmDpaxR4hnvUyC1+KSUkXwe3AfP4UxNyM8AgEKlC2AAjKXs02fkm EWXii9xlkZJ36opUpHY51tIwCF140tKYvd9w2tSO9wMtyb/stQLCaLI/4JFcLsnySGVq aV2ZzlRqHxpTI2FpLcHi5Usejd4nfDbqi1gxwMUIGa5/6O4b7ei4DsFRBRybIrAxiZO8 TonZ+c5bsuX6iiRWkWU0qMGt8i4AGDHokv7L07/X6PHuxu2pYJjiqUyfmoSNI3jieAva 8x+c/Tcb3pMwegXdMaJmSctFvuGyr3P1R8TjS971m9zwhFv/9F4zSyAWTPLnxcp/UYdU UJ6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature; bh=K1Ur9uVw8BSwZ2nAnfdT/qzCIEUkiG/5McHZ/nYHg0w=; b=AVzqDrJYBnTc8xp6Ef4jZL0yPOigaXLeAoCvASuYG9qetdjuQ5mxKauhav8Ug9D/RG Su334Xl4gl6Mn5L8Qm4z4MX2uNIMtpqZcDc733AyKBLgy6wOgvPs9EHYGoLTdMAnrbUi 0WtumR1/BM9aIDplEes5F+I6ge4LyRnfSQABgC7NsaMjvKUpozLrOkjxjzowR5aVMCpw 2b87GafmI3LtOACeRv7+3DQl/yNR02krcJ7v1Cyc9kgzQ9R38SaaptiXc/X9DakO1OaR wEjqh8upFX3SSZFltj+vB9+XZxfjAaKaY2QL7xW+VxV7g+ywVq/GGs9zVxRj1PZ4w411 exYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=mgsOMWu3; 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 zl3si1930419ejb.374.2020.09.18.03.25.51; Fri, 18 Sep 2020 03:26:16 -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=mgsOMWu3; 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 S1726305AbgIRKYo (ORCPT + 99 others); Fri, 18 Sep 2020 06:24:44 -0400 Received: from mail-bn8nam12on2104.outbound.protection.outlook.com ([40.107.237.104]:6912 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725955AbgIRKYo (ORCPT ); Fri, 18 Sep 2020 06:24:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0gE2PGA2Z5rqhXIRclUjXztg/ZAbs7ffjZu2MTlc+YmrnroUqAoN8t/cla5ebZniaAPYWmM2YMbA9/ZDgGszoiLLlM6HoT16d0w/zcZw2cx06h2KtnizuJBHpwuswdARPQkFhuABHeG9aUvYDsjRO3d8c2jo8MWWA85pZcCx2JjQlf2wIPeedS4CRDluWOxkGeRGaUd3xYMcZvWT5/ofP84Mok4sttmcVjbqtGDElpiG6R7NqNiyoYKFkuSxK/Bof8lHtSW5mlsOnchzaQePr9h91lkIXjTb4PX7xvrKyx42O5m6FoAmxaG6x3jrh0SRIw8uyUB4HkYu6CJ6PoPsA== 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=K1Ur9uVw8BSwZ2nAnfdT/qzCIEUkiG/5McHZ/nYHg0w=; b=N7grx6pmi4r5KgmJDB6tBrRyta9XgdiA/JJ1yrB7qdiAH1yLTTTxZPzsJGjB365/orDxD0Nn6NVouk4mGpgSRIOx5UqmU1AWxlq+f2kn90W0CyxVPITh8//Er557azFPc4qNVNokMTDKFbW1lfTOPTzAnGHskRjOwlaPl7q5QBUTMYbQYQcKHHXNgrHw6XiYscATPHJ2q2Zief08y6UFv7p3ylM9dQt4io3SisK6xEgiFSLwrhRx1YhYVUFcHvfVkWOuNMrcjxVBRniNWCoB7BfGaQCzfsjsmBdB8wmTFuSbtQyO8PQxjpb1ObvmLtuks/ZOK3z0JLs8uGgj0+ztRQ== 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=K1Ur9uVw8BSwZ2nAnfdT/qzCIEUkiG/5McHZ/nYHg0w=; b=mgsOMWu3qqqQco56IDTUW1npOd8MljzOAYioYiYPQO3ciEMWrqs8UuilVURDLoW7sxEJ779xcW8O4Oa7ApGMOYBi/4vKDVW3U7tZaMtfCH+y7dpif1UKXhB4GHKF7EAgPSAmDBpMmyrcgM/jCu/e8X24EOZvV5m2dsbn3rfQWJE= 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 BYAPR04MB4582.namprd04.prod.outlook.com (2603:10b6:a03:13::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.18; Fri, 18 Sep 2020 10:24:25 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::1dc0:7d4b:9820:e68]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::3c04:982f:7d75:779e%7]) with mapi id 15.20.3370.019; Fri, 18 Sep 2020 10:24:25 +0000 Date: Fri, 18 Sep 2020 18:24:18 +0800 From: Xin Ji To: devel@driverdev.osuosl.org, Laurent Pinchart , Andrzej Hajda , Nicolas Boichat , Sam Ravnborg Cc: Neil Armstrong , Jonas Karlman , Jernej Skrabec , Hsin-Yi Wang , Sam Ravnborg , David Airlie , Daniel Vetter , Dan Carpenter , Nicolas Boichat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Pi-Hsun Shih , Sheng Pan Subject: [PATCH v17 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP Message-ID: <528b76c1a4f7b6ea85371bfae4bde389aec4bb24.1600423932.git.xji@analogixsemi.com> References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-ClientProxiedBy: HKAPR03CA0008.apcprd03.prod.outlook.com (2603:1096:203:c8::13) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-user (114.247.245.146) by HKAPR03CA0008.apcprd03.prod.outlook.com (2603:1096:203:c8::13) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3412.8 via Frontend Transport; Fri, 18 Sep 2020 10:24:23 +0000 X-Originating-IP: [114.247.245.146] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3cb6d75a-3eb4-4dad-98cc-08d85bbd03c5 X-MS-TrafficTypeDiagnostic: BYAPR04MB4582: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1WzBG4uB+3wuhakHIl9Juvt2B983HsUNqn4pN2h6Sne88uEXHY+KdSIvTkMfKeMfyHfKPs4FImOn0pd68b+2HDhbxg3ajzsdLB0WBjE6H7eFTzdjH8KDC8xD8wZe76wruPr5+DMIKcPyOSAoFGyYWeR1VUFWLD8MrgwYOCjrEwFToJ4k6iMDbuw44X+2MpxlggLdeJFE7/f9QaHwrDcbazGRWaY5N+vKVKtP1oAtz+o4qfRGV9fqaVWRyll3UzToIEqMFkFpIYTDiFKc00QsLEK/g5WGZmAp6vkEEXB1GetrAKyGh3zg1upk8yiC2efjQa7kgqXWuzjPlwaL7U6ocw== 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;SFS:(366004)(346002)(39850400004)(396003)(376002)(136003)(2906002)(5660300002)(52116002)(956004)(2616005)(7416002)(16526019)(478600001)(6496006)(4326008)(186003)(26005)(54906003)(6486002)(110136005)(83380400001)(30864003)(8676002)(107886003)(6666004)(8936002)(316002)(66556008)(36756003)(66946007)(66476007)(86362001)(559001)(579004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: oMkZ+BZEVU/p57Tn7EKB48RkUCocYMX5R0q6Y9YM6mhYATrl9TxiP/jpDgiZ5uSfpmZSPltmyOmF9b/IjocprTCAmxxM1DW7gxvUBiUnlarL3iQOUuh53s8o/1C+td2xx9hpuNmng6JyOH4TlxZOZMAgWSIOuaN5pdHhYDhKvq+Nqisk0VbQCgyTgoJ+RA+pl0UOxWvd5TRiTvMs5mZmX+cdT+sRwM2YreSpNcUBw0VFArYhc+KoKsFOb1thb2KmpGPfnN/vKqTnahm/GeuPn8/hYP1Vm60bkToL6ujFjTUw5bYz3Q2aQ69WCmTakJhsTXBLZ7LEdxdBgzc0Knj8LglgO0yaamvaHTYkVCdmIED1sE30D8SuEtmG56rQ+QKanSKlxg+NGpiwExalmAscbP4rfR1GqBwlr+uCb7yH5MdT5XjEWmz0kpdYlqOA5Ima8fzW56TmzAtWgrMYEdDxsa8RXISaDaR9PHrkxQhkor4Km2ByWJvnQuR108Wg2aJ5AcvW8C/YEvzKXPvgenFlKCBMIIyYewiF+AW3bYgVB7so85xTTqLX/33QVS3tQiWQLKk/GzOQtHeKjAYyN9pk5ONdCEzyQ1S770h++PGVgag7oYo6upchQ0EN4wm19B7fFgHayEoAW52Ty3aJHsHWgg== X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cb6d75a-3eb4-4dad-98cc-08d85bbd03c5 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2020 10:24:24.8191 (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: tNNA1LQTbtCiY7ZZmwjUbcI5Gd8GrpEZoNS2TgJ7evWkHAscHz3b+LmniB8GWG3Bc0AID8K7NvAy8ob32sWabg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4582 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reported-by: kernel test robot Reported-by: Dan Carpenter --- drivers/gpu/drm/bridge/analogix/Kconfig | 9 + drivers/gpu/drm/bridge/analogix/Makefile | 1 + drivers/gpu/drm/bridge/analogix/anx7625.c | 1850 +++++++++++++++++++++++++++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 390 ++++++ 4 files changed, 2250 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..65cc059 --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,1850 @@ +// 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 + +#include