Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1112419ybg; Thu, 4 Jun 2020 01:03:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr9WhQ/4hTQ+AwMwaTEmmJsuuUwXpMaBSTdEw9qDSbCfymsM04d0Ad2XIWDNIGFpCkxPsP X-Received: by 2002:a05:6402:21c2:: with SMTP id bi2mr3122770edb.296.1591257838671; Thu, 04 Jun 2020 01:03:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591257838; cv=pass; d=google.com; s=arc-20160816; b=eBM4FjdKIz7cQj54hA5fvEHHf/+z7NSo5SOFl3M3H3fLa7cT1XwW/OK99CdXvpvaiG MkdVZh/i6yaeSm6PUuF5NHHmjM9t7LgnESkBygKdaqAL1LcVJB9nLVoUX2d/7DM8zZnc lwWxCYM095oCORyKsAAV7aTvUulYb5md+w0kIHA8J/Aei3UlkQqa0RazNs3P2SLo35U8 Extoqm98I2B4yZcJKh6rUMxO4Fykc9GU6g19HmQDZ3jBfJofB/P9WOlxaazEbn8rkokE yokUwKfLikwUv9dyZel5mWb+REXnEnyVYm3H9T3RtglSmn7A3MH4SsKJLLMhf4ZmOh3M CzEA== 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=28FIYj0ENVrPjJ3vjvmjKCVp/sA7/JQFTS8FajO5JTo=; b=ljHYaC9hQ+DuF36U5gLWZoqvp/YJuXbFJZCncS1+u3DGoFRDH/ZYU8O/Fft7t0lYR0 WNQIXsL/xfNKYaDpofSdH2Bi2oBVN77JQ8SMPODzwzIzeC5S713XuJqSQftvXmxv+9rc exHXI9NgnefSm1Sr8Q/Q9mRKPmloKsp9L5V0Fw6o6YaGHbDKU6mbzXInHBo6ZjQDnI3G 3yGyav4tXc62plBoRdAkwpLYVsNK0M//pZ8bqtdwglQAfbQuKXHmrFSalhz+McM6L9Xe AhO0CaqpkJITmxQy1XYcsOCV9nnyej8jzlId4J8zSB/2FUMauhDPIEa8AbqZsvA7B2UD t+MQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=Gip0ODnJ; 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 q7si1128869ejm.503.2020.06.04.01.03.34; Thu, 04 Jun 2020 01:03:58 -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=Gip0ODnJ; 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 S1726516AbgFDH7F (ORCPT + 99 others); Thu, 4 Jun 2020 03:59:05 -0400 Received: from mail-bn7nam10on2091.outbound.protection.outlook.com ([40.107.92.91]:35552 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725950AbgFDH7E (ORCPT ); Thu, 4 Jun 2020 03:59:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OdiMVPwO24N38CmYsrlYwbHL0ACGZTdERytJjiSH/WwKfVb16Rm3kdl2MUah1dvZR870Pz85bUtJQyjYIJpgsrNKeoSnVIWNBMFgfgZ+Aj5TzfitTpsCAiS9OUuyPiNBNWrHjYY5SQ6+8l6vZQDNA+pabm7dAB+PBAeS+qnNOQ1ICNZJZgT8GvvI+44ogMWc9GJW6dFh0xLnLKkOVO1hoEXplDwfafFQhKoAtvpH+n/xvPEX0C/IYTv6PYFgrjUt5x0zfs1DRlupcdD7huDlQR5TKaiFLyMMZn56nX0CaKGwC4kamZ8DQVUaq3T5/GqhGFT4vpEqdJ7Niym+VX7VUg== 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=28FIYj0ENVrPjJ3vjvmjKCVp/sA7/JQFTS8FajO5JTo=; b=g0bPLub++TvWNEJ8Z0mAvd9i59+jDFL0rTEz7HqeGOd7cTyOtJ2Tq5i0Gf43YGyZ6pMwk0wspT8N+1pnOPdnT0LnhW49CBUWLHEE7gcRd2AtI1n5uW/k9xQr5pGIKVibFDwIcG1VkviP+ApmnVOTJ5NKyxmDZjbhu43dtxOzYms2WDtj7Z6Kzvug7Ql22hYG/CiFNnO1hL8Hk0klYnbaYY/Al7uE4ayCBca4sxOPmSFpGiPxFdrHtpZ40OI3Ln3IRwfKhkUeVFFgx+dGHmwQtPdf0REslRoT/yaQTQ2ahnIJ08wuCwu5/+2hBzhxcWmPlZqXVVHCAFdVckrNVVzi8A== 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=28FIYj0ENVrPjJ3vjvmjKCVp/sA7/JQFTS8FajO5JTo=; b=Gip0ODnJkVgHK9SPcllVdKUolTw2q7rhvXOxOg3P8rfh2yBXZTHGTZjnCqBoOsp/Ecor1Oo7fv/C3Y4aR0atNs4hY3xQhQpcXFD+DrmGxubFpzOaKqkJXC6OBnD/fKmpB1QYpu7TsMwvcKOSkMSxB+53pZKVZFbRGquBdebjiPk= 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 BY5PR04MB6690.namprd04.prod.outlook.com (2603:10b6:a03:22c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.20; Thu, 4 Jun 2020 07:58:15 +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; Thu, 4 Jun 2020 07:58:15 +0000 Date: Thu, 4 Jun 2020 15:58:05 +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 v12 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP Message-ID: <6541121f0c048f3ae707de44eb45e2729af7a831.1591253353.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: HKAPR04CA0016.apcprd04.prod.outlook.com (2603:1096:203:d0::26) 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 HKAPR04CA0016.apcprd04.prod.outlook.com (2603:1096:203:d0::26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3066.18 via Frontend Transport; Thu, 4 Jun 2020 07:58:14 +0000 X-Originating-IP: [114.247.245.254] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8d00e4b6-2acb-4b6c-c2fc-08d8085d08e8 X-MS-TrafficTypeDiagnostic: BY5PR04MB6690: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-Forefront-PRVS: 04244E0DC5 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: emPD5BqmGnRrAKkkhuZdcdU7k5bm+2xVx6kdkF/e7cAEX6PikXwTC6RpJuTil+rRRc2zACtuWtSlE0wi6C2aRFvKFRASSi1nU1VN8cc4HpkaSWQYB3KclBhRNBckJCozgPdxUK0NsTA0SCxYYDw3TJINsGJ6UgibqMjxBMlEwrxp1fWBk9ss0dx3XxcTmYJQxrLWCqiXqesBoz/zxwh4kh/ou02IdzpPhJ8J7mfQkO1w96ToZWIYW9uTfoi+kBODTu6EOfq2wYu18unWwuOkCoIL7/XFrhuRcTZjK32y109ixiFAde4P0rkUuYBfoKHOvcS6Ec9TMzrYZ+To6zf3rQ== 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)(136003)(346002)(39850400004)(366004)(396003)(30864003)(5660300002)(2906002)(54906003)(8936002)(110136005)(7416002)(6486002)(6666004)(316002)(2616005)(956004)(8676002)(36756003)(478600001)(66556008)(6496006)(66476007)(86362001)(52116002)(26005)(4326008)(107886003)(83380400001)(16526019)(66946007)(186003)(579004)(559001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: ck+R/XOd+4x8V0+LclGtrJJwYNRNDSIW5rjQMk3Qch/gyEERmpZqi/27S0i+LeW6N4FNy16c2kfFRSsz3uNmm58tZTuPoOLHlK+4cTDBe7AcfjcbEJDTqk62/ocWUz/irCtnffErq/BiQyLqECOGblBTNwsgWtCP8veGKT9l9CHb0gMYnM13kvIGvJvhx5BJnSw6eW+hQqGS6N43NYMiBI5P1Mq+B8273k2j9N/bJKMpMnreoGf4vjL9wAudBtliRIT1lZITK6TQgzP5Ci1FInXnGzUEBRXwpoJeQsWdaX/WElojzqJC4ydG1/K3XLc1pzPbhtxVgJi3s307sF0eMG7FMglrPwfpQFPiSXyoDeRfpvgAHgn9sP/Wofx4IBlAeetg950QoOQr2AmGR5z18udKZliYGWSJrBbdyYjCCLqA4IRZrPu7RRvcTVMzSfHiz284WO02ut1UI9VJ3RDudHrrbUOr7cO1TO17fTQAv08= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d00e4b6-2acb-4b6c-c2fc-08d8085d08e8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2020 07:58:15.4456 (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: AlVvQqmTF+oDaXekAjoHOI3yqdW0ZPQ+gpVR9bppMCjXIFN+W6f19quSXl4A3njG5sxR7Qcb9hvpkKYD9hSD/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6690 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 | 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