Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3902214rwr; Sun, 7 May 2023 23:01:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5uUwwAat0FlDE6F1nit2ooBnaq7llkGK7SQprV/phFpSlBKsE504V3uZ9ZMtmVw3YsVthX X-Received: by 2002:a17:902:d68b:b0:1ab:7fb:aac1 with SMTP id v11-20020a170902d68b00b001ab07fbaac1mr9468859ply.24.1683525679273; Sun, 07 May 2023 23:01:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683525679; cv=pass; d=google.com; s=arc-20160816; b=vHBAt2cjr+dXrR7qk87TQ6iqv6QylutW8oCy/0KUKmSbfk8p7wZHAwGkFr1Vl5e7Jv MvFz/F/fIzu5Jjcr9+6joBadCtRzcRrgI1Mdfbd/bMKq3bKIrG30zuUb+3HxzLkvCCRe E6BY95uGoXDkLQ4S/ScE5EtanPC0eMzkJUm67sRCbpUfdUFJTKF6HpcYL1mTJnzcGyO4 JxDUEtXihIBPf3Da+0vbc+kKfsHBS6CIi4IOyBXT7eTTlQkffE3VwmV4MbbpcQp5XPz2 LzVGlFjhIn4teh150NkKSJsTLt5qaCoKJewg4iFqNUjlqggfuZe2P7nDkEbSsPVmQOOu dj4Q== 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=195B+CB1z/60zeuUHL2i7Tbhc2xhyav83W4usRCKIrw=; b=njq53o3QZtQEz/kGbQqBAw3PxxALWfPx8oE/LZttIDD/mqQag2eF/uQVhT4T773LWH O0olWnZHJRZLrbiky1MaFdvG3HyVm9R4KBJE7RfFTJ3sNEKSNhVBo4PA3m8MoZHITlHj cc+o22sGvJn724ejVHKP5FWPDMlQxEPmZNwFENksrUBzGMt3NliK7sz6EYM2sX8ylp/w mj8DWoxDV/BWOJ471SsAbi7IF+qP+wXGOrIEtCsgz+FBM9K//FYShhrRetAPc2U9uy9j 7SRPGNdld8ckcG2PGIyoXU4amb+xeJX5D9+3NVN+rcC8dQfExQrsspSiZgPJ1K3PfRDN Qjvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=IpQgEPQL; 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 s22-20020a170902b19600b001a23bf7a7b9si6870133plr.501.2023.05.07.23.01.04; Sun, 07 May 2023 23:01:19 -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=IpQgEPQL; 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 S229986AbjEHFxO (ORCPT + 99 others); Mon, 8 May 2023 01:53:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjEHFxN (ORCPT ); Mon, 8 May 2023 01:53:13 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2063.outbound.protection.outlook.com [40.107.20.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A47E10C1; Sun, 7 May 2023 22:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cijd9+Mfj7JSBU5qkwUWDryNFRSikPJ9l/qXiqpJDSW3if4SLx/QVuH54GTbCA7Nc5dJ7b5NKoYm7cmQ9faQRvT89sYKnWobuLXGLndPqQjVNKsWfd5xrPu2nAmdasAJ0R/gM4GDeRouN+IUcE0WMGmfW7D3C5FoMrQ0oRGiXFJttY5zhxCvonMRnaNru9Uv7suxnxtSA8ahJlwPmY9OMChrlK/ZGdIsi0hpFjqdVlTxXOx7e7PoVP0JB2+s91bKbMixku2j1YY3i4vQUGR8kmzyVSjAHRj09xoloW8fxzO5TrmmOr+9KXI3IHGOSGm2M2sjSAgIYWHur1edB+1YWw== 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=195B+CB1z/60zeuUHL2i7Tbhc2xhyav83W4usRCKIrw=; b=jG7hcooge+q9icq4AFuCIi9EpwbiSESnAObE7IaBhEWLftW/yxG7s9P7iDCyAjw18m5xM1s4UJ6di9hbBTYauW+a31Gvgh02dez09wXfqaGXbbaiz9oy+94FwbsyE0YOFkJtACeHOcNTPBhzmdsHN3kgjZoiu5CQXQOwJ+bEMPxMcVzAPY2AysICaHLSSn3w/qcS+gnipO+O94YCdWQMVIiY642kt6H0N1BOeN50DiBacx7HNMzfV6Vpzpjw7HnHFAKSQn9/ymy/RdvbwmOvrI5ehyJ3LboUZLIlnV2EgfXzb7x27ENn54hmQ6zQsY2gBHOccwOXYBBUsY6zLIl6uQ== 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=195B+CB1z/60zeuUHL2i7Tbhc2xhyav83W4usRCKIrw=; b=IpQgEPQL7ssXfjqP2pOfSK0hGM4Z+HO9QclbBnUIqjL1s2gyTUus1WSHuDL3mJenDUtlygB/H1wuZI8gbNa2BpWqh7hqy3udDEsviyo/9bxgdOl7oVwFxKN+l8F17trePbWha/3Hv/UnqLce8XnxRlpEohCdoJAdvfVJkenj9rE= 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 AM9PR04MB8523.eurprd04.prod.outlook.com (2603:10a6:20b:432::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.32; Mon, 8 May 2023 05:53:07 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::60e3:2297:61f1:4d1d]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::60e3:2297:61f1:4d1d%4]) with mapi id 15.20.6363.032; Mon, 8 May 2023 05:53:07 +0000 From: Liu Ying 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, conor+dt@kernel.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 v5 0/6] drm: lcdif: Add i.MX93 LCDIF support Date: Mon, 8 May 2023 13:57:34 +0800 Message-Id: <20230508055740.635256-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::15) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AM9PR04MB8523:EE_ X-MS-Office365-Filtering-Correlation-Id: d754ea79-8e4b-4690-5a76-08db4f887f51 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: onCzTbNkHvtFquQ0IxP/xCcqJ+k0sgb1jQdvH7k2vYWt+x0CDpK1OukLJHJACZsCa9bYk2IZX8XDqfQ6JbBXWW9E5y9qIyZSR2jZnO4b9hHYVArMLMEgHzGLUp3Cz3JkoLFH4mmbll9hk2rT+Az3LRg+U05q1J+U8Xm8P6eAAdHkblN25CGvkSme/Ufv6J74uqjECnz6bGzkZeDEeey9FuwZ21/ebep2td8dQBGVjM9OWFuFQIwHDYb5OeFkJOhv6eqvH5OylMwRkxAAJ3vzK11RjczcHoHf3ZNjci6Ybi/kYPHjEuPgnAUPMAiC5HBbHjel66OXU5RmR/k12kifbCYQoEjfme2KI1kTIi73S9gJQ1RamPcbFPlbIGaOQI2AeWmEDk7ARaGjtKiflws8Biaa95dk5GtmiGu4yN83PVSyoInWcAyacSmQ4AH7eqJZ6yo+rgnAg8dTIa2q82woZY6dylanzUDyzRRu6IJJcTtJzryftuGbypQeg/4oAhO/xn8ViERH43dobu1XX2EvW9J7DeDiTGjNE4DS4sAcPrdUfkwya4YBGKRgg6Eaxoxc9hvkba9uYYzKrCxR5ab25ZzvYgM3kdPzMR1tkn9yzt3fO5L+3IF4iuGdoX5HNYrR 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:(13230028)(4636009)(346002)(366004)(136003)(396003)(39860400002)(376002)(451199021)(83380400001)(6666004)(52116002)(6486002)(478600001)(2616005)(6512007)(6506007)(1076003)(26005)(186003)(2906002)(7416002)(36756003)(38100700002)(38350700002)(66476007)(66556008)(66946007)(4326008)(41300700001)(8676002)(8936002)(86362001)(5660300002)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?tOHr/TRIy6GUgPgkHcLWx+QjEKVEXOW4MBSZ7gAs4SLMwLGv3sEWAVX29gK0?= =?us-ascii?Q?1KIuyggu4ARKiqcbxYuM4Xs0TSzZO1Fojh98TskFU3aIHj6PWzlk91X1YAwz?= =?us-ascii?Q?S6lsn3GbUj3IsqBN71xmEv7Zz+DJway/TuUGtnF5fhH69yV2P5xoBD7uvZJI?= =?us-ascii?Q?yIeU/TCOm4jFOssBxXtkMjTjLU2DozWBs8wPM2MiFJyIDT9nqTFtshmWyywU?= =?us-ascii?Q?YDwk/SXGKCwFX96XUifunvx3ZZCUWkBgktLPfTCb0kRWgWnrXaOD6ZRS1WI7?= =?us-ascii?Q?wF+TjYbDzxX/Q8M1exJR/gfwr5155cpjMwdpTRr/l1SW6eYmqAupP4HARxEI?= =?us-ascii?Q?q1t+QIKRvxH3FhGUBFBMlqUpeCXNVK2szBmrF7oQG5yxTjiyujKH0YYANASb?= =?us-ascii?Q?53kJ+EKUt3mTxfcY0hos6B3wssQOt7OUauxtEOuwqQcIP7IPYkJK7RaEmBhk?= =?us-ascii?Q?4VP0kF9zuybuWeO4rEoE4HSH+ho5okU/SWklsmK/NGHZP0DIUJYPmugYYs/q?= =?us-ascii?Q?ZGt3anGtOERtjGn7lZK6MQhN/U8GYyqml2jRC6Y5aLLNS+Ism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7TDygcqHKfT7ohj2Tg0qgI9wYTKRCH7pPPfPj7IV+NvosMMYKGJht/I?= =?us-ascii?Q?Zj6nW1mqB2UC91vl3Hzn+c4Mv+ef6GkfmNWv0CjeRa0KRDncxa5CFxJiCiyL?= =?us-ascii?Q?mlwn3OE/oj0w4VVxx2dA31PqUX5m+jSj/T9wltPj?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d754ea79-8e4b-4690-5a76-08db4f887f51 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2023 05:53:07.6233 (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: BG9mS19hEcMBleJM9pMo7KEQ7XsuBAidPIglnErqQFbS4Nao4IxNo+GpNozVjHEM9zUM58uICCo4DIrI9G/bxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8523 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 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. v4->v5: * Rebase this patch set upon v6.4-rc1 and resolve a trivial conflict for patch 5/6. * Collect Alexander's R-b tag on patch 3/6, A-b tags on patch 4/6 and 5/6, T-b tags on patch 2/6~6/6. v3->v4: * Improve warning message when ignoring invalid LCDIF OF endpoint ids in patch 5/6. (Alexander) * Use 'new_{c,p}state' instead of 'new_{crtc,plane}_state' in patch 3/6. (Alexander) * Simplify lcdif_crtc_reset() by calling lcdif_crtc_atomic_destroy_state() in patch 3/6. (Alexander) * Add '!crtc->state' check in lcdif_crtc_atomic_duplicate_state() in patch 3/6. (Alexander) * Collect Alexander's R-b tags on patch 1/6, 2/6 and 6/6. v2->v3: * Fix a trivial typo in patch 6/6's commit message. 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 | 198 ++++++++++++------ 4 files changed, 206 insertions(+), 75 deletions(-) -- 2.37.1