Message ID | 20240126-imx-mailbox-v5-0-7ff3a3d53529@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 597FCC47422 for <linux-arm-kernel@archiver.kernel.org>; Fri, 26 Jan 2024 06:26:34 +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=/iQPxH0MHg4L7cC96phRZh0r9r26lyylFsHF65XWoJg=; b=E+sU15irTH3/Jo 66/MkD6G+gI0FHquBbIS/JsT6RL6D/RjL2yke36Ac9c8xMmF3DJebrBJO6IX67jdk5ejs6NX3DMmC Hj+bKR2MvMOq55GFvg/CFaHvN6MbjSu6n3QIvZK62NNeXIPaGr7dCLxcn3GYbZuDIB0nlUG6zuZBo Oe/dsDi/DzQUyqAGNEfTNGOwTwVQ7o1ucpvz2pH91CP9yzVMxCL8IkJPUF33ksTl6mO3GOkIG1Fl7 wknMSZ1UMxRjBwYuzdB1o/j1Yth0OeHtP9XA6tiSeg8HzCO90MMLmeDZKpgNft7PSW0OdST+3p42S Qc01Uye+S9GnctD9hEbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTFfW-00000003Er0-0sOU; Fri, 26 Jan 2024 06:26:26 +0000 Received: from mail-am7eur03on2075.outbound.protection.outlook.com ([40.107.105.75] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTFfT-00000003Eq5-45pb for linux-arm-kernel@lists.infradead.org; Fri, 26 Jan 2024 06:26:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k6THnEJ36Ge2UMqpJgmRFcQqzW+scv7gXRKfYD84D/TS1NCSoOTYOuaC/RaDORmDGBsjg+QSn0ukk20A6FLwyEfb0C9Hja6mF3DwEc8qSE8FjI0jkwcuxi0BYLXgOrAoqBat3iWdl0yz/d1Me0FUtAvsqFasKpj6ILv/gbAhfSuQfsCmwqxeAdQ+OY4HkCUGICNh79LPEyAQLRNx4G/UcaD040djvPnDTF7TJnAh9ai+U3fdzRTPI6rIv0QuBqjsuP3LDHs1cDV7ck7W6L2w4e9pItqrUY5z/4Uq9qNZ72ueF8Sf9GynOwsRai2CsPfDXtFLp6LdRZIKY68RrCBuQw== 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=QcgguXYFur4GnDCQ54EYG1SMe8kQ/hGD2bvUQc8Hid0=; b=HX+FP3P+IlVF/gJklj4e1A4HBCz7wBZP8OGEMDZFUyN0t7pK0//9fw9CU5qICM6u8heGpAG0n0loJ8A4vzTbiVempiqd7mfBV2NMrU0JvEFS+TK7EOQ+KDg/Y9YtLLIhgyRto24cowcOGlPmWkJOxexJhqDzBGK+enI0iQLT+3ldOcWyn/VoxSKzjiFD4/l6PG+sQsm/mO991ON5hmXNsn8ec2x+Zm3GKanmqeiOCe2rsEwnq0TVKVm2YhYYt/xMyin5MnsQG3gtuUYalIsG5lxrg+cI/8e9s2gSoByXmyuB+jmxs5W9ngrdlxu0lFKW8c0KmwssaxFL8znEfLNn5w== 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=QcgguXYFur4GnDCQ54EYG1SMe8kQ/hGD2bvUQc8Hid0=; b=BynW9fB51gtvdp/RUEVyi9LzLT1BMdBC2WCkfydCRvA5cY6eluhchUqAgNvMELAKP+vGiVn8D/RIVVsibcQIyDKce5JmwV+AKXqf5mlxO2Bts6gcoY8ZHagD+6/H9u6XBFyf2/P6+r7tJgvuocslV5nJsa69lqbU124JpElrm0s= 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 AM0PR04MB6851.eurprd04.prod.outlook.com (2603:10a6:208:182::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Fri, 26 Jan 2024 06:24:57 +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.7228.022; Fri, 26 Jan 2024 06:24:57 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH v5 0/4] mailbox: imx: support i.MX95 ELE/V2X MU Date: Fri, 26 Jan 2024 14:29:13 +0800 Message-Id: <20240126-imx-mailbox-v5-0-7ff3a3d53529@nxp.com> X-B4-Tracking: v=1; b=H4sIADlRs2UC/33OQQ6CMBCF4auYrq2ZzrQKrryHcUGhyCRCSWsIh nB3CytIjMs3yfdnJhFdYBfF9TCJ4AaO7Ls0zPEgyqbonk5ylbZAQA0KUXI7yrbgl/WjRE2AqlI IBCKJPriax7V2f6TdcHz78Fnjg1quvzuDkiAzpRXVZ2NQwa0b+1PpW7FUBvwjMcmLpTIDIrI57 iVtJe0lJemqnDDXxoGt91JvpdlLvXwLYJ2hjErcfDvP8xePg3arUgEAAA== 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=1706250566; l=1868; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=s2pPcBvvhviXXmcytUuv1TvGm8oXgfY/nwlILYNt62I=; b=Kzi4JiaUP8nnwzAnMSOJm2Ia6aMF22jhuqv7sTCWOew6yk9rQhrcxCYEjNe6VwNM5a9EdMGWH nQZ/9MnaCDpB46fDPh5pfhbj0fNgtgJ8BpxTj0/BI9VMDLbW1OSVctX X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0215.apcprd06.prod.outlook.com (2603:1096:4:68::23) 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_|AM0PR04MB6851:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c4a5edb-b0a6-42a6-4905-08dc1e37842d 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: FITRBP2wRxnAVKHGMzfvlmyVasQL7p2OVeFhFch/0wTNvQ7Ls0+fTFOZ6/T5RL7TRBFtAJfVheXta8u8pHnNab3ZG2NgSJfQqI2ls3dceZ6n4eaOKmuP8WV6xEasKHcJW01s0TAd9osqxIvCnYX7C7nOKkzErPeo0MTsYcqny/sWzdt5P0pF7faI0VinTKh5tIvrMbBsD2y6Vnrgx4FMx7RWEwkw4L62J99Z4Yphs6L/2BGAM4bM49cRP3NHkK8qWh8FqNwq2OGtYguDudNLAMzEF0Em5amx+dkqEmWJFdxhpt8X5f4ATX7/qWm5tPg6tFnZmM4Or12ClqiVARdEAJmza2ZMFYdxXYgknNBjRSlkuOTfkmsJ/xMt1c5UE2Hu9kg/t+psBzuB/aH2DBykYAyC1KgNEiaMhaqBjwt4OnoFXTlxdTwDdtu6N69ggYlKdBaHMhgrP819ELN6q0IryqCbiDxW2+PM0hGrL/RKCHPEbgPjkT9jxykbRUZfHgngyNpd4XVKkI84Xg29mJgdE5+ZnUWRiWG7PLpO4jVuWgtJ46qrt5zP0LU53VaxDCfnNCCDcE7FjUVaRdbisclLVKAYXNl3U6xxArRHn/LYbm98fHDitEyMUHlpnDaqAJTj 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)(366004)(376002)(39860400002)(346002)(396003)(136003)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(52116002)(921011)(38350700005)(478600001)(6486002)(966005)(36756003)(86362001)(26005)(83380400001)(38100700002)(110136005)(8936002)(6666004)(9686003)(4326008)(6512007)(15650500001)(8676002)(316002)(6506007)(2906002)(5660300002)(41300700001)(66476007)(66556008)(66946007)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?u+TlUoYVKGBCgO6IdxTI7bR0IzxX?= =?utf-8?q?2zS0aa5NB4dxZFXAZ8rgsymPI8M0HYsmpxjyPgj1lybhmlLwEywLxlS8TUeMZMDM1?= =?utf-8?q?LnugOGvFP+NZ7mANhsTgnzkIM2fDzOQQT0C2g7bFXSONF+suiXKwVrQD7QR1gjIOK?= =?utf-8?q?jpNJMvRrcu6EIjILJx9z18KrjLC5nfb8Finp5+IDtUt66SuI1eNlwNUXONXy+hpyh?= =?utf-8?q?OqTJb3s0tBKEDlxaJB+71Wkz7rTmJgcyGMnifNi5bD24aTp2yIZxPMJ3Z60GphWvl?= =?utf-8?q?wKlJT6F5idE8G+AjOiu66rUM/JuugztzeFcCc+RO9+2eKDFhrEbG70I7mXpU70gL0?= =?utf-8?q?zt2d7Fhv/hl+/nM8fEeW12qGJ9DzVz11g8ZEU9Tgsr9w2DhCF2WIwGSzP2OgU+vS/?= =?utf-8?q?WdgQJURRHhDqRWJgz4rnKw+QT768trenIT5ThokzeKngftoW3NrDombU7nQ/tsyse?= =?utf-8?q?jkYR8ZIUgjihI9ULHS47DJVLbIgm0oI5dj9PRVFErg82lQFU1MzqXC4NDx39I/zY6?= =?utf-8?q?WKn6J1LSeQJ761OcBec/dro7sUHLpHSbvR5xDxkPH2XRJ8c7+FihP0IWSP1znbzVP?= =?utf-8?q?+WLvWuJXCRN65JvyIqf/AYnnYU3yLMDzP7dsprTgjOgftk5MunIuHVB/WnMopie8w?= =?utf-8?q?rA1kINy+spMJqBbZJniPI9Aw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Exchange-CrossTenant-Network-Message-Id: 1c4a5edb-b0a6-42a6-4905-08dc1e37842d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2024 06:24:57.1786 (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: s9741LRat+ZIyUXU5SeIEbx3WJ5SLGyWIL8ZidCZrWL3GOSzhkynQ8y/EQef2STxgnL/ty4TfRJlMffmcCdrUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6851 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240125_222624_054654_AB6FD569 X-CRM114-Status: UNSURE ( 9.92 ) 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 v5: - Per Conor, add restriction to sram property. - Since i.MX95 MU has SRAM, we may not see it is compatible with i.MX8ULP MU, so drop the fallback compatible - Add R-b for patch 2&3 - Link to v4: https://lore.kernel.org/r/20240125-imx-mailbox-v4-0-800be5383c20@nxp.com Changes in v4: - Address dt-binding comments in V2 from Krzysztof - Link to v3: https://lore.kernel.org/r/20240123-imx-mailbox-v3-0-ed932945e0bf@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 | 58 +++++++++++++- drivers/mailbox/imx-mailbox.c | 88 ++++++++++++++++------ 2 files changed, 123 insertions(+), 23 deletions(-) --- base-commit: ad5c60d66016e544c51ed98635a74073f761f45d change-id: 20240122-imx-mailbox-243021d12030 Best regards,