Message ID | 20230125064030.1222121-1-victor.liu@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp129228wrn; Tue, 24 Jan 2023 22:41:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXtpWY8gbZlQldohwGi3kaCBvWvg1tQMWunz6XO9gRvUgvO+QQHxXknnRkG3+yCypUO9UEEO X-Received: by 2002:a17:907:d089:b0:7ad:aed7:a5da with SMTP id vc9-20020a170907d08900b007adaed7a5damr35313609ejc.28.1674628881914; Tue, 24 Jan 2023 22:41:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674628881; cv=pass; d=google.com; s=arc-20160816; b=YXS0kci8HS8dI8lGZPkqh1fppC4Er3IYk5nmT+KFu5Y7GexgvT5yH25ODgX+KZBsQy udZiVSAfhtm+NyU8EbN3qcmYLdEGL41+9niigZELuk6Bbc060PWAnMDV87626EM1jaX+ gZHt8IbGd54cowshfEYbo14YGv3Wobqx4sluQGTgjZhkoNhiqDq4Z8D+3v1z8wMAzTB4 Q+1d1fvgJX/1VIfmoAXe1iH/EGvhqzJ+w+8oSKKVi2b4h2a8fZCg5ibcequINOJITAUE scASoukm6ywwV1LgLbn8c1+keN2zTzQoc+yUqkAfL142TMAsLtDjem2hYDgnBEp5S7tj JgIQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=dsC3lCnOTBRIwZzgatPgcp8D9BZ10Ds4TO6CXvwCmDw=; b=rlKbCFE+ewAzv2Yw9cNsntzGf1CL0HzOKwd3r2BDvXZ62kh3tgfMHjf4MwyorwYg2g /ETImzAlYcoisX0bhYpflES7rxcBtOjEmx3GDVynXVWa9fvZzwm7DJipU27HcEQ5ATCa giGORasu6YSPV1N0w+AtJmzxpbOoKl9qkdMHwkJC0i5EGMn68ITXnlLBwWAlU4RCX3iw V7WstEOI2elZBb4LxijU+HQQkQ5Atw/1gl4zp18Qnl1Vj3xg7JLuArZS59PZvrWvxuDQ rGlFmXePlHSVUmVzdwmIgqBQx3JWQd3VnctUMZg4BOrZPSwnjrtGuAR2Qqj125Nr7dxO PpeA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="akvmUWP/"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a170906518100b00878272927e3si1049278ejk.285.2023.01.24.22.40.45; Tue, 24 Jan 2023 22:41:21 -0800 (PST) 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="akvmUWP/"; 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 S234005AbjAYGj0 (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Wed, 25 Jan 2023 01:39:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbjAYGjZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Jan 2023 01:39:25 -0500 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2051.outbound.protection.outlook.com [40.107.249.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71920402FD; Tue, 24 Jan 2023 22:39:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OwLmh6Ee5UmVPX/NZa4Xr8YR0UUxx6sGSrmtxNSvYdfOEXMDh1jOZZp3aqRsQlg0IKfB2XY9uAOLxbSuA2/0R3B9jIx56TMA1N3PWj/zIxfj5ZuovW/Smur0WQeqB6A3evM0KKwWCdkOtEr34DzCQHi3E4Xky8ZSecG2N5477JWwS6II8DH69OLfa3I4SxzfA4MC2gOGsEFjbxBtSbej4hDAVnoKyknBOEnHYzcdWfNlPn3cp8XDgAelHyDWUz9bvMmkQiTDMRpWCziUaGeB9dqezesaM5j3sRfyBajgZqTOCcyj9gYfY8vg4jNXT0Ekaycd5IyVkEGccBsI9CYSuQ== 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=dsC3lCnOTBRIwZzgatPgcp8D9BZ10Ds4TO6CXvwCmDw=; b=LZqT7IRRwhRtiMdIi3snMmft0QQSvbXv33cfB89w0Qc/VrK4oIwH9arOVhWrtSQywO9Fe2m9ibiD024vkehXeREDy62l5z1vj59Yz8WLkhBd2dmQPFHX9gJ4Xbs1msJB9SeOwUIEIsEupdN9JXzpCSTlkhYMRSPJPx6LzkateXaOoQnJmfMkKOK7oFVhZlVpVMp4DYBevfikqyWgdVrLg+4G9vnF+5t1JMLAsehk/zlz2DysJJjCk8uDjn/+xv2Dw3ZQIZVkjB8HtLiz6CPRhzHSVk11UoaDblIMeFdQ/NB7JAdulfBUxiZChqjH9m2Eyy/4dER8oTdgIPYVea2ocQ== 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=dsC3lCnOTBRIwZzgatPgcp8D9BZ10Ds4TO6CXvwCmDw=; b=akvmUWP/y8jVzs86GyaxjNC75ndCMhE863iLdFRgRyS2p258jcsG5qh7rAt+7bNmtrdB/LVN7+tbz2dTnyUz03f61/A6oI4Ui1tYrXBoSO4XzH1rgWvLo3Z+DlruzeKOpqYR7FXlB9W2dxRPOX+0Bo6z0XCrRN3hx5mqdlvg1EI= 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 DB9PR04MB9425.eurprd04.prod.outlook.com (2603:10a6:10:36b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 06:39:20 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::5725:92ec:f43e:f5fc]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::5725:92ec:f43e:f5fc%7]) with mapi id 15.20.6002.028; Wed, 25 Jan 2023 06:39:20 +0000 From: Liu Ying <victor.liu@nxp.com> To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: marex@denx.de, stefan@agner.ch, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, krzysztof.kozlowski@linaro.org, LW@KARO-electronics.de, alexander.stein@ew.tq-group.com Subject: [PATCH v2 0/6] drm: lcdif: Add i.MX93 LCDIF support Date: Wed, 25 Jan 2023 14:40:24 +0800 Message-Id: <20230125064030.1222121-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0073.apcprd02.prod.outlook.com (2603:1096:4:90::13) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DB9PR04MB9425:EE_ X-MS-Office365-Filtering-Correlation-Id: 79fbfe8e-ae84-43aa-c058-08dafe9ee364 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o/ZId+8V7mXWZTJ3oEtOyzLRBRwqNLakmFuC/DEVnLhWLvE6V5jpNpAMixU5U/JkhgE/BvPP7LkzaoDqyDayZfYttRLPYQuOMH+4Hn+Prbs64HhIKZ8G0UoeGmCB8SPZuDIb83Pj2HYgy5A2MkYIOD1TeXfenVDyULzxYo8DcydaWnjqoFSQbzml4u/9cKlfV1ygwoOuc49UP3GlVaZKUgwlfSKxw0OlWx/86FmcqJKbuQ59d3nKBsmy/RKI5tigV8yVm56qAwGSKQlVJB1ke2wCGN6Bz8CSwjgMgni1R/QMBiDspOGkkw/jyZUbE5xNZpBYML+8bKlIBQqzr92uyLTgn1V2FP3bfewbjL0gBdwkJioIeWMO+Q/qeIEOV1bpnMNsecblyrb4hV981opmzndFT1nJ9oMu+hof30Axn4vCzUKVefdMbrXZKksZb1TlWSzmGrnHERJktn4rXjaVSOhoIEasK06UvkqnolXVWNuNzhsHCiWrH2KGzihJxttgTWf4K3+Kay26LY/BZ9g0gamW9SviPQHyJXAJLS1L1H8h8v68cnT8zylGAPTTmMSEC+hT19yzzQ4sDxbQH4lVjViioCHqEmfHJK1qJiOr+FNiV3iIYFoBxdr+ZFY3sDXPCEjUAUfeEKuV86rtq16xATTHF7heSxZnn8H0koegBSl1LVZpsKLLpj8KkHjZfTpA/F7HH/trHDNQdBPJSbbpnA== 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:(13230025)(4636009)(136003)(39860400002)(396003)(346002)(376002)(366004)(451199018)(36756003)(1076003)(38100700002)(8936002)(316002)(5660300002)(38350700002)(2616005)(2906002)(4326008)(86362001)(66476007)(6512007)(66946007)(8676002)(66556008)(41300700001)(83380400001)(6506007)(26005)(6486002)(478600001)(52116002)(186003)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IxFcdjHaIHTS7G2rD8bX1Zc1fPFBODZDfhi1FoiAf9Q3e7OsJyGHlxfm9KKD5koFzaVaT5OfBxbnIkDlO2/zy/C+fdVnN2RdOf0gMB4C1+eHuV1K/mNldKRnoXansBaqYxMo6Jnq16Bv6duk8PlQKoZpvLFHYG+D1ak5ZNbP61qTvpxW4KadC4XPceouWmIukJkBGIoBUfUS6l31TFQ16IO0ZmeJ3niDwCesuSqPXaACJd/H6xbLh9vYZfNkicj7oEH5aGc8lljG0NJEUIuuT9FZdaTPKvoiNX6AeljJRq7ka72rZvwnJ2cRJtzHaQEGgm1CsV0iCDZQgRuZh6QxYXfAyNjZcpKMJX69FkJGD2eBj9DGOkl5MkuWoMXdBpOWQtIWa3l6Cn9WAOye6vHp+/PUUesGjwSkB4IRRpc//rb0kjWV7gGyp+YPKEoz2XO4cCubqz+ScQfx5T8mU2JBw20sjauFWd/alk+yRwjKaApkULJS1Rtn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esIn8GGaur++OThbkZ1K X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79fbfe8e-ae84-43aa-c058-08dafe9ee364 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 06:39:20.2946 (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: 6AhsI95VX3P6bNSMdxfK6f/2AcSuwXINKujgO9En/QGReYrnEnamIvOnxi/iHcPjUPmeRq8t7SdMsTXx2I8cfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9425 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755975654102035656?= X-GMAIL-MSGID: =?utf-8?q?1755975654102035656?= |
Series |
drm: lcdif: Add i.MX93 LCDIF support
|
|
Message
Liu Ying
Jan. 25, 2023, 6:40 a.m. UTC
Hi, This patch set aims to add i.MX93 LCDIF display controller support in the existing LCDIF DRM driver. The LCDIF embedded in i.MX93 SoC is essentially the same to those embedded in i.MX8mp SoC. Through internal bridges, i.MX93 LCDIF may drive a MIPI DSI display or a LVDS display or a parallel display. Patch 1/6 adds device tree binding support for i.MX93 LCDIF in the existing fsl,lcdif.yaml. Patch 2/6 drops lcdif->bridge NULL pointer check as a cleanup patch. Patch 3/6~5/6 prepare for adding i.MX93 LCDIF support step by step. Patch 6/6 adds i.MX93 LCDIF compatible string as the last step of adding i.MX93 LCDIF support. v1->v2: * Add Krzysztof's A-b and Marek's R-b tags on patch 1/6. * Split patch 2/2 in v1 into patch 2/6~6/6 in v2. (Marek, Alexander) * Drop '!remote ||' from lcdif_attach_bridge(). (Lothar) * Add comment on the 'base' member of lcdif_crtc_state structure to note it should always be the first member. (Lothar) * Drop unneeded 'bridges' member from lcdif_drm_private structure. * Drop a comment about bridge input bus format from lcdif_crtc_atomic_check(). Liu Ying (6): dt-bindings: lcdif: Add i.MX93 LCDIF support drm: lcdif: Drop unnecessary NULL pointer check on lcdif->bridge drm: lcdif: Determine bus format and flags in ->atomic_check() drm: lcdif: Check consistent bus format and flags across first bridges drm: lcdif: Add multiple encoders and first bridges support drm: lcdif: Add i.MX93 LCDIF compatible string .../bindings/display/fsl,lcdif.yaml | 7 +- drivers/gpu/drm/mxsfb/lcdif_drv.c | 71 +++++- drivers/gpu/drm/mxsfb/lcdif_drv.h | 5 +- drivers/gpu/drm/mxsfb/lcdif_kms.c | 202 ++++++++++++------ 4 files changed, 207 insertions(+), 78 deletions(-)