Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3556540pxv; Mon, 19 Jul 2021 03:12:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdMGMsYbwHZB0bOKVqcm72ZqftPdyrWUGa5cUEu3eCJY8aRBaqHzvupiehoYX1I6VT2YcL X-Received: by 2002:aa7:cc87:: with SMTP id p7mr32635255edt.82.1626689577650; Mon, 19 Jul 2021 03:12:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1626689577; cv=pass; d=google.com; s=arc-20160816; b=IRNeZBf6Sm4FMnkcBfefR2M4CHnqV6dPs+E62NmXpFR71GKMMtKG7DoQmMoodSj4jr 7p4G9Xo9/Y7kt6Wp4IVakKDGWhHPoW1W/AJgDzBBxDLzqvSE5vBKoStjgYMCtQ1m6rUL W+IdTgd7xdCuYfi0ZtnaOdWFwccSP2n4H4ZKTFjG6TCVnuiUjb/WE/41H9gJ2BQYufGn F5GqQrHVGIzpH/mHMxz73m78vGdLv6KZYXf3OmeMR8hrr2/j2FW1kYf0P450w6kx9giL /bEbgq81v+V+bv0P4kuzQ6PqscwswdmD3b4V8Bq5eBh7DJntFSMANY6bl44FrsZePaAN 1pXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WK457TO73F0rwyAxU0akP20K4bNjGm10bjmEtmBhRa8=; b=ceJrjy4ZyIRQMGYgPYQSZwj8iDlIF0vulvsfzM0PmohGUTGPZ6mPHyuxWNoTVcgoqB hYdJJDj157urhHcfhEo18X8gs5G86jdQoavuq0quS/LKK3nx3QBvd2HuWP8Gi2LgGZZt /2L7X7qUFlf+G3mr1JovXAAjRmMOAFx2TRq0ZnJ9Ob4510VCUSqU0TzQxtV5KlTd5iVQ yMh8yFKfm4XRBxHiPL/clYVVCFlaNaLHJddEfmQj/KppzXTUKybK5XTMI3/4cnnTjJgr jfAvaKPmsvG1bBI701y9ACSAcR7qNKKXuo9zAllh1jkvMpEiy253iKbSkat6QIPr9OfM 0mzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=ZUYoghXT; 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 g20si19773217edv.570.2021.07.19.03.12.35; Mon, 19 Jul 2021 03:12:57 -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=ZUYoghXT; 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 S235929AbhGSJa4 (ORCPT + 99 others); Mon, 19 Jul 2021 05:30:56 -0400 Received: from mail-mw2nam12on2104.outbound.protection.outlook.com ([40.107.244.104]:17633 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235713AbhGSJaz (ORCPT ); Mon, 19 Jul 2021 05:30:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kGIRP/hqUIJlSdSJeYATDC5UWUr3q5iBRowEnn5jFnhN7yK1KUnJZO14jnbqNjH3PPUWRwtyyvpu9db7jhqYJBe2cUH1NrHWlIWQLjz9AjWYxsupZgkO2ZAf4ujYJvtgZ29HidutoWQ5M9yiQ07RI/I2Oxc8ZjqtI4y4yscoExx0/+55FvdP6N6gdmH+rt5q1K1suJH8aGCGDC2FXSab7erWdGsnHLITwJ0LD0nQvHbctDzfYMFNqtNzKCdoE3hdUA1xcfnpNiV2/CvKMm5Dd+t2DINgYoHBqW2/TEH784MRyDo8tQrLvwVUNwENkcctVDcCTMsUGAe7SrxxbauRSA== 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=WK457TO73F0rwyAxU0akP20K4bNjGm10bjmEtmBhRa8=; b=QimPMocelqr9oUGh/IfSVhL1VqIfyscnlZng45ANG5REsL3RsRPdqAZi2U1e64Ub43xUU7DsBreIh8fUMI1NjfhTp2CqTokeQh7Id3ZXDpaPSyALPEmnOPXs95kZOl3Fo/HWDBg4HHQcBXbjXcCOBwBvzJxMYS4LGVGMRvJsha6dgS/abgO7uPBnF/XOx/T/pSGc57at5xlMNTZHFd1XGz9wem6SqQnhmiDj+VyumcHhl3RidLAApAj0Raebn6+/RhXJuyD9b4O3Uq7UWYJ6LwcGWtETRATfD3AR7/UnqV61T/TUFE6P9DXTUpzrYtPvgbG+6p6JIofKe8uES5AJag== 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=WK457TO73F0rwyAxU0akP20K4bNjGm10bjmEtmBhRa8=; b=ZUYoghXTHjxDKQKXnDAn5N5XDeWf+JeOVJ0oAl4uht0HYLJgzdr6qLDzj9AgtpEPROA2ZbEsW5cbsJKJhO78XTk/C0DEW/UmqtV5ug2TDYxG2P82tSp/aSRwQ23AOHSbT9YlsQGbBnRQ/g3yO4q/cdgAQlAgL7ks7xpmXk4v9nU= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none;driverdev.osuosl.org; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BY5PR04MB6568.namprd04.prod.outlook.com (2603:10b6:a03:1de::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Mon, 19 Jul 2021 10:11:34 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6%4]) with mapi id 15.20.4331.033; Mon, 19 Jul 2021 10:11:34 +0000 Date: Mon, 19 Jul 2021 18:11:29 +0800 From: Xin Ji To: Robert Foss , Nicolas Boichat , Andrzej Hajda Cc: Neil Armstrong , Laurent Pinchart , Jonas Karlman , Dan Carpenter , David Airlie , Daniel Vetter , Boris Brezillon , Sam Ravnborg , Hsin-Yi Wang , Torsten Duwe , Vasily Khoruzhick , Marek Szyprowski , Sheng Pan , Bernie Liang , Zhen Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH v10 3/4] drm/bridge: anx7625: add MIPI DPI input feature Message-ID: References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: HK2PR03CA0065.apcprd03.prod.outlook.com (2603:1096:202:17::35) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from anxtwsw-Precision-3640-Tower (60.251.58.79) by HK2PR03CA0065.apcprd03.prod.outlook.com (2603:1096:202:17::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.11 via Frontend Transport; Mon, 19 Jul 2021 10:11:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bf46cd71-c5eb-467c-3e3f-08d94a9d9630 X-MS-TrafficTypeDiagnostic: BY5PR04MB6568: 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: +bzqkejT07B1GqYyMohIcQLcObgJrKX9PwmAiXtFvg1jxramHLUmuZ8HpesFsLRSb6EfmBbLjX23dqlKcWhi3D02o0Fr0BBd8FdclegBgjJhIdUyCDrFnJPfufd5kYZ/IDGKGZ8ut7fnH+3f5E5NJkcK1nxY/MXFTzfbO4p2ThYufL450B8ThnpVRyny/D8ltFXteuZvjgonuB+y7iRIzNVWr8hhewqBG28KvVHHgFJrhYXJxnOrAIefDBfWIFwWGXv2DqfNq4HFtJXVgIy3y6WyNlJl86SDulSDpUL8g+MQCG0PSdvh56tPZtPxWxDnGSmU6kKaugSzVhpyH6JRLr8qOZ9I9TMX2pZI6H+g8qk0K+il4c180ocvJK7TKvifLO+VE1d6fTO2Lm+JvTSs1CBMknlEVoqlZrlme1UtQ6taE3Y1paBeREFYv40brvgu7daOemMpjJlD3vw3UfZkz3e8cG3wL2HCItbUbUrdKQUHXs1Cl9XNkooF1sw/Md8Zwl1QUZ6GFdaVJTOVR2QfTUImsZmoB+27xWMPq2b0kq2arcN/cRsMlyNnuyIVAbjDMQJ37e671rNr1nZnglCP5x76/2+UiyvurEnvkDBhZ6GigR6DzaHVyBvuzw0Sls+Kea4g+miEvJFvk1w/qr2EAU9PDNasRDLOX+d1Ll/bDqboQq/OevvSPaQvfnWTMXjxDdnoYk0s7RrNImaN0qpRKg== 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)(136003)(376002)(39840400004)(396003)(346002)(186003)(52116002)(83380400001)(6486002)(8936002)(86362001)(4326008)(6666004)(26005)(2906002)(55236004)(36756003)(5660300002)(30864003)(66556008)(7416002)(66476007)(54906003)(956004)(316002)(2616005)(8676002)(110136005)(38350700002)(66946007)(38100700002)(6496006)(478600001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?jW8Epkk6oajV4HnKlj6HfMgjFRYoXsPRRkc50DDZADVFY23NbSa+O8mivSJD?= =?us-ascii?Q?bqXqiq2lueRUGndjGemXmR60fn+wI4wpikHMTk03ueauz4K3TQOLUY7DCE67?= =?us-ascii?Q?/y7IW0AHXoXaPW68vzAojt5Wq5Dpj13qwKiQuruNTQXnfibqUu0MVc5riLau?= =?us-ascii?Q?6XPcQs4T3Kx2oUoG6EyqQ46UbQNcte7g5y/BSk0RuYT9W2m3CETdJeWiGcDU?= =?us-ascii?Q?L+uxcI5cg9e43fspF3k8yuCMPQqfJ9EAjyhToYBGHcWzdOJzK0OJMto3y3Eo?= =?us-ascii?Q?b51zEJxNySvFaRPtLEtgQS/63yQtHYeybL8dFp4z5oo4+4p668jKK5xxuJXU?= =?us-ascii?Q?pUSKLbh+c2p3ofCw69D6PH/7BMg3so7crSA+sZCQLxWqBlcadkeae3EZSSUL?= =?us-ascii?Q?W/kZtFFta5g9fATBs3Hhvq9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jzG?= =?us-ascii?Q?uLB2bIoVaIAnAX67Mml6URrd?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf46cd71-c5eb-467c-3e3f-08d94a9d9630 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 10:11:34.1562 (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: +T3IUaXtk7NdIGb1d7DscO3/oI/EV2ysz4MmmWwM1Tic0LWr7Me1le1zk8YkYDJGkqLDeh9MmJ4KdhHYupOzRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6568 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 3fc6b7ce7fc7..a5a20cc0f3e0 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