Message ID | 20240125-imx-mailbox-v4-0-800be5383c20@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 C4F12C47258 for <linux-arm-kernel@archiver.kernel.org>; Thu, 25 Jan 2024 05:16:22 +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=uh4CuJt+76InvDq+EiAHNZNz5j3l9j6p+3JW0Xarloc=; b=J9vZ2BKJeW0uZK TOtQysgu9KtqGGrmDomo2bAHRyPDogv2qtW7HAt5tiWOOgjrs8OUI5ktD64l0AOVwGQG/0tgMlvP7 e+JvG+6XhpO3pcoq4jAC0usJzsvAvujgS+9mx5z8kuK47OLs0HcqyKVVbFy2RzmZrVXiuFYUrf2QJ najyaS9qfc77jaK+NzwRLwyxJJZd3QsBmnC6dCfuViCb5AmnddTP+T8u+gNETUZ0Iwvu2gQ+sefc6 Fa9yWbVYlpkdi0QXaFkNhOxVOm580hMgKawlI24Gw67GaaxL9Wsax16qZrTbBkZejSlWm4K91rhOP tRDuT7ishq7Ev5m+HoOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSs5l-006RBN-1O; Thu, 25 Jan 2024 05:15:57 +0000 Received: from mail-db5eur02on20601.outbound.protection.outlook.com ([2a01:111:f403:2608::601] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSs5i-006R7Z-35 for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 05:15:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eqpukSS3DKRHGjDSClO+CWRWXnD94IRHVZ1maGa4eHC5EJ6sN56F0plRdwMs3JA70YE0nrbR1wzRFekIIyZho5psqL+6Jc1ysImLK96/6Ko/IldK0ladqf4MMtUTprxOk4QZbc4WtQbrYVclyOHX1Y9ACLR8HA7mpdPmpMq0zv1xS0UJEFXYQpjvMPbT2EOkl01jVL/3NBJKfJ8cUj45CxXMqS9KERWEpE1I9W+dUfaWf7XNO53GbgucmeJmPN8U1jyfObfVTKP/WyRzQ6VZWcXeCtpZX0s0EwxEpN1awswkmVz0o2bmSkFNShREMhjS9URm5n+HXyXunxlmYCUD3w== 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=b72l9oEfIvCqetEjTGO/heeBi4Rdohlhcylb3bLPmq8=; b=SfMm05rsAm/Guf4zf90LESVkq/7i+2Q5qBRj40raT2WEaqUFqH0rjbinF+W4hN00qMIyGdtZOYdYnPs5VfFyYzHVu2/mnszifmzMTl/M8Tll4w1rTI/LDDvKFKbHEoljtylFIjYxfhrHJs6FInaZBP+9+vDwoZtdCDblNQW79kENCGu3aPVT2Z77z0jlSW5W4VC8SYOY9J1jAGWy2Eg/jK7a9cev7YzY4c0cueE/zPyKKBLOG0v0KjjNjdrZ6eZQpl2wzW1VNWY97fmyrOBxNmm54m74ov9/y+FORyr0qetVk3WfJ1NfFRyzEvV3KyP1jAMyb/UnbPVmZgI5yuJn6w== 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=b72l9oEfIvCqetEjTGO/heeBi4Rdohlhcylb3bLPmq8=; b=YVi/5tA5C1DxuQNCa9ORxuqOXpHODbER7TLiB1JVe4VBgE3Xoc9F7j3et5P6axyYCB1xYs5U1kfmjNNPd8Z6+XKbQxE2qGPJbjkJrjNFsZhxSqePw7RLJEPPf7q4RaH0OJZGrwYLXbFXWz1fgULmAXf9SULuqzvyXaeTnHySGCM= 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 AM9PR04MB8275.eurprd04.prod.outlook.com (2603:10a6:20b:3ec::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.26; Thu, 25 Jan 2024 05:15:49 +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; Thu, 25 Jan 2024 05:15:49 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH v4 0/4] mailbox: imx: support i.MX95 ELE/V2X MU Date: Thu, 25 Jan 2024 13:20:02 +0800 Message-Id: <20240125-imx-mailbox-v4-0-800be5383c20@nxp.com> X-B4-Tracking: v=1; b=H4sIAILvsWUC/33MQQ6CMBCF4auYrq2ZzhQFV97DuKBQZBKhpDWkh nB3CxslMS7fS75/EsF6tkGcd5PwduTArk9D73eiasv+biXXaQsE1KAQJXdRdiU/jIsSNQGqWiE QiCQGbxuOa+16S7vl8HT+tcZHtby/O6OSIHOlFTXHLEMFlz4Oh8p1YqmM+EdikidDVQ5EZArcS vqWtJWUpK0LwkJnFkzzkfM8vwGbCLFDGAEAAA== 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=1706160018; l=1576; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=OHibuWiHW9joQ/i3oX5djNsOUMB+zEvP8Mx7g9EB5Kg=; b=UvQjsWXsf/l1ApsuopmRjbUz91YcqZ3G8BOCpI2iJvi/He68tOorlBJUipKNBhNYfDuy22H3c Vr65sJ1JmkkD6euyyWLZd5ffk9Dcoa5XEkalHPybF95ggE1Egj9xwqm X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR01CA0036.apcprd01.prod.exchangelabs.com (2603:1096:4:192::22) 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_|AM9PR04MB8275:EE_ X-MS-Office365-Filtering-Correlation-Id: fb95577c-f13a-4713-57b5-08dc1d64b13b 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: SqHHmKqbEYwhf3yK34qooQCSMpAQeIWSAIv3cRZ16AjM0AiOhrnohayvJwqgs+qKu4BBL5+x5Zg+NJSQZDAJj4SaZYpzts5+jmpQHeTFsZgVXkDKe7vpjwJTiDb/VsLuBDcSQHgzp6dlwO5MyKi3JNjDh6wbIEmK4Kk2wJaqwCHIofFhqKjOCl6bsGBjdjf9kvXuE7bRCHlynjfn5ziwz0hktAqLmtqZQo7I8yrXv614p9stRSQlFwbKufzPYkPTGExr8Yy/95Hu0H1AC+G1MI5aRiMnvDhd5UaUPArsCXXVhq12y5LqOWYl0lfKRN6CqOJhnz6sPPD1oHeFgpLYazqyjj50IIYvayZOTqGl0FKwsR3yQy+iz3HYQI5B9Cit5mte6LXj+6EDWN3v9O4RWXCEj8gO/6o51WphjtlWXRRzoAh62/EdyQ8W6hulBK4APwhC+ZWoYp2X1DveJ0yWW0aD3PvSvUvw54+jcC7LaO9AgYM9wf62S9W67bng7hxMz7Ret1E8GQ37oSTTJu7lIYzUWCRu38PYoME/BfdCWw+Ryk7VlUUu08+LbwI+AtIGXAVWkl9kXKNOSz6uuy+MM1oJU/k/v6EVatR+JPBdH/ZV7SSlSzhmtIy+EWwupSh0jp7AsBlBePqSThpqovd8qHV9LUtTfh7kIb8eDlz5SPQ= 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)(136003)(346002)(396003)(39860400002)(366004)(376002)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(921011)(41300700001)(26005)(966005)(38350700005)(36756003)(9686003)(52116002)(6512007)(6506007)(6666004)(478600001)(6486002)(83380400001)(38100700002)(316002)(5660300002)(66476007)(15650500001)(66556008)(66946007)(7416002)(86362001)(110136005)(2906002)(4326008)(8676002)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?MfjEdrYCcukN006MlMB7iBgSUTfh?= =?utf-8?q?nrNVUOAidnUU3I+/oXBgE6oC8M6ImaBgpPztYRsAShXKfcW9tCxXsAn2gY4+Uqn3y?= =?utf-8?q?lRz1f3x23lT28rGpagVA2hP5eabAaTMRk1Aq7zgPmmdd5n7LHkgdQGMvIUusAbOKo?= =?utf-8?q?9wsmrzWkszxko+WgMovtFXe9PFDM3zEI2YBzoMKCmtBt2cvktUfzUoAsdRqjFnGFi?= =?utf-8?q?HESryZyv30cv+8qFPYf+Tj1P/NdGxOf9BInP2nkdrZdON+KoQouJYP6GWkrWLr8UE?= =?utf-8?q?XuWPSNU+l03yv+0bWzR92o3CeHBoRXOZ/QWLH3+grm5OkBV9/hAFoL1Qd6nPjib84?= =?utf-8?q?9rYwuCHAc6d7soDSQsXI8dkNE7pgvDNCJTWoLyRrPJ/yWvpxk7yxV1SDGBuFfK17t?= =?utf-8?q?DiGE7whIyfid8SQT2vg3uGT7UUP3VXK6st2oMesXlJ3aeZPLCWPSLpheXN7W4+XAa?= =?utf-8?q?36VUeD7kSYLrZOvzNYMPzWKCUnv8sNilJE6+fkCkvshxDSmz3f1Z/GUOtiryveTJb?= =?utf-8?q?mXqM1FYwe2RfmNeewENF/YYxxR9Sez53CjNLQZyaB0m2nh3HhYaYOW2KhYv3a5FrR?= =?utf-8?q?Mhv36PA3lJOVAa4Azpm+KfLJmr6zSjamo+7tt2AI7P8mvm5HXWI7wBTqUaymhSvUm?= =?utf-8?q?oUyR4Ya19s/j5aT7cca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nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb95577c-f13a-4713-57b5-08dc1d64b13b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2024 05:15:49.0761 (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: 7m3Di8LP1fwuanV4mS2Pa6xh0ZHCUhT9TBTbdcqNUxsI4BupJrMSwXde9rrz5zMNTgfj8TFpXl9YKcpaM7SU9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8275 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240124_211555_017327_971C8B92 X-CRM114-Status: UNSURE ( 9.08 ) 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 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 | 52 ++++++++++++- drivers/mailbox/imx-mailbox.c | 87 ++++++++++++++++------ 2 files changed, 115 insertions(+), 24 deletions(-) --- base-commit: ad5c60d66016e544c51ed98635a74073f761f45d change-id: 20240122-imx-mailbox-243021d12030 Best regards,