Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2447578pxb; Thu, 4 Nov 2021 21:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwztmChtAFdeJ4s7vEAHY1aK92b3+boFkyNbOyKDi7U3qlEcqwBWzYMSL43Q6xfr1EhSYIu X-Received: by 2002:a05:6e02:e41:: with SMTP id l1mr33606909ilk.139.1636086393963; Thu, 04 Nov 2021 21:26:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1636086393; cv=pass; d=google.com; s=arc-20160816; b=RbZ3Gclia+ilomLe5t3BtYFUaWOh8dSjVHAK2Rxlwpqnppif43NFqiO55B1xIh4BVU BLfMO6zQwVCzOYkuy1EmCSLcmKRqkjp7YCtiMye7IcSSARg2BeYFNHQgcxsU+wbOfxuJ RQ1EmCFGLOd5scx+IvGKkultqYdffCPTyE/XDj7MXAEXfoxdTBCzVCsOH8VqXVgZINla JZouCjzmb91YILhrhaYnpAEidU0HHABFe3287l0Nu1lNCVV37hr3XWDgTna5Oc00W/mw WIDKgt/GvhYIsRy0FVmDrQl3K/73hC6Hp2kQXfc2WrAubhvpcm/uuyCmZg7AlfXoczrZ hx2g== 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=XI4I4PFL7ux2e5iZDFcxqC/7kGl6roMNNOYYfyEidu4=; b=Uw96QR7a18ngBnzJOKO/GIS5eRGvyV9ec0W9QZ1bBpDf6zdR+NfXa1tDpBQekj8s/7 eRV0Bz9Kf6fmpx86bugErbkYXuUTpEFKMjszS5oZWmVIX16Bir+IEJtjnDH1uVAjpuuc kOXAnYCvN3GyJRHuks9aElqB1FlXQjRZKb2cYNSEgEmcJ2jfwHn1ocf2xx9vuJCorzjf NLsPnwhgLm6X0UpGDeDEBSm5W88LpDE3RZljnNHzoDJ6hF6AXJpxpLNxRPDjllonlOC7 /3ZIHUgJjIOmwVgrQEKOUFEUCDfgHYQcCg6K8lhNKd46C9/Tagt0+8rPbitZLLVEkc6w QCOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=DNDDi7Zg; 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 v5si13620981jat.27.2021.11.04.21.26.19; Thu, 04 Nov 2021 21:26:33 -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=DNDDi7Zg; 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 S231478AbhKEDW3 (ORCPT + 99 others); Thu, 4 Nov 2021 23:22:29 -0400 Received: from mail-dm6nam11on2123.outbound.protection.outlook.com ([40.107.223.123]:21793 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232145AbhKEDW0 (ORCPT ); Thu, 4 Nov 2021 23:22:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NgEv00ozkhRHDeZwTf+4j/xJ1KAiSkL7Fb9poD067vxmSjs15zr2zn+RKpg5lA7VuDE0aALFYgSq6cazfW81cAdjw6OLQuOYSLmy1G28aFC33QvCj5EbPfS12jlMoq5tKpVRAhRM3MGcfIeefj9K38ulncE1WggxwsnLTOR/X9jVGJ5Az0N8IWjx46S7yK6aZJ3ioL+zma9idUhYqAvLWHQS7WO76hL8ioxacwZ0aIRyGpJSgmsoLcxeSzeZEyDfiPYhkaT+v3fUk40YdzXM8g/T0ppk/x+5Bxj66lSJkqdKI26KdjiEhQ5hiuX2Zqk5VQW/T3O5VDv828Azmcw/cw== 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=XI4I4PFL7ux2e5iZDFcxqC/7kGl6roMNNOYYfyEidu4=; b=WQsge05jbzzYG8IHFy/jFvd05EsJPolUVaoQRfEQr5WK8To/HFtQXVRs29wDlJbOtRAT4mdzJXR7kwkzY0ppa69wzfUmJVLsbMJDAatrOFptTDHrcg4rV8FL6lVagwJpTQ8F7MD7kCu1kh9M9ee9Ut42/VU21KUFEk+mS884WpWH0cwoJcxmJDNvH7AKdHFD3PBi4rKzPB6TvE9YivZm5ddrpRlhaZ5pe45Vn8PyrA0yByCGXj84uHd2ay7RUr7cP+n9UQ2vjPt3LQuBhYEMllGzXi6gQwaykDGz/t5v8d5grC39BX3ixPwkXCUPUj9F6MD4viByQ7dGaFB1XxubBQ== 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=XI4I4PFL7ux2e5iZDFcxqC/7kGl6roMNNOYYfyEidu4=; b=DNDDi7ZgrnFI2SfUbeyF6xq1sFfmSUbpVyPJSeYJvbUkwdAVAgX3c4PcJtzImNAzz/M4N9S1jfsKUmkuQ44/QbOv9BgpGChw1qPsSK19vqmNZrm3F3h6F+0sFVDohpSZ+SH3g8g3GbyHTZbUHd3jTVMnayAxFEpKxapRUbcbqwQ= 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 BY5PR04MB6438.namprd04.prod.outlook.com (2603:10b6:a03:1f2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Fri, 5 Nov 2021 03:19:46 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::6807:22c:61f6:d595]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::6807:22c:61f6:d595%3]) with mapi id 15.20.4669.013; Fri, 5 Nov 2021 03:19:46 +0000 From: Xin Ji To: a.hajda@samsung.com, narmstrong@baylibre.com, dan.carpenter@oracle.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, sam@ravnborg.org, pihsun@chromium.org, tzungbi@google.com, maxime@cerno.tech, drinkcat@google.com, hsinyi@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, bliang@analogixsemi.com, qwen@analogixsemi.com, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: Xin Ji Subject: [PATCH v12 3/4] drm/bridge: anx7625: add MIPI DPI input feature Date: Fri, 5 Nov 2021 11:19:03 +0800 Message-Id: <20211105031904.2641088-3-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211105031904.2641088-1-xji@analogixsemi.com> References: <20211105031904.2641088-1-xji@analogixsemi.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HKAPR04CA0018.apcprd04.prod.outlook.com (2603:1096:203:d0::28) 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 HKAPR04CA0018.apcprd04.prod.outlook.com (2603:1096:203:d0::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13 via Frontend Transport; Fri, 5 Nov 2021 03:19:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 02a55071-eab8-4be7-8244-08d9a00b1e38 X-MS-TrafficTypeDiagnostic: BY5PR04MB6438: 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: XlBSAm0x/+5/HgVqaW5juC3HWfa4Sv940eIzE6/o4R2BHv1aRuh2QcqcJT2MavcgMcUNubrYULIldQMXOuJappYx5kk5KGRnGXf5+0+FT5DFY23bSXSES9azqBKmFenR3pdCDGYhyC+1O7yhn81dqm/EdBddOzAbbON/FHLzQ3hOrwVc1VYIuIRSjw7Tvq6ex/TZbkvqWags+KnL4MTCmL6userx+YA1sRHcw8wp6Y4tZfg9TSqYE5uEoyltwijzGXAa1eci/2O4NXZhkguLnv9r1PTnOVfVXuFZaFuQ4dXs325ADSURmUrtUoYZWpR5WDrkJE0Vj6mhHG48cULThHqPQcYSEU/uOSmYQDMcptrAthW2JANxYIpqqrkvrgR181+4/BU9Ez24/8hzbhdpFd4Iqn1Ysw2HxhIchwOxRuMItnNM5UKqVoT0/zKs/gd9Y+64DN4mGFz1bFNstMXSHIIrZ0jH8KPMPC97jBKOcGw9TuuvvqQTHtEtHARSQnT7wFEvi6srNV6oZ7+aXifMr7Yzzch4BkRVO2DFGzWdMQVo46yXD64M8D9KNM4oMQl20ppR+jsjwstBTHKkGAoEKGXVnpStUA9c8ME80zItTnVjnDJlbOYlZTpLWacCQf7vOGK8SV8RNpVBt/fvsSxKvQ3Dd2dXJi7No4QtLHOwTSqJ5t9hNSd5tfjEdzdl+daZOxoZ708ca4IcK+kSdZZKwr7i0JgFD6irabzRpMH4+08= 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)(6486002)(66556008)(316002)(66476007)(38350700002)(55236004)(66946007)(38100700002)(8936002)(4326008)(7416002)(508600001)(1076003)(6666004)(30864003)(83380400001)(8676002)(36756003)(86362001)(921005)(26005)(186003)(5660300002)(956004)(107886003)(2616005)(2906002)(52116002)(6496006);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?sMojRQjflQvqkelwE36jFxl/M5LSq7CDOjqJHi4Bn9xnOX+2FgipFoKE/UCH?= =?us-ascii?Q?TN0X4VSlLFp2LktVMosqbERnpSLQSSbgvIz16qUpHBi02c1Eq6fAncIx5W0O?= =?us-ascii?Q?raLDqbhb7cZeC4Ap6TDpevCQZR2jks1ZQeZA4MQt2rXYKgx6Td/ZIyDkwv9l?= =?us-ascii?Q?Qm5+ACMyms87n1XmWz2/w9shgCktJr9JH44F4f/+RBvFUSKMc7HMihH5fXzy?= =?us-ascii?Q?9gGEeOeb52OJnjpaUOgOjuqkYEhDMtTlKkJspar1VXIwqVPXXtefv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cxMyLeBDT+PhH0/4UBkbcbZhqdT7qkEKyn/qGUv?= =?us-ascii?Q?2RheNeoDnmXXITWwH17w6/0qNFiUf8Ab5oZAWUVU97A2IHy3fqf3ZwS/ZM/4?= =?us-ascii?Q?ZFox5xB1oJBNcNPW4LvPyH+PrvdCOxf4pzVA1VArnbvpKgBtqwOxbiBrHK5d?= =?us-ascii?Q?euITimfi7E3/zClHzc8EUzfwE9+G2/486EVvFBEGX1v/wD40Czn++vDb9QrE?= =?us-ascii?Q?+KDVowMMqHuL8SGwYUEGPIexru+Ann8swx3nDZHoNZk1o6gA/ke5c4J69Q9l?= =?us-ascii?Q?5X2whjHnAQBwrDNkl4jBihcbbl/ZmevjanNsqfwkwbv+sec9OoOuaefke5Dq?= =?us-ascii?Q?FDzK8V1Qut+7moPJ0FK8ErTmsILzcOjGE+qJzSJVwW+vju4s80QpWAvGGWJU?= =?us-ascii?Q?ImqqK4kXAbYc+PyaS9Zb2CqoSvoUUfIn8yVXcqo2bjCxJjNMqI9W4vw1pdov?= =?us-ascii?Q?ACTkY/5Ajkqj30U1QB3WUxs=3D?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02a55071-eab8-4be7-8244-08d9a00b1e38 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2021 03:19:46.3283 (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: 9OY6orgxOCM8b0Vh1PB1M+vfH4GUyLMbkPshGOC55nUVUxhVQ7Gp0lB1fCEbkNDAfHVZCP2IHXZt9YJcD/nuwg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6438 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 | 247 ++++++++++++++++------ drivers/gpu/drm/bridge/analogix/anx7625.h | 18 +- 2 files changed, 205 insertions(+), 60 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index f48e91134c20..f7c3386c8929 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