From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B272C10F14 for ; Tue, 15 Oct 2019 07:35:32 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B8252086A for ; Tue, 15 Oct 2019 07:35:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Analogixsemi.onmicrosoft.com header.i=@Analogixsemi.onmicrosoft.com header.b="Mcu8C0cy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B8252086A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=analogixsemi.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id EEF1A853FD; Tue, 15 Oct 2019 07:35:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dOIW2fkBOFgM; Tue, 15 Oct 2019 07:35:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E5656855CB; Tue, 15 Oct 2019 07:35:25 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2C9A71BF341 for ; Tue, 15 Oct 2019 07:35:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1CAC684543 for ; Tue, 15 Oct 2019 07:35:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b3b6f7YEAqw3 for ; Tue, 15 Oct 2019 07:35:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-eopbgr750139.outbound.protection.outlook.com [40.107.75.139]) by whitealder.osuosl.org (Postfix) with ESMTPS id 822528671A for ; Tue, 15 Oct 2019 07:35:20 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DROJmSs7MEEz5sRK6EEOk4C0zJ4QwnvHIRWcZ57K0sH76/9fZ11rvYj4iwTgm19TSVF+puxg2Gd8qFB+KsN5B1Jsk1NksvzmzTVVB/ODsJOLSJ7y+lA7z/+kQ9evfJbqhvUHlnmqleRDPcO+yk0ju3ChYvwYiRbVGe9FRQIMZAzYFUhfwS1TMDGw+PlE9VGRLzJ+iQDpzqQ7HHfuDx4Ot1hY/Zr/OkhNsyf/lG0sNylQT26cC9c2zJqpb161oGS6bPVfPtsrwPFa3+WwOVhGf9+L7APDsRbxqz4wZw2Lv3cHSp931w1CDLNf4yaiXttndc8F77/ngDrU7x3zB4AcIA== 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=3UoPq8SWhWfUpB7d7KdB1GuwdKvGMPVJacXzluwjtJs=; b=WR2bdU0e21AUtC/bF6Mhq7O3uDWMEyCXYnTktvwcLggrGVvmy45nHaI0psxCjPvP03fieZjFg//9blS8YaM4RtrBikUmbWIQU/UqIu3h5u9wLq6oT7lR4tgGZvOznuMqegkiTnFJ8p2nHi5DkaLgt9iBF32Z0YEjunlnZfLU96T61Ovc1qMqLzn48P0moB/tbrJKW7gKvW5gfK09kn5Pt7+qOslTBUklOMAt4OPhqvRwr2CcShcGUCEq0X+kIshxhMSQdLHAst2zw0iEYEAapqJXLdRzSkSjXFZSbtPM4II7R1OPEgkU+WD/hhUJvdg+UOdWwg3gw8wGMTqYLHtiGQ== 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=3UoPq8SWhWfUpB7d7KdB1GuwdKvGMPVJacXzluwjtJs=; b=Mcu8C0cye3z19k4IERoMzYJ9uAhpmgNCQs57Eep6NMujx3/lzfw23OYgaxi4Ts9+zOP9nj00rcj/g5kNCxaV0IrOjEyObxAPGyrXvyrs7bwe/MBT7/kORKupD3El588MtRT2lDau4CBtJe3ijMXGZpqXXKH6qFvZVeFRc6DWKVE= Received: from SN6PR04MB4543.namprd04.prod.outlook.com (52.135.120.29) by SN6PR04MB4254.namprd04.prod.outlook.com (52.135.71.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Tue, 15 Oct 2019 07:35:16 +0000 Received: from SN6PR04MB4543.namprd04.prod.outlook.com ([fe80::c55e:6c70:adbb:cf87]) by SN6PR04MB4543.namprd04.prod.outlook.com ([fe80::c55e:6c70:adbb:cf87%5]) with mapi id 15.20.2347.023; Tue, 15 Oct 2019 07:35:16 +0000 From: Xin Ji To: "devel@driverdev.osuosl.org" , Laurent Pinchart , Andrzej Hajda Subject: [PATCH v3 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver Thread-Topic: [PATCH v3 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver Thread-Index: AQHVgysWa3izoa2pAEuUov9xHSM/iA== Date: Tue, 15 Oct 2019 07:35: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: AM0PR01CA0120.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::25) To SN6PR04MB4543.namprd04.prod.outlook.com (2603:10b6:805:a8::29) 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: 4322f3a9-bfb0-45dc-50bd-08d751423869 x-ms-traffictypediagnostic: SN6PR04MB4254: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 01917B1794 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(39840400004)(136003)(346002)(396003)(376002)(189003)(199004)(102836004)(2501003)(4326008)(2906002)(6436002)(6116002)(3846002)(66066001)(30864003)(5660300002)(476003)(446003)(25786009)(2616005)(6512007)(11346002)(486006)(26005)(6486002)(478600001)(107886003)(186003)(71200400001)(71190400001)(36756003)(316002)(256004)(305945005)(14444005)(5024004)(561924002)(14454004)(66446008)(64756008)(66946007)(66476007)(66556008)(7736002)(118296001)(52116002)(8936002)(8676002)(81156014)(81166006)(110136005)(99286004)(7416002)(86362001)(386003)(76176011)(6506007)(54906003)(559001)(569006); DIR:OUT; SFP:1102; SCL:1; SRVR:SN6PR04MB4254; H:SN6PR04MB4543.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: BCL:0; x-microsoft-antispam-message-info: V6QiDk2C638M1A8NTxqpsvhW6LB53qL4F2Pys3NCJIkN2pF1qllhjRho78T6w/J2fJNFY/p+prZKGJmMZrpCszhIpnPsKsGe1V66/dxfrqXjnXgzcREs4hqTph1xJyqp37M/65pZuFf5x7TiSoWwZ7c6Bk7a7hQvf90gNDlgASKakvT4EtNbTT6hrgJKD5wp/jlvMBf3Tq14LtLZtvvc7GxSAcgCugHL4SCuDAaX+1dGZSC44Xo4Du2IzbQzPnmWske1Z34frZHMlvoqN/CP6BFl1qSaduSK73NA/Div8WwU8NwLOVLZcLhJh9mvlM1PBpO1PhVMx5c5v4cz83uLU8yjUuKGQBmtQsjvks/W1xQwdNAnqvRnv9MUyidmh+GTt0br1Rg9hkfvuDcmx/oJ1h9dE2ecaqdVSA7BpdcQl/Y= Content-ID: <6A4838F4FE7C1548B672FD0C2FB519E3@namprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4322f3a9-bfb0-45dc-50bd-08d751423869 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2019 07:35:16.2236 (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: Y0O+Z2IgNBH9Q7zQBFOUhM70bbJvp6SNfTC/SxEjn95LNMv8z2pn8NOLzf/2NBcQmuzp1PFsxDQMgavZRqJkGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR04MB4254 X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jernej Skrabec , Nicolas Boichat , Jonas Karlman , David Airlie , Neil Armstrong , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Sheng Pan , Daniel Vetter , Dan Carpenter Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" 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 | 2159 +++++++++++++++++++++++++++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 406 ++++++ 5 files changed, 2573 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/Makefile index 4934fcf..bcd388a 100644 --- a/drivers/gpu/drm/bridge/Makefile +++ b/drivers/gpu/drm/bridge/Makefile @@ -12,8 +12,8 @@ obj-$(CONFIG_DRM_SII9234) += sii9234.o obj-$(CONFIG_DRM_THINE_THC63LVD1024) += thc63lvd1024.o obj-$(CONFIG_DRM_TOSHIBA_TC358764) += tc358764.o obj-$(CONFIG_DRM_TOSHIBA_TC358767) += tc358767.o -obj-$(CONFIG_DRM_ANALOGIX_DP) += analogix/ obj-$(CONFIG_DRM_I2C_ADV7511) += adv7511/ obj-$(CONFIG_DRM_TI_SN65DSI86) += ti-sn65dsi86.o obj-$(CONFIG_DRM_TI_TFP410) += ti-tfp410.o +obj-y += analogix/ obj-y += synopsys/ diff --git a/drivers/gpu/drm/bridge/analogix/Kconfig b/drivers/gpu/drm/bridge/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/bridge/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) += anx7625.o analogix_dp-objs := analogix_dp_core.o analogix_dp_reg.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..7adb79f --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,2159 @@ +// 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 + +#include