Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp467183ybn; Wed, 25 Sep 2019 02:45:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDDo1A3T4F+0Zem8Ig/T+obmWefS41p7V//GF1F2k9pfjKM9sByV2d53Ek3kL0VntQBbux X-Received: by 2002:adf:dd41:: with SMTP id u1mr8628770wrm.49.1569404745439; Wed, 25 Sep 2019 02:45:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1569404745; cv=pass; d=google.com; s=arc-20160816; b=v8yGOC6MB95orezQnWI+jUvk8vwWiiytAV1klUKMqyGcmqGNjhjLKzKR8FZh5Ub0PN rgaynpAb2uJ2HdVVLy27O1bWfJDPFDU93fPPySHGg1n++TMJhFOVo7J/0De665rk/KJA VuxchLaYYqjUnvQ30TyO/W5DKLfFdvxwdo/uH+Xq+dQlRknoDj40QXfxu3W4tTrkBZWi MEb5W0BsPzm8lTWf1QseXLzqkxPK+bcEV9sQnhf+MYmcQUxfssX/RDMGT5JQNEyjIw1e kI+jJ5/GYLNLnhgC7WCCy1ud3YdbYAhKHdNm5QXBkklZEP569o23Rg+9U3EuoWl+Cury k6sA== 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=GSzVHUjfoZlfbfXnh6WdxMns8FDwlha231iF0M4ZFgQ=; b=TKxUONLI8tmDwjHL/VVKkVp2QDmSrqToQu5o+AgMYvHhvqFzSFTpRoqTO1J0xBesMF uu/0KnizrwAODeh8VETe6o079nivUs900fbHGPuHGi4auIGbtti6C3RpHkOM+0CnxCHV ATc4tx3/P6hL1kMAbJ/zN0txNGDSpen0Wzge32uwK8vCrtmF1+ougApa04W/fIn2Tx9K CkNbvr3up26qpTm1bv1NzVGJAE4v2xo+LkoMcWX9bexXLeIJRrMF/aV6jIkB5M+N1i/i Fk9GoWQ4HilS2HebdI2BWK6Bj08nB4RPGh7o0pK3oj4WSjaYeTECaijpek4zjNek1ClQ Ms9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=UUUsLELs; 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 d58si3099013eda.62.2019.09.25.02.45.20; Wed, 25 Sep 2019 02:45: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=UUUsLELs; 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 S1728480AbfIWJId (ORCPT + 99 others); Mon, 23 Sep 2019 05:08:33 -0400 Received: from mail-eopbgr680113.outbound.protection.outlook.com ([40.107.68.113]:19479 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726480AbfIWJIc (ORCPT ); Mon, 23 Sep 2019 05:08:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gwwzm9mQ8JoyTN629C6fXm8vflht1g37JiBLXCKZ9pHRRPNvfvLqRAJrcAtzONGXwI8xibY5OtEta0JDfgh0vJd3ZiWGbkvNpmebz60WgW/UwLV5/Z1zd05XV4a7y4B2DlRAz/9Hddce0A7s5cgKXvIxmrTMfRHrUV3R8gQEa/i9dE2kfdqTMvDJVGxo9a7o2SSwNuzQ8FtkBBAAJG6Gl+YVLZU42nIG4GjDPFZGYO5SltW87LB8azl5do/T5TFHBeU+DWdGJrLXMFXPnbeaT2fIyHWOrF79IgtBHlVtz7QMZSXjxlkGXaWpeqCwcxQdXOrRmBld6S3w849ewTSO8A== 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=GSzVHUjfoZlfbfXnh6WdxMns8FDwlha231iF0M4ZFgQ=; b=CINjfj5I08piLrTSPOtmgwnIyTbh0ktDl6cl+LevoejI/DaO5SWIspUDQN37uwsRow3ZQVidgCWNvFsAdO4gTiAetLt0u0Z+UHzvN0vDoa0erKHWWGlxBdPz6tMtuBdQHS9RQDvenrAaD2eIxgo/a4o7oPVYsTq3dNX3W+IoC1/B+DNUYbUITzwbwoGpTZLkhPzu8u/YMy6/9Pt88bkNH44+ncQ0s9TbViTpHBuj7mNciKzPoxQreph1m20IoFKmB7LtqUbC2dWZaFDvvWWPz3xhnUPyzY2seTwV1nZYstnuxKPA+M1cX71y1zdSXaJ2Cdh6BISnHiIHt5FVfCgybg== 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=GSzVHUjfoZlfbfXnh6WdxMns8FDwlha231iF0M4ZFgQ=; b=UUUsLELsp6bvSv8A9rMoOh32iycB17R1xIMD/78Gd3RCsShdsD15yN/jnCKcLwDYK1OC0WR4PwcA5MLqAvsG2Wql/Ob8oGRAar4pJURkspxvw6F+yLYZORXv6QgIKJa/j8UcpL5GH02bU8xW0i5j59tatjUqSLmDDuqMGaF1+ig= Received: from MN2PR04MB5886.namprd04.prod.outlook.com (20.179.22.213) by MN2PR04MB6079.namprd04.prod.outlook.com (20.178.247.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.26; Mon, 23 Sep 2019 09:08:16 +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.023; Mon, 23 Sep 2019 09:08:16 +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 DSI/DPI to DP bridge driver Thread-Topic: [PATCH v1 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver Thread-Index: AQHVce5vNFGtzAHjG0uDLtXCxIe+Ww== Date: Mon, 23 Sep 2019 09:08:16 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR04CA0061.apcprd04.prod.outlook.com (2603:1096:202:14::29) 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: c6e27121-d9aa-4cdd-c5ef-08d7400591ad x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR04MB6079; x-ms-traffictypediagnostic: MN2PR04MB6079: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0169092318 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(136003)(39840400004)(366004)(346002)(199004)(189003)(66556008)(64756008)(66446008)(11346002)(3846002)(446003)(76176011)(8676002)(54906003)(305945005)(7736002)(66476007)(6486002)(4326008)(81156014)(110136005)(25786009)(81166006)(561924002)(66946007)(6512007)(8936002)(36756003)(6506007)(476003)(386003)(486006)(26005)(102836004)(2906002)(2616005)(71200400001)(186003)(71190400001)(478600001)(118296001)(52116002)(66066001)(14454004)(99286004)(5660300002)(107886003)(30864003)(6436002)(7416002)(6116002)(86362001)(5024004)(14444005)(256004)(2501003)(316002)(569006);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB6079;H:MN2PR04MB5886.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: xRnEFabKNQ7M/J8sSnXtw+/KiH3F0Pq3Sw+t/B9/eQMnJJSRgxNkkzbEGD5RihgftThU6gshABvRD/9y7q5aW+gMazYW5eW2hLFh4qwl6EY6osmlWHDlcMTeinK4JuNu/9BbZNGdEhHDGWtDs5FjVuGgcR4S21h+0Sh8m4TYsOrqC8tTWrDEL1CdHEEka6ZmbUgHQNnjmlM7bEAuIJehX0TqRmVA2Bf+2S8gCPQui9APQdyMBRhiNgp3LcOWIFZxHElxPgR/Przx5llWuXeTWV9rl56FpCYVxLyAhnWXQLJeCCjxXAPeXpCTtd0uBkMPfEgw1oBZBLcF9Rs1NglzajzWUSW5T/r7jdMMqKtu0XfWZ8uCQmfduP62ELMzTc4l09RewKNCyLwvwtQr5ZbLDVGg3wigffuJNcGf+VSny3Q= Content-Type: text/plain; charset="us-ascii" Content-ID: <276068AE18D5174EA316298064E2AB34@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6e27121-d9aa-4cdd-c5ef-08d7400591ad X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Sep 2019 09:08:16.6039 (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: i7JEg/IUE3/jKlW+0slALtHqzxt5tZh5sKhDHwQ4tU+rmHKcx6QS9xxapxAaFQcYXiFF79fltDd1n0DeCSMoKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6079 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. The ANX7625 can support both USB Type-C PD feature and MIPI DSI/DPI to DP feature. This driver only enabled MIPI DSI/DPI to DP feature. 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 | 2110 +++++++++++++++++++++++++= ++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 405 ++++++ 5 files changed, 2523 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..2a94b85 --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,2110 @@ +// 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