Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp171661pxf; Tue, 30 Mar 2021 23:43:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw+zCiSe42y68MYzPIfiNHJ73FbXeVfmMFofYLwzvwk1RvDebwpHmthP8CUOuorzc4Uea9 X-Received: by 2002:aa7:c3c4:: with SMTP id l4mr1746631edr.335.1617172991165; Tue, 30 Mar 2021 23:43:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617172991; cv=pass; d=google.com; s=arc-20160816; b=rJ/Lq/wS4iFXXkSTFjtuc58DwHuDqjIk+AjtmrzWZWrNPyRrC+M+lpG0d1AJF7hBsX D1FVYJUEeDkcNoJaEn+wxYWw/uSDtw0EFAq4vjme78nyNoxCBTNQ/e+5vJCtDtr3GmK6 LYLuOyITExlUTh9H49dez5xmCpksZDa518GqelfaIlwOhEliU1HZIYAox0WKYBdAjecb lfOwCGyYjMGNIqINShk4RnoycBXbo7CCt4jDzvVR+0nky9ykpWSWtllHk8C8h0Es9Y4x j1nIiJvmvADu4dN7kWhlKjY9CLQW8uVf4/ffyzB58zwCVCG+bxP2T2LmcO0ZLZT87+iE 171A== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=/9eeOgwnnC62CFYJngWwhSz1li3rAFoDrPMK2pEucig=; b=rHQ1+Bklpbry/BrAtEWzNddTZ5P2EYZxwJIyfmzDujyBt+H1dNGbNnDMeGbbldcgH9 xoaqbZwcJSOsOjlbdsVaRI6pYjSYMy0D4+2a0izQIID6T1Q3Wt/ieJF6TVySeHvT+Og2 Gm/KM2S3IkuXfj/W7aSK5bM95dE6rdZVxXAMcd7FXtzn/ktjF9QwnA0rNepBHXTI/YNr Z+x36aiois8E45DyV+zkBhJ55Qctq8JGDEPyojENNLYm5dK3zVCsWfAsIx86n4yW1ubb Q2AIJzF1H5F4mH1SuO4U37sQsa6WTgEAwE4FZUV2gAMt6U8lj8XIX3kVGUFsHN4VtfCS ggyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=M6S2H4ut; 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 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si1065539edc.254.2021.03.30.23.42.47; Tue, 30 Mar 2021 23:43:11 -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=@nxp.com header.s=selector2 header.b=M6S2H4ut; 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 23.128.96.18 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 S233824AbhCaGlx (ORCPT + 99 others); Wed, 31 Mar 2021 02:41:53 -0400 Received: from mail-eopbgr20053.outbound.protection.outlook.com ([40.107.2.53]:25409 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233694AbhCaGl1 (ORCPT ); Wed, 31 Mar 2021 02:41:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qm3mwo6BZTvZ0yBb5b3hFlw2BZl8IXW0wcW5QhWAdsgIiI+128kmtdTvCz+inz+DsYsuE0yGVKUTNDZAvBgsRiLL2UOvLoW1UuWQVUEW/tSVDAwL68HnWV0kr6PoQnen0XccWaxzW+wWC6QoeFF+AiSTW5ON0H6IHHV4IGnJmxfcWnwYGark7T39H1CFn1uXs1OVXS9dR8wnGcsXbOfs3tA72/q5WhFBCj906fSrggszzjXrFP0IRfG+KDoTJaAUIUh9aARan8XeskAkF5/t0MaRJ4CsDGALebntjDpsWg4b3h7pVsSxs3SzhduB5L2sF2kcO0BQSUd163DSaGCQzQ== 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=/9eeOgwnnC62CFYJngWwhSz1li3rAFoDrPMK2pEucig=; b=kfufHfTIFmUdIdonQtmnTFMMpXnh/REkkQDTck/GeiCXPKYVub+6mcGQr8Jhi2Vqb0JfbCc12Yc5H5zFQxLQHJgKuF7QEjx8hN3ilpBoqdOUlKz8t4ie90Et5Nr5hWoV9hQYLa/vhaFdVdJuGu539wY0mqgHxtu6ljstke3jgl91QXfPOYbZxkOOHxTEm9GLa+MWNqe6SF5wwkUFk0QHDQqOshwvkRoDjUcYOWYr4GBwmoX5q003FvlkwbU4ndDvGmkr84hRcGNIKXG3OjBg8snh6HDTytdWTzuJnLtpi8LnMIZdIL/yTw7hr50elWAUqE8mWBNar+Dc/C5BHTCWhA== 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=/9eeOgwnnC62CFYJngWwhSz1li3rAFoDrPMK2pEucig=; b=M6S2H4utg/J9SZzm0C8MmWe4A1MNd89UU8rwbfzr7rdkXSxilc76IoLdEm8+gugWhmc9+WRGvhtaOppcqGPwr20rxYLfJ7j6/BogGl+EmXg88J4bvl97cQ3xktlrhZGCYjsOgDZa4iJywgF7/9JXmWc+l1q5dxd3B64Z9h/XgFI= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR0401MB2527.eurprd04.prod.outlook.com (2603:10a6:800:5c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.26; Wed, 31 Mar 2021 06:41:24 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c%5]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 06:41:24 +0000 Message-ID: <2be97f60cf33fc3cbd885e87b858cfe4a082913d.camel@nxp.com> Subject: Re: [PATCH v6 13/14] drm/bridge: imx: Add LDB support for i.MX8qm From: Liu Ying To: Robert Foss Cc: dri-devel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel , linux-media , David Airlie , Daniel Vetter , Rob Herring , shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, Fabio Estevam , linux-imx@nxp.com, Mauro Carvalho Chehab , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , kishon@ti.com, Vinod Koul , lee.jones@linaro.org Date: Wed, 31 Mar 2021 14:39:46 +0800 In-Reply-To: References: <1615952569-4711-1-git-send-email-victor.liu@nxp.com> <1615952569-4711-14-git-send-email-victor.liu@nxp.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 Content-Transfer-Encoding: 7bit X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR04CA0006.apcprd04.prod.outlook.com (2603:1096:203:d0::16) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from blueberry (119.31.174.66) by HKAPR04CA0006.apcprd04.prod.outlook.com (2603:1096:203:d0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.26 via Frontend Transport; Wed, 31 Mar 2021 06:41:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 48a54c0a-aaaa-4bd0-e625-08d8f4100057 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2527: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z924u/Xo9PpDIbWZT6ilhM9GCcJcyPOuPPPa5OdI6mGAGLA9Fcud6lkTET3oaDvdF7mKmT6kHx7+4FLsk+iKaWCr4EV74cTGK8ZWBys3UcKOh0cI6I1edSHi3PlchxcCVX4dG5OPNeaduduJXx37F6HzC2RDk8hDUEy/r6PNBy/83r/rxJQz5Ufp+KVKXfkgK5uObLgWDQJck1zMC7A02QIczv66DcDXk02/3Zb71q2vDMsI+DKSvyT6+DmWLWrxr3Vgi/juLCRjXFN1dFZSZ8Ez/A7Wvm/lVwgF+seboEnWLOjoou2aG4TQQKKK7Utz3dlRfP0ltBXatzaFmrzaebrLKuHODbDQ18P5I0njYAZPXy3MOVW3QvmzVk83H45Bg5S7Be9RxH67wM3JwlBB0sQpLFyo0tJMKqs+Dk8HzZOigTOYkga4KHmRS77ycd/Cb6zyiJ2iBJUkUWJ2pq2HtaCF9dtNoyCEwfvn1G54re5TNhaSpREdVtVk2I8Slc1a4olCXfr4WTBxvNMiYjYwP9OiwWyQBxuS+h3dsg9sta8CdISYEOrEtpFXk2f95dgr75ugtGubcpKAjHn2OIwm8DQkESO/0arj0MStG8Nf4OL3GrT1NIwCe1IbMqCzjkc76XCQqsV4JUJW5QAriZYcCfLOQCCUYy9orHZBkBdvPboYlbCqnDOrB9x5smYAuYUQzhy8/2VTR1p4+1+m70prS7/kDTGVDY6cZ+VEp/q3yyE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB3983.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(83380400001)(86362001)(5660300002)(6666004)(38100700001)(54906003)(30864003)(66556008)(66476007)(66946007)(6486002)(4326008)(498600001)(2616005)(6496006)(966005)(6916009)(45080400002)(2906002)(36756003)(8936002)(26005)(956004)(186003)(8676002)(52116002)(16526019)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?UXhzbkZVeS80Q1hzaEV6UUIrakd6M2h5RWtjSUk5c2p3L0ZXQTN0TlhaMEk3?= =?utf-8?B?aG5GVThJdTY1SytRUTVSTENNYVF5WE5xc2pUK3daNWQ1bTk0c0FGSkR4N2Ev?= =?utf-8?B?UFZ4VzRaMzlrQjJuc1hhYWhJVEpCYzFKN0drUFhORU13citETXlVNU1iNWZE?= =?utf-8?B?YzFOTXlkajhOV29OcDlidnlPUmNidlg0ZVZnSnAvNXdxM3JwK2xzby9iTlBM?= =?utf-8?B?ZGpORmc1UE9wbW1WYVFWOCtsUTJFYjIzcXMwOThxYm5UclZ5YXErWDFtMWRQ?= =?utf-8?B?cHNvakZYcVFzc2JKNjJSb2I1dTVZOFdyRzBUNTVMMjBoS3FCZm94OThvZ3ZY?= =?utf-8?B?QzE1cW15dTREa3FFSFZGcjdnWkh4UXZKRXd0K1doZjNHZkx4VHZ3ZS9pWWYv?= =?utf-8?B?clZyMnpDdFYrT3NHK0Rud2JidkZYcnd3T2NFRDlEU2lPa3pnSHV6UUg5UGhC?= =?utf-8?B?TE53YzcxdGtqaTdsaGNTMFR2b2YrY0JQbDV5YzQ2aU1WdmRVNFNYSWFUczVn?= =?utf-8?B?S2NhWjB6S2tJajdHMjhuMXV6bDh3a2hUNCtQbCt0NnRwb212aTczMnV4UHdZ?= =?utf-8?B?ZW40L2xnVURSR0hjazBFQk5kb2RmdEtsWHh5Z3laR3FqYjV2T3N3TGtCaUVP?= =?utf-8?B?ait3T0IrZUF6cjBRd3JjRGRiUTV5NDg0OE1wU0VPdVpyK3MxUmg4SisvUWJK?= =?utf-8?B?VUp2R01OZ1lXWDJuWVRCVWVUWmpHZUoyTU5aazdWcjRWSGRscXl5MktNNmE2?= =?utf-8?B?eFZlbm8xVzFiY1pHeUdnR1ArQUEzaWFVWm4rMkVrVk5TbDJjZ2lVUTJoUEJG?= =?utf-8?B?QXRGZ3V3U1FXamIwS3dneEhtazNhZExYeDAxTTVlSFhvZ2UvZ3F1TUYyN3Z0?= =?utf-8?B?NDlCRlhKdWtVSmlUU1FueFUwQ1c3bUZUUmRybUtUWmlLeTdXeThuaTlNNGxv?= =?utf-8?B?OTRpanVISzZsQThOeDhHdUY4SXhaUkpEa0dSdTM5NVBKdHdxenB6MHhla3Fa?= =?utf-8?B?elpZRHlvL045UTdLT0FKZnlkMnMxWGo5YnJ2bFhkNkdnOEx6aUtPdEU1QTdF?= =?utf-8?B?RmFvL0poSjgwY1p0cUlLKzRxYkloT0VnSGZkcXBjbWw0Qnk2cW4rcHJYVWpL?= =?utf-8?B?RWZ0QjNZYjlDOWZzdHRWT0wyS0NPcXJrc1VKTUF2Y3phd2cxb0xJVENXTmM2?= =?utf-8?B?MDNBL1VIY1Vud0VqRXlSa2hqV1ZFOEZtMmNQKytRaXdnZlhjSkU4djlVWEVC?= =?utf-8?B?UUVrUC96bytOVnJTb2QyQkpBd09oMG9UZTJBUko1QjhaNWhMMUFQNTRseTBX?= =?utf-8?B?dHEvRHhCWFo3ZXg0ek40Y2c4UFAwNXBpbU1TRWJldS9LS1dHTCsxY0tRL0xq?= =?utf-8?B?RmR4UWdtSEVseHFRUGFHN2dyZkZwVXlKWENqSVA5YVJ3SUpHQVlzekQ3WURQ?= =?utf-8?B?RnBieERWdURJMkJyUzlpVGNaV3VLTWRmWWRWMFI3ZWJsTmFWaFh5Mlg1YmN6?= =?utf-8?B?SFN6cldQT1ZwYllpUS9TSkxDcTZtdWpTdDZUYkFXemNpZWJpMGJ5MFYxblA2?= =?utf-8?B?WWFsUHVNaDkyY01sQW8zdGw0QnhQOGlxU1pOTWlSTCtqdDJwa1VTeGVobjdE?= =?utf-8?B?akV5R2JSeVhJc1U5UjN2dTZ4MlZHMEVsbmNWdGRKcTYxOGx5RFdRRmU3SFpo?= =?utf-8?B?TWRlN0hjeW45a1RRMTUyaUc5azljWW43V3MrSkZnclJ1UjhJV1dpajNWRUdM?= =?utf-8?Q?L8VhOmVcD4Z3/nE8a4Upj1dq1833p9WSVecA36+?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48a54c0a-aaaa-4bd0-e625-08d8f4100057 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2021 06:41:24.0117 (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: D5ahZ1YAa6n+qK4r4iylSVQXHwqaMy70HOIEqvTNYIFFISMRvb91A5CCN4+WgGVuMH9QEnBps2uW4wswUYmLKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2527 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robert, On Tue, 2021-03-30 at 12:05 +0200, Robert Foss wrote: > Hey Liu, > > checkpatch --strict lists some nits for this patch with those and the > below warning fixed, feel free to add my r-b. Thanks for your review. Will fix those nits in the next version. Regarding the warning you mentioned, is it the Kconfig warning? I'm asssuming it can also be ignored just like the one for patch 12/14? Liu Ying > > On Wed, 17 Mar 2021 at 04:57, Liu Ying wrote: > > This patch adds a drm bridge driver for i.MX8qm LVDS display bridge(LDB) > > which is officially named as pixel mapper. The LDB has two channels. > > Each of them supports up to 30bpp parallel input color format and can > > map the input to VESA or JEIDA standards. The two channels can be used > > simultaneously, either in dual mode or split mode. In dual mode, the > > two channels output identical data. In split mode, channel0 outputs > > odd pixels and channel1 outputs even pixels. This patch supports the > > LDB single mode and split mode. > > > > Signed-off-by: Liu Ying > > --- > > Note that this patch depends on the patch 'phy: Add LVDS configuration options', > > which has already been sent with the following series to add Mixel combo PHY > > found in i.MX8qxp: > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.spinics.net%2Flists%2Farm-kernel%2Fmsg879957.html&data=04%7C01%7Cvictor.liu%40nxp.com%7C8d7bbad6a7884d28c2b108d8f3635586%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637526955256377476%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2FlBdn8%2FdU3tbJC5W%2B4qCIBv1UO6b8I97MnOFhOXiBy4%3D&reserved=0 > > > > v5->v6: > > * No change. > > > > v4->v5: > > * Link with the imx-ldb-helper object. (Robert) > > * Correspondingly, rename 'imx8qm-ldb.c' to 'imx8qm-ldb-drv.c'. > > > > v3->v4: > > * No change. > > > > v2->v3: > > * No change. > > > > v1->v2: > > * Drop unnecessary check for maximum available LDB channels. > > * Mention i.MX8qm LDB official name 'pixel mapper' in the bridge driver > > and Kconfig help message. > > > > drivers/gpu/drm/bridge/imx/Kconfig | 9 + > > drivers/gpu/drm/bridge/imx/Makefile | 3 + > > drivers/gpu/drm/bridge/imx/imx8qm-ldb-drv.c | 586 ++++++++++++++++++++++++++++ > > 3 files changed, 598 insertions(+) > > create mode 100644 drivers/gpu/drm/bridge/imx/imx8qm-ldb-drv.c > > > > diff --git a/drivers/gpu/drm/bridge/imx/Kconfig b/drivers/gpu/drm/bridge/imx/Kconfig > > index 94f8db4d..3a8683f 100644 > > --- a/drivers/gpu/drm/bridge/imx/Kconfig > > +++ b/drivers/gpu/drm/bridge/imx/Kconfig > > @@ -1,3 +1,12 @@ > > +config DRM_IMX8QM_LDB > > + tristate "Freescale i.MX8QM LVDS display bridge" > > + depends on OF > > + depends on COMMON_CLK > > + select DRM_KMS_HELPER > > + help > > + Choose this to enable the internal LVDS Display Bridge(LDB) found in > > + Freescale i.MX8qm processor. Official name of LDB is pixel mapper. > > + > > config DRM_IMX8QXP_LDB > > tristate "Freescale i.MX8QXP LVDS display bridge" > > depends on OF > > diff --git a/drivers/gpu/drm/bridge/imx/Makefile b/drivers/gpu/drm/bridge/imx/Makefile > > index 96d5d1e..aa90ec8 100644 > > --- a/drivers/gpu/drm/bridge/imx/Makefile > > +++ b/drivers/gpu/drm/bridge/imx/Makefile > > @@ -1,3 +1,6 @@ > > +imx8qm-ldb-objs := imx-ldb-helper.o imx8qm-ldb-drv.o > > +obj-$(CONFIG_DRM_IMX8QM_LDB) += imx8qm-ldb.o > > + > > imx8qxp-ldb-objs := imx-ldb-helper.o imx8qxp-ldb-drv.o > > obj-$(CONFIG_DRM_IMX8QXP_LDB) += imx8qxp-ldb.o > > > > diff --git a/drivers/gpu/drm/bridge/imx/imx8qm-ldb-drv.c b/drivers/gpu/drm/bridge/imx/imx8qm-ldb-drv.c > > new file mode 100644 > > index 00000000..6c92636 > > --- /dev/null > > +++ b/drivers/gpu/drm/bridge/imx/imx8qm-ldb-drv.c > > @@ -0,0 +1,586 @@ > > +// SPDX-License-Identifier: GPL-2.0+ > > + > > +/* > > + * Copyright 2020 NXP > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include "imx-ldb-helper.h" > > + > > +#define LDB_CH0_10BIT_EN (1 << 22) > > +#define LDB_CH1_10BIT_EN (1 << 23) > > +#define LDB_CH0_DATA_WIDTH_24BIT (1 << 24) > > +#define LDB_CH1_DATA_WIDTH_24BIT (1 << 26) > > +#define LDB_CH0_DATA_WIDTH_30BIT (2 << 24) > > +#define LDB_CH1_DATA_WIDTH_30BIT (2 << 26) > > + > > +#define SS_CTRL 0x20 > > +#define CH_HSYNC_M(id) BIT(0 + ((id) * 2)) > > +#define CH_VSYNC_M(id) BIT(1 + ((id) * 2)) > > +#define CH_PHSYNC(id) BIT(0 + ((id) * 2)) > > +#define CH_PVSYNC(id) BIT(1 + ((id) * 2)) > > + > > +#define DRIVER_NAME "imx8qm-ldb" > > + > > +struct imx8qm_ldb_channel { > > + struct ldb_channel base; > > + struct phy *phy; > > +}; > > + > > +struct imx8qm_ldb { > > + struct ldb base; > > + struct device *dev; > > + struct imx8qm_ldb_channel channel[MAX_LDB_CHAN_NUM]; > > + struct clk *clk_pixel; > > + struct clk *clk_bypass; > > + int active_chno; > > +}; > > + > > +static inline struct imx8qm_ldb_channel * > > +base_to_imx8qm_ldb_channel(struct ldb_channel *base) > > +{ > > + return container_of(base, struct imx8qm_ldb_channel, base); > > +} > > + > > +static inline struct imx8qm_ldb *base_to_imx8qm_ldb(struct ldb *base) > > +{ > > + return container_of(base, struct imx8qm_ldb, base); > > +} > > + > > +static void imx8qm_ldb_set_phy_cfg(struct imx8qm_ldb *imx8qm_ldb, > > + unsigned long di_clk, > > + bool is_split, bool is_slave, > > + struct phy_configure_opts_lvds *phy_cfg) > > +{ > > + phy_cfg->bits_per_lane_and_dclk_cycle = 7; > > + phy_cfg->lanes = 4; > > + phy_cfg->differential_clk_rate = is_split ? di_clk / 2 : di_clk; > > + phy_cfg->is_slave = is_slave; > > +} > > + > > +static int imx8qm_ldb_bridge_atomic_check(struct drm_bridge *bridge, > > + struct drm_bridge_state *bridge_state, > > + struct drm_crtc_state *crtc_state, > > + struct drm_connector_state *conn_state) > > +{ > > + struct ldb_channel *ldb_ch = bridge->driver_private; > > + struct ldb *ldb = ldb_ch->ldb; > > + struct imx8qm_ldb_channel *imx8qm_ldb_ch = > > + base_to_imx8qm_ldb_channel(ldb_ch); > > + struct imx8qm_ldb *imx8qm_ldb = base_to_imx8qm_ldb(ldb); > > + struct drm_display_mode *adj = &crtc_state->adjusted_mode; > > + unsigned long di_clk = adj->clock * 1000; > > + bool is_split = ldb_channel_is_split_link(ldb_ch); > > + union phy_configure_opts opts = { }; > > + struct phy_configure_opts_lvds *phy_cfg = &opts.lvds; > > + int ret; > > + > > + ret = ldb_bridge_atomic_check_helper(bridge, bridge_state, > > + crtc_state, conn_state); > > + if (ret) > > + return ret; > > + > > + imx8qm_ldb_set_phy_cfg(imx8qm_ldb, di_clk, is_split, false, phy_cfg); > > + ret = phy_validate(imx8qm_ldb_ch->phy, PHY_MODE_LVDS, 0, &opts); > > + if (ret < 0) { > > + DRM_DEV_DEBUG_DRIVER(imx8qm_ldb->dev, > > + "failed to validate PHY: %d\n", ret); > > + return ret; > > + } > > + > > + if (is_split) { > > + imx8qm_ldb_ch = > > + &imx8qm_ldb->channel[imx8qm_ldb->active_chno ^ 1]; > > + imx8qm_ldb_set_phy_cfg(imx8qm_ldb, di_clk, is_split, true, > > + phy_cfg); > > + ret = phy_validate(imx8qm_ldb_ch->phy, PHY_MODE_LVDS, 0, &opts); > > + if (ret < 0) { > > + DRM_DEV_DEBUG_DRIVER(imx8qm_ldb->dev, > > + "failed to validate slave PHY: %d\n", ret); > > + return ret; > > + } > > + } > > + > > + return ret; > > +} > > + > > +static void > > +imx8qm_ldb_bridge_mode_set(struct drm_bridge *bridge, > > + const struct drm_display_mode *mode, > > + const struct drm_display_mode *adjusted_mode) > > +{ > > + struct ldb_channel *ldb_ch = bridge->driver_private; > > + struct ldb *ldb = ldb_ch->ldb; > > + struct imx8qm_ldb_channel *imx8qm_ldb_ch = > > + base_to_imx8qm_ldb_channel(ldb_ch); > > + struct imx8qm_ldb *imx8qm_ldb = base_to_imx8qm_ldb(ldb); > > + struct device *dev = imx8qm_ldb->dev; > > + unsigned long di_clk = adjusted_mode->clock * 1000; > > + bool is_split = ldb_channel_is_split_link(ldb_ch); > > + union phy_configure_opts opts = { }; > > + struct phy_configure_opts_lvds *phy_cfg = &opts.lvds; > > + u32 chno = ldb_ch->chno; > > + int ret; > > + > > + ret = pm_runtime_get_sync(dev); > > + if (ret < 0) > > + DRM_DEV_ERROR(dev, "failed to get runtime PM sync: %d\n", ret); > > + > > + ret = phy_init(imx8qm_ldb_ch->phy); > > + if (ret < 0) > > + DRM_DEV_ERROR(dev, "failed to initialize PHY: %d\n", ret); > > + > > + clk_set_rate(imx8qm_ldb->clk_bypass, di_clk); > > + clk_set_rate(imx8qm_ldb->clk_pixel, di_clk); > > + > > + imx8qm_ldb_set_phy_cfg(imx8qm_ldb, di_clk, is_split, false, phy_cfg); > > + ret = phy_configure(imx8qm_ldb_ch->phy, &opts); > > + if (ret < 0) > > + DRM_DEV_ERROR(dev, "failed to configure PHY: %d\n", ret); > > + > > + if (is_split) { > > + imx8qm_ldb_ch = > > + &imx8qm_ldb->channel[imx8qm_ldb->active_chno ^ 1]; > > + imx8qm_ldb_set_phy_cfg(imx8qm_ldb, di_clk, is_split, true, > > + phy_cfg); > > + ret = phy_configure(imx8qm_ldb_ch->phy, &opts); > > + if (ret < 0) > > + DRM_DEV_ERROR(dev, "failed to configure slave PHY: %d\n", > > + ret); > > + } > > + > > + /* input VSYNC signal from pixel link is active low */ > > + if (ldb_ch->chno == 0 || is_split) > > + ldb->ldb_ctrl |= LDB_DI0_VS_POL_ACT_LOW; > > + if (ldb_ch->chno == 1 || is_split) > > + ldb->ldb_ctrl |= LDB_DI1_VS_POL_ACT_LOW; > > + > > + switch (ldb_ch->out_bus_format) { > > + case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG: > > + break; > > + case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA: > > + case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG: > > + if (ldb_ch->chno == 0 || is_split) > > + ldb->ldb_ctrl |= LDB_CH0_DATA_WIDTH_24BIT; > > + if (ldb_ch->chno == 1 || is_split) > > + ldb->ldb_ctrl |= LDB_CH1_DATA_WIDTH_24BIT; > > + break; > > + } > > + > > + ldb_bridge_mode_set_helper(bridge, mode, adjusted_mode); > > + > > + if (adjusted_mode->flags & DRM_MODE_FLAG_NVSYNC) > > + regmap_update_bits(ldb->regmap, SS_CTRL, CH_VSYNC_M(chno), 0); > > + else if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) > > + regmap_update_bits(ldb->regmap, SS_CTRL, > > + CH_VSYNC_M(chno), CH_PVSYNC(chno)); > > + > > + if (adjusted_mode->flags & DRM_MODE_FLAG_NHSYNC) > > + regmap_update_bits(ldb->regmap, SS_CTRL, CH_HSYNC_M(chno), 0); > > + else if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) > > + regmap_update_bits(ldb->regmap, SS_CTRL, > > + CH_HSYNC_M(chno), CH_PHSYNC(chno)); > > +} > > + > > +static void > > +imx8qm_ldb_bridge_atomic_enable(struct drm_bridge *bridge, > > + struct drm_bridge_state *old_bridge_state) > > +{ > > + struct ldb_channel *ldb_ch = bridge->driver_private; > > + struct ldb *ldb = ldb_ch->ldb; > > + struct imx8qm_ldb_channel *imx8qm_ldb_ch = > > + base_to_imx8qm_ldb_channel(ldb_ch); > > + struct imx8qm_ldb *imx8qm_ldb = base_to_imx8qm_ldb(ldb); > > + struct device *dev = imx8qm_ldb->dev; > > + bool is_split = ldb_channel_is_split_link(ldb_ch); > > + int ret; > > + > > + clk_prepare_enable(imx8qm_ldb->clk_pixel); > > + clk_prepare_enable(imx8qm_ldb->clk_bypass); > > + > > + /* both DI0 and DI1 connect with pixel link, so ok to use DI0 only */ > > + if (ldb_ch->chno == 0 || is_split) { > > + ldb->ldb_ctrl &= ~LDB_CH0_MODE_EN_MASK; > > + ldb->ldb_ctrl |= LDB_CH0_MODE_EN_TO_DI0; > > + } > > + if (ldb_ch->chno == 1 || is_split) { > > + ldb->ldb_ctrl &= ~LDB_CH1_MODE_EN_MASK; > > + ldb->ldb_ctrl |= LDB_CH1_MODE_EN_TO_DI0; > > + } > > + > > + if (is_split) { > > + ret = phy_power_on(imx8qm_ldb->channel[0].phy); > > + if (ret) > > + DRM_DEV_ERROR(dev, > > + "failed to power on channel0 PHY: %d\n", > > + ret); > > + > > + ret = phy_power_on(imx8qm_ldb->channel[1].phy); > > + if (ret) > > + DRM_DEV_ERROR(dev, > > + "failed to power on channel1 PHY: %d\n", > > + ret); > > + } else { > > + ret = phy_power_on(imx8qm_ldb_ch->phy); > > + if (ret) > > + DRM_DEV_ERROR(dev, "failed to power on PHY: %d\n", ret); > > + } > > + > > + ldb_bridge_enable_helper(bridge); > > +} > > + > > +static void > > +imx8qm_ldb_bridge_atomic_disable(struct drm_bridge *bridge, > > + struct drm_bridge_state *old_bridge_state) > > +{ > > + struct ldb_channel *ldb_ch = bridge->driver_private; > > + struct ldb *ldb = ldb_ch->ldb; > > + struct imx8qm_ldb_channel *imx8qm_ldb_ch = > > + base_to_imx8qm_ldb_channel(ldb_ch); > > + struct imx8qm_ldb *imx8qm_ldb = base_to_imx8qm_ldb(ldb); > > + struct device *dev = imx8qm_ldb->dev; > > + bool is_split = ldb_channel_is_split_link(ldb_ch); > > + int ret; > > + > > + ldb_bridge_disable_helper(bridge); > > + > > + if (is_split) { > > + ret = phy_power_off(imx8qm_ldb->channel[0].phy); > > + if (ret) > > + DRM_DEV_ERROR(dev, > > + "failed to power off channel0 PHY: %d\n", > > + ret); > > + ret = phy_power_off(imx8qm_ldb->channel[1].phy); > > + if (ret) > > + DRM_DEV_ERROR(dev, > > + "failed to power off channel1 PHY: %d\n", > > + ret); > > + } else { > > + ret = phy_power_off(imx8qm_ldb_ch->phy); > > + if (ret) > > + DRM_DEV_ERROR(dev, "failed to power off PHY: %d\n", ret); > > + } > > + > > + clk_disable_unprepare(imx8qm_ldb->clk_bypass); > > + clk_disable_unprepare(imx8qm_ldb->clk_pixel); > > + > > + ret = pm_runtime_put(dev); > > + if (ret < 0) > > + DRM_DEV_ERROR(dev, "failed to put runtime PM: %d\n", ret); > > +} > > + > > +static const u32 imx8qm_ldb_bus_output_fmts[] = { > > + MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, > > + MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, > > + MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA, > > + MEDIA_BUS_FMT_FIXED, > > +}; > > + > > +static bool imx8qm_ldb_bus_output_fmt_supported(u32 fmt) > > +{ > > + int i; > > + > > + for (i = 0; i < ARRAY_SIZE(imx8qm_ldb_bus_output_fmts); i++) { > > + if (imx8qm_ldb_bus_output_fmts[i] == fmt) > > + return true; > > + } > > + > > + return false; > > +} > > + > > +static u32 * > > +imx8qm_ldb_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge, > > + struct drm_bridge_state *bridge_state, > > + struct drm_crtc_state *crtc_state, > > + struct drm_connector_state *conn_state, > > + u32 output_fmt, > > + unsigned int *num_input_fmts) > > +{ > > + struct drm_display_info *di; > > + const struct drm_format_info *finfo; > > + u32 *input_fmts; > > + > > + if (!imx8qm_ldb_bus_output_fmt_supported(output_fmt)) > > + return NULL; > > + > > + *num_input_fmts = 1; > > + > > + input_fmts = kmalloc(sizeof(*input_fmts), GFP_KERNEL); > > + if (!input_fmts) > > + return NULL; > > + > > + switch (output_fmt) { > > + case MEDIA_BUS_FMT_FIXED: > > + di = &conn_state->connector->display_info; > > + > > + /* > > + * Look at the first bus format to determine input format. > > + * Default to MEDIA_BUS_FMT_RGB888_1X36_CPADLO, if no match. > > + */ > > + if (di->num_bus_formats) { > > + finfo = drm_format_info(di->bus_formats[0]); > > + > > + input_fmts[0] = finfo->depth == 18 ? > > + MEDIA_BUS_FMT_RGB666_1X36_CPADLO : > > + MEDIA_BUS_FMT_RGB888_1X36_CPADLO; > > + } else { > > + input_fmts[0] = MEDIA_BUS_FMT_RGB888_1X36_CPADLO; > > + } > > + break; > > + case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG: > > + input_fmts[0] = MEDIA_BUS_FMT_RGB666_1X36_CPADLO; > > + break; > > + case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG: > > + case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA: > > + input_fmts[0] = MEDIA_BUS_FMT_RGB888_1X36_CPADLO; > > + break; > > + default: > > + kfree(input_fmts); > > + input_fmts = NULL; > > + break; > > + } > > + > > + return input_fmts; > > +} > > + > > +static u32 * > > +imx8qm_ldb_bridge_atomic_get_output_bus_fmts(struct drm_bridge *bridge, > > + struct drm_bridge_state *bridge_state, > > + struct drm_crtc_state *crtc_state, > > + struct drm_connector_state *conn_state, > > + unsigned int *num_output_fmts) > > +{ > > + *num_output_fmts = ARRAY_SIZE(imx8qm_ldb_bus_output_fmts); > > + return kmemdup(imx8qm_ldb_bus_output_fmts, > > + sizeof(imx8qm_ldb_bus_output_fmts), GFP_KERNEL); > > +} > > + > > +static enum drm_mode_status > > +imx8qm_ldb_bridge_mode_valid(struct drm_bridge *bridge, > > + const struct drm_display_info *info, > > + const struct drm_display_mode *mode) > > +{ > > + struct ldb_channel *ldb_ch = bridge->driver_private; > > + bool is_single = ldb_channel_is_single_link(ldb_ch); > > + > > + if (mode->clock > 300000) > > + return MODE_CLOCK_HIGH; > > + > > + if (mode->clock > 150000 && is_single) > > + return MODE_CLOCK_HIGH; > > + > > + return MODE_OK; > > +} > > + > > +static const struct drm_bridge_funcs imx8qm_ldb_bridge_funcs = { > > + .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, > > + .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, > > + .atomic_reset = drm_atomic_helper_bridge_reset, > > + .mode_valid = imx8qm_ldb_bridge_mode_valid, > > + .attach = ldb_bridge_attach_helper, > > + .atomic_check = imx8qm_ldb_bridge_atomic_check, > > + .mode_set = imx8qm_ldb_bridge_mode_set, > > + .atomic_enable = imx8qm_ldb_bridge_atomic_enable, > > + .atomic_disable = imx8qm_ldb_bridge_atomic_disable, > > + .atomic_get_input_bus_fmts = > > + imx8qm_ldb_bridge_atomic_get_input_bus_fmts, > > + .atomic_get_output_bus_fmts = > > + imx8qm_ldb_bridge_atomic_get_output_bus_fmts, > > +}; > > + > > +static int imx8qm_ldb_get_phy(struct imx8qm_ldb *imx8qm_ldb) > > +{ > > + struct imx8qm_ldb_channel *imx8qm_ldb_ch; > > + struct ldb_channel *ldb_ch; > > + struct device *dev = imx8qm_ldb->dev; > > + int i, ret; > > + > > + for (i = 0; i < MAX_LDB_CHAN_NUM; i++) { > > + imx8qm_ldb_ch = &imx8qm_ldb->channel[i]; > > + ldb_ch = &imx8qm_ldb_ch->base; > > + > > + if (!ldb_ch->is_available) > > + continue; > > + > > + imx8qm_ldb_ch->phy = devm_of_phy_get(dev, ldb_ch->np, > > + "lvds_phy"); > > + if (IS_ERR(imx8qm_ldb_ch->phy)) { > > + ret = PTR_ERR(imx8qm_ldb_ch->phy); > > + if (ret != -EPROBE_DEFER) > > + DRM_DEV_ERROR(dev, > > + "failed to get channel%d PHY: %d\n", > > + i, ret); > > + return ret; > > + } > > + } > > + > > + return 0; > > +} > > + > > +static int imx8qm_ldb_probe(struct platform_device *pdev) > > +{ > > + struct device *dev = &pdev->dev; > > + struct imx8qm_ldb *imx8qm_ldb; > > + struct imx8qm_ldb_channel *imx8qm_ldb_ch; > > + struct ldb *ldb; > > + struct ldb_channel *ldb_ch; > > + struct device_node *port1, *port2; > > + int pixel_order; > > + int ret, i; > > + > > + imx8qm_ldb = devm_kzalloc(dev, sizeof(*imx8qm_ldb), GFP_KERNEL); > > + if (!imx8qm_ldb) > > + return -ENOMEM; > > + > > + imx8qm_ldb->clk_pixel = devm_clk_get(dev, "pixel"); > > + if (IS_ERR(imx8qm_ldb->clk_pixel)) { > > + ret = PTR_ERR(imx8qm_ldb->clk_pixel); > > + if (ret != -EPROBE_DEFER) > > + DRM_DEV_ERROR(dev, > > + "failed to get pixel clock: %d\n", ret); > > + return ret; > > + } > > + > > + imx8qm_ldb->clk_bypass = devm_clk_get(dev, "bypass"); > > + if (IS_ERR(imx8qm_ldb->clk_bypass)) { > > + ret = PTR_ERR(imx8qm_ldb->clk_bypass); > > + if (ret != -EPROBE_DEFER) > > + DRM_DEV_ERROR(dev, > > + "failed to get bypass clock: %d\n", ret); > > + return ret; > > + } > > + > > + imx8qm_ldb->dev = dev; > > + > > + ldb = &imx8qm_ldb->base; > > + ldb->dev = dev; > > + ldb->ctrl_reg = 0xe0; > > + > > + for (i = 0; i < MAX_LDB_CHAN_NUM; i++) > > + ldb->channel[i] = &imx8qm_ldb->channel[i].base; > > + > > + ret = ldb_init_helper(ldb); > > + if (ret) > > + return ret; > > + > > + if (ldb->available_ch_cnt == 0) { > > + DRM_DEV_DEBUG_DRIVER(dev, "no available channel\n"); > > + return 0; > > + } > > + > > + if (ldb->available_ch_cnt == 2) { > > + port1 = of_graph_get_port_by_id(ldb->channel[0]->np, 1); > > + port2 = of_graph_get_port_by_id(ldb->channel[1]->np, 1); > > + pixel_order = > > + drm_of_lvds_get_dual_link_pixel_order(port1, port2); > > + of_node_put(port1); > > + of_node_put(port2); > > + > > + if (pixel_order != DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS) { > > + DRM_DEV_ERROR(dev, "invalid dual link pixel order: %d\n", > > + pixel_order); > > + return -EINVAL; > > + } > > + > > + imx8qm_ldb->active_chno = 0; > > + imx8qm_ldb_ch = &imx8qm_ldb->channel[0]; > > + ldb_ch = &imx8qm_ldb_ch->base; > > + ldb_ch->link_type = pixel_order; > > + } else { > > + for (i = 0; i < MAX_LDB_CHAN_NUM; i++) { > > + imx8qm_ldb_ch = &imx8qm_ldb->channel[i]; > > + ldb_ch = &imx8qm_ldb_ch->base; > > + > > + if (ldb_ch->is_available) { > > + imx8qm_ldb->active_chno = ldb_ch->chno; > > + break; > > + } > > + } > > + } > > + > > + ret = imx8qm_ldb_get_phy(imx8qm_ldb); > > + if (ret) > > + return ret; > > + > > + ret = ldb_find_next_bridge_helper(ldb); > > + if (ret) > > + return ret; > > + > > + platform_set_drvdata(pdev, imx8qm_ldb); > > + pm_runtime_enable(dev); > > + > > + ldb_add_bridge_helper(ldb, &imx8qm_ldb_bridge_funcs); > > + > > + return ret; > > +} > > + > > +static int imx8qm_ldb_remove(struct platform_device *pdev) > > +{ > > + struct imx8qm_ldb *imx8qm_ldb = platform_get_drvdata(pdev); > > + struct ldb *ldb = &imx8qm_ldb->base; > > + > > + ldb_remove_bridge_helper(ldb); > > + > > + pm_runtime_disable(&pdev->dev); > > + > > + return 0; > > +} > > + > > +static int __maybe_unused imx8qm_ldb_runtime_suspend(struct device *dev) > > +{ > > + return 0; > > +} > > + > > +static int __maybe_unused imx8qm_ldb_runtime_resume(struct device *dev) > > +{ > > + struct imx8qm_ldb *imx8qm_ldb = dev_get_drvdata(dev); > > + struct ldb *ldb = &imx8qm_ldb->base; > > + > > + /* disable LDB by resetting the control register to POR default */ > > + regmap_write(ldb->regmap, ldb->ctrl_reg, 0); > > + > > + return 0; > > +} > > + > > +static const struct dev_pm_ops imx8qm_ldb_pm_ops = { > > + SET_RUNTIME_PM_OPS(imx8qm_ldb_runtime_suspend, > > + imx8qm_ldb_runtime_resume, NULL) > > +}; > > + > > +static const struct of_device_id imx8qm_ldb_dt_ids[] = { > > + { .compatible = "fsl,imx8qm-ldb" }, > > + { /* sentinel */ } > > +}; > > +MODULE_DEVICE_TABLE(of, imx8qm_ldb_dt_ids); > > + > > +static struct platform_driver imx8qm_ldb_driver = { > > + .probe = imx8qm_ldb_probe, > > + .remove = imx8qm_ldb_remove, > > + .driver = { > > + .pm = &imx8qm_ldb_pm_ops, > > + .name = DRIVER_NAME, > > + .of_match_table = imx8qm_ldb_dt_ids, > > + }, > > +}; > > +module_platform_driver(imx8qm_ldb_driver); > > + > > +MODULE_DESCRIPTION("i.MX8QM LVDS Display Bridge(LDB)/Pixel Mapper bridge driver"); > > +MODULE_AUTHOR("Liu Ying "); > > +MODULE_LICENSE("GPL v2"); > > +MODULE_ALIAS("platform:" DRIVER_NAME); > > -- > > 2.7.4 > >