Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2623964pxb; Sun, 17 Oct 2021 20:49:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz1BimDk6B6Ud8gsF49rhV+gLakUMj/Z59u0uar15muLDV7sd/c8mcREesZZjpQELYWz8b X-Received: by 2002:a17:903:32cc:b0:13f:c3:4ff3 with SMTP id i12-20020a17090332cc00b0013f00c34ff3mr24948904plr.33.1634528967906; Sun, 17 Oct 2021 20:49:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634528967; cv=pass; d=google.com; s=arc-20160816; b=cunBGhsdJe+DhQkNaUnuIznnSsDIzD14W/cN9FJaI5KvuLgIEM4Cow6P+e0d6MIuzx CXbWjy7rV1jUs8OTp6n50BWzT9E4olS0vsYlbfv7NMJcp9l+XEPch8odzmLDheHjk6B1 leE1fmMljge2PTSviC5C5pII6epb07heRpK4yueP8wUlKWVlvbSzvxr9jfYzyWfmM/Nh ZLvuTjPMDa0oqXVRchp8pWXQ7FjNRCWI7l+uM702GoBG4+KfAxJOb8snronSWlLLPdw+ Od70xG25cUHhEoyqn5q5YXcLk+gB98GZyHJ1WXbwskOuWiWuPR8K7aJAKcvKIUyTGyfq UoQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AU5bPZzx+kMb3zZGG2WnppvMtKRrJX4fRaZJF4EkExQ=; b=NV4fPX1VV8hZCpIg7EbeGnO8P1w8qSSrTZqNEzfwyx+yXy4On3ys7cQdv9U4vMTpHo Tioyi8tJsBlt6kgj509m6sA0FUn/deqAtjDwITJ8vl0HNlL6e6MkRNvHXBsu4RRKpo1Q 6Zo2UV/49jRyJhDRY56w2zFF0EJwDDTOVXpR0BVEfeN062zZvNEbU+J+KDfkOweciRYO Tn48vNk/mrfMKt6HF3TwSatsS/jdvsUwhecO377xW14EvLXCK5iJZBhdPLm5nkTTJYO0 G349UwTv4498aHk3Ek0Pkswt1zhV3Ax2qZyso4MA41DbUTxOIPvOMFPkowALi5/zTmeD +lrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=mBkKH404; 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 j4si20838449pfc.118.2021.10.17.20.49.15; Sun, 17 Oct 2021 20:49:27 -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=mBkKH404; 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 S230034AbhJRDGo (ORCPT + 99 others); Sun, 17 Oct 2021 23:06:44 -0400 Received: from mail-mw2nam10on2123.outbound.protection.outlook.com ([40.107.94.123]:2369 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229912AbhJRDGm (ORCPT ); Sun, 17 Oct 2021 23:06:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P86KmjhLKXPvJEjJBLm+Ke24MIGjrmQxSnn+IGk3ATcgXo53AJmBuddpp2Y3w79dY2fa/E1AxMfWvN/giuqMDCzK2aDvWeLW2SDvDbDhHTE3Cto71X9B0mAu3rCT9YeInoJQh/D5TBRtR6GCe4r87h8AxLrrut4eGQZ8FAa0w9uGkJ0afyAqiNrl7yGHf+hZl5NZs8LEoGAar8P0RoQjAB2kbTYMx/csEqX+a6+QBy4nl8GdKV3aticcjvQpxGuHFhc6K8u+jEOLFyB7VcdF/V5oBkf89Ea70IPUDQ/6YWVgedE6wHWiano9iVHpZ2tnyLy7dD0WXOuHosI8lPWprg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AU5bPZzx+kMb3zZGG2WnppvMtKRrJX4fRaZJF4EkExQ=; b=Kl7OuPRct9pzEQbEhxZD89yqRkoSHSMcFQtFXJROitLZW9w0wf4NkCwWtB4kEsfmcspTMwjUkymbVLswLgpsneY559SJ6Gb4ouyYMdDzyGyCtPZTjIJWpQ4joWVDchZODaunQ6LtBFlvaUQNu21gbXxHJWc+B0g6JNh81TYEp63+op5Ggr9yCNWTcUrSv6qYS1P3tGT/tolVy7TE83M/35EF7C6ZJrJsnifiQ1fjJBZoGKOmp2yEwDACBP7y3tKC86/jzcfGE/EGSXixrkyZJkDABsdkgvbNmCxr4lQqMmw8ktTjTjH4z1gHCZN+Ler2oWa+lblVOOHikzTCwDMFbA== 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=AU5bPZzx+kMb3zZGG2WnppvMtKRrJX4fRaZJF4EkExQ=; b=mBkKH4049Mqse8k0ZCkBQL425YWJ7+BnjgMNFFz3wP6uyJ+xOf7seS9H5qbbEE+XAo7GcZL+YiiDSMx6cp6BS56MLrUHQObtQ5tKpyYZo/0zQM9w1wfK4i9cphR6hrEQfaqfR/ma9X3TvhSON/+3McUGbJ7hc679EzeGKL9lXUA= 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 BYAPR04MB3862.namprd04.prod.outlook.com (2603:10b6:a02:ad::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Mon, 18 Oct 2021 03:04:30 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::e149:c2d4:fd23:a682]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::e149:c2d4:fd23:a682%7]) with mapi id 15.20.4608.018; Mon, 18 Oct 2021 03:04:30 +0000 From: Xin Ji To: xji@analogixsemi.com Cc: Laurent.pinchart@ideasonboard.com, a.hajda@samsung.com, airlied@linux.ie, anarsoul@gmail.com, bliang@analogixsemi.com, boris.brezillon@collabora.com, dan.carpenter@oracle.com, daniel@ffwll.ch, devel@driverdev.osuosl.org, dri-devel@lists.freedesktop.org, drinkcat@google.com, duwe@lst.de, hsinyi@chromium.org, jonas@kwiboo.se, linux-kernel@vger.kernel.org, m.szyprowski@samsung.com, narmstrong@baylibre.com, robert.foss@linaro.org, sam@ravnborg.org, span@analogixsemi.com, zhenli@analogixsemi.com Subject: [PATCH v11 3/4] drm/bridge: anx7625: add MIPI DPI input feature Date: Mon, 18 Oct 2021 11:04:22 +0800 Message-Id: <20211018030422.2055208-1-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <5aad2d99649549bfacf1a6a4587cae12de197879.1628161369.git.xji@analogixsemi.com> References: <5aad2d99649549bfacf1a6a4587cae12de197879.1628161369.git.xji@analogixsemi.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HK2PR02CA0153.apcprd02.prod.outlook.com (2603:1096:201:1f::13) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 Received: from anxtwsw-Precision-3640-Tower (60.251.58.79) by HK2PR02CA0153.apcprd02.prod.outlook.com (2603:1096:201:1f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Mon, 18 Oct 2021 03:04:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cea8b0b1-223c-4909-c92d-08d991e400f0 X-MS-TrafficTypeDiagnostic: BYAPR04MB3862: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:66; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n42ZbJV3SuyTyvR/3krgkvX470+L869SJrd3a6f2iWOYgEMnlukuCCGu9naZWGqBnwufu0tzk3Fk9IfSns6PqUoRwxqcn6wjUHraaGdjmX+rVFlijo2u/R5pOTkOws7utD2pA2YuoPvosaVCoSxPP3MoIhe8/+L7Lbo7h1AQvy2dhHvYxAjVdtKv8g5wMocfRYyfQ4HZwws9m+cMVBAz42O7PEAiqfPDmC7OST5oUMWZVGIoRL+HmpQCip+voX/ttE1/hrskfQI4lywa0lVmTPuj/im7SRjLhgO9QfpxdYov9NKs105UuPWzWT9S5SWVUsdGYvnk3xiY+1lEvqVJ/jxsjILaE4RkL3V1Aq+v0AM5+BkMzCquTpPnvb1avhl50oDqdEAoMGwP/A1Q6YyuMIx0VEL5uXx04vMVow5J/WTn5kb6VweKvm3hcRIEXb9cwyQFzo618d4CPTKGXRrJJduOYGndc0BXiR5OgK2Uqh+WoqhJBSbOjRCqFWc+duuHB3/NgtfPYlrthY5TtM7iRiCbB/L+lgBYlSNIfTWX32MXgz/2gmxCJdBxwPB6sILwzEZuStffh9erukEssHF2zCXNUqhxGUhlAD5r5Hy5Ek48g8vDu2JqgMTdoOTIj63wRpAQ0X0KXjn7/Nn4vDbDVNmeokOqqJJJkC6KR0MFOc3j4VfkehqSlsKdGnrSkaoaE04gxohqqlJoT9+fyjXH+Q== 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:(366004)(83380400001)(2906002)(38100700002)(186003)(6666004)(1076003)(34206002)(6496006)(55236004)(52116002)(107886003)(36756003)(30864003)(2616005)(956004)(26005)(8676002)(66946007)(6486002)(38350700002)(7416002)(5660300002)(4326008)(37006003)(86362001)(8936002)(508600001)(316002)(66556008)(66476007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Cm2+o2+76yV/CO1/XeJPZCPMQ8WZ5CdTzlwP+g67sq0VaMQZ4odKLHWwRcWn?= =?us-ascii?Q?NMx4AgrLkFXYixsHvktMPJDABSO0GRNdzzjIlLOQa2Ag8YS0biU0aYUCO2qw?= =?us-ascii?Q?sjh2lQcL7KcsccFR6BjZ20+07HvnwDhAWIluo1wJB+4nZHHV/p+iXNeJ9Ih1?= =?us-ascii?Q?2Ba5OLwDX/BmmQCEU1BDt0T88MpGQuVnd69lije1C4MmYXunMX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YuVHpV/0z/SKvOBJZBSfirZl68cgckV6tWLcM?= =?us-ascii?Q?rfDkf3cl0MWEtwvKLtGjkfRmIbTCsoDba6CHyqTE6yBhrR6Nkm7hYFfA285j?= =?us-ascii?Q?IAbZx3AIBJ2Qb4XPzHBdGBQ3S2Da0I8MBvp2CU43dBc2hjKuwqCACUZrZObG?= =?us-ascii?Q?YCiEXyZmEg07gE72xi0RjNEtOZDccK80TXG8zdtUzEcNKbJh0yHjwtcJJl5r?= =?us-ascii?Q?rvVu7hZRB1+o4wlSTvipJtLL?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: cea8b0b1-223c-4909-c92d-08d991e400f0 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 03:04:30.7093 (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: wW6P6sphmHKY7soyQU//La8bsn3w5WOkKZf05LF82DoQ+2mH0ujJL9HJ5Jzz2yoY7seq4daWB5XA6hSCim/Bcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB3862 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The basic anx7625 driver only support MIPI DSI rx signal input. This patch add MIPI DPI rx input configuration support, after apply this patch, the driver can support DSI rx or DPI rx by adding 'bus-type' in DT. Reviewed-by: Robert Foss Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 246 ++++++++++++++++------ drivers/gpu/drm/bridge/analogix/anx7625.h | 18 +- 2 files changed, 204 insertions(+), 60 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index 469037f2fd3d..92038c4661ff 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -32,6 +32,7 @@ #include #include +#include #include