Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp214763pxk; Wed, 16 Sep 2020 02:28:14 -0700 (PDT) X-Received: by 2002:a17:906:c411:: with SMTP id u17mr23897659ejz.319.1600248494236; Wed, 16 Sep 2020 02:28:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMpiK++VxJ3M6OKgr9eAA+jR6Z1fqXH5NSsCgSl3lrtNtzG6sYaFj/ZmiUp+DGWpxtcMyz X-Received: by 2002:a17:906:c411:: with SMTP id u17mr23897457ejz.319.1600248491662; Wed, 16 Sep 2020 02:28:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600248491; cv=pass; d=google.com; s=arc-20160816; b=EL9E4d8WzHdJ9xpKeIkf6IpEg2OBWjRMrt/AbakvMMNUujxWDMQ6h4WO1jzU/c1+Zj iei6ny/S99sntD9nPA1hCYgu++ioEE0BwO3/nq5Zl9kUdCBmbdMqNaoTNpbHktz+KNYi lE88ukCc3HBgXM1W7OtMnj/T6eYp+Zv6fbGv2koCH8RVVxY0d2CjIL08ILS0YAJcrRgr 7WRZDPLMOxbx1cugVtmfsa1Bk586SukpdJWW+770WUUCuMU5r025673JNX4aiX6Mcxju 2Sck6gMGANGtW/tAnRcdmwg7zsGfq7fIkl5PVSjZssOIipDIhXOsons6i5PmM3N9zbG2 DB1g== 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=kgi2QRPHmYZJizaowlcXKkXAqJlhZq3CZg2cAILz0fc=; b=EhMr3AbAI8T4dN4DgqtAZoIANW4WzDs18aBQ4GCAbpBYfrtK3DUETrQD5dihFkQJvP fi+0eJTBk0AFLN62X+i1C8yZOrgOCBbU0O8zZOG1jBabSPpBLVenXp3Ib0qWzQA+nakC cr+vH2E8Q5cMr3XKpSTJ+9rqQOV7847kDpTzICjWEkQRzDbl5/mG1E49t93OCtziamwX ByOaKJciHFJEuZFK+ZWPUHpRb0MZEqYWykxT4+g+OEvwhJSvNWSuHOTdd6RrpFZH5TGp YqxUvuUjeSNsAfGF9UGJ/OLkdngGD1esh+V7Hk3CqF60VRBkiY/shaPMe7S6W369XAho xVog== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=kwZTHgHy; 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 f6si11551724edj.365.2020.09.16.02.27.48; Wed, 16 Sep 2020 02:28:11 -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=kwZTHgHy; 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 S1726438AbgIPJ1I (ORCPT + 99 others); Wed, 16 Sep 2020 05:27:08 -0400 Received: from mail-dm6nam10on2118.outbound.protection.outlook.com ([40.107.93.118]:25921 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726243AbgIPJ1D (ORCPT ); Wed, 16 Sep 2020 05:27:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jcvkvj4/TRL942+1UZ4FZjNR0Gyce/0ZKNAkaVibkAghrEGyKYVN7dRxikDpUizLPt2dvTHWRcbieBoVbtdv38m+7iUoz5xUykQqa8s3tGyVt93LwNeUv9vGJVYhTzov8ncXwVjJw795Lv/3gPE2C86PyjaMa0hcXEmsvJZhPraSW8P0yo7OcRwRcw2gfE69vbzZswWnpk4AdrI0RaAYDpp4f+KqIrHaKj+BPSvLm8xiZzyhiC1Vcfpk6aIdvkatk1J/25BMghiR7bX0wHzn+Upr3ZyaG1L+Yi2fZlczxOXPmP0rKxobIXY1nWl8xqnYdRlDiL+yGL0OmdHvmA6stw== 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=kgi2QRPHmYZJizaowlcXKkXAqJlhZq3CZg2cAILz0fc=; b=CJyySawphniswsVwCAJPAzWskJt/e8ntPePHmmLr16Z8bB6Hw1883ONjTyD3WGL8Dd8cx9M96yqzAndNjvC+Av5azufWen4cFWBpMNOem2HjJtlepztrj+yA7z9Fq0jOkl3m/+nfJVL3ypdyB0GqgPv5by2l0X6tk6x0hGtIjLCEluvtySe3AVzbFBjY7DGgnvjLjucrKs8sdXJA1EzRMLKs1Y2mQYr4v6QeXPGMEmlhm/sBzcYiqUvrvskgQQvIIZebOSXRREwWLnx5CESNXMS0vMsjnL/hZtNX+zqVm9uIPBTOZ48xxeRfZmRM6tU9+ab052W5n8hyzyoT8Ic96A== 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=kgi2QRPHmYZJizaowlcXKkXAqJlhZq3CZg2cAILz0fc=; b=kwZTHgHy+As10n9fOETjLMgYn17SJVgfOLgeIUABVjHZ+jw4gLImpKlnKyjpENBKXAnNJ1wAFS8LOnS5Z+savdW3/WQ6ZRkzGjSEJa3pJczqfnZfa/pBhRIJEyHHEuInuo2nMEu9IsOyWPfAeFzt7L9HWACkFFX8MSBpYcdQUDQ= 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 BYAPR04MB4648.namprd04.prod.outlook.com (2603:10b6:a03:59::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11; Wed, 16 Sep 2020 09:26:06 +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; Wed, 16 Sep 2020 09:26:06 +0000 Date: Wed, 16 Sep 2020 17:25:57 +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 v15 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: HK0PR03CA0108.apcprd03.prod.outlook.com (2603:1096:203:b0::24) 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 HK0PR03CA0108.apcprd03.prod.outlook.com (2603:1096:203:b0::24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 09:26:05 +0000 X-Originating-IP: [114.247.245.146] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6fe76ed1-f2e5-4fbd-38d1-08d85a22899a X-MS-TrafficTypeDiagnostic: BYAPR04MB4648: 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: xip6yRzzeba5KoKkg/6XUAuxW7bhTGNUZ1vMWv22cfzT6yKoYcy12MoqyYe8Z8eRzDCpJOyL2grMcdHrYowCOcmo+18VR3fQvty1xhn/4nAd8aJUhHlJdq8xWvwzg9k3JBHSQLA6ra/uyR4vkfLaYKiBYwexoG10tO0zZsN9JyJxJGiZsSCYlDOjIJLtoYDqWWR8oeKnl5Py3nDtXk+fj6oZvekcGfXDZGXh2rKEJQweK0ByVYhzLwqDUSsonhD7/xnn91iHX1wUffbqjo4mdKLIUxQzDAU722ztAqThR09yIvCNUyymACk7WEHDFZcsS+wEhKmkei8M7CMEF8xz2A== 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:(376002)(346002)(136003)(366004)(396003)(39850400004)(26005)(66946007)(110136005)(2616005)(956004)(478600001)(4326008)(107886003)(6486002)(66556008)(66476007)(8676002)(6496006)(7416002)(86362001)(16526019)(52116002)(186003)(83380400001)(6666004)(54906003)(316002)(8936002)(5660300002)(30864003)(2906002)(36756003)(559001)(579004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: ijuzXNuva96wqAGffJm3cz6hl/FGRZPl0HzNdiXFb9z7i9l+QnlVLBXmBK6YFk9wJP7FXEJhGbSEr+3ncWaTjIZghUCEXxAkyT5J5IomQ+Xog/HFeJ0ZPRaU7gCRf+VqPUvgHWslJwg4AXVXgHGPlKhqJbbhOkKQLA3lzgaWR9P3bA+PNFuQrUh6keRYTqqq/HWs0vEOTr1zxcg9U/Ria3b/GIZuEE6iXElJ0gfBGNGVdrqvBuAnbMcB/4TyhshKR5erhWdLJ0spw1S3fk/Ofr1hdC8AHDB0nJ1zVO8RZSUhP2aQNF45CbyW7hJgowtbbnnjMHVSpe4NcLMSTawa9IS+EisUG1vZ2oWK9+s0/62o3ynLs+yoXHB90X8aYoqdqw93MgE83WT5i8Ed1PSayJWJJxkK8rILA6N1mER/9JUqPcVdPlCoI887NiZyi1S7e5ZSWhIGVSjh2giBa6Fqu3dZVr6uotNAkQBRt5GViQ0dpkJznVotVgYge+yTEwFmuTy8WwIji0arF3f/c4SLHCZTHLdc2N20/vJdw77gdV5JbAlbAgEqiIReydTQ9R3TbysJF3H3hWHoo9rFqqNwXxXQWsCE/9WX1nC+I+B5bHiZS0WUkTomEcB1HZ2c5nKBSMGoKLftQhmUfYxXqDrxKA== X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fe76ed1-f2e5-4fbd-38d1-08d85a22899a X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 09:26:06.2812 (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: jEyOYlp9jg7cpxHDMoOfxkLlj659RHR/HZIP+/E3xoBlP+a/hkCn1pfTcjCGDtyqLSST6th5nzaBHGFRDoOqcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4648 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 | 1848 +++++++++++++++++++++++++++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 390 ++++++ 4 files changed, 2248 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..6e2fe7e --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,1848 @@ +// 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