Message ID | 20240123-imx-mailbox-v3-0-ed932945e0bf@nxp.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29F57C47258 for <linux-arm-kernel@archiver.kernel.org>; Tue, 23 Jan 2024 14:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=be+Wpj4yHIl4LSFnWz0POUclxTDUDPhMclie+4Mv54U=; b=4UC3YsMVh0w3lr +cOcJ2UrpNu8u6hxF0MiPrLDYvx9lBjhsefIUOH7XsxuEKuoJTBGrteg7fYw8jfFg2BBMD4a+l5Kh hFjDKlxu10A07zeMJTwa+2wcOAm1oyHDEEd47efRN/Z2oLmmv8A3LvVBDf95rpmM7jbbyiOKOeYlb Ga487RIaq4TWC3Jj0DZgJEI0PG8TgrFybF9t8c1WVQWWYlQNLzA50U0ZjqRiwD/0MBLBkt3eM/Iuw pgkWHbBG3m+lXlcGMrAU3Thg5U2FIjHpMD/mJprEu3xWYji3MlrClXAd0A89+ddbXY568N105gYHp JqCY2n4rbdAKjRjB+0cA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSI58-00Gt3m-1q; Tue, 23 Jan 2024 14:48:54 +0000 Received: from mail-db3eur04on0601.outbound.protection.outlook.com ([2a01:111:f400:fe0c::601] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSI55-00Gt2h-2b for linux-arm-kernel@lists.infradead.org; Tue, 23 Jan 2024 14:48:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ThZOpAiT34dDIxob+s3a2KsoM/o0uO/rCnjVOaIUi5yMZH3tMkCjWcc6jDQjWqNAXpeYdVKX3lI8p60G8q8OtZvexpqKA0r77zXThTxwXMRawr2ZK4zFxl+/30k7AWLqjmEf/VQI5S8BFYuxMaB/WlAlLd4X2U5oHrdR/atawRw226Kz5poHmFtX5aE3kBcRiARkWdPGaL8Fqx16kSpUFYRS4L8JzyLim7s9y8SpQ7PRwGJAk3fy3YxPhHVqCo6tFuEVGz2KyN/bUd7P7vV85e58cKi1D7PWRNfh3kBB3SyRHjeQmeaiUI/vbs+QOiWkNNs/kx6RJcRn/eygIg2myw== 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=aV6P0g2okQLMpCAh9dv/u80vsj4/KpZ8OzVy8+1VFzs=; b=M/gk+Mu6n+Lgu1UAoCYFIJTtsOF+qqiMyRVE8weoF6OG4NeMEFVX4IPczbDFaOZKuKDGTwSL429k5ks6QOw+Dx8IU4km9ngR6gkWMH/xJ2uBNefnVduAsFVrh6AsnFaTQBGPFYSwUvFGhwXrIsGWz8Je0wZyYKqJBWV1EJgiBWWke8ogtWrPNcKmWVLYdWojOnDk+PBDJ4a4gHBUECXIxRlXWZsXBLBipkr68FmVeTqrmh0hgphZ1SVmF9IMuBA1WOGDBQ9VXILEWzEr+0deHWoXuT7qx9xk5NNXMn1fM7+RqQF+FNtWVAil6abpwgPMuFAt+zJCKWFGHAEbWzaNfw== 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=aV6P0g2okQLMpCAh9dv/u80vsj4/KpZ8OzVy8+1VFzs=; b=hZDOj0VsDfTBjXEic+YVvGixpFsQBgADdg4wpctOg15O/IkaxRVPP4rEz4lrvvAwhCmCDbnwgksPWhR55UOYDg2VY2v02On+a1C5PAs4GaaAIbhf2pVV+ZTZLV+D3L5g4X1XRf632+L/tkp3Ts7GmeY9wroMIW/pE9Go9XBKOio= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM0PR04MB6979.eurprd04.prod.outlook.com (2603:10a6:208:18b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.37; Tue, 23 Jan 2024 14:34:26 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c499:8cef:9bb1:ced6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c499:8cef:9bb1:ced6%3]) with mapi id 15.20.7202.031; Tue, 23 Jan 2024 14:34:24 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH v3 0/4] mailbox: imx: support i.MX95 ELE/V2X MU Date: Tue, 23 Jan 2024 22:38:41 +0800 Message-Id: <20240123-imx-mailbox-v3-0-ed932945e0bf@nxp.com> X-B4-Tracking: v=1; b=H4sIAHHPr2UC/32MSw6CMBQAr0K6tuZ9QJGV9zAu+BR5iVDSmqaGc HcLGzfG5UwysyhvnBivqmxRzgTxYqcEfMhUO9TTw2jpEisCygGJtIxRj7U8Gxs15QyEHRIwqFT MzvQS99vtnngQ/7Luvc8Dbvb3J6AGXWKO3J+KghCuU5yPrR3Vdgn0p6RUnhtuS2Dm5kLfcl3XD /3JPNDeAAAA To: Jassi Brar <jassisinghbrar@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Dong Aisheng <aisheng.dong@nxp.com>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com> Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan <peng.fan@nxp.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706020734; l=1418; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=rAbz7Ij2mD0X5mfmCdOlo2Q/cfiU+8tEdRF19Keas4s=; b=5KDzwlTY9dvpfEfFP+8hJZdpW0y59KAG+Niao8q/cOxybPjp3AwvYtAJroV4Fkso8hx+EgUGf dRItebYKlLeBOvOcl2AX8pT2lG36s87/wByT1CvZfF9ysKlwAZXAs+k X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR02CA0125.apcprd02.prod.outlook.com (2603:1096:4:188::13) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM0PR04MB6979:EE_ X-MS-Office365-Filtering-Correlation-Id: e843b75a-e796-4fa2-728f-08dc1c20653e X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Xa3Lz1EvEvhCCWXUPTiKZyLPVbRsMWRSKwTW8O7Nhnnw1cZ3EF4dMaEuoHh38XJFZkARSbJ2PwQ8ORCMjTHwIHylt3TYousNzNUclvRG/gBnurnM6FGFWYMwVyzst3oeiVnYx67YFQq9TRuWRf6eLMl8VOL4FyYx0k5WCBl0i5v3k0M9WGOQnFycnsu0dpCLU7Y2z7Th+Tudz9lcK65FCqy2jiRNpDld2mhbDPEGdWaiAhek6vcmMmh6w/iRcGBkiLv7fFYsdrPz0D5yPcxRhB4LfX/ou8Pjz+izUkq6/Z+7JiWSMENnK6ADVRaUEdH4+fAUXo4ILZbuCUj+itm5uUgzDqfSgZmPsiZ1SbYVd+jrEIxnmFrdjIOaO9DAjB2ckKvkGKY50ERWoeM8B0Y2/iOsCzQX4e0Yo9X3dY4KJa8npnUzcOb3H9P6VvBzAfyqTYdaLg/cCBv53jcfaRiQsNXkKz/Ac5lPHzMBC0JXJ+8wUamQaEFYiob9RfgDKBuw0ytktPVTFLqhXdC7A7Jy+rSsE4FeaJxXm+PJj1MF9M0+401Q8OOgNmPf9f869qtrBfFpb0WZKg0FLKnCPO8VZrrYds4lnpYF1W0eAxkuwmxfybtikq+7g78fNFdAJgQdkp4Zsdc2wCtyqZdUiJUzIoXd0N+YFaSYejJ21I2e0W0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(136003)(376002)(39860400002)(396003)(230922051799003)(64100799003)(451199024)(1800799012)(186009)(52116002)(6666004)(7416002)(5660300002)(15650500001)(8676002)(6506007)(4326008)(8936002)(6486002)(26005)(478600001)(966005)(9686003)(6512007)(110136005)(66946007)(66476007)(66556008)(38100700002)(316002)(83380400001)(38350700005)(86362001)(2906002)(36756003)(41300700001)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?6n6nzIMVW1puJOOkasW7CLv3xamI?= =?utf-8?q?LkCw7rnVSl45ipdbVScp+ZGTNKH6Bb/RXWv9lQ2w9V4vyymQfwBEa9ARRVMPXwj4A?= =?utf-8?q?f9LXI9OTAo2tQispVSHBGDxRymQuS3+IVoQN2xuIeGUbqekiLlOWPIpDlIWCHT7L0?= =?utf-8?q?sdXyJNL2cNWk4FhuMLoxS92n8CWXBha7rBvOXpBHZ5pdbqsfVf5itfxJaxhUFnRtI?= =?utf-8?q?WuOOIOl8DiWM2PT0HySJeHy87FgB2qHMSVFFl4nCRnOBFeScNsXRhQxkTEnMXuPiZ?= =?utf-8?q?M/K4xctEUIJFxbTnwmcTSdlcU2s+y4Tj3SSYt3feIzsOCYpvy9xv+0Zm4IcEv2TQm?= =?utf-8?q?tXuJtFhHcFrhwX/TDIFfENc3dScBFVVBfGRjur0TTpK8dspfM/ur9sRlKjiBHEAUl?= =?utf-8?q?iNOfuY4wUCKrHDgm5RkejbEC9uJWDwQyR4fHIgBqDqkIVjKuKhokrMoGtPPiH+N9E?= =?utf-8?q?ghh5T80y5YeP4M3l3TX4ItYGuCTwWNhtISjYiGoA8IExd4lcN1QAYpzMHeWWP4M2c?= =?utf-8?q?gqBle9xDEdiXcfrxGSBws5AjWwJjGqxf+xiPOP6UeMYg6FLonR+uVSbFQ1MDgZNbu?= =?utf-8?q?Xh1NwShMW8GsQJzrU3DeJ0vo4iumMTBqHPD5mXIag1JsUVQROMQNxvP3OtUu43/7c?= =?utf-8?q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8?q?Fcc7J41y+Ntz?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e843b75a-e796-4fa2-728f-08dc1c20653e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2024 14:34:24.4788 (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: 3dgbD5iP7ICtGCvK61GcvRNGKxXKPHocb2EefMUkOP7Ap7eoro4vriiaQS0uoGTW7BQGy6XT1PTykIB4L8MgvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6979 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_064851_843525_61189E24 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
mailbox: imx: support i.MX95 ELE/V2X MU
|
expand
|
- Add dt-bindings - i.MX95 ELE/V2X use same register layout as i.MX8ULP S4 MU, but the TR/RR num is different. To make code reusable and not add too much macros, add runtime detect number of TR and RR by reading PAR_OFF registers. - Add i.MX95 ELE/V2X MU entry in driver Signed-off-by: Peng Fan <peng.fan@nxp.com> --- Changes in v3: - Following dts coding style Per Krzysztof - Add return type for init function, patch 2 is new - Check return value when tr/rr is larger than 4 and return error. - Link to v2: https://lore.kernel.org/r/20240122-imx-mailbox-v2-0-7b3c80333b92@nxp.com Changes in v2: - Support sram property and add example - Populate the sram node in driver - Link to v1: https://lore.kernel.org/r/20240122-imx-mailbox-v1-0-81413f655210@nxp.com --- Peng Fan (4): dt-bindings: mailbox: fsl,mu: add i.MX95 Generic/ELE/V2X MU compatible mailbox: imx: support return value of init mailbox: imx: get RR/TR registers num from Parameter register mailbox: imx: support i.MX95 ELE/V2X MU .../devicetree/bindings/mailbox/fsl,mu.yaml | 50 ++++++++++++- drivers/mailbox/imx-mailbox.c | 87 ++++++++++++++++------ 2 files changed, 113 insertions(+), 24 deletions(-) --- base-commit: ad5c60d66016e544c51ed98635a74073f761f45d change-id: 20240122-imx-mailbox-243021d12030 Best regards,