From patchwork Fri Jul 15 19:22:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 591014 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC03DC433EF for ; Fri, 15 Jul 2022 19:22:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230003AbiGOTWx (ORCPT ); Fri, 15 Jul 2022 15:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiGOTWw (ORCPT ); Fri, 15 Jul 2022 15:22:52 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2065.outbound.protection.outlook.com [40.107.20.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC95785A0; Fri, 15 Jul 2022 12:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5u9+1/K7gt8cRYGXqC84l4ABQk/XACNGVrnIbSBtH1zn84Bs2wIVKNGkAAvILNoc3baHA/GxYA7tpyB/1CVS/bByhU6Ah8+2m6w0OASNvfaY+i8p0OJYDI69LCe8+vF77kV9OSZzi4wuJAvTqanvJQIapCbHgNmyuBZP1mp631DERLZr/sUCaKPDuNspsJfWRb9Lv67ni4lhQNtsB8jYwp2RfRt7H5z27+TpH2beqV04skrEfKSyEETMaCbG2H96Wi/WIlJRfSrwO6hz2xLx90CKacmiJP4qqSqJII5wSK+i4xgL/nddC8pHenoQvI46AJDdRQVWefqZlRXUmPcMw== 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=PxyZmoQ4HPxt9JAZN3QVzBllZWpIazPpqniEWrzTllw=; b=mBm+znsZLDVRRLHSLryG1AP9ryXaRukVYNCsoMN7g9YTsxVK/thA2AVMc8006cCQ0lJ7BGSvybNHa35ciUplmEMCyQrneldqZ9eqCth77d0nj5AMWTMlySjb6BvYZy1bLIVrckDwJY7386ZQSta7Nm3Tbglhv5cjHm5NBEnahMOSBpNhmorfEIcy4/8p1aBn/V2YyiC3rPSvYWREFJaIdSxAI6jUJ7BYsk60r/YEskky42amZCsnzLLxYcvczZjutGV0k65FW32H124nlxDAAqQOBMFCIACVFwAQiFYbPRUeL/e1H5Gox1us/fa51fxcPGoMgIJO1J1XXgbg/VXNHw== 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=PxyZmoQ4HPxt9JAZN3QVzBllZWpIazPpqniEWrzTllw=; b=TaO4vnjbnUp/RhUZnTMw+TJ7Bjj6TBBzgG/H/Y9eXLKrcWhLAL7kkaNe6hZig8a7iayEnrrC9r5ASQpuqZBUh1yp1cYwel9g7UBA/kdnolz7lO6+1341E/4dp6h3xg486LHtVsyvD2J7Wy9FYakC6sf0XQaSo7+Ve9pi/3O2NFY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9186.eurprd04.prod.outlook.com (2603:10a6:102:232::18) by HE1PR0401MB2490.eurprd04.prod.outlook.com (2603:10a6:3:82::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.15; Fri, 15 Jul 2022 19:22:47 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::54aa:b7cb:a13c:66ab]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::54aa:b7cb:a13c:66ab%7]) with mapi id 15.20.5438.017; Fri, 15 Jul 2022 19:22:47 +0000 From: Frank Li To: maz@kernel.org, tglx@linutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kw@linux.com, bhelgaas@google.com Cc: kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, peng.fan@nxp.com, aisheng.dong@nxp.com, jdmason@kudzu.us, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, ntb@lists.linux.dev Subject: [PATCH v2 1/4] irqchip: allow pass down .pm field at IRQCHIP_PLATFORM_DRIVER_END Date: Fri, 15 Jul 2022 14:22:16 -0500 Message-Id: <20220715192219.1489403-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220715192219.1489403-1-Frank.Li@nxp.com> References: <20220715192219.1489403-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR13CA0084.namprd13.prod.outlook.com (2603:10b6:a03:2c4::29) To PAXPR04MB9186.eurprd04.prod.outlook.com (2603:10a6:102:232::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d5b8d0c5-4929-4f0d-52cb-08da669766a9 X-MS-TrafficTypeDiagnostic: HE1PR0401MB2490:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8SracrxzgoaY0iLMC7gxuFwFRLJbLOv1Dz0y0IfAKaJchhOPreu4LebltH//mdn5mjAYEvFVbYk0FQq5tUpAhzn5tHBtxl4T7LE15L1wFDNOKNuiGFgGrVK6tOab1QGyGjwHHkBzGOzrWa05++aOohIK1PwlMstemQu/EVfeDto9PwbJK+TwzjwEqsWun5EADZRdxHRZb7oqlpRyejfxVDDVyP4hPfGEzQq1fqt1gH+qdFt/cnndJsnesvcXxGUASk2y6/jso23gUOLPmF8cUoXRKGM8AtoFvcFgsmwN3LDi9kbVlaT8Rb0gJxl8gCqouavPVP9XCVoW98OKV2vwZM6ndOdqHtV3tj/6uelHtBTgfslITnamW/mpk2dwCPxCq5x3s+dgvdN5pAKSObgPm5nJFQfoOhEWrx4ww7PfPzzYJXDNRLTTxAUySxTIjRmroLzE11w+ms7s17T75pDpmBNA52Nr5jwVUFnmOJnij+YYkneQ9R8UWdafcq04vmmDrdu6IUuwNnW0etiUXw6r0ScvXnMdp7RyJKvgLi2A4h2a6+Iqv5UF7lsynpJ4fiPDyHLWqkTzzRicNvw1cviYqJJBiRd1oUyoTofsF16CYJx9znA7ggSQ7OpyPShp0MmNQVG2OVFhmjKyDVxVydatb+no/KJrLRoxy9Kill0MGyaRNKv36zrN+aMt38ThVpMoFG0xVvtGmugqNzutVaYO0uIp/iAnqiUfAmckj6W+i1WG8t1v/vsfZR9FjxQ6ObZazqgU8F+oYPmwRTaECoguYtiYRU4l4HP/LopGXwq/Qkpu2PU3wB6u9S/DA7gqqtu591H70t7TaQxuuZVqTYIH7Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9186.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(396003)(346002)(39860400002)(376002)(136003)(366004)(316002)(186003)(5660300002)(86362001)(8936002)(66476007)(66946007)(1076003)(66556008)(6486002)(4326008)(8676002)(6512007)(2616005)(41300700001)(38100700002)(38350700002)(478600001)(26005)(6666004)(6506007)(52116002)(2906002)(36756003)(7416002)(83380400001)(142923001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nkSMbGO3mc3BF2Iw3CUhb01wZq7jfU5SrySqa1oTmMZjTiSR2Q2S6vxfKyR8sZock7qz2OGqpgxzkqzuERRrYFBt439TqILHmbhjUps3MPyyjPA468gnvNdD7eqX/UJLFgPM37YATmwuJ7O0mI+a3ehM/qk2N4cSq8FKJZI4jTFAyfovqtMtWpGbHD2MBn+j4ul2Lxb+aZLpEM2mSx1VsBad10VoQ+SSya55+VvkgjBjVdnas6gqU5KBlv2oO9F3q7aDaS61NjVc/4jD9HIvnWBMAjSR8JJlcIDaIGcQPXtTlhLG29CGCryFOq8NHrUZO/WWv/7nYjmRAACLVjq5J94mfC1F19zk7uhjBzgOyalwPe78B+YM18naO+mn/1/ztu3VJ1Wbny8/K9RCPf+zfEI3fDhG+3nWAPnkzNQLms8wQe7AS5y/ekmcU3DMaNa6miSF+2I+til2wONrDi6yqILJd0KaHwYlcBKBtXETVPARGwaYHcUn9/JldMbhFYqQ1XAdeoEFlDmaG1VqEhqOqDTGzdyaKQa1OOsDNkHEiDNJ2CPscLrxhyUFDDspqGqAPdJhLKsq9yMMsdA2WeoU7ptjtP9edNxauFmyG0Lj/KP6tDRb1XibGCCeJcwiCLSyb0Lj3YD1rNqaH4X0byt010tCqMIdjuxvkAg6JkqDbhqpjBbTdtBgbSqCedavedvFlTvUUYHfsimRslPiyBbUvm3zftgxOZ/LoVXSbe1tWLnDI9P45M/KuMw/PKPHiLAFP6Q/9cpMFxqCRV/KzlOTfXNBK05uDyg9fbJzG5v4PE1R1UW5nCkd52uesa4ImYnt1yVies1fEA2a326T+IUIwdBRj4GXDctkO2MUx3TE+yNWE9L+9Ab56pL93rz6eZiwynJyLJH+te2wU/krhaIV/m9Vu2FZOIlw1SCELnAwYEmglNlMyFc28kdtnkZpiJ4qKDeYR/bkOaCpwEJuZXi+SsBGuad24xqlyPJ35pXErNdF3AqAjIdo9GPZ3X1zbL0rXPS/EDmkPgt2DScebLjPjnd/3+3eQm8aFx0h19vkowA5eb0YoYxVtxy2N49FyvFvJQvRPirNF/yo5DHHaZJ0ITEhvgs1QkDVMFyZ1ZNMLAABViY66sxV78OQJR1VPb7qvMUt8mpVWSKu2z/XwNKcbw9KkbmeKW4mM+i2u4y6Yq2xRgQAUkm0+PMJxH6StDAmW9cf62bZ1/nfv3YO3cEZgU31zCPZ5aQm+tMiAojCuXYLsU8ToIITXuEuwVHToEgqSbGpo19NHjoLDAulXiI5gEOOnAP7KotxyLT5TSkXNSSBp7/WErrfRa5IMURcnL+u3updmcS6FZ7BqfkkUcIAYFGcrzFSk0llUvj4njDHHqlVH0376atAZx4Qw0z5VkfYMYAGLHW4wJEpvfA2hzrzZ4dvmBgdzBnTW9tk9VAguT6WdchmiwyrxtjUGClSJ5HWTXpfTOemD6cpWiJ001mV/5pS/L3azmfrn0WuppO98CUls/IL5X4ApHo3BQ5ghZ+Lhxp4TLdrPMCg7Rg81qygHkbSQlLUyZOnwLlPkgTOic8= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5b8d0c5-4929-4f0d-52cb-08da669766a9 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2022 19:22:47.7938 (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: 9MTiLpux47U72mA4Z6fHzZTWw9j05REE78NCBcr8I2JaTDQOLEH9Ws03rkEq/Gxw2DNAhGNs4v7frI2SITjECg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2490 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org IRQCHIP_PLATFORM_DRIVER_* compilation define platform_driver for irqchip. But can't set .pm field of platform_driver. Added variadic macros to set .pm field or other field if need. Signed-off-by: Frank Li --- include/linux/irqchip.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h index 3a091d0710ae1..d5e6024cb2a8c 100644 --- a/include/linux/irqchip.h +++ b/include/linux/irqchip.h @@ -44,7 +44,8 @@ static const struct of_device_id drv_name##_irqchip_match_table[] = { #define IRQCHIP_MATCH(compat, fn) { .compatible = compat, \ .data = typecheck_irq_init_cb(fn), }, -#define IRQCHIP_PLATFORM_DRIVER_END(drv_name) \ + +#define IRQCHIP_PLATFORM_DRIVER_END(drv_name, ...) \ {}, \ }; \ MODULE_DEVICE_TABLE(of, drv_name##_irqchip_match_table); \ @@ -56,6 +57,7 @@ static struct platform_driver drv_name##_driver = { \ .owner = THIS_MODULE, \ .of_match_table = drv_name##_irqchip_match_table, \ .suppress_bind_attrs = true, \ + __VA_ARGS__ \ }, \ }; \ builtin_platform_driver(drv_name##_driver) From patchwork Fri Jul 15 19:22:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 591013 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93196C433EF for ; Fri, 15 Jul 2022 19:23:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbiGOTXE (ORCPT ); Fri, 15 Jul 2022 15:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbiGOTXE (ORCPT ); Fri, 15 Jul 2022 15:23:04 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2075.outbound.protection.outlook.com [40.107.22.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 454FF79ECA; Fri, 15 Jul 2022 12:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MVdRrDTR/MnmqEKRSDwUMXbDO4fCQrejRo1oAfNIlvJlOxq67NASM7i4wgdkSll+gBVX81rIhKem1psFjhlTLUD5OLhXtaco94/JE+OKp7/OxIJgM+mmxvo0lK2zC8aPcSDzVJHhCSy55qOyAsImq3jVb+HmvbG+eImRT8yO0AoH9+lCfmlX1Or3wsVUoph3Xo6YCQ5HsduuTIXlJxyiqjNI9LdH/3efiiCbeBVrfwFqfCzm9i2xVJhnM6dPbKT6tT9qe+YfqXYnbhVdO+4bBZV3pFlHZhYO/HddkJmG/02dC5rqSVlTE9SPUgjui1zZSnvllDVJrRNOj/ALak1tRQ== 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=9P0p0iFRI8WwaBrD60IFdem51ePNTmOiDYDu0Jf/RlQ=; b=GIUySnr8UW6uxwuDl+T9j+DU2cM1XE2o4CnhA1xgHgfpFrqqnhSray+ewDP0ljZazW5JZuephipS+UgQ+0MYTr1OuZWBCfB0sV6C8TqkvmyuNGQz3nBS2fYuqx61FCdVGGyeZeXP//nwYP1NtFSjMjNV64dtH9ukyRrz8DHFXpZCLAdC3CEKya19aaQuBaMmRdOdTZOBnX/4XD8fGMEXJlVwR8xieMoTbYX8TNUjxGNj2xiLG5ADBvmnKSkim/ay/sl19QHgBOX3y8CeJ68iXlQ0b2RhS+UdfnkmwW+GR6f2L3IbyFKd/Dgt9UwEaob08bOXW+THmFiqA+Q+96EIug== 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=9P0p0iFRI8WwaBrD60IFdem51ePNTmOiDYDu0Jf/RlQ=; b=QcFvL7cXPK7o4pYOoBl2BQdMgz+nowBQKrKZ676ihMeN9zzAjcnwujtZTgoMX1+VzTXBuNiTX21TXJcNqxcm37vf456Ot8jn2d4tf96aQU6jmb9oaLQ7I8q7JeKYZh632VhKMpps5jdnqtrxdAsYrMuwqF0urXjmRnyhf/9chpg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9186.eurprd04.prod.outlook.com (2603:10a6:102:232::18) by HE1PR0401MB2490.eurprd04.prod.outlook.com (2603:10a6:3:82::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.15; Fri, 15 Jul 2022 19:22:59 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::54aa:b7cb:a13c:66ab]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::54aa:b7cb:a13c:66ab%7]) with mapi id 15.20.5438.017; Fri, 15 Jul 2022 19:22:59 +0000 From: Frank Li To: maz@kernel.org, tglx@linutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kw@linux.com, bhelgaas@google.com Cc: kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, peng.fan@nxp.com, aisheng.dong@nxp.com, jdmason@kudzu.us, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, ntb@lists.linux.dev Subject: [PATCH v2 3/4] dt-bindings: irqchip: imx mu work as msi controller Date: Fri, 15 Jul 2022 14:22:18 -0500 Message-Id: <20220715192219.1489403-4-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220715192219.1489403-1-Frank.Li@nxp.com> References: <20220715192219.1489403-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR13CA0084.namprd13.prod.outlook.com (2603:10b6:a03:2c4::29) To PAXPR04MB9186.eurprd04.prod.outlook.com (2603:10a6:102:232::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c645b626-7fbb-4bec-291d-08da66976d9d X-MS-TrafficTypeDiagnostic: HE1PR0401MB2490:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /qBjUT5253lOqAnSRNqS78r0dhlAAzAS2ZXydn9vH8IZdo3YNy7/bWvGMXKcm3Bh3DRbMwlME0C/k3SfndbMsInh0OXV6jMl9eJR7b2J8PQ9Lo2M0HIP+XGGD76BETw93FhI3RpcfKMQ/ziOApVGxKI7hMwNCbpvT7j0THgvmc1Vlc6k8iejJQd2q0kU0kgrvvGjEGvbeg4+ZL95zjj5KOBoHWfb4d3HCdNKuQfl2Acd0xJ0/2fomzPVGbl54Nu1LtjHdBFeSy6o/BpNg7BfllCHuEH3CMIxljhG1P9q9Nau1ToQ+z2hfHxopp652uqvaXoktChpSsY4FQ5HPF4svd2UhnydB1Wd1KCHWhmnyMob7XvRV/g5QINWleJ0X6oOLwXGFat83n8LGFZ/bUdERUL8LWt/bx4/zCUZ6dHqtM8F1ZEP3yrutLl4pxw0U0+FfzMchnFZBzAlax3qMg4Qz+01cFOotG+kQNjcdPaZRqeF4lvpnX5A/zT34jOA7jeBMHi+5PVihDLhjiAC+QVGZrKERd/B/A+y3UrvcbnOlau7/uji3wmN95Wfi7VFpxq493C7Xn5Bj6joKVfhi2wIQ9+3jiuASjYQoNBo6XYPHOERfHbc+IcXMbqHfUM6HB4AC+Ip2jjoX9Ay4ZD/zJUROrIPMmWX6BzMh0M7QBVtL3TbfeveYkUYNqzAGuP5lvCrdC0RCDwh7pcxc1dLmqUAVSt3mdcW+0AnPPtJTtiXO7ypO1pb6xH5J5sJWqFpRt4QDIaqOojpZAaFZgV1Ir0qicqPKLpcvALfD6kT2qtdzAiSHkwzLb7TllL6341KldmTshg/gbWe31DxPfT6DPWx31apWvnNDq1bZ3yEzgBGMUq+vk0n5fH1jm/mLpVPJTil X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9186.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(396003)(346002)(39860400002)(376002)(136003)(366004)(316002)(186003)(966005)(5660300002)(86362001)(8936002)(66476007)(66946007)(1076003)(66556008)(6486002)(4326008)(8676002)(6512007)(2616005)(41300700001)(38100700002)(38350700002)(478600001)(26005)(6666004)(6506007)(52116002)(2906002)(36756003)(7416002)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XjZWsSnmcXA/gxqWul7qNlTFBJGZQPvogs07RXG8fnm5KJwQcpRHjT6MkvmvGxg/lKOOuq2kgIHOdYnqZMeiIE6jPSb5YD/1zu7cyBlpGEnkWDf2AHVHqebJOqsOohpkeSvqMsAi/T6npQNIup53m9SrRMzHr3Ei2LOsRnSmvmU5ZL8kTuyrK6qtgd++BhlECx2YNLSxwKNQFycj3fQohjFooRNdpPhuiLkC5JVghzUKa5v8pgHftWdNGKhoW9DAURwBlkGXXS7ts/f1xEgQt09dbTRjtT9RuzNMVk5MoOXyUGyoqNTOER+BnuH6burXzkXK3H/NN4RivdAEdYW7G2IdhxO2UhbapaBpNe0MPRKldmGc/7rF5YKjLncfWKG50/ciu9PXHHx70vmF6spyxUiBmvtC4n+tYsvaMdG1vGDj3PnnTaS/r+RuuE/mnL+zqmpFoNHMe3WBKtrTA2dLNynaYAEK2CyjlZhyaFij4aos0lpHhlhm1DjXs30fRshYKhJ1w4o1QYqRxBAckmH15oW5HvWTi8popTMIbnpH/Idot4naHuNY0fv9HIxbxQpQveBOXwuMUXMLT7bNAjtDfemfMtKC1pyhnzmEf3PN/WCpRxh8XQ/M9hk9OJeckzeQ6aRLR89UgjQjJfR2dxExMsI5n7PTb6+ljnq99PpuJUS6zHQPKfFGqeU6a6nPpWSwtFSCT3dbCy6MI+pIlmvEWdMTCUVj3UG4ryeD4iAkMZk4rfu3igAkZ1S0nEyz9AfHls26xQEtYEUioIsz61g7elbMewETJ6gSOJQ2BIGyowcXBe06S640QRsslMmZpF4JzNL50J6zbONXsER/vLtwuE7S+RBjXvyo9AXtA89NKuR4vFMBp+/iGlA5H6YXeXn61bpG+ESzVwxGi3BcembmOuf3Ko/jDKmTx7DvNUprUTtPZu1AUTwnRRMZM4o9Vgh+Ml5IcwpVqnm6vh0UBEFms0tpNGsbxj4bO2jSFRhp7He3I2h6vR+euLckjHfrYh8zsl3HgR3fJ4Wek3FF4dCAMmYpjjSaJEmcPvsXuVEb9YNe5cdM4EV70vksipIuq1TTUlY3pL2jmTF3bKp2AHbXYGBuTY398adi6fvh3waToc/Y+cO6eyshPS04ziUrVaCE8hQy4X/LWpdqpIE/MXh50TW/dULZwE+IrbUoyDj0K5BDYi3pHAhjECtM+d2103RfhecHl4cwmcjDmhWDbHmOtkFm5CN9/HhqfZjxQmcf90Ith5vOfKAvMCjcfb9DNEvY0H/H7bPytkbuJArKHXTazsvqP6UGYzLKW2ZzvY5hH3MUFdVugcKhnoAQGECFrw4QT11RVcVidYWnRLkuLR7/445SjXJR+d2tMcLqu/OCr1y00TsJSU+U41M/FZj99uqfKdKfDu1i7Ke8DUcEpOOjxeYexVTL2OIZ9hIzuZV5GviEvcOHlzJkB5schVMpW7pmFLyjb0l84RltntjxvJN1ynpSdyTVD1aWnOkQTVY6Cl5PpYreS4gbKlSoR3lTn4Y9ht1Vj9DdlxneXoGKLGRbZLs+5QzQO2bndN3TWaNNFlo= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c645b626-7fbb-4bec-291d-08da66976d9d X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2022 19:22:59.3175 (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: WGASoGaDsu9IrPMPHRGxXfwNkTdeKeC47IEPQMyiZ4sDF76UyUbDNQCcx1vK29jB6HRZiChM11gCH+EUCMs6cg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2490 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org imx mu support generate irq by write a register. provide msi controller support so other driver can use it by standard msi interface. Signed-off-by: Frank Li --- .../interrupt-controller/fsl,mu-msi.yaml | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml b/Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml new file mode 100644 index 0000000000000..732ce770ac3bd --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/fsl,mu-msi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX Messaging Unit (MU) work as msi controller + +maintainers: + - Frank Li + +description: | + The Messaging Unit module enables two processors within the SoC to + communicate and coordinate by passing messages (e.g. data, status + and control) through the MU interface. The MU also provides the ability + for one processor to signal the other processor using interrupts. + + Because the MU manages the messaging between processors, the MU uses + different clocks (from each side of the different peripheral buses). + Therefore, the MU must synchronize the accesses from one side to the + other. The MU accomplishes synchronization using two sets of matching + registers (Processor A-facing, Processor B-facing). + + MU can work as msi interrupt controller to do doorbell + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +properties: + compatible: + enum: + - fsl,imx6sx-mu-msi + - fsl,imx7ulp-mu-msi + - fsl,imx8ulp-mu-msi + - fsl,imx8ulp-mu-msi-s4 + + reg: + minItems: 2 + + reg-names: + items: + - const: a + - const: b + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 2 + + power-domain-names: + items: + - const: a + - const: b + + interrupt-controller: true + + msi-controller: true + +required: + - compatible + - reg + - interrupts + - msi-controller + - interrupt-controller + +additionalProperties: false + +examples: + - | + #include + #include + + lsio_mu12: interrupt-controller@5d270000 { + compatible = "fsl,imx6sx-mu-msi"; + msi-controller; + interrupt-controller; + reg = <0x5d270000 0x10000>, /* A side */ + <0x5d300000 0x10000>; /* B side */ + reg-names = "a", "b"; + interrupts = ; + power-domains = <&pd IMX_SC_R_MU_12A>, + <&pd IMX_SC_R_MU_12B>; + power-domain-names = "a", "b"; + };