Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1224803ybt; Thu, 9 Jul 2020 01:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1PwvsQtpU9QFKVggtkODrtyQynkfqZiuf4OYrGKUGkgap+fv2NcSs0Bw3ABn061XmQhI3 X-Received: by 2002:a50:8a62:: with SMTP id i89mr57455648edi.324.1594283837814; Thu, 09 Jul 2020 01:37:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594283837; cv=pass; d=google.com; s=arc-20160816; b=KPL+zONG5yGbZxNa5dXdpfjxHVnprAPLCOLSXABXW/ZEl5G+UoyqUdfjm/7wcjyCnF lRwoWEdjJnwE+QSrtfphhyCgXEGvPvJR/UUrbDKBSgsTmJruQ0GUCIMkQ4HPD9OC1e2p J8zAZScokvzpvZE13+Uqw4iptSveESHoBfYj31drWMIMxgS6vgsFXLCjEQaxee6q/0Sf ihuwuH/3f+3KwKP1FpHEqKCk4MpIOKBF2/raa3Xxp1ZKMN+6WipQxvhybl1s4aYmDrD1 a7AN9MuBQQpiZnhbxV5N5hWzNjEd4vS3HrBKx0LaNB+J1AdfBwIz6H/rCkhgc/kl8Ion e6EA== 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=e61ZGdEDbNNRVAMJlKmUu5CkSBl62riPHXa7R3kjZ4k=; b=L97f4rl1SUwc9d3qtXy7FmBjMzU1aGfVSch2imrLc4/SzVL1Yiw4gEcDxa7/H+7eq5 bgHvMX4IQpgwIcApfsenbmDNUpHlnA9WJ5L26+AA3F1kJMsIcicvL+ZQvGROpCDOHymn s2Lda5IT1YXIZbysJXb0DS1tef9adODpP3baRreBj7baQRSFsjJn5DIke5iBTnlKlU19 vAIlLjbHAeQjKw+kOpajTMi7V9xAos/xqRMl4dOunEFsMuP+f5SWt5v/o02vcTuiN5HP lg3il8tqwB/TJ4wMmJCfBsonuHb2B1pr+jIQUs6eEf2v8pI48rtNNgF9uwru+4wgjV9/ 1rlQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=ouKJvjML; 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 gw16si1485282ejb.274.2020.07.09.01.36.54; Thu, 09 Jul 2020 01:37:17 -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=ouKJvjML; 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 S1726306AbgGIIek (ORCPT + 99 others); Thu, 9 Jul 2020 04:34:40 -0400 Received: from mail-bn8nam11on2118.outbound.protection.outlook.com ([40.107.236.118]:12513 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726228AbgGIIej (ORCPT ); Thu, 9 Jul 2020 04:34:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YLtQw/FjVlv2X1qmAuPzL/15B/gXkSctOEM7ANLa40gIhrVVNg4Lcy3fQcEhmjPj1FllfOj/SMzrIrnX/7VcUnJbJrwYe79i0OB4qATjA7bU8mLcWX5dJ62dtSWu0Gs0fKqehMzg04zz+IZUzpuxUrCONycDC9xe9VVrcdaFiLqMm2wqZtK4oj41EsjpJD7hoDK5EanySqJxSfSwieJBFxob7FgRwDiV4ezjpalZc6ZN5DK+UVc05+upqBziLslGqS0gYy0B2qvxoonNRtRalty3x59mReu4c3QEJzREZynu7mSUroHHKaGGz9NPZ2/WZV46M9eC2caRqrX9Q8vo1A== 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=e61ZGdEDbNNRVAMJlKmUu5CkSBl62riPHXa7R3kjZ4k=; b=WWaT9LZCEUBB7y/WLXr5O0/h6cbRo8CsrGLXTZw5u3qD+pjq30o9r9L7CBVCx8yNo2LGoayNA1K9LbIQKFsGq1NqreiLemeYiukktn5+kHYjn9gVlV18lH9ZQLp0iVv/MBwQU6FuCw+O979bh+XNyH7ftAYDKWJ5yfUa4xgZ7AvBq6P7w5YORGllU0mx39komZpc2TNGcLg+1GmHhrEBjcIl7WoK6gQdEB9oZxAq/O/zm30VAfIxXdxq1n2Ej2nxdzEq/gdFs6i/Olc9nV4t1ARgQx1lEAxbTfFxurQUL/2f7T6ydmtTkV7VKVSBWvaOrtxc5ACdFcGirYPjIhfS2Q== 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=e61ZGdEDbNNRVAMJlKmUu5CkSBl62riPHXa7R3kjZ4k=; b=ouKJvjML9aV046nlMF903COtNJaqyP/z441k5hOS4xpvGfsucYc4DsA2YQzq/sapADTt4mSprnNfp1+GenfI6vAL6pflpysDD0/ZRsat46pMNXYtX6kj3O3il4Yva8oeiQtfSfLv8OtwQRo21ssxULBJAd9aKBSGoldYWc6C61k= 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 BYAPR04MB5462.namprd04.prod.outlook.com (2603:10b6:a03:c4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.28; Thu, 9 Jul 2020 08:34:23 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::844e:398b:2165:631b]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::844e:398b:2165:631b%5]) with mapi id 15.20.3153.031; Thu, 9 Jul 2020 08:34:23 +0000 Date: Thu, 9 Jul 2020 16:34:11 +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 , Sheng Pan Subject: [PATCH v14 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP Message-ID: <1048bebd5a1cc83f74b964f57487f6271e227364.1594283160.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: HKAPR04CA0012.apcprd04.prod.outlook.com (2603:1096:203:d0::22) 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 HKAPR04CA0012.apcprd04.prod.outlook.com (2603:1096:203:d0::22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3174.21 via Frontend Transport; Thu, 9 Jul 2020 08:34:21 +0000 X-Originating-IP: [114.247.245.254] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1de1a6a4-cd6f-4f92-b044-08d823e2e15f X-MS-TrafficTypeDiagnostic: BYAPR04MB5462: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-Forefront-PRVS: 04599F3534 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KaVDFm6zZzYvupFOaYzHb6zRrOfNS8Ej8hYbS9Zy+WbpbYS54Jgrox3UWaC9NHaPdiTCAgUsWUxT3oclfAmL+AncHVTUHf/e3L108wJNnunR0XwU6JInEwIMZF4KFfvrkQJR8IuUi1SBVkZfiY5I1jgTK3lb1rTUqcodUB7Q9R/wWe3T1a5NGSR1A4kVytk7xA+njJUqG60R1ETr66zzwzRDC6hNYSzYMlpv/AvmylQhViZfOQniBDQRBuh0/HA0EqP5nyNYs932OfOZ/Sngy0bP3x+e6mUzsNaTwP5neH9+J5fp3U1nDk/SeDSHQyWtjOGfAQqA/R7UrbJqOEQIMQ== 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)(346002)(396003)(366004)(136003)(39840400004)(54906003)(110136005)(30864003)(316002)(6666004)(8676002)(6486002)(2906002)(36756003)(5660300002)(83380400001)(66476007)(52116002)(16526019)(66556008)(186003)(66946007)(26005)(4326008)(6496006)(8936002)(107886003)(478600001)(956004)(86362001)(7416002)(2616005)(579004)(559001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: GWRfjsKupQlT35JbbVzWvhCLrGSA/MKMSYZVmzzm8mGG7QW/Sf2T+IIni6xfba6MTxzHmJz6xXxJ/wQpec8XPlXBDOMtRIGhHfCfwltwWhZBN+WZ5U/R+atlmS5FPB4ZozrQovZV47d+wfqg5VKDnHLTI4d1ej7VW+quFiUvG6FBdbzi5QA7as9O7dTNL0alyfrZaWU0iUnAkKFmSFMCc6Lg7wNiX9/2RGBWRYQsfFKERF/MGQYcbvJVJOkvg+WfnfjsP/44PY/BtDm7awvuyG6MkLHmqmkEfgjwVrCjdFE4HmKa+RGKh/R5Qlwl44waBIRNbAi8X+xNcFGI7MyCP98e+6aV/i5a+cuWITRKL/2JU11Sq6s9YcuQmY9Mz8hQAitkXcc61TWu2R3x4HJ0MU9Q1eRJngfJIGVmtO/LGsGYtb1++iC/t0TasokdqGbdx0s7BSC8pHBz3Mk/3DWXVTJc2nbEKkFLh6sj0GxH73GYurG50WJUnB559V2ywAmH X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1de1a6a4-cd6f-4f92-b044-08d823e2e15f X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 08:34:22.9654 (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: /TyaXsYXF+t2D8OrnYxZShfYQjHR7DsKFXPDeW9U8Bj/OZRcT0SmgAAEDJGnBw7K2g2A2ifEEwTAATpcB28Quw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB5462 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 | 1939 +++++++++++++++++++++++++++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 391 ++++++ 4 files changed, 2340 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..0d6be64 --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,1939 @@ +// 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