Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp617074ybe; Thu, 19 Sep 2019 00:39:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIclhaAxstjWgEAwLCNL/pvUqPVMZQuqRgnVM8S9B/q4+xC+jszyIsxWuxtumjeNWsuCgo X-Received: by 2002:a17:906:860d:: with SMTP id o13mr12878329ejx.284.1568878757386; Thu, 19 Sep 2019 00:39:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568878757; cv=pass; d=google.com; s=arc-20160816; b=kwhkOh6dOIiC8E7MQn/IHTyfJPSWNZKMK0JN1m5wJC4LizRCONBZ2U2vjDD92Zcdpm qw7UWmva2sBIZr5HRTkyp6ViONYL1LkshM4MMqIHO3LHwxqNPzXqUFJRcygYV4jmNA+s U2u5A72qXMHKSGzb4aLVY9395FaK2eGiFVG4znnLfc4JlMv/6c+AMaHCKpB0KgOJJZ5z VAH/GwqheCDHmT4pIrqIDNlIu/6l2G/AbaaAx8p+OmLwcmyD3RyKYuDESyQ/GPpdsS5Q h+m1pSUvlLxWASDq8GEalxGPOA4uFDTxmqdu19ufQPLiydJmIa6Od0L9cdXRaNTiWWbC 2lyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=GqTYnIuvwZpne0DazVRime77a1ak+zDOSaV+71Blgqc=; b=Ca4ZGESz4VUAzHCTHe+LtCBPVr77rbDqLtaW8EJU9joAnteNaYVZXj6h4Tg1laMIV7 XEABTz+cJQYx3He/neatAsDcFeIrT3gBj8ge0iwvE7z2scyPfsWiDapRSAyjOW1CLr4F tHMIJ32l1RiXgAtdyiu+9XuCFQxBjbKQ2yX9F/UsFyIS2TC3AbcG6aC5jDayi+5qEvj+ qlo7HZCapnfegJeIIvioAIzgLCgRh8zlWQZu5CC5Edmt+mqtfNYrQpk7Mf1Iu5GkCMuS b4HBnL9ExkWKvqgqpRMUd0rULSukigOQMQEPbMPQ8vOmNfW3JmOlSnfNXwSX5951QrLc GOFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=iewa2Ofx; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z10si4676555edx.168.2019.09.19.00.38.53; Thu, 19 Sep 2019 00:39:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=iewa2Ofx; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731865AbfISHBo (ORCPT + 99 others); Thu, 19 Sep 2019 03:01:44 -0400 Received: from mail-eopbgr780120.outbound.protection.outlook.com ([40.107.78.120]:49650 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725954AbfISHBn (ORCPT ); Thu, 19 Sep 2019 03:01:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P4JBkS4pABPhpY38IJnU+oj6cvNReLu2IsSPKHLrIdAXQgvzhz5W4sYEvsrgncyWG5+dsdqVx5fPy6zUYFy8WOYwuY8xyS/kYdNpI4buprAI1XUKU4CGqbyMHX+UhkABwalhi2wLODEmcRT3VrQ8B0nLu5sIw7C+reBDquqb4igh0XAq0dnsY1IyZGohkk6T8k3lmy4+6Cvi7boz3aSe0IyiMEBI8o46xb3P4ml1G0JjAMXvBsQJtN0VZieecbZkDWKhdLCTrEVKVuqpp1xx57JvzKbzEFMROKPRnwdZWxOKtkDHsQC/B848aExu08rlgCXL3un6BE1gSgssj/tItA== 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=GqTYnIuvwZpne0DazVRime77a1ak+zDOSaV+71Blgqc=; b=hsA6xMLFVCOfwfwOdOl85bkqDAVBqj5STaXMnJ6NizesfNfdg5kvn6ahueufrco3ED9NfimZx3ml8cV6JmjcD0VgUYyVj7HgPv+BUC2IHx/L60eE0o9RjbNgQI+O7jEox94YbuGEqxNGPCzMSh3KhrcSMpRtPvOYsU8u2OjUzReBClnbvjhTa5w4HHKZvx5MvdiPEsgNE93aSBPmPJkN1XuJdinrVAEicj9t7b6TpNJxQ7R433+vw4b8e58vi8hWFTB2/NMfCE6iCyh1vSJO3Zh8kvgY+oBpPJ9bKuiHqHVisu4KxtEwVmcGlBzbBnxOMH2/7w87ahV0jMyHZ6d6FQ== 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=GqTYnIuvwZpne0DazVRime77a1ak+zDOSaV+71Blgqc=; b=iewa2OfxVx7xjD5J2Yv5+f9ebBpp20nHUZsq82e+uhQGKtsnxq4IUQDBTttHq4ytGAJM/XOb5bT+AYEJq0NSnLpliDubUPaZFWcE1Rhfdo4bYe1owyjO9DJuO2cnr78zy5xC4c2BDgssgU11AlYQFfDXBJffyWXOHoVrX/WFj3g= Received: from MN2PR04MB5886.namprd04.prod.outlook.com (20.179.22.213) by MN2PR04MB6270.namprd04.prod.outlook.com (20.178.249.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.15; Thu, 19 Sep 2019 06:58:44 +0000 Received: from MN2PR04MB5886.namprd04.prod.outlook.com ([fe80::8520:f80f:ae9:63cd]) by MN2PR04MB5886.namprd04.prod.outlook.com ([fe80::8520:f80f:ae9:63cd%6]) with mapi id 15.20.2284.009; Thu, 19 Sep 2019 06:58:44 +0000 From: Xin Ji To: "devel@driverdev.osuosl.org" , Laurent Pinchart , Andrzej Hajda CC: Neil Armstrong , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , "linux-kernel@vger.kernel.org" , Sheng Pan Subject: [PATCH v1 2/2] drm/bridge: anx7625: Add anx7625 MIPI to DP bridge driver Thread-Topic: [PATCH v1 2/2] drm/bridge: anx7625: Add anx7625 MIPI to DP bridge driver Thread-Index: AQHVbret0tqiWgwFd0CHO2Wp+MQ+IA== Date: Thu, 19 Sep 2019 06:58:43 +0000 Message-ID: <30c40beb3dce1e9ede3abff73761ea6b9d7aabd2.1568858880.git.xji@analogixsemi.com> References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::18) To MN2PR04MB5886.namprd04.prod.outlook.com (2603:10b6:208:a3::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=xji@analogixsemi.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [114.247.245.252] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 41cd6cef-b248-4b1c-7a9f-08d73ccecf21 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:MN2PR04MB6270; x-ms-traffictypediagnostic: MN2PR04MB6270: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 016572D96D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39850400004)(396003)(376002)(346002)(366004)(136003)(189003)(199004)(102836004)(186003)(7736002)(305945005)(2501003)(14444005)(6506007)(256004)(26005)(25786009)(11346002)(476003)(2616005)(446003)(486006)(5024004)(86362001)(107886003)(6512007)(14454004)(478600001)(386003)(71200400001)(8936002)(71190400001)(81166006)(8676002)(4326008)(66066001)(36756003)(5660300002)(81156014)(66446008)(99286004)(66476007)(66556008)(64756008)(66946007)(2906002)(52116002)(76176011)(6486002)(561924002)(316002)(6436002)(30864003)(3846002)(118296001)(6116002)(110136005)(54906003)(569006);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB6270;H:MN2PR04MB5886.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: analogixsemi.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: kfgR9ep4eOgHRTI07Hs5pfJjzyeEHaNdwMdLM6dmPhMURlX8lsVsRtRj29C+sbAze0a+EQ9uD/h+QesSdKplbtBtMOANPLdfJAsQSUq7L++3KTQhjKzsgK7HWrh5g3OarSDBY/su0DBKoDaRPEieITAm+7IFvBmZsAUKvlXUzQ1Ct/LZ+34FKJd8YEKV8FFx8euPlGxbV5AqsHJSQ6VENv2cBPB3Z2F0a8W9teoZvA3KNwUw+USRRt+1oa7MZCVSGMrwsl4mu4xkCxMHT7W1Zo7wjpFEW98oGu6yWKUEuhV8+I5FOIqfkUApMSaoiujtK+4maBqgUq0g+wcO8SPBXf/q7f3suH7MFGq1tHXHTvhWES1jhJ23ab21eth50DkNuR47lqoXKb/0AelXmSjm+9nBl+EGIg0rLAj7rr0wbYE= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41cd6cef-b248-4b1c-7a9f-08d73ccecf21 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2019 06:58:43.9587 (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: 1ns0PkGWc/QjYZsO1QTj0/0n09MtrTUZxmO2hmw2CwEujG2Z7jEioCV7s063gkorNZIVC7R47q6/ElIxaVYZIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6270 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 to DisplayPort 1.3 4K. Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/Makefile | 2 +- drivers/gpu/drm/bridge/analogix/Kconfig | 6 + drivers/gpu/drm/bridge/analogix/Makefile | 1 + drivers/gpu/drm/bridge/analogix/anx7625.c | 2086 +++++++++++++++++++++++++= ++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 397 ++++++ 5 files changed, 2491 insertions(+), 1 deletion(-) 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/Makefile b/drivers/gpu/drm/bridge/Makef= ile index 4934fcf..bcd388a 100644 --- a/drivers/gpu/drm/bridge/Makefile +++ b/drivers/gpu/drm/bridge/Makefile @@ -12,8 +12,8 @@ obj-$(CONFIG_DRM_SII9234) +=3D sii9234.o obj-$(CONFIG_DRM_THINE_THC63LVD1024) +=3D thc63lvd1024.o obj-$(CONFIG_DRM_TOSHIBA_TC358764) +=3D tc358764.o obj-$(CONFIG_DRM_TOSHIBA_TC358767) +=3D tc358767.o -obj-$(CONFIG_DRM_ANALOGIX_DP) +=3D analogix/ obj-$(CONFIG_DRM_I2C_ADV7511) +=3D adv7511/ obj-$(CONFIG_DRM_TI_SN65DSI86) +=3D ti-sn65dsi86.o obj-$(CONFIG_DRM_TI_TFP410) +=3D ti-tfp410.o +obj-y +=3D analogix/ obj-y +=3D synopsys/ diff --git a/drivers/gpu/drm/bridge/analogix/Kconfig b/drivers/gpu/drm/brid= ge/analogix/Kconfig index e930ff9..b2f127e 100644 --- a/drivers/gpu/drm/bridge/analogix/Kconfig +++ b/drivers/gpu/drm/bridge/analogix/Kconfig @@ -2,3 +2,9 @@ config DRM_ANALOGIX_DP tristate depends on DRM + +config ANALOGIX_ANX7625 + tristate "Analogix MIPI to DP interface support" + 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/bri= dge/analogix/Makefile index fdbf3fd..8a52867 100644 --- a/drivers/gpu/drm/bridge/analogix/Makefile +++ b/drivers/gpu/drm/bridge/analogix/Makefile @@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only +obj-$(CONFIG_ANALOGIX_ANX7625) +=3D anx7625.o analogix_dp-objs :=3D analogix_dp_core.o analogix_dp_reg.o obj-$(CONFIG_DRM_ANALOGIX_DP) +=3D analogix_dp.o diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/br= idge/analogix/anx7625.c new file mode 100644 index 0000000..5d6bc5f --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,2086 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright(c) 2016, 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