Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1418559ybj; Fri, 20 Sep 2019 10:07:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPx4qnUvGMUhONRyrDfaq+/HdlQdrReiePBQi4IOhajGVdx9Yq33pkTsCLRBSQ156oauEA X-Received: by 2002:a50:cf8b:: with SMTP id h11mr10859413edk.236.1568999265455; Fri, 20 Sep 2019 10:07:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568999265; cv=pass; d=google.com; s=arc-20160816; b=EItcnri+ICXuxX43Ow1HBuqcBZDk69EizU5vEPnB0RQUgn2h9SuZS76/jRV1SU4QUu jXI2N0rD9fRrkazHvSslCUtmniTerhgwpw+74L4V1HThEwkpTzu/+CSmng2yrOt/mrBG Nj1DZ0BlmLVCtT3M8/IKzqQUuWfb+PbFIJwxSGS7VJ3rsvPxSacSG8fKYEQUc+ecuP9m 4v1ntj7YysVW+AOg4ArYLP87mSuRwunALqdAmWCuCI8fZ0inkSpLkDav6Y5SXLrlAR81 yOaLOKdXkXIrRNqmJoFbzzSJvNmGi4Qad5fD1sLT/9g0ebUrLKx1WvA7Fw0XOh6w4Y5g O5jA== 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=DBXd70hMIdgzh4nzj24wM7JdQPSJy2WvR7Blfs2H46g=; b=c2saC5Ku5P1i1BQlpxPQB7xHQJ0Qd9e2pZtqYjdl8fJmo2XXK40fmGgwUwAHkWwG8y +SW8C528CUm5CQVR2yd2l4DlWOomibfx4fE8+jMS0Uk/4mCRThB5+wL3YoJwxg0B+6Mx wOdLWNNYu8WVyEfJvUm8WcJ8zfOEU1FqOJgAgvcfJMigE8Wz/yAA7rTRihWXWLI7OfVM gI04fdBKFoCe9Np3JxCzPjtbAMW0AiTpWlyQ6SX9oTpQQ0GUcybS/97G9EJXrK2u8iHQ F+3u30MmQDE7+J94++91oZMecGpOun3Dy2XApmztJxwiZAxS8OYMNzbBRZqwBkltVQAR KW7A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=bLNycHmq; 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 j9si1697246edt.32.2019.09.20.10.07.20; Fri, 20 Sep 2019 10:07:45 -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=bLNycHmq; 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 S2408140AbfITGHy (ORCPT + 99 others); Fri, 20 Sep 2019 02:07:54 -0400 Received: from mail-eopbgr750100.outbound.protection.outlook.com ([40.107.75.100]:24215 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2408266AbfITGHx (ORCPT ); Fri, 20 Sep 2019 02:07:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HB0oiJiEIXAcZ96idUUK2gM8Wg7gssgC03VKS+MqvF+ZX5Z/QsgsRn6DqtMotAjHAH1a0TNOHTW+H2pO8A2iO9g0T3FaXB+lv7E+biHjETNmyYpuCxE8ib156xdI9upo7rxTes+ZFafYbVw8OO5VvGk/2Js8zUGC8+VVSJqB7EOY7Bqw2jkctcXfJhbctkvCQUWp3jR/E/FKZDoq2ooQop5kfaIOwNFWMyUjShA81sxLlhfMB1msAJsPgy9dD0hW9VfdtWMBfCpsIcTYYgkUsIWw5xdQExjAlzkX1udCVIEbABnzR2kPInQrUbUlgDueEmgBf+0ZluM1CAwbqbentg== 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=DBXd70hMIdgzh4nzj24wM7JdQPSJy2WvR7Blfs2H46g=; b=Lk6jYkbQJPBbQykKmMAxRvolx7INfYBt26u/+V3UqSe73m2C83IE+rjabQJxljE7dqqeL2v91pHoaolhl70qqMP+tRyfNd2iiJr65OK0VrALJZ1A3hKzcrpMhMrreB9V503ja4+v9aVwG/SqPkS3oLM6ibbvd3EYiNuItH9EW+3HqlwFqGtxmo12pxIH+hq+CXGOQwnxmfxRrc3f4kR8chLNb8Xd/nzRUDarUuRmxbrB6cdUoQnLDdSTUnw3CkuWblw6AJRRD6jGdD02gQX9B2yq2mG0RVpHNj8ow+Dmz48enEqYTjArpulkJjL9nGHZlKL6Ll2TAzx9kiSHMsw/Sg== 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=DBXd70hMIdgzh4nzj24wM7JdQPSJy2WvR7Blfs2H46g=; b=bLNycHmqIk9cgdhgsg1uXWVT+xlI4ubQ4sW7dC3DsvYUngEzLOIrHfj+pB0IKkkQikTZSibQiE8m2zTIzCjDkT1CUxvS3xWaV7W02DJemHh9NwuFYRux8jvQ7pxfy/cED359Y7SKaciJbm4jrEiMxViKBnMZ9zjSjFfb2AGuiVg= Received: from MN2PR04MB5886.namprd04.prod.outlook.com (20.179.22.213) by MN2PR04MB5855.namprd04.prod.outlook.com (20.179.23.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.22; Fri, 20 Sep 2019 06:07: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; Fri, 20 Sep 2019 06:07:43 +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" , "dri-devel@lists.freedesktop.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: AQHVb3m3O6Kkudc69k2BA5rT6xVhEA== Date: Fri, 20 Sep 2019 06:07:43 +0000 Message-ID: <02319a7db948900efe0f945b684221ac076bac48.1568957789.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: HK2PR06CA0021.apcprd06.prod.outlook.com (2603:1096:202:2e::33) 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: 40b0805b-3028-4284-3b65-08d73d90d98b x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:MN2PR04MB5855; x-ms-traffictypediagnostic: MN2PR04MB5855: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 0166B75B74 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(136003)(376002)(396003)(39850400004)(346002)(189003)(199004)(7416002)(6512007)(14454004)(81156014)(81166006)(316002)(86362001)(6436002)(25786009)(4326008)(2906002)(8936002)(6116002)(6486002)(3846002)(478600001)(305945005)(7736002)(8676002)(30864003)(52116002)(561924002)(486006)(54906003)(66476007)(26005)(186003)(66066001)(66556008)(66446008)(107886003)(256004)(2501003)(5660300002)(66946007)(64756008)(71200400001)(36756003)(71190400001)(11346002)(446003)(102836004)(6506007)(386003)(2616005)(476003)(76176011)(14444005)(118296001)(110136005)(5024004)(99286004)(579004)(569006);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB5855;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: hnvVgF5K4jEOm29XaK17qYVfnyEqvwurypHbsVjhApuEJFtB09J5N3d7uHFSCmAyNI3irn1CilYETfTWRUr5dnHAmUgnPh9cfeWKICRqXE/x3cTp05FOxoB3j2ET7nya+Jz08YAT7tnv0voqgJzy1/T1goAgDJfi6RZEzpzWzck0VeqoZofJYN13CliU3qDUjQkPcmhrOskyHYH+whI9TcvZ7KwAmYSmkW1tDZEurKYu1fsW2kX5zkBPLatJHHev1izHzu9if45UopsTBmCavtf1Joy3UuuaoKeNoo3eKiEo94MwnS9rkmP9FAB5y5EF6EMMikbntLIkcqhTEjzRdO+XssaU9+bm5jM9fWoFtI4G4kTgeT7H3Y3q6dwLuALE6hnDlVzgZoSKnxTZXtMtlP24CsQKgSpXpX36OTixyiA= 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: 40b0805b-3028-4284-3b65-08d73d90d98b X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2019 06:07:43.8495 (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: FB3IRj+cwyHblPWfL/ZQw975eBvlK2wNsBFD4MJbMKvsJJgZv55U3Dw4NKgn+SVIUAq8LcWchyzjN9ffHN3+CA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5855 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 | 2085 +++++++++++++++++++++++++= ++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 397 ++++++ 5 files changed, 2490 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..eceadef --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,2085 @@ +// 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