Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp812333pxb; Fri, 22 Apr 2022 11:41:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzD/xzu1uW49Fupj1Ifa4NVZTUUOv9S3i5TLEMam4QI9dCEa6e1fJ8FiNo+ajxwVZdQYA/ X-Received: by 2002:a17:90b:4b45:b0:1d2:713b:637e with SMTP id mi5-20020a17090b4b4500b001d2713b637emr6957677pjb.38.1650652895398; Fri, 22 Apr 2022 11:41:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1650652895; cv=pass; d=google.com; s=arc-20160816; b=MphCH3ETZpLROb2yqkuUyfNWQq8z/UAEC7Kp8EFduCTadV2jzNXI3Qitr/2sCBoKW5 hq40M4zLLmpRhtHt+YE3vl3X4vPatH/LY82kRgkTMp5QhBAMtz/3O7RpFoc7cr16X7R4 j53dckyY/h0yiw9Q6V1jSjL1FuOnSb5Ber5CuD49KlJ+mm1NA721sadZyGPB9HTBKmY+ IndCTsHJd2QrbSos61wjMLPFh2nBBXwVhYWUUu7d/LosLL4Yvh+PVz5jr03OfxuQijc+ MiW/LCrmIZ964D2/zGeKMQ8N2KxjUSXKq+Oqqadrp2SrjLUll7DYL6VJicPLSkzJWIo0 qmSg== 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=j1/z3TyVl1mo21smyh1h9BKGDHYODA2+RMSKD5e+mtg=; b=lW6nA7t1rLLBiKXSZlOa6wsB/P8csMp4R/7ksmzBmnojGPlHNVG/vEe+9v8FwwFTbF zZTsFR55savnBDkE0cEgzndBb+HKsILLlWTFdhYgIN+YpAcF6S8k4VlaAUfK3/DHimnA ZTyY5VEPlBxA+xhqtYTeap52XnEODkh9StomRKGUjr/+6+j7W8xEw+oJYCCtsp83ZMiv Cx99Dy9MKoSHohPR3oWGjGtF3gP17026pFizDwcgTG9x7XiMqHNBi1F9BuLEo0Cd/W93 vfhIMLSFKAyWaUjUYUTIos99PCGo0vy//Nf4pGaYbF4mn0lbGYgURRSCK2Nwj1hF2xpY NndA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b="kY0vd/NX"; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r1-20020a632b01000000b00399632a476esi9223045pgr.686.2022.04.22.11.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:41:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b="kY0vd/NX"; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A12DFBF95B; Fri, 22 Apr 2022 11:10:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1445651AbiDVIwE (ORCPT + 99 others); Fri, 22 Apr 2022 04:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1445629AbiDVIwC (ORCPT ); Fri, 22 Apr 2022 04:52:02 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2118.outbound.protection.outlook.com [40.107.95.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11B91532F6 for ; Fri, 22 Apr 2022 01:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ki9zSmzGky1iOM87teC0L3LQ2Ci+n147S/AHWbq/OBsHyJtFSTv+JpNMI5zO2aSLX8x/6/y3Bz5gqQccayUMQdSIIGnFzyEjc+PgLb3L7Iz1RYwxxnSwatwSqLHKYuNfT0Si31y/fSBbXNNJXMlZPgx0zG8o3k3J6yLIyIXgs8hWyvjYDrL5FDquByfhxs4DUgNqZ0g/pB7ZnAi2p3hDsOFpw1jVugPSdIKM/iOafxVH1UT3w6z3C+rb0nwEhhGL5m12wfwCjiY40MtVnSUZ4SR9zWclgFcOH3CUgK4F2dGIWmyK2FodlWcDi/R0EbrLxaPZcZ85fo2RDTQ4CvGMzQ== 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=j1/z3TyVl1mo21smyh1h9BKGDHYODA2+RMSKD5e+mtg=; b=aFuZNetoU6KqH1Ke7mym60C54HIQ6FFToR1KqtSvDA3f+83BA7cuiv6FbIr6Mf5qFDV2cRKGD4J7LOb8uYVr9ogeFyph9PgjheLtCnGR92Up+jrX3oGlV2moG+Z5obhgnj2Z49YIfYaTX5fVmfiJBrlOI3hs6foaYfoqZxye8XZqR9BumUrploefUYtjQAjx5xXnAu0Bnf/EgyCXYnYut+vCuZlblcJNyuU95MznKuZzdJjQcZ18wQRqFGZG/Vy8sSMILFiaGKMkCld3WSnanj+zo4M6BGqdJJf/Qaw5MhrQgNV2N/T1eWnTgiGh+ZsNqpmdCjl/Cam4K7H6oXYlJg== 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=j1/z3TyVl1mo21smyh1h9BKGDHYODA2+RMSKD5e+mtg=; b=kY0vd/NXztaIXavblr3TilbjVHJqN+/aILL4kZfpaFPkaAPCLmudaL0EH9eGmbZrZr/jxg+T5R4Xjk0CJQx8xQHAy78wfX/aNYL82NJh6c41a3Fa5iYTQnGHGetnkX2D2/FgczwV2/FBZbGazI/LWPBSNT0waiW5KRh1myE6RDI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BYAPR04MB4598.namprd04.prod.outlook.com (2603:10b6:a03:55::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Fri, 22 Apr 2022 08:49:07 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::e9ba:4c90:6e9c:39f]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::e9ba:4c90:6e9c:39f%4]) with mapi id 15.20.5186.015; Fri, 22 Apr 2022 08:49:07 +0000 From: Xin Ji To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Xin Ji Cc: bliang@analogixsemi.com, qwen@analogixsemi.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] drm/bridge: anx7625: Use DPI bus type Date: Fri, 22 Apr 2022 16:47:18 +0800 Message-Id: <20220422084720.959271-4-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220422084720.959271-1-xji@analogixsemi.com> References: <20220422084720.959271-1-xji@analogixsemi.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HK2PR04CA0084.apcprd04.prod.outlook.com (2603:1096:202:15::28) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d5c4547-97ed-42af-1923-08da243cf632 X-MS-TrafficTypeDiagnostic: BYAPR04MB4598:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5/1eFNouHS4IrCs8IbmRQbDD5bPSVN9R3V/bL75M2u5GqAFs7L1mcQZPNshlS2fJ7N7T/Gv9f7MnSIZecvNp6okgLb0CfDCxQFfbHHfO+fjBl79m6M9RTevMV4EPrEmWngqD53wp7A7VT7Y9uCxEOZ7RAydqavYLFZad2++Poy5Uoh55w4ZAS5yoImuyHbLhboFTO+JwDmSBWUyqhsBASVxJOyk83E1JB1vMMW7jJg5A897xODgyMWbvavHNL1ASujFvrvBPj3LLgAmJm6cXNu6HDYkYEq2Gdo6KdLgahPWMlaTwQR/8+WeCJPFE8an/DwYyLhpVal2nliRVP0NyCTkBfAqNvHu8vmELcr7aBFIAj62xaWTecFhGl3BzbanGrq/6NcjjVyJIiUXfCZjbM5MBSMG4sG+Ea15NelwfvHKrvRFLpW9KookKWNavHybo3gqIOimHPiWRmoISojPw422kUnu5KSPMWBOrJHmC3eIOh4tPOfdClIEN4zSrnM0XLkGpNpAfqC6mEnCliyudRkHL1mB/6JlRYQYmovXPIvOtXW25wjn3FhyHYB/xZWlUM8eBUY6n5osYvMTAIz6VcUrhqh8pMy7aEJrDkMHvr6w/JgcWLbomFao3OxNqcZKZfP7JV+RItdaFUNgfZ/rxh74caFa28lP22gJYINnyZiYIJWr2/JnV1+GcEF9wTJwQBFvQmAQ91b6LgETLznjMtKvqSS4gDO7KZNZaSlvCWHQ4DFDmCPzfIPkLKjFoOeTk 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:(13230001)(366004)(7049001)(2906002)(8936002)(110136005)(7416002)(5660300002)(38350700002)(38100700002)(6506007)(55236004)(508600001)(86362001)(52116002)(6486002)(6512007)(6666004)(36756003)(66556008)(66946007)(66476007)(83380400001)(1076003)(26005)(186003)(4326008)(8676002)(2616005)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?0QwktS8UKK46Wt4DImlN/RG6NOqt9MS0/mQhrIdM6A0+HwjeLyhFzEEWSVW4?= =?us-ascii?Q?pqTRk9bDev7yefDtkE/0Qx3Tq+rzqyAOBgbEZlvC6M5i/gJ3TYx6vpUl/gGB?= =?us-ascii?Q?ulIK4Js4IBHVN4UIc9bkFy94DUnOFTd2qDHgiW0JnavdMO8GShtFwcpJaSb/?= =?us-ascii?Q?vhwokTH+vbVezc9haIGDaM+OIW/c4TZ1BJRh2EizKQbySk+IIPv9rFbYhzYK?= =?us-ascii?Q?5jpzbo+EOFXEfJQYwJ2ALfE6j7dW8nJevhQ/+FD/p0c2yPQ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rqe8Kewsizn9Pq8YfglVDEOxzRyFitI/3rlGY9?= =?us-ascii?Q?UIE2DokhWETedQwKmQueX5rERD5eYzY8lp0DKMc5eVYP3QB2ozddiZfJfjPT?= =?us-ascii?Q?F5vC3D/0z8vnjYytz82JZ1yR5d0bxgX0juRCxQeUdHZ6EdPuxLZH9VzcrqK5?= =?us-ascii?Q?jXVz3242YqkyoG58y49MbabCIoByVhw+vxMph1jHNo6oCTtruScS/28UodWs?= =?us-ascii?Q?c1pKAF2yUSbz5MHnriAilXoCMehaUqvUiA5e+CFz4OALxr+NlblC5DfxsVWk?= =?us-ascii?Q?dM0xNhFTLigMne9JPfEl5+wiC6/5GWHrZIbXXPXJOZn3NnFPaob9+XRkDtkE?= =?us-ascii?Q?+ENnRSbPUxsc1AQwinW+KWEyNxytTGwbmjD8/JcWnyOzkxbpBvIYq64Avl9i?= =?us-ascii?Q?yrejmQT6Xr8QgeP6wFkolhKX2GWHSzwkeL9uG6egiXUSTShspsj8zIvfAAZo?= =?us-ascii?Q?tYQOrTdTE39VnfTSgXoILNBhd/apt8OzlBV2sE/5kUSbbSiNR0QIcv/8xj0P?= =?us-ascii?Q?3B/qEpUdvxE5HORviYhTE+9v6bMgvTxaU1zqkf3ARWbqOGFmJajO490rdw+7?= =?us-ascii?Q?cdL8AiDIoQ=3D=3D?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d5c4547-97ed-42af-1923-08da243cf632 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 08:49:07.5337 (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: owEC14ILyYcfpYJ9sHY0MnE7M15eZBGB69DMFFnax334JTGi5OZxoFcFe51Jpv53OuovUPVeW283neNu5shi/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4598 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As V4L2_FWNODE_BUS_TYPE_PARALLEL not properly descript for DPI interface, this patch use new defined V4L2_FWNODE_BUS_TYPE_DPI for it. Fixes: fd0310b6fe7d ("drm/bridge: anx7625: add MIPI DPI input feature") Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index 376da01243a3..71df977e8f53 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -1623,14 +1623,14 @@ static int anx7625_parse_dt(struct device *dev, anx7625_get_swing_setting(dev, pdata); - pdata->is_dpi = 1; /* default dpi mode */ + pdata->is_dpi = 0; /* default dsi mode */ pdata->mipi_host_node = of_graph_get_remote_node(np, 0, 0); if (!pdata->mipi_host_node) { DRM_DEV_ERROR(dev, "fail to get internal panel.\n"); return -ENODEV; } - bus_type = V4L2_FWNODE_BUS_TYPE_PARALLEL; + bus_type = 0; mipi_lanes = MAX_LANES_SUPPORT; ep0 = of_graph_get_endpoint_by_regs(np, 0, 0); if (ep0) { @@ -1640,8 +1640,8 @@ static int anx7625_parse_dt(struct device *dev, mipi_lanes = of_property_count_u32_elems(ep0, "data-lanes"); } - if (bus_type == V4L2_FWNODE_BUS_TYPE_PARALLEL) /* bus type is Parallel(DSI) */ - pdata->is_dpi = 0; + if (bus_type == V4L2_FWNODE_BUS_TYPE_DPI) /* bus type is DPI */ + pdata->is_dpi = 1; pdata->mipi_lanes = mipi_lanes; if (pdata->mipi_lanes > MAX_LANES_SUPPORT || pdata->mipi_lanes <= 0) -- 2.25.1