Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp989190imi; Thu, 30 Jun 2022 23:59:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1teffwHWNIDFlKhA6NfX3HZyI4IvBceOFkim+dRScDynVNZMsu4AgJvjHSr12YYqa9zPjD9 X-Received: by 2002:a17:906:77c8:b0:722:e753:fbbe with SMTP id m8-20020a17090677c800b00722e753fbbemr12352639ejn.692.1656658788810; Thu, 30 Jun 2022 23:59:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656658788; cv=pass; d=google.com; s=arc-20160816; b=dw6B4iUoJ3HzHQd8DaD0oeAbZfhWtgN1mSB/+wPZu6VTdnqwNSKu4SyVtvMeo4XfQp zRpjNNfDI8LbgX4JLFWG+rIkjo4Z1c+X3swqGPDvuicLDRB9CSEOsSK5pQZtbhP1bngY Tj7sriPJc8Q4LrGr5/TlVMSPTz5uZPz6xYZWXBhtKesgAXDPFHGyVsv3zKklIfp5KgB2 Fvd/jb6s90iGk88rAGFKEMV51+NhFxcQQVYvVQp54jHmwDK1AuMoWQuM6xRdU69hyx5Y xVp3ZG2KIfIOOB8jm8elNeV3SwQIoRZOdNTZtNG+vL/lHA3L49sV/UOqm/AtoCLphNUX +16w== 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=jDgraNn+FmLRQ89Ejl4lOjbe2AAp07kxL9TYXedwk6o=; b=RxJGNaNjgksb4urns9ev+jPow0sELxF9kvLl6TgGTkim1Ty2gAxFf2uLrCZ8NH7evw CO7IabFXzl8Ka9pjWrg/aCYWPySLZRi1dooOE6Ii22Qj+S0R24CB+QAOI4qMmWb0+NCO YqykHEP1wUsOGi00diU3IAqpKDG65fkQWzGbSGr9psq/VKicvxW/hK8wI03YEF9fu/bu EwxLShgZzyDAoJ2/4eACWYW03Jw7wwDFt+w0kEuZD8xufGW7MNyAO0J0reyyWZhAQGCE qKg9nR3usAWsVnG1OWuVZ/DLLu1vjl4aFwT2eUUDf2agnk+uA1eUb0zEzxFrtcPdz4n1 9gpg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=bIP3rIyC; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a0564021e9000b00425d8c9efd2si31889243edf.152.2022.06.30.23.59.22; Thu, 30 Jun 2022 23:59:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=bIP3rIyC; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233709AbiGAGzN (ORCPT + 99 others); Fri, 1 Jul 2022 02:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234854AbiGAGzF (ORCPT ); Fri, 1 Jul 2022 02:55:05 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60088.outbound.protection.outlook.com [40.107.6.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0B7F6050D for ; Thu, 30 Jun 2022 23:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gzw/ZN4PBCaJhsBml+iD1fulq+XxkoFV1o59hkfEEYhZgotu9YZbbv4ccB63490Wo+U+3Tye/dY/g7Qt9vlojKxBRP1uaeJ6Ugl6kMbWLG2qS4vlpWutc4qDxmryEEVP4Ra2LonjXNXE94jyjI5kr7yEm6vXuudLlYi8T7ic4ge1Uc/i8zDgEwpmJqKrV1pCIBG07tpkOuiBVr1wa1D238vrYBJgH68qKQ/Rn3shD/oUPDpi3vdtLaOLK5mF/LfKDRsW4kd3eVmyJL57PAjlh0OKoRZ0muy1l5eRrZd5QPfkFJufwyNZJSiyAro3UIdLPsb7/aNNs4WnY0+wvlnu4A== 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=jDgraNn+FmLRQ89Ejl4lOjbe2AAp07kxL9TYXedwk6o=; b=Kq1A9Q8ku4WoyGW0kvYCLUDXJ5KoopiE0uLkps82TpfyzFnCxdYycqp3SBTq/LuYqnHgRB+BES+iJsVOpwkqbOjzcanHmUGsc/TW+HxUbjTR++5Cwg1ky0SjIAnskQn4Kty6aWwEg6JCfnQ1miOvCnoBEwAUFQ6jGFCggK17SXWmtG1ldpzDxqDMGAKvD1uncfvfPU2uaelH+uZGtV3oUVZBqOiu/3RTPeEW/y/92SLFTyootvwHSg6MCgsctddUlqbP1q8q26SwB8dDnpkOIxUjsuZy9TzWsdFv6uiUX8ethIaLvhOwU9xPnKibEq75xj7jgiuC2uZKD5UWtypMwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jDgraNn+FmLRQ89Ejl4lOjbe2AAp07kxL9TYXedwk6o=; b=bIP3rIyC+0lfm65yQ2Sp7zB7pNOvPqZTI/476E8lL1dpCytegy9oP+eHwgld+D6F2Rn0yz+jBpF2TfPzgWPFdvsZhyiuqihUBjUrOT2dsklA4S9z/qRDkJH+Vy48zhiShmQWTRM/DA+MbseIpvjCkE0lXE6jRtQUReJ83LMiP7M= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by DB6PR04MB3270.eurprd04.prod.outlook.com (2603:10a6:6:11::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.15; Fri, 1 Jul 2022 06:55:01 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::416e:6e99:bac6:d3a9]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::416e:6e99:bac6:d3a9%6]) with mapi id 15.20.5395.015; Fri, 1 Jul 2022 06:55:01 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: andrzej.hajda@intel.com, narmstrong@baylibre.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, marex@denx.de, linux-imx@nxp.com Subject: [PATCH 2/3] drm/bridge: fsl-ldb: Enable split mode for LVDS dual link Date: Fri, 1 Jul 2022 14:56:33 +0800 Message-Id: <20220701065634.4027537-3-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220701065634.4027537-1-victor.liu@nxp.com> References: <20220701065634.4027537-1-victor.liu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR04CA0013.apcprd04.prod.outlook.com (2603:1096:4:197::6) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 00ea01e8-3e17-412e-e445-08da5b2e9e5a X-MS-TrafficTypeDiagnostic: DB6PR04MB3270:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eTBcjM5LRmg2YVZiphcq/7RKMukyVDL1VPLIau90rKCtZ65JfW18znpwbNoydzNFaPxhF23T4C95N1cYytzBdHmed7T4g1a6YB7mKffMi4EOsQgwp8p/poGaa8JdnD/0PTwP+DxxClcFSzZrs1txUmAfmk/waWoN+kvva2E6lGwSOLRLKVd+0/nDLbMDDRM1x7HzLxy6BBm/CRmmA6XOBvqx/pTzyzTi3G7DoQkOmVbZudRFCbUw+PSereywqU0Oax6zDutgYELxQ9R0CSmj6jtavm2oYKuXEvWnGu6NdeiN7ugG5PdsRW5pyuKFdG6V5Lb0rEugvL44c3g+wUiy7sw58dgL5gzcHXxc+y/TNU2hIrYS1vCwwmqH8xDYAQSGUM776lU9ZRWd8sSQGnpfVbnqO9jjC0jB2tCunJryvlnJjcvpfFrJTGCoqqH1fpZd12A4KWGYXLmXq5j8niVz1I5HnLwEFeBzqXhPN1JUlf+5+9RPUWNUsloIxS3i37qnp7djBZNY2D6GGeDjk5QoNXQrWDZHnCwsKX9qQZZ/4kDLX0U5pb+B131rzseUGrH/4Hs31dpxurlDKLBd4o3XZa88OuLG3ZKM/pS1XxJXetn8nIZLUkVO3QnbHf4LvSzqIkg6Q3ojkBFDTBsH3Qqaz5PkKvWdbjt+Bu8Cle/lvRJqVVkGj/W0co5gmN+/8ieSXWPQYfNd1hyNhYZFLkg6KGBeIfOyNpZ5xQ07cv0cxe7avjhYE6YgqqVvzzll+MyCS6pifZ/xhuRFimjX05UOWVVWy3bhptjZ2FgcHoS/ivhwG7O++NUygFgtcaqfHUXI X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(39860400002)(346002)(136003)(376002)(366004)(83380400001)(2616005)(36756003)(2906002)(6512007)(66946007)(41300700001)(6506007)(6666004)(1076003)(52116002)(26005)(186003)(7416002)(478600001)(4326008)(8936002)(38350700002)(38100700002)(316002)(8676002)(5660300002)(86362001)(6486002)(66556008)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?+T6yBlviI9eNlqdRy/oB9q808VmBGkiFpJNxk32OAERvN8IHPZ1/OcaUEOm6?= =?us-ascii?Q?1Hy+TgDUzO+lbw74BCRYIBcvQS7sNbXBiOGBmo3kHG/12is1D+NoaFwP+nrn?= =?us-ascii?Q?BTtnPAhowVMDvXip6LL102ndzdfZB2R9pMXcNnvuS3k1tdb+hc7noS1Pf7he?= =?us-ascii?Q?ak6Fgd0z4odygjTW1aXVnNy/unC0rVcKIZPcJIdG/AIbwqopTd0TMwHdcw1V?= =?us-ascii?Q?s+3NAkE8wozsU0JiSkl839kr5DPll6VXUyL9OxKrDd56kdGVRSY8IXrdZFkV?= =?us-ascii?Q?AX++jak/v5RJxx1mwjSyU1iPZWvcirtvJeQrMArTVhmGbIPXlM0CmCpxSENj?= =?us-ascii?Q?Sl7WHOlgQfsnO9vzMlparFf+7VMZcpR6/9JdTRDiCuf4BGlYgKEj5Nx1Ue35?= =?us-ascii?Q?1zeoI3hAUTs0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vyoo0kEih3YAtEFJ?= =?us-ascii?Q?goFDSGnROhWrgf5s8aqKz8/AhFSy3OaFrHGT+O7ZXibilFvQHLRoEpXNs/cM?= =?us-ascii?Q?lIhcQD0cM3WjyJCSgo4OS2IN4SQE6nYyQCIwGG7VJRBFQHHe4ckjEO9kuhM1?= =?us-ascii?Q?HO5OkYStf6SWz+0iFie7lxXI7WOUv0UPfgiwcoRoUDmmp+4HgmtPpXNzHC2V?= =?us-ascii?Q?DpBfkn5WhVn4ktiBU4AAMvRw0c/JZtJq4EXpPFhi5xxy+ROWWYAhIIDY3xBr?= =?us-ascii?Q?aTVbQ7R82+2yKVcA5Ibk1vdgHZMdYd1MZtdWpifH?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00ea01e8-3e17-412e-e445-08da5b2e9e5a X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2022 06:55:01.2694 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: THgcxB8YZPBREOL0GYGp7rrVMq4Tuox3LqzN2wB9BvCWg/3LC3mFrBfmqDG17s2t6zeBAPq8Wv9ksRrLlpAjwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3270 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 When LVDS dual link is used, we have to enable the LDB_CTRL_SPLIT_MODE bit. Fixes: 463db5c2ed4a ("drm: bridge: ldb: Implement simple Freescale i.MX8MP LDB bridge") Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec Cc: David Airlie Cc: Daniel Vetter Cc: Sam Ravnborg Cc: Marek Vasut Cc: NXP Linux Team Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/fsl-ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/fsl-ldb.c b/drivers/gpu/drm/bridge/fsl-ldb.c index 3cb3b310e283..d4f005eef6f6 100644 --- a/drivers/gpu/drm/bridge/fsl-ldb.c +++ b/drivers/gpu/drm/bridge/fsl-ldb.c @@ -153,7 +153,7 @@ static void fsl_ldb_atomic_enable(struct drm_bridge *bridge, reg = LDB_CTRL_CH0_ENABLE; if (fsl_ldb->lvds_dual_link) - reg |= LDB_CTRL_CH1_ENABLE; + reg |= LDB_CTRL_CH1_ENABLE | LDB_CTRL_SPLIT_MODE; if (lvds_format_24bpp) { reg |= LDB_CTRL_CH0_DATA_WIDTH; -- 2.25.1