Received: by 2002:a17:90a:3541:0:0:0:0 with SMTP id q59csp368461pjb; Tue, 9 Jun 2020 00:23:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY+IKVutF1bayocIP2gUoDOfMKZizvQeyXbkWXEvyJrCdIABcTrIgi+UbIilmvKlFYs5S6 X-Received: by 2002:a17:906:e4b:: with SMTP id q11mr24027477eji.302.1591687424566; Tue, 09 Jun 2020 00:23:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591687424; cv=pass; d=google.com; s=arc-20160816; b=0LWSGWwC3rACwTPdyKp5Qpkro/YWrkn/EaqiB0oCrdXrJ7ALRAJopLkUkAy7CvTpQ2 KMl8ASBoPl5KqJ/WPli3i34hMVL6l3/2xUM2F5EwRuWZijFtD9OASsxB8wegLekjLKiI pdQP1TrnIx7VodwiNCBiqnTgo9MoImO50VJDcFdUeMuY8yV+ELrsEXcbCPg86KnpHNV6 ObxEYz3rZ4iGf6ZE0Sf8fgYymjNS7T9xT4wEgtBz8hRCGwgvJPHi7bKVDu3PNd1AXOAh UZKRR/GGriIlwaK+OWrvqqjlT4vDHeQ8ErbSSiPi16Gi4NmfX+vJ+0Tju3tU2oqshjGu iUGQ== 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=Xt7u29fFwEpn1jCd4m08RZrD5ecgqskQycrusWosqcE=; b=R0wBwgEzEsFUet4zDFEJ3F9zWnlFEUrs7EHLfWlFABnZd9ZJOYAkDobPphKkQ4MSml 4sX/HHglmfv9IZ7UkGn5630Gj5OqdqtoxL7KxEKHB2Y+3XITq+ijDef6IENmVUUVghpS 7/BXq/f5rqsBXMPHOnW5PHROMKc997KpPUe9ysu6WDPkzt1TWscPubdHxWZjuLBp2kKs oS8mn+6BRaPn7zzAwiGrepAptqsl/Zq271XOOxk/Az04kk3CQGOCVZ5SRM9MkVx8Ar8K C0fDlBRU490rnpKcWFsPsFnjyp+JplDAhbVtEHSasAaCN6sqYBtANaSIBRXw764EFd2R ds0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=w0kaV5r0; 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 k16si10110473eja.149.2020.06.09.00.23.20; Tue, 09 Jun 2020 00:23:44 -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=w0kaV5r0; 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 S1726778AbgFIHUV (ORCPT + 99 others); Tue, 9 Jun 2020 03:20:21 -0400 Received: from mail-bn8nam12on2096.outbound.protection.outlook.com ([40.107.237.96]:32480 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726083AbgFIHUU (ORCPT ); Tue, 9 Jun 2020 03:20:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IecWMP103yZ6q4ar8jIGZCW5LnYvVSHCH4dv1QAhr0sPzZp7/aRjCewGqo1+LUXf3sYrhLQ2fpvS6DNF1t4mgAJW++jl7xJ/OzIy5vKX5Eae+nc45GMwOpnFphlseOk+GCViLU7LC+fBJ+ByHWTVY0qtKInRWoAKq9G70PXLGBb4Ufz90WFUCv9P9rXw81u2VGN+J6mHVzf9CHDm+JO4f2LxDAxVQFE2zVRnC0fBbrkiYteAOsPa1DF9n2KxvwLTVpVw2v5dVc0IVL0BjxipzsI+XML16c/D6ICVxLsd2w9z7SDbchsP68iOlU5/TaULgqVq/q5k0hxPUjlUYxpM9Q== 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=Xt7u29fFwEpn1jCd4m08RZrD5ecgqskQycrusWosqcE=; b=g9a9/GYVKKIs0tGfkVEaC/t7/WCWpVyQHMXxmK8A1yRb05zxKq9jkYiDiqBTe92A2clhZ0jT8+HCS/9qH3bJ93BEAhGrO0+h3fG4Yzfskq0Q/H81kQNB1m6e6WM+WqumxUPd3TN7bE7SlkAsNUBgiWlAc1wgALyP2TUXxGlOxQvYkovkTdbdBKqMRCPYxV9tL7uEuCrlZzAjZItOhStMtOR53dL0jQTX+r7uvPGLKjwe5FI3lwt3Y+hwt9EnN0p4FN867xIVFmJOLd5B2FzESVJjS8wrbBGNFayX838K27VAwE36FWO74bXJFATRUY+WK4rTR1xas/7OhsKdXhZkWA== 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=Xt7u29fFwEpn1jCd4m08RZrD5ecgqskQycrusWosqcE=; b=w0kaV5r0HyKnJCO8JyXrIJ9lo6x0GjdcIK5dW0bux/UNbRw874f7U8Qq/eSqCJJ110PDS2stAvfpi9T2QL1ODWRBfwttdRmtuFjwyUXDYtRuzNVLCinTF9K5/Vk3UhsUlB6vVynSxNOqILobNca0RA6m0IuN/dPUBpy/bAVYXZM= 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 BY5PR04MB6641.namprd04.prod.outlook.com (2603:10b6:a03:22b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Tue, 9 Jun 2020 07:20:00 +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.023; Tue, 9 Jun 2020 07:20:00 +0000 Date: Tue, 9 Jun 2020 15:19:50 +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 , David Airlie , Daniel Vetter , Dan Carpenter , Nicolas Boichat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Pi-Hsun Shih , Shawn Ku , Sheng Pan Subject: [PATCH v13 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP Message-ID: 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: HK2PR04CA0081.apcprd04.prod.outlook.com (2603:1096:202:15::25) 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 HK2PR04CA0081.apcprd04.prod.outlook.com (2603:1096:202:15::25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3066.18 via Frontend Transport; Tue, 9 Jun 2020 07:19:58 +0000 X-Originating-IP: [114.247.245.254] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 76ff2a4b-9f92-4fb2-e0e6-08d80c4584b6 X-MS-TrafficTypeDiagnostic: BY5PR04MB6641: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-Forefront-PRVS: 042957ACD7 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w2qyAPinZxn/2uEk4CZxAi1M5lNN5srFtWkWYNGLRWL6fdwCGyfUOWdlWpSs5tvnZPAwWrqZX9jyYVp52QbU6E9G2yJlwEqAuegowuY2b5kOFHoXjKxfT79TsMgluhCTbbBk3cN6OGQh/3D6R9bk8QFcaiKyEyJ1qCKLEG8+tUV0qExFsvredwWSt6OL763LbnqZzIf4hxHNmx49+mSS2LyJap50Zgg6hNfk/hJxLSeTIbbkfTPqsUhHmgyAxmUBccCHtSfbbgPQeJFqdSR1hBmRePpvO6N25fI19kUuNm1BW72O6HwR9YGOn6wyO2YZTsuDHmNtGvYIT+qciBo7ZQ== 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:(136003)(366004)(39850400004)(376002)(346002)(396003)(107886003)(956004)(66476007)(66946007)(2906002)(6486002)(66556008)(4326008)(36756003)(186003)(26005)(86362001)(478600001)(54906003)(7416002)(2616005)(316002)(30864003)(16526019)(83380400001)(52116002)(6666004)(8676002)(110136005)(6496006)(5660300002)(8936002)(579004)(559001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: WHtbW7gmTJ69o9EUulUMnEh7hs9RVd0ySNWAYM9MNNGyAoQoQWV2YiMoiinefRhukprUuHh2oVYGwkVOucSjn1JAnWMAx/DRb/Q9/eW8gurpTug/3BRq0Tz2CcM8c9JR+3AjZXzuj521DLYwwCSsKXNatQHLzpPXd9jIMXJP5PTLJ1La7fIkeNGS9qk+URqMkBo8abXxYN2a0/G/4Do7I0jL6SfAmk7/wrej+8bJ2CS2/Z1nNn+4K+O7t/ERFWFWJiYIMigntEwb9NajcYdKL+XiuCHZPptHxvGmIbeh8wsukQ5wHky00wfN+ML7++CIk5ZHd/RlxRENPprn/mAbEQP/bLV+0g/7hPN0ffYGERqJ/Qi94a69kDqU57NEZraZrkvvyYQMVrOvN3npdpNRAMNQbavlGv8VYNVDKq2gKIDJyfwvqBYzBynU5Gdv74Y2OXSyl+45Cz5mv+rQXDLOMWxFlvNOGvepat2SmUVWh1NXGSBdJ8WJVz/Pq9T44HBe X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76ff2a4b-9f92-4fb2-e0e6-08d80c4584b6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 07:20:00.3189 (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: fowgFwi9M8ozoKS+nKNotDAKnk6NYBhVmKx50dC61QKAlu0K1tkytzgL+XLzox1kx754lCAsVEfeQFJMkADi+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6641 Sender: linux-kernel-owner@vger.kernel.org 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 --- drivers/gpu/drm/bridge/analogix/Kconfig | 9 + drivers/gpu/drm/bridge/analogix/Makefile | 1 + drivers/gpu/drm/bridge/analogix/anx7625.c | 1999 +++++++++++++++++++++++++++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 397 ++++++ 4 files changed, 2406 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..db37f68 --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,1999 @@ +// 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