Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp242901pxk; Thu, 17 Sep 2020 01:35:42 -0700 (PDT) X-Received: by 2002:a17:906:8c1:: with SMTP id o1mr30456897eje.478.1600331712342; Thu, 17 Sep 2020 01:35:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkQbHQk0UB8zGC19txl3pCJSH45M2HzYFlJpf8tq8vjLiYNWbObO9Yr61obvpq2V2qAAz7 X-Received: by 2002:a17:906:8c1:: with SMTP id o1mr30456701eje.478.1600331709582; Thu, 17 Sep 2020 01:35:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600331709; cv=pass; d=google.com; s=arc-20160816; b=i5eaZ85peXYSMy+0f1WzciWKVRkwRNnUbQo+JNB6sBfm5WxFX3MEZUlkv27bVVEcLy 7OeI3SMf1aNzIU3GUulTnW6arI0v2wjv7oUC0BcTpj5nBFUeo7tkohFHVj19CxSjvKLx gFgtLaEaabZ1w1oP59pOJGz/lHR3nrJZhd/DtDXaD5qv3EIe/H9Q0T68ogTvoyoiyJNZ 4CRKb3/pJF85bNdO3ekf7uWac0waxk6Z6rjc/uJeO29d+Zs+SvzLyklD/7L37m8b5jqo Z+C34S1fJsJUjoWJwnVBGbfdHFLPxbAIdcCBmanrm5fK1tobZi6YHA2GU+yr2yBUyl4a JgBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8Fn01/paBPMSj4UM+mciVqt6EFLRUZ40XF7J3pdIJsE=; b=Cw0njfEXI0OekLFC44eeDFs+nbiueP/zuZnNhkRwC4szXPrW+LczEGtXtIFtl8p7+l yDWP4cS7WYhfJNDuGhgwLQK5UTNsWReyNHESDBrDbiNTZHWlK7l23m2nfbESSi0qrOsL 3dIDmyE4WKv8Ij7xXTpcucjE5EwPEYj4sUPc1IEEcyLqrzbQ8OYU1uNbV4BDZ0H2X45b TK0/UR6zYcQwzzALqYegSY90eR6El9YnTmdVEWiS6h61PSy5Rk6qaZFiHqoBWi84IiHk NfxyRZidoD4guS1A2Ei+SytDvI6R7QwMrlDfYkTJS4DJd7sSUjunCW/9TflPDIN3e0GC mR1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=L7rv1bHZ; 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 o16si13337542ejr.517.2020.09.17.01.34.45; Thu, 17 Sep 2020 01:35:09 -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=L7rv1bHZ; 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 S1726402AbgIQIal (ORCPT + 99 others); Thu, 17 Sep 2020 04:30:41 -0400 Received: from mail-bn7nam10on2132.outbound.protection.outlook.com ([40.107.92.132]:40673 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726241AbgIQIak (ORCPT ); Thu, 17 Sep 2020 04:30:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YamDTb5KUFLA8e+PlQyPsTxYQT818hbR4AEEepGYcHNifeJLT2nzv58+egJFXABT3Zr6KDR4i+P+VSY1zWOEebmJTjpGTW60G4JMivTfEAKP96L8D0NAQCun+PAhc4hxU2rGwLSuzFNzsZy5k0RHRXupywcAnS/7vM6mjhcFAQUCiwKsllWnQ3XiwaasAxzJMsuGobzKtF0sXdj9NEONipGH7hGqahcJ2nKCypYA2HlA8czozHzB4aaGGBrQxrPWBQHHWEhSxFNk+E0BAuWUKT7NccjqqX30gY12MOr4ufz0TxSiuJKAHoQtknv7gAPSgFZAMfDjNxx2N0t4O1pMJg== 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=8Fn01/paBPMSj4UM+mciVqt6EFLRUZ40XF7J3pdIJsE=; b=H6e2Abkb67Tb91mT4WZkVUs3BOhSP7ao8b++rCI5jG20Pb3/VBxSootzVYJotH2UzdFCTz4HJtUJP4qCLaz6DRP58fyOo4gh5mLaGB2VH9Qgct/RtAnWhMuGhuedBeVgcLjX9309dOKhw34xRq8g18wl/MSga0f894P+xG4/+RPmetJ5CzK/ai8KqxxyrtO3xzrMJQjG2WSyBw56io4UQOQ6Xava62LVVcfQ2+1oe6kyADSI9itAuOgo2Jj20LkWmVh4ge3BKQqzYC0BQRyr/TROCBNwhdflr/pXSW6ijBdbsSqogzHVUiv9BE1pVI97BjWa/8/1/Dl+pEDUibuSDg== 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=8Fn01/paBPMSj4UM+mciVqt6EFLRUZ40XF7J3pdIJsE=; b=L7rv1bHZKYhP7WiN0YAMtHd5SrYxqGx+bK3JKsc/+/tgNR0B9RYxhp8fIGdvKO37tMg2QKc2G4V+sd+P5SopHouFX5qTITUui5hLP5GqSRozMh1x54zX391CzTg/TpxVP7qPSLdH6IptIQS/6Th8gFS8n4HWJxmRkgyb9hDRWqQ= 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 BYAPR04MB5638.namprd04.prod.outlook.com (2603:10b6:a03:101::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Thu, 17 Sep 2020 08:30:26 +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; Thu, 17 Sep 2020 08:30:26 +0000 Date: Thu, 17 Sep 2020 16:23:56 +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 v16 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP Message-ID: <536a274e38d994817c6d0c118f7f8553e74f73c9.1600324895.git.xji@analogixsemi.com> 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: HKAPR03CA0012.apcprd03.prod.outlook.com (2603:1096:203:c8::17) 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 HKAPR03CA0012.apcprd03.prod.outlook.com (2603:1096:203:c8::17) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3412.4 via Frontend Transport; Thu, 17 Sep 2020 08:30:25 +0000 X-Originating-IP: [114.247.245.146] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 45cd9c02-3d89-48f9-2688-08d85ae3ed36 X-MS-TrafficTypeDiagnostic: BYAPR04MB5638: 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: tYgHywZAQj5Iia+yhKSuXOJfyNwwpvTpPpxwLIsDB4qZYTiwaZ1Ye2UGaGAP4mJnshMH5f5XD87pTOFu6eA+XusKHBmpwfhNiZElMJ/Y6wXFoCBfUjA6FIl3qePd4RbCLfA441ScwEZ99vJhmSHfzyN/YVvvkfdv39d/Dtso+xle7lJB7Kwc0m1xezCLqg+bYLvqWlRlnwnFq20q9dvE/qBeWACMSJN/oXqyof0DDHNcGZWEvx1Avhy2HpfAmE6wUkehYMTDz3A6/TGZHWt8iFGCQusHzl3rnivE6EnjN7LinoqXAVHV10uB1oeQfxnz2lVMk9dS7Dh7Aaw5yXzjlw== 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:(39840400004)(366004)(346002)(136003)(396003)(376002)(86362001)(83380400001)(2906002)(956004)(54906003)(7416002)(5660300002)(2616005)(478600001)(110136005)(8936002)(316002)(8676002)(107886003)(30864003)(6666004)(6496006)(52116002)(4326008)(66476007)(6486002)(66556008)(26005)(16526019)(186003)(36756003)(66946007)(559001)(579004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: gWS4VFGDLbBIeAcF9y3soAa2/OyktzEZYjyclt6QUW/z9wic/d7V0MWsPRldbxOXNjYKBaM6xlsUooigCJJJFTP6T+epBkLv8n38hfT2Uxm9FB2jDoJ7BvqYVZ+syTp4JabeQ93TeteZ/m5K21QeRZFMJd0r5/7hNU5xbxi974yyhmAHc+mvvds3FpZNX9GnEZC2OHkttPoDqQemjMBQffjw7ATOZAzX48Uhm2Cfoyh6EIY0p2EJ3x+pJj4ujyfHJVAkMNASL68XV7af1pGSnx20Tdw1Zre3vmZz40C/0Qhc3lys33un/F9YvpQYI+QOksB9NDRdrOSF4UmyhYBpyouQRN8g3pDWSsgt4eYAtBAyR9ONWB056esdR+AWjxrBkPqrSGLv60UKna7UC8GHzCSCF/r5tU1hFNvfCkOt4wZF5uyTLJL5QcQ67fqQehdv+lSNr15DiJZcbPxOLwfW5kbOSTMCjmSn6rfOInpp/XkEzWlr7Ea+ztPBZA5jH5arzse7lCENhCXkOTooT6Mard8u0VoQ8Rejh4bHETLxHKn8NdzuzD06FlkxRgA5ck2+se/gEhq8Z0JR/sYUX6ejG5EwHG4+i2v5lSrb8hue5r+9Vcflen+O6qAgN7cSXebg98zo2S19FQ/gNdrDGwFmXg== X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45cd9c02-3d89-48f9-2688-08d85ae3ed36 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2020 08:30:26.1897 (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: jiQWg3KZ0zLv2EDiltrLsf+LwDCC/3uptxPX0IY8hv+LeXzX91Xv5w2KtxJ8cFjC1/gsf88AUv2j5CSkXurtvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB5638 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 | 1849 +++++++++++++++++++++++++++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 390 ++++++ 4 files changed, 2249 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..cec37da --- /dev/null +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -0,0 +1,1849 @@ +// 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