From patchwork Mon Mar 22 08:12:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12154121 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7CF7C433C1 for ; Mon, 22 Mar 2021 08:31:43 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C621E61967 for ; Mon, 22 Mar 2021 08:31:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C621E61967 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EIHOaRnG5/7L8Pwz31H8ODXBgQTnATrwA2tTJMamrbM=; b=qOfHkaKqn5/VVlQ5wd7ODoqcR Ynhl3B2MeFXR6Kmz2/2NpYfxW3lc/vvTADiBjzUoH1F/r4dp1xUlimfygqZzFGl/7kXi4Pv0VVIeh TToEiGW6NgcbgpTs4+2fRIPX7Bfa9+a/3qw4c/7TNyLQe3jRstzNgcCWg45Yw+N4tlsDDSKXJcUXh ZapJTd8ZBP6m30878NW+x9VFxYwQXxA5w04Gwp0hkeq2+Nj/hKKkIBqMaZY3LmyKIRZnixIvXS5VS wbqQbEv5373WM5j3dS131AKtOw/o7IjgygTmraB+ioRDvtgdbJfTU+wMl6d3VA+ML4K+u1Sb9LsCA PWlr4A2Pw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lOFwD-00BAD3-DT; Mon, 22 Mar 2021 08:29:26 +0000 Received: from mail-eopbgr70042.outbound.protection.outlook.com ([40.107.7.42] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lOFu0-00B9Rf-J3 for linux-arm-kernel@lists.infradead.org; Mon, 22 Mar 2021 08:27:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bi3u/VC1Dcwavpp/RNrT9thkSoOv12r9Oyq/CJ1Exvuey7C3TRNZekVS2Ad5tAB2YSCc9ULbcJ+ANfuZTMA8qt6xZSlLlDMuV5Z7BX3aheqMm2GVrfGsJHdj1E9YUJZvCnNHbeYLNHBqTA9mH6bP47c0owugDkjpondN9KwYnEhbNc0d+qj5uQaVWJ5ggv5iIQLrjkTk1dVJEDVWxoUbtbCAht8YjMDPsB1xT7uVYFarpTeD3BkPfW2BXKXw9r1YSKolvTuNRTypW/LxxYGQdv5AwkZ4/68vJCTEIN6R0FYe2nV+jAUEjYqLbmRF2ur3+U+WjdV2XabsMLWmNclazA== 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=bCBf6unOrppIzqlJ6E6KQrd1OzGVoV8XAj786J/PFp8=; b=Zjx7TEEt7zhUKvik7iZnTmiZ9C0aVmdXsOtYYpiQs4QaSAEXSXNWUPU90F6gdFqLIyoPsXIL4yON+jnGqoiyyQKZMM1fy/PF+VhkUiOdn+sz6jDxSmeqGwsfv+Yt3GZ4yiFlmt9Wdb/xh0h5wjlqs3F1pcAV1KwIQZCl0BhrycQQfmQt0z6rMjN7X78uGbNAR/EF+w007/1YJCvxLD4gkTfbKZftrleqXfgaLBaXjh2OYpvBPtrgIGhuLLbZUEKAX7P4Q8P4kCYx9wIAgoDt+KqX5jyoyo8sfLp4OKcUorpGtBYOD4+xEW9avUYyXFBko8qrgPbWmevREwk7KjxAfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bCBf6unOrppIzqlJ6E6KQrd1OzGVoV8XAj786J/PFp8=; b=ZOCGMbuJL81EKyOsOYiJ8uU4GUEvuwGGGt38n45/OCvkaTIp1VJW5CnZuhAVvhW79JMUr0nevyryE7xb0v9EtkcKBPojNHwxGVwluxFDBMEUim7nk1H8W+wsIQYbBf/sUpZMiso4nIp5wKBq4lxUX1PTuQ035hKhfEeCNH/z3GA= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB5993.eurprd04.prod.outlook.com (2603:10a6:10:8d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:27:05 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3955.025; Mon, 22 Mar 2021 08:27:05 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 8/8] remoteproc: imx_rproc: support i.MX8MN/P Date: Mon, 22 Mar 2021 16:12:43 +0800 Message-Id: <1616400763-16632-9-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:27:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 18d9bf9f-be6a-4222-aaf5-08d8ed0c46ab X-MS-TrafficTypeDiagnostic: DB7PR04MB5993: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:335; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ZumD0z9jX+tPje2KiazrZH3IU4QobLExpJXjwlzjyaZro5khU0Vs5GCuXtYugmmoRS2H0siItl+ELBHBM5E9hkyxlkmOlWmg9Axf5VIor5lAR10kj2bIExiMt2nH1vOinmDb3XSyANXhTfjuFWiHGD33nZ0pzKDE4cGYRnrAxEkVFWlgvEH2pus+GUoUroVodqftgJXX/0pZfOpHEFXEGAHPIyAUe7/X6IFb3z9Zhq2XALnnvKulrWLwdz2JlG14bkjFbca5IwdV7WBMmuQPKYqQC4GyRsiOBPfemLZ0YEhUcTwkJgm9KIIcE90PwuVe8uTjnTEjnZRIDc3rLsSFKknmJ6hEzANo9stgp5hGuqI7fyF6Q/YrI/VISgBiQ7CECJXRCq6GKEFYpxqIfnMu7yhsibvLQR8lc5gEnUDQk6JLsgdiD3614lKQR7ug/xcQVoflJyx+IU5w//+RksmGqqgisOlmRvlOhlV0npcPxdAJubM/791LwufRj0GnXzCNY3PP2BQhDhwEjG7/AaX23IqU+FtBDIVKI9TJk6ThAm/+M0i6B1ftJVnFHqfc8L2Bn8AWqnEoU2KEnR7XtnZqnMQ0/rwegThgI+mxgXboGWHnjZuBKMInmabzFWZ+L1pDgD/VCUcgy/+v5VA4YlxA3exkDtgv5HYzn4ARqT9hNxB8LYvi0B+776t0Y2MKVUX X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(346002)(39860400002)(376002)(366004)(26005)(186003)(52116002)(316002)(6486002)(2616005)(16526019)(7416002)(6506007)(956004)(38100700001)(8676002)(8936002)(66946007)(69590400012)(66476007)(66556008)(2906002)(6666004)(5660300002)(4326008)(6512007)(9686003)(86362001)(478600001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: VbfYH4nmh68IwS8LxH87MPdvEqqI1i06T24h0yniWITJ7OAEq9w9fXEyj/9cwNM1wE2RkeVKahCYqpWbzqfXlC4i2mM+y6xY1cNyXS+3xRmFQvULNb9PXZQ0cOjAjwvl1L0PnQacpbQ9hxrtyhFA9wswSyEwsYNK1WgD2DPA4jy7/DLN/ukERYDb2eHZejhRuqOMHCY1qipuvegaT5+bYn/giCZXhjkrY6WTYpP+IIZ1YxPa2kwCBaA+hoBqc/Es2JbpciGcPjQRGLxvWwNLaZXB5d73lS1P0qUJUqfQmjvLH3UiOxnCCPtudAojILYDgIs2g2lddD2EVO0VTtGuPkbegixZntvrCx0A9bKdYcMONP2l/2vZO9IIv28TGG6lR157lBr824lITczBiUMNsCJ+o74B/glN13dZM0R/FlzMyzXmJT2CCMlF9x0pDlu0zmYuO84UoxLcu4yyDGKDxbbZ9xpPxsgBASZ/BBd8sLL9YAhMW89qqM6wnZkam5z/LkbZFa/5bJ7bRu3PL7E6uYQwSQg4ToNsN1V5/v4dZ3yaxnlm7xhZHLQriwboraCOFy1eV4vsAACRY80hY6jw/+iIkW1IVZujaoTDdNpNOov0WwND86Yx7glUZZavPY90oPVmp2EcUNYlqgEqMlDH9dpCr73BDgQvAEMLG0Qwn+mPhogRXa0OA0v9PjdkhKwnMWR33V+FMn51O5qN8kSjzOw1L/FPUVM08BrBx7gXA8YWy+RT4w03NILdlTSOcydOUqrSLnKq7mT1aqFIcOBUwdN9il5o9AFR3xZ8vOuy34qZbPB2M7A/1SRD/65zhqZXxNzJ92oCUIB44Kj/OVtCpPn3GAazHdrmDzsRe7gMZTBmV0xCR3Wzd33hd69ZiQ1P9M4tXf5nSFdrIu/sj+NraRmboRL5HJXfgnNbzrU/SakuU+nCLFdFmKRO6mTm2LuKUTGPrhfREV8Ry207DPOpiYXiUzOjQntr02yM551BDUr47TLoHV9WmyECpmvY5/7CL9RFQaT/c+SSbFgh4L4tzqSitfWMvvjd1J7cYIoeQSrQ0k15xZQnauw3KHJea/ErrmqLBvzR0MHKHLuJxGILdWokkiEjGecn64kkhUTCu3xKVQGiCElzlm6iZ+EZ+qwvli0RVIWF83SCEQDM3Ur/SYSBkQ4Ia/CdpMB3Llg7wC/p9f9WA2nadM/xS4zSZjGG+pKfitjlLyBT5C8veXzpdYajhsycaKN4bxCkUw6lt59S3+J4ahtxXyuJWQJBY5Q8Z+fO+62uZ0XXl3dzNs3VDpuD0wMc+pmr90CnOVbLMt6Q1siC3Dt8ePh91T/ukIon X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18d9bf9f-be6a-4222-aaf5-08d8ed0c46ab X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:27:05.7309 (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: N4hFrfD0dfb/2qUPe9hnDCSdwojjdsptpFR8oLDlATK/SsTwo2MarBQCsLQQM8JGhfVt0DXzvPuPY3iWuiW7fg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5993 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210322_082709_610262_8B283D98 X-CRM114-Status: GOOD ( 17.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM SMCCC to start/stop M core, not using regmap interface. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 89 +++++++++++++++++++++++++++++++--- 1 file changed, 82 insertions(+), 7 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 79a6b65d60b6..948139321330 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -3,6 +3,7 @@ * Copyright (c) 2017 Pengutronix, Oleksij Rempel */ +#include #include #include #include @@ -50,6 +51,11 @@ #define IMX_RPROC_MEM_MAX 32 +#define IMX_SIP_RPROC 0xC2000005 +#define IMX_SIP_RPROC_START 0x00 +#define IMX_SIP_RPROC_STARTED 0x01 +#define IMX_SIP_RPROC_STOP 0x02 + /** * struct imx_rproc_mem - slim internal memory structure * @cpu_addr: MPU virtual address of the memory region @@ -119,6 +125,36 @@ struct imx_rproc { void __iomem *rsc_table; }; +static const struct imx_rproc_att imx_rproc_att_imx8mn[] = { + /* dev addr , sys addr , size , flags */ + /* ITCM */ + { 0x00000000, 0x007E0000, 0x00020000, ATT_OWN }, + /* OCRAM_S */ + { 0x00180000, 0x00180000, 0x00009000, 0 }, + /* OCRAM */ + { 0x00900000, 0x00900000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00920000, 0x00920000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00940000, 0x00940000, 0x00050000, 0 }, + /* QSPI Code - alias */ + { 0x08000000, 0x08000000, 0x08000000, 0 }, + /* DDR (Code) - alias */ + { 0x10000000, 0x40000000, 0x0FFE0000, 0 }, + /* DTCM */ + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, + /* OCRAM_S - alias */ + { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, + /* OCRAM */ + { 0x20200000, 0x00900000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20220000, 0x00920000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20240000, 0x00940000, 0x00040000, ATT_OWN }, + /* DDR (Data) */ + { 0x40000000, 0x40000000, 0x80000000, 0 }, +}; + static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { /* dev addr , sys addr , size , flags */ /* TCML - alias */ @@ -205,6 +241,12 @@ static const struct imx_rproc_att imx_rproc_att_imx6sx[] = { { 0x80000000, 0x80000000, 0x60000000, 0 }, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mn = { + .att = imx_rproc_att_imx8mn, + .att_size = ARRAY_SIZE(imx_rproc_att_imx8mn), + .method = IMX_RPROC_SMC, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -246,12 +288,24 @@ static int imx_rproc_start(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_start); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_start); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_START, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to enable M4!\n"); + dev_err(dev, "Failed to enable remote cores!\n"); return ret; } @@ -261,12 +315,26 @@ static int imx_rproc_stop(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_stop); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_stop); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STOP, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + if (res.a1) + dev_info(dev, "Not in wfi, force stopped\n"); + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to stop M4!\n"); + dev_err(dev, "Failed to stop remote cores\n"); if (priv->mode == IMX_RPROC_EARLY_BOOT) priv->mode = IMX_RPROC_NORMAL; @@ -591,6 +659,7 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct rproc *rproc = priv->rproc; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; u32 val; @@ -607,8 +676,12 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) priv->mode = IMX_RPROC_NORMAL; } - if (dcfg->method == IMX_RPROC_NONE) + if (dcfg->method == IMX_RPROC_NONE) { priv->mode = IMX_RPROC_EARLY_BOOT; + } else if (dcfg->method == IMX_RPROC_SMC) { + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STARTED, 0, 0, 0, 0, 0, 0, &res); + priv->mode = res.a0 ? IMX_RPROC_EARLY_BOOT : IMX_RPROC_NORMAL; + } if (priv->mode == IMX_RPROC_EARLY_BOOT) { priv->rproc->state = RPROC_DETACHED; @@ -750,6 +823,8 @@ static const struct of_device_id imx_rproc_of_match[] = { { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, { .compatible = "fsl,imx8mm-cm4", .data = &imx_rproc_cfg_imx8mq }, + { .compatible = "fsl,imx8mn-cm7", .data = &imx_rproc_cfg_imx8mn }, + { .compatible = "fsl,imx8mp-cm7", .data = &imx_rproc_cfg_imx8mn }, {}, }; MODULE_DEVICE_TABLE(of, imx_rproc_of_match);