From patchwork Sun Feb 18 06:56:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13561704 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 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 1C4D4C4829E for ; Sun, 18 Feb 2024 06:48:33 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ICrQr0BR3NZrnYKQ8XIInWlrhfWOklL69DdZtKhYUkE=; b=TbMDsIZMYPhtXTlYilG1UK6N8T apnn3KtJWuNkx9W12aa049ai6GmLeTIumE4eH7VFbUc8uk6Gb9p6yp3b8KGKyvH23dGoqBbfMFsTF 7EYTmr7gIZAHPTZGkZiEVVo/IJ59kZkTkP9ZutCekm2EA5KvFKpwJVK/HLLwVVqyGzEZefdBniVEW VG4mfAiDwrQd364tJDaXW9g9VMvvd4Th/Cbr4LgJfqZnybJiA6g18O1v79Qp3ktg4vFgmB0XxOkHY R2ph6EkmqfjN+BZbm8JqtrVkZsVzDGauoWlMKX8xjCaUIK2zGN+jcVAEJ9eJsxrKZavIymPuMpZfX JVLTaAtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayL-000000079VZ-2lJs; Sun, 18 Feb 2024 06:48:21 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2613::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayD-000000079RW-1yq3 for linux-arm-kernel@lists.infradead.org; Sun, 18 Feb 2024 06:48:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FEUwaj8h9Lb+jjvq9sxEKct36LYVbJtJXh3fmPJTT+MuqIzgqz4XXLbFeMZvQ1l75JgoJgGzbGBy4mkVsaPH3L2YDMzh06l7GPOU4PpuLS3qoFHlqkc1FEP66mRHq40uav+FMwQMkM7lWATJZ2hcpCBCNC2mMh8uwSua3fdz3e+3lrIPtFlgnJc+ZsIZqS4Jeq4M3o3jPsUhjq2/pWtZ4nCjvxWfBPLxtSfPkYmnI/p23YN0nG0AVdjMerUaXEYBMSR+HC7+nxoD6vQ4uywItfw5R1LSl3UEwCIoGEADDB2bEg1Fq5yVnKCXQQXHgwJtxcG48xA4Dsy34DMNPIEZ+w== 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=7KvOi/dUrQ1BiOs5m/DkXp9FaTqjukDIJmIW7LA79+g=; b=m8iWhwuLk5C6bgGk94Rroc/C/mPtn0AHXRulI2hLp9H7heuj/rHW4zrl18GoijA1vKuK/wnjhWHgGBKggbb2EIyr5988YN8CeAw3IQqYrbGxL1azKQ6nCsvq7caEuafiBEp/POR9npn9GzAeBRkZ8iqBxUwCajD1Ner9dBSTlQv61wB8IIxTD4NnaY8t4kiQcyu8+kjATwjP8aEYtfWKpkqrl6jUVypbJxp0mN+F1+rglMjVhvdyT0secFUu96iRNOXmXoGaOuDTlDoCA9gDo/HghZyudrlTnxSz+K+4XUmokKVyeQAe5ZQB5EZSYEgf3HwXInbcY4Ek0Q0mklUMVQ== 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=7KvOi/dUrQ1BiOs5m/DkXp9FaTqjukDIJmIW7LA79+g=; b=aMpa6YzNQErdh34/lw8Lx98uFjljok8BfRL9bQnuOGiayNn0D64jNxSnqcTC1+UjAp9Vm3QSxYr6n+FKiGqQpwU4AXHBsh9p81dA56hwg7WH06VgajXF1Q/TLOXaulcB62m6Hdx3Q+xhsuKt5syWd3rFooln3AqaKfVdOmY8OZo= 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 DBBPR04MB8011.eurprd04.prod.outlook.com (2603:10a6:10:1ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Sun, 18 Feb 2024 06:48:07 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1%4]) with mapi id 15.20.7292.033; Sun, 18 Feb 2024 06:48:07 +0000 From: "Peng Fan (OSS)" Date: Sun, 18 Feb 2024 14:56:13 +0800 Subject: [PATCH v7 1/6] dt-bindings: mailbox: fsl,mu: add i.MX95 Generic/ELE/V2X MU compatible Message-Id: <20240218-imx-mailbox-v7-1-8fb665eeae40@nxp.com> References: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> In-Reply-To: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> To: Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan , Conor Dooley X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708239387; l=2741; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=C56rjccJP8TyE3Eb4IvcogQQf1ZEIotnAVpBDSA+e98=; b=bheDqjzxf0ndaVaxi/C64f++TKkz+p/fSnMVuBmNPVjhYAW0OklA4JAfTWoZflGP3tNRK35Xf kTyysiq7flIBo0IEpdR3Un6C1odjn/Wwvg0CDUN6nJ/ePPTUwJLguPt X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) 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_|DBBPR04MB8011:EE_ X-MS-Office365-Filtering-Correlation-Id: d86af653-8048-4192-1db5-08dc304d9089 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: C4hVLpgOuA9ywPh5c9pPy19hgb6raG+3bieJvkIBIar+6yGwkqwzM1I0Yk2ZBaHoN6EuDyt8PIOda39loS5UGFRWTPeAuzTT6DgoEmvwlws+LCdW7+u/OKaWQwLx78URQ1qc5rQmWrXaFEUfU+2oCAM+QQ2hbJkHyvYEIchbcH2mLvK8ney9H4RnmhWLy37fnecPsheouzOxidwJNslYLyv0Af0/5t/GN7BZC/vUIzwR6iwHBUydkp4JQ0Fea3No27tVuxRHT5yuG+BUWMuXOaMPvCr+ZnCsgkwyzTKbDrmlofbzY9dawjL5BmxbFfmaHMaRdDJthYcEXlERWorRg03+kxxLsCiSFsaZZ/jh7vFXm5ZPYJNfhL9BdiR7MkKfDB5xgOkvazJXFvS+Zgp/c0GBPBqN/Fm0TQgEWsiWlqVETIRY5JXFP5XCjBiv4NjzMooAeV6CEFYWQYIeWydsrAc4ivtGOHcprfXdM1MTeC/pSh+oIbAQrFAdKleOU97mbf02I6CdLFH1LFZasnUK2FcRjqz1W73utQJsEpl8+Ap2auuyOzUoF4p2fMAooGZqFLdUV81arGE4lslZzK3gFxbS2LEsmhF0ke38x0jwBWCTW6R9ZzR2SBmBbjOC4YmQaTdo81rgZ1hWBKhLiXFH9g== 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)(39860400002)(136003)(346002)(376002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(66946007)(15650500001)(4326008)(2906002)(8936002)(7416002)(8676002)(66476007)(66556008)(86362001)(36756003)(921011)(38350700005)(478600001)(83380400001)(110136005)(9686003)(54906003)(6666004)(6512007)(41300700001)(316002)(6506007)(26005)(52116002)(6486002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8p6rnML25DDpIzFBNBRfwbglXt4M?= =?utf-8?q?mg84Ivu9KfDZsEAAeCEM5qJq7mZ375l4v3Z9aQho8a9QE5A/pdgXqu6fc+nch+gaU?= =?utf-8?q?WfNtiqcVc7dxHYw5iMMH0spE9IP0mY4SR3j8Cx1xGlv2ynbBQm5l4q5vCuepxoe9z?= =?utf-8?q?jwHKKFCuM7uezpkXiusQnPr3Sp5+a7HQDEjejiHiohMgxix/6mUx32zpHxRL2ooAI?= =?utf-8?q?+pHoWTXxxacmGnO1s5QNf91P3zVhNhwiYIoiZEGNrP2qkBUKInYPJntPU8yS7jqPC?= =?utf-8?q?1i0LlZQCQNrxQDCBsylimGEeL0Fe/U448vSeo8bd2qhuf+GbmnRLIpCulHkBbRFZt?= =?utf-8?q?tWAn2LciEAXJSgAA8bG9miew+OhQ0qcN88M77oTVWAkZW8YO7FLVMaCVORdhXApqT?= =?utf-8?q?rJIlWSrBHMNLO1tKRosLxU/ahxPm19ud/N0qf6Zc4cTd9YOjWyzT3DeyOsytlhgxQ?= =?utf-8?q?yeZRBKTA6H5qmX1qHJdlk97lFswHDabKy+k8L7hrXOcjzQ5v+n7R9A9UJrUyaE9Ad?= =?utf-8?q?erM5ejNmga5UhKC1RloUoHaAPlpDFPZ3zm0qZ8BSgC1HzoArzYP1X9CqKLAcVTy+I?= =?utf-8?q?bj/Umq0nj6F68iRsQCDRrLcLIabC9CtpgjD7Bi5L24C8NYvxdW1fa0WM3+8J8ULQb?= =?utf-8?q?BAPb5sCQQR2gkP+++DWC0gj++eXHjdnaRmO8arV+0zOY3A1iI7Hs2EERv0F9bA/mo?= =?utf-8?q?WUz19oDmQiLZOiCWj46U4WpStY9b6ODzJ3eS8DICiUewMGsjh5l2hZdXINPn2MDhS?= =?utf-8?q?46RNPg2YRJwBHZ4gK42FUcF2TvEi/OPoZHjOMqMDHga1qKKnb9xKI75YsXwMIUI3D?= =?utf-8?q?O27mHstVvAXEa75Zx0Lbjnlo0TktwKh5fr6d7wnHPZnKaAYpVmhsS/U9XjdXol1x8?= =?utf-8?q?HaByhdotbgxy3AtzCW6h9SnYzlZOQ00YHkFrpgNI+CuNXWLRZy35Y6qNBTVspz6mj?= =?utf-8?q?sIscfWVBVrej8YIMSikjbO3thAQEEPW5qbODcYxz/sYMeMTBTj5jW0T5I6+KY22RF?= =?utf-8?q?8w5fY1ELJV1v0oHR37i4rKPuzQpV0m/Y6K4LZGZ6tMr6czWJKRt8JKDo75AWnQLHF?= =?utf-8?q?LxXGHaHsfLdJ77Ixy4P6fjy0pi9XGxkXDRpX2qF6biIW4w7FDzIpCbEfhgRzeRH4n?= =?utf-8?q?iCznhZt4MnTQ4p1dKMs8LvDngcEvNzCxFsm0Y0IeK+7nY1zalY/TfRwUrMGwTgCG5?= =?utf-8?q?balVFofrZhhDpBjK49J3BjB+oTcWc2/e3YL2QKou5jvFMRvtxWcUyUM1g94H7cCR9?= =?utf-8?q?U6gb2a72cks/NwIHPrqiRrACxEGYA0oI4CAWRdESEAdXg3ffXovif4I/sORU3mS2F?= =?utf-8?q?SvUTpYiQlx+IuQrBefg+u3JB2PMXyZByrEXH73YLG7+6AvZMdwZnqKBEov0J+0zut?= =?utf-8?q?PJBHB48juT49urgugrdVZJLKM+Z4ZKYzhidnn3IOQuN8K3AIm93hi7wkqeizgdeE4?= =?utf-8?q?jappVcHdZxjjjlk+cBwgmD/woVci0UT1dcPRw0fr3EWTo09qd3nzt2+gRK5jmn856?= =?utf-8?q?aRrGENT6o8Lk?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d86af653-8048-4192-1db5-08dc304d9089 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 06:48:07.6230 (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: 8+oRnjCtHGq7I9ax+ii96yjMCFlK1vFBxxJnNcbVVazRvuUw4hwRnS5YhFX/4IzX2CtjJSlnopvVpvivPTKxaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8011 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_224813_556298_94FC8CA8 X-CRM114-Status: UNSURE ( 8.66 ) 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: 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.MX95 Generic, Secure Enclave and V2X Message Unit compatible string. And the MUs in AONMIX has internal RAMs for SCMI shared buffer usage. Reviewed-by: Conor Dooley Signed-off-by: Peng Fan --- .../devicetree/bindings/mailbox/fsl,mu.yaml | 58 +++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/fsl,mu.yaml b/Documentation/devicetree/bindings/mailbox/fsl,mu.yaml index 12e7a7d536a3..00631afcd51d 100644 --- a/Documentation/devicetree/bindings/mailbox/fsl,mu.yaml +++ b/Documentation/devicetree/bindings/mailbox/fsl,mu.yaml @@ -29,8 +29,11 @@ properties: - const: fsl,imx8ulp-mu - const: fsl,imx8-mu-scu - const: fsl,imx8-mu-seco - - const: fsl,imx93-mu-s4 - const: fsl,imx8ulp-mu-s4 + - const: fsl,imx93-mu-s4 + - const: fsl,imx95-mu + - const: fsl,imx95-mu-ele + - const: fsl,imx95-mu-v2x - items: - const: fsl,imx93-mu - const: fsl,imx8ulp-mu @@ -95,6 +98,19 @@ properties: power-domains: maxItems: 1 + ranges: true + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + +patternProperties: + "^sram@[a-f0-9]+": + $ref: /schemas/sram/sram.yaml# + unevaluatedProperties: false + required: - compatible - reg @@ -122,6 +138,15 @@ allOf: required: - interrupt-names + - if: + not: + properties: + compatible: + const: fsl,imx95-mu + then: + patternProperties: + "^sram@[a-f0-9]+": false + additionalProperties: false examples: @@ -134,3 +159,34 @@ examples: interrupts = ; #mbox-cells = <2>; }; + + - | + #include + + mailbox@445b0000 { + compatible = "fsl,imx95-mu"; + reg = <0x445b0000 0x10000>; + ranges; + interrupts = ; + #address-cells = <1>; + #size-cells = <1>; + #mbox-cells = <2>; + + sram@445b1000 { + compatible = "mmio-sram"; + reg = <0x445b1000 0x400>; + ranges = <0x0 0x445b1000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + + scmi-sram-section@0 { + compatible = "arm,scmi-shmem"; + reg = <0x0 0x80>; + }; + + scmi-sram-section@80 { + compatible = "arm,scmi-shmem"; + reg = <0x80 0x80>; + }; + }; + }; From patchwork Sun Feb 18 06:56:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13561703 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 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 D0779C48BC4 for ; Sun, 18 Feb 2024 06:48:30 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=QcWDNAxwnYYOEbbAA3c+5C+Ilxvfz+Y6fp8A/i0VXDU=; b=kZJwT2RyDEwH6RedCHZzsN3pNM xDiOzNNiVQscqb+XuIOkGPUYdsjEmpLkX3jJEsekxrFxR8Brbhl3tymKOmSsNraOgwPGAXlAmX983 8i4cyNIwM4t7hCpJETV0bTdjzsnKRpgs9Q0PBXzxgPC4UysxXzYpHj+10INxVESm6aDSN6Yqs59Ko T7xpCDEoOOSR2KkzHUhVAu+ufvd7HDbAE97meeh1zwqFhQeql8BoNvUr9dRqAZ/CZdHXr2mp9ypE2 Foi1WjLYwVCjRAxs+mmilPu1NaFk61G0WPLUVA9toC5kyoV5VTW3kzAMA4H9K6x7GldUG94lb69t7 Fp+3M38g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayM-000000079W4-2n0Z; Sun, 18 Feb 2024 06:48:22 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2613::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayF-000000079RW-0aij for linux-arm-kernel@lists.infradead.org; Sun, 18 Feb 2024 06:48:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T0ZPdQiov4XHfXbDhBHan0W9tZG6KJd7EvZNEfOKd2qao4VsOZFGehJlSWwMqsqg5g1lOsLcrlOvCLHCqZy8rFwm7PTD67LwtrwzLJPsmdsiiml0oNK15fAV+n53MLEz8EwuQ+W0VM9Uw+WnES3ELdKOxzfX0T1yd0lo2t5BXGm8iUtcmlFm91SwgObYEXWbpJTSakCHT0+Ts6EdDjYlzXl9RZRdat/VDvR9JFYkJ7z5QrbprOPPpVdXvpaVnGN5aPnYk4aiOm2k1Wzqpxh4LYUQC2Gy38qyOxZ4XwVJ/Vug2pc9kK1SAEFD03ATdcPc8LMOL7WM7IqDfweFK+W0uw== 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=yroYNvtM+ftxkBYnpAH09lTiB04eMcTiVCGoXVH7uV4=; b=WZKTdUP+TeOkoKrtzhN/KrZDXmrSC6U+B2kfqNVSdSb3AdhG9+QzcVKaeDAEKn4jFvobEUIsIbX3hKWqTVT00UqkLnoTKcaxmVAK8druWqumkNdDyBRBZsRfPxLJxWKv3//SyvoGDoOeWgFddqPy9DuAOmlXwCIuBzUG9JZOAE46JcsuUSp6ZPHBeEwtLC0yr3/CM0bo/oWdG+wPSeUpw4guTdvz3BS/QzcGBntUggYC5gf8el0HBldhckrnmlZoDm30YlGPRN2WheBky+L3bzA5Lubzg60cGRj7QZgIZXJiIQfrQIWJle9jJrQPWW6JDMym68aZYy57NBTrpQY9uw== 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=yroYNvtM+ftxkBYnpAH09lTiB04eMcTiVCGoXVH7uV4=; b=KcAimRvwmQ4KLlYq4zlsRUqYFIGon6AW+tzPJIUFZoizg0d7NtB121pz1kl3hy6VkuYnVszy2EzsvD8glU57+H6d1lJ7X384rn3Mdp4YLkt4JxzTK3EXk9OFdVx5Vh/L01CcYruazElpypyGG3wm0eanpDCXQlIw68jS7NXa3h0= 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 DBBPR04MB8011.eurprd04.prod.outlook.com (2603:10a6:10:1ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Sun, 18 Feb 2024 06:48:11 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1%4]) with mapi id 15.20.7292.033; Sun, 18 Feb 2024 06:48:11 +0000 From: "Peng Fan (OSS)" Date: Sun, 18 Feb 2024 14:56:14 +0800 Subject: [PATCH v7 2/6] mailbox: imx: support return value of init Message-Id: <20240218-imx-mailbox-v7-2-8fb665eeae40@nxp.com> References: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> In-Reply-To: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> To: Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708239387; l=3395; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=S0DKuiQSDcYtu53JqBC1+gV1zoHcWj4DjQyGEWhlcnk=; b=tF6LQLwXPX7VnjCtscYX4S8gGtph20GjvajegRmJtn5kV7mgtrY0loI1FP+uVZhnGaqpF6Tes Rxzzc7X6HAZBi6fM2quml1VxYS0RJWzdfztfZKc5VEXptAn1d8h8q2i X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) 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_|DBBPR04MB8011:EE_ X-MS-Office365-Filtering-Correlation-Id: d5452c28-c670-41b5-92cd-08dc304d9308 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: bRbaki3y8RTCbGydrk5J1Da4fWMNTY4UaliGzx6IRZCCuHq+4NVf1oqrGCakI9KAr2SUVOUlutxvMrj3wSmFOGrlLwqxaYBVrjh328YWm0TN1UwY3jd/UX4JALvVk4cQ0qmh622DZcoAyuI4CKSHUmhW8DRNLvzrdVwomV1Y3ECSWNE3BAYfTHbx6EOt0pEPEwomVPx2L5x1HudyDP0f3Lp/TzUbybnaOsjW0uuuQu1+KJKFJuhhCujve6Y3yoKM7AjusmMeDKgcPa2E9E83o1kDjjSPAdCMminD0Y+25wkEh1eYL8yCV9soOUdBzRxqjnObXX5ildIYKh3WEi2c4AZTe11WMIgQPpMIQLLG4xxBmuRC5DiPslSwP797S7LHzX/b5Hi+zlrIpkcNZvfCsAniq1cmhZxSQVtCX+CxayQSOU/Jr0wyI+otnMLbT3A55ezLfWDPNrZPMEz21Pf4CyAP1dRpnhZ2EoYxtYZfSXNwa7dtNB7J0YawLzZcdBzdeMb5JYDkBjYjt75CvnaF8PBT1rdPoGMlHMRQ94kVBvgsoSmPItcITEHKTLFNTI1ATPgBOg07tIBNxOA5GileOeWZd7XlVDKCUxVA7zWnfId0GnEDZq6Vp2CNvVZeActH 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)(39860400002)(136003)(346002)(376002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(66946007)(15650500001)(4326008)(2906002)(8936002)(7416002)(8676002)(66476007)(66556008)(86362001)(36756003)(921011)(38350700005)(478600001)(83380400001)(110136005)(9686003)(6512007)(41300700001)(316002)(6506007)(26005)(52116002)(6486002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FkXs3XuXtY0tTQkRLDtqs70rsX7Z?= =?utf-8?q?MHNXK7pAc42xWlHXJzj55p1E6ZayZCpHKgeoNrEOFev3DqxI4gVtBeJKlUu6dDBuv?= =?utf-8?q?Qlc3k4sNjoqGATE9l9xGQz7WJndzmHk5VTBQpQq9Ghdjk5ZHdwo/t1+rt3SwRDTXz?= =?utf-8?q?2uSomEHskUGdTdfrIFzg5tXZHcEqC9lUI0gO6tYq29ioPGzMYQp/yb1EfI9HFpsbN?= =?utf-8?q?IBOHPNMpouEuCyeLgoBeIfWY7wzrwo/OMmDYzKjoxpC2ulUAH1Im4XH+OWW3neRUu?= =?utf-8?q?llUrd0Kz8A2v4gPzWFdL86w7woRjzdWIOZ53qcAhsNebFvlCWxMKhOV/qYR1ZOc/a?= =?utf-8?q?oxheimOahm3ikRdNcY6g2rZDxhKE9OYWQV0dc03sQIXC6RUDbnopAantXKIHmMnO6?= =?utf-8?q?7lxghf/kkYfQVKyirQbnOoTzlak+1CmHTC7Qt57P8yCyBDYf67BQrE7e8LfSCpEGe?= =?utf-8?q?GCgK+A9MB1in/PauiFgZKYOHN7R/E3YdQrTMPYfyF/RP5xAC9jzASjRbuvPAGytII?= =?utf-8?q?BD07lim2QqYihXh5zyGfjlevAHMmeCV96dJ97siIx2hmExFK5hklgYvjFP1czYqnH?= =?utf-8?q?ADMhW2p/plvBDcZ+cnSSPX+PU6rzXWDWWP4izXgt3sprXqciB2CuGMzBM3YM7HHI9?= =?utf-8?q?361vFKAmkvTFMPqQGQ/U9UjxxzLUwzDXDcIVUYa351vtpE+SRTfQyj64J57w4lCZu?= =?utf-8?q?ofrTSoo0oeUYX6qbmj8R05+khuz0a2yOOOs20GeqjF55qflq7zn20Db/yN2cgBaSb?= =?utf-8?q?oP6TlKZXtOvZRphabrcWpQ4alhv8UGUqfAcFJO0tFUyKxburuhlI2wPoEbVN0NSUM?= =?utf-8?q?Vbz/+fQudO16H92f/0rnXjiMkXmhSFvuUvID7mohr0wc0TIQtkE5aa+muNvP3c/ur?= =?utf-8?q?pnZKnMEPnJZBr2bwa/Ji7bdPzuyx7/RDtcG6VEtbLJQwm45AbNh5i0hSragKXtnUY?= =?utf-8?q?GUowH283SbYZTsO7jJ5R9+6lVn5J0mTSezDf8xCXqyWbSnrdwsRYpp8gg5RE9doVP?= =?utf-8?q?uGIoZGsgZLAWwO9J7/7IQJaJGAKX2c1yMqN3uYkjS/My9PLOZpzF1Tww5A0ioVnAC?= =?utf-8?q?ND8OFq77wkacV0OOBKIXFq1EX7Xsbii2tCv/YR+cznospVSyDxMN6pNM5X//oPWeW?= =?utf-8?q?/1R0SluXRejgvgXIUyLe9L8pGofhJlkzSGhtw+enCRPyaOMbE+759hVnM6qNzEAdF?= =?utf-8?q?YiXjweBxxae2ccoSQvLGCH9k4Nm4k0rjM7Tf66o4jsWj9InQUUECGg9Q15mm6sBmA?= =?utf-8?q?/dBpUqcbm/KJF5tGTDIoRoqMWSW1/09Ufua3mgm/L5dctEzncOZGV2N9z87zV+/Tj?= =?utf-8?q?BTBetAilp49vjowetRbkdW17hw1DmYvPbuTVlOjLLwDSPieamOiZK7EGzOwTnfEP7?= =?utf-8?q?TLXYVpTtw34BHwy5b5o+onYuS9ncpyXYPJEd/BNRCoXDMJDsTAFEbHehVcuOxE/jn?= =?utf-8?q?xCWh5eK3umRgwIcjvETP0TPmR9cyhkNTySlAR+TLbSP386vA++f8HZmw8Wuqha06R?= =?utf-8?q?VVuzWKYO0jmd?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5452c28-c670-41b5-92cd-08dc304d9308 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 06:48:11.7913 (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: NCUU7yoDiFg8zc150KwTE2FXNJ+Es36vo/lU4L+Nq06mMlV6Ik4+2cszOJ+rFZQJEL8GLGJe32zRLQBfwE1SIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8011 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_224815_246881_47D7FB6B X-CRM114-Status: GOOD ( 14.58 ) 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 There will be changes that init may fail, so adding return value for init function. Reviewed-by: Sascha Hauer Signed-off-by: Peng Fan --- drivers/mailbox/imx-mailbox.c | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 656171362fe9..dced4614065f 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -110,7 +110,7 @@ struct imx_mu_dcfg { int (*tx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp, void *data); int (*rx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp); int (*rxdb)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp); - void (*init)(struct imx_mu_priv *priv); + int (*init)(struct imx_mu_priv *priv); enum imx_mu_type type; u32 xTR; /* Transmit Register0 */ u32 xRR; /* Receive Register0 */ @@ -737,7 +737,7 @@ static struct mbox_chan *imx_mu_seco_xlate(struct mbox_controller *mbox, return imx_mu_xlate(mbox, sp); } -static void imx_mu_init_generic(struct imx_mu_priv *priv) +static int imx_mu_init_generic(struct imx_mu_priv *priv) { unsigned int i; unsigned int val; @@ -757,7 +757,7 @@ static void imx_mu_init_generic(struct imx_mu_priv *priv) priv->mbox.of_xlate = imx_mu_xlate; if (priv->side_b) - return; + return 0; /* Set default MU configuration */ for (i = 0; i < IMX_MU_xCR_MAX; i++) @@ -770,9 +770,11 @@ static void imx_mu_init_generic(struct imx_mu_priv *priv) /* Clear any pending RSR */ for (i = 0; i < IMX_MU_NUM_RR; i++) imx_mu_read(priv, priv->dcfg->xRR + (i % 4) * 4); + + return 0; } -static void imx_mu_init_specific(struct imx_mu_priv *priv) +static int imx_mu_init_specific(struct imx_mu_priv *priv) { unsigned int i; int num_chans = priv->dcfg->type & IMX_MU_V2_S4 ? IMX_MU_S4_CHANS : IMX_MU_SCU_CHANS; @@ -794,12 +796,20 @@ static void imx_mu_init_specific(struct imx_mu_priv *priv) /* Set default MU configuration */ for (i = 0; i < IMX_MU_xCR_MAX; i++) imx_mu_write(priv, 0, priv->dcfg->xCR[i]); + + return 0; } -static void imx_mu_init_seco(struct imx_mu_priv *priv) +static int imx_mu_init_seco(struct imx_mu_priv *priv) { - imx_mu_init_generic(priv); + int ret; + + ret = imx_mu_init_generic(priv); + if (ret) + return ret; priv->mbox.of_xlate = imx_mu_seco_xlate; + + return 0; } static int imx_mu_probe(struct platform_device *pdev) @@ -866,7 +876,11 @@ static int imx_mu_probe(struct platform_device *pdev) priv->side_b = of_property_read_bool(np, "fsl,mu-side-b"); - priv->dcfg->init(priv); + ret = priv->dcfg->init(priv); + if (ret) { + dev_err(dev, "Failed to init MU\n"); + goto disable_clk; + } spin_lock_init(&priv->xcr_lock); @@ -878,10 +892,8 @@ static int imx_mu_probe(struct platform_device *pdev) platform_set_drvdata(pdev, priv); ret = devm_mbox_controller_register(dev, &priv->mbox); - if (ret) { - clk_disable_unprepare(priv->clk); - return ret; - } + if (ret) + goto disable_clk; pm_runtime_enable(dev); @@ -899,6 +911,7 @@ static int imx_mu_probe(struct platform_device *pdev) disable_runtime_pm: pm_runtime_disable(dev); +disable_clk: clk_disable_unprepare(priv->clk); return ret; } From patchwork Sun Feb 18 06:56:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13561705 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 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 3CDD6C48BC4 for ; Sun, 18 Feb 2024 06:48:49 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ogOjvFG3w5tO6nfreBmxhbGQATBOqoSX8fcu14Dk9GA=; b=MSBBL47W2O7hxcsSPtk/X1ccKu LrBGXr66ZTAfk62Qk5gVa52NWIzF0+lAVz8+/FEokOadvIYPXM8WJ3uTQmbFap7SbiH7mHGBx9uRo 3fmrdsjwFvGgfriBzmpciarQWJQ2yE/cR1VUMCBOVHHYqh16yduvbhV73VXJaNPMoqV+VDfblR9Va vLhkxXKlPM5SLtocp/ezZ8XIs0qA1NTBaxH43J7cNXFfl8HSwbvh9VVYz/OrgAdCChjWBouKsfvbJ SeajbbK8KmOTm6H3h5odGRf++eiBBTh6gDKZwg5tF2zG0VJynAkVzBylYkz/5VGjiBMGrlfxCY+V5 1nyb2YGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayb-000000079ev-1Urb; Sun, 18 Feb 2024 06:48:37 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2612::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayN-000000079VV-0SAU for linux-arm-kernel@lists.infradead.org; Sun, 18 Feb 2024 06:48:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SiC7rIfXj4OdbK+cVr5sFGmQ6kneRSeWH+LYYA98BGRsfOJr5blqAow4fgYYlsJ+jYitW9DLyudBDKLgQgspix++nbOtjmMMdxey/C7IJqUJCIvuqhWLugdANyt1xpUsoBit/pMVZRGEANKFCqMIG24UGLZKOoQp7kLVYKtXOP3Uva/5YbnsRW3Gtz2HaZfY2XOmWx+DOPENNS506pxRr3Z4sTPqjHREbH+6q4g4U8t/DNl7chrnKlrPaV8SmnLm7AaCwhwFVTl2KJAdqXCaMcpeO71Vx63dJboyk3EAcQNYAVNYrEb9FpxeQzotdtIiAy0XLkPSvdS08pSSuU79kQ== 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=XcXrRKBabQlOTHo50b7cbdxKf1Mnfm+dGC/o8m8tAJ8=; b=TS+TlvScYVgUtS8jWsw/XZiFMRUc+fDjugbVRFmPh7IJYAjS4TFYjTJOFpUtsxCR3mhQMPb2DX6LWNXx7bbXvPFmgt+4leqTuuxyhPdG5SjcPZSspLtUBGU8qqnJPFWcIYxOUqoOUwmbseD7ewon/GmqnkXu8W9hvffc/Bo8J8HNb178bgKyaMNhszD2Njr3Fj+7w6NSjb98cYzSTmq3IbFktXM7l+HlWiOeMU0zuaziRX+Wlv10HdibmUoyLGjqkjCvUpgXD8BzsfnileSUrELwLHxIfPhJwIFtYcwlsd5lcbYRTekvvR2PqyRtXxURYx3ILemvkOu6HZgDxbgNfg== 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=XcXrRKBabQlOTHo50b7cbdxKf1Mnfm+dGC/o8m8tAJ8=; b=NFe6xcNv+5keqGUxJ7LWMq5k4BYIjtCrm0Jv2cENkeuS93wozM5Nxf/CCofhSbdw+JL5mQpu+3tiu6dznuX2nIEkkwVaswyZ99/zRFDHkA6o8RxzMTt4jSa2luVmSemJ2gK56oRoaIkv8ZZqgYMNXy2HO03RuBIIMqdVcE8f9vo= 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 DBBPR04MB8011.eurprd04.prod.outlook.com (2603:10a6:10:1ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Sun, 18 Feb 2024 06:48:16 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1%4]) with mapi id 15.20.7292.033; Sun, 18 Feb 2024 06:48:15 +0000 From: "Peng Fan (OSS)" Date: Sun, 18 Feb 2024 14:56:15 +0800 Subject: [PATCH v7 3/6] mailbox: imx: get RR/TR registers num from Parameter register Message-Id: <20240218-imx-mailbox-v7-3-8fb665eeae40@nxp.com> References: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> In-Reply-To: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> To: Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708239387; l=4351; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=ZIPe1ShyvGcJ7GWp7Z6UAmZB3DJN28oXn0B1jjJz194=; b=dAjzUKexETXPNTb8jh8/NfTW+wCBpoqn3sAdgbDXBEFAqwrISZhZb7PV9WZMzi5166iG8w/m5 z4DlaMa9JzDDMNBLid7MNzq1bHZhBdZcpyhxtE9dI4HZ0+bBP7Htdvv X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) 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_|DBBPR04MB8011:EE_ X-MS-Office365-Filtering-Correlation-Id: 21a0ef62-b682-44e1-13fd-08dc304d9584 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: UAdW3DqAIi6rGdwOjz7EIUG91a9Gd71tCEN0/uqN7Dot/M0jprZ4MxFZOf36Xcck7qTZ77BGYEMNsHtnvQ3f28GJwEVuX3rSkHUA1WbVJzuT9BcTfeoUMlyKur0jy6TslrzkE1cCAOrzMCXLRvv0gvh6aQoDcVHWe1MsbwhSnwaI70mIuuZxeVeuOBAT9rkvTD6Jnt0UPBCPLRdOoNLtiizMjVK3htNJBnkDt9eB5tbKANBmdvSMvrbik0JRTVfaQl1WRZ4C4yDj1u28E0dxpB3DaJ8eSB599HifeSWKSH4uK4zwCTZZtEUIqbN6MzlIYwI9CwyuAoT7SyApnhEVhWt+HPbezIP6HptZiRmsQzwCDwdN+2gXLQndzESa6+72wlLl9qUGJRLu7B7lh1eC2prvKCqBEwzr8DWI050MJKyKOi0rK9MfBPv6GoBNS2huI1yIgVMUXL89R4KAFTdGRrjNq0NVD0VrclF37JgofAgSVkfaghh2zmL61cOHXSjH+m6MckV8yUOX4K0CQMDMhBh2u9eRQl6785Cp/LusRqwLryLLMjhsr4qZC8y1W1CH1arp9UvCOy7j6Ua55m4WAF2AaOzycrqMNjaefYR3NOrbj88yMUcSqfhKSNEr2cp6jnLMvRW/09ttrpY9KFo6lQ== 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)(39860400002)(136003)(346002)(376002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(66946007)(15650500001)(4326008)(2906002)(8936002)(7416002)(8676002)(66476007)(66556008)(86362001)(36756003)(921011)(38350700005)(478600001)(83380400001)(110136005)(9686003)(6512007)(41300700001)(316002)(6506007)(26005)(52116002)(6486002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?DuhfKj5wd3OmGdsYd1d7bmQVwei8?= =?utf-8?q?L1A3BrcZ0Cw+FFHO5y7KF0LPuwYc7H4Aub/6g4cJ97WAqtcnVzGG6duRQsoAKqdKy?= =?utf-8?q?2ZFTHTFPGfFOGxqLAZwzRvbyBVnYFDU1ILl/0v6GNX19ObMOiuQvkSHCTGkdVepVj?= =?utf-8?q?EqGVi0gm+1gxgYut6WwtH1zc/Hciej85nMJZYL2DZvSkTcXAjhScfUKREdekPERxV?= =?utf-8?q?e1mxgzUp/0k/AvO/dBqyzU2c8v87NnVksc9OIa0268EJ8pswJpcyqtkZoALFLAfYU?= =?utf-8?q?lSSpIf7Gu9pNNemEk+GjN9T4sADw1hlYarwyzB7cv+heSxrASxmZfxOQ4o/Lhtb4g?= =?utf-8?q?mKPapcghgesN8OoPKk/R+j+VOAFQzF6F6G+/a2SbnW1yczRhlGl9OyDOkJeJB1CLj?= =?utf-8?q?4KzxXBYZPgKMHeaMW2umx17pzJjabc0WzVj3Z0X3N0+WEV+Z49mL608yO8wvAZRo8?= =?utf-8?q?bcMnYqTOuigrXdJN8gFREoXZRcfGiOgkLXVMtsyik9cjffGkSUWf3w6vvGowNIXLv?= =?utf-8?q?ZuxMBjl7M6l33fNUX1xnQPB61kWjDf+22n7u8uQQChTYAFS9bjVuLgjlAGt2CPU+z?= =?utf-8?q?az6Ju7e8gL+EOQ9NwkOdYpHksfWoG4EW2DyX9J3nJwtyAwMLnkZvse9wmGdRo5GdU?= =?utf-8?q?VE/OgHDCKFRjyoE0RSbalDwuyO3rK0QXsBV3ynKJlRYjS6fjlPCKt2C/RIyZ+nhkf?= =?utf-8?q?yrLUylCqouP2QXeqVYUr4c0W0kPYZx/YM8rjU2UqZCeBn2+TUyOs9yAvfHrPLXLAv?= =?utf-8?q?5zBzUqP/gEBNl94IJgANSIt+7kU8qFn6lSEglizt0YcKYAHUUUQ7ItUFs8JHJhu+W?= =?utf-8?q?K6+1UulfxfXFCPGsTXUWCdGtVnmfewjVUkfFPo9LSkvfT2oiuAo0zr33+3FRq3DrM?= =?utf-8?q?ug8HH9vOCcu01womxGfhb/QR0B6HLirkFI1XELEJCxhP0cnKe90ifoz39GMswNx8L?= =?utf-8?q?e6ejqHCi/wrp0yuXH5SVtD+x33Qw4WJKAlf1MHMS+aULltLRhSEC94CFO59hzmXhm?= =?utf-8?q?Ti7OenZNYddhpfjua743uA03NDP+d+9clStHePyKIXqb+hy4+S4Wpk9eQYVSzIMUz?= =?utf-8?q?e4EsWnYo/ZzQayzmhuvDwGNmwEXxnKXatxIVDTx2AXYgwb2kWsXfn4dhz22+yL2mD?= =?utf-8?q?bhbIxE3Xy9EigGaDGk75YXVmJPGeMVH2cDL8QQRdleKG10RdFzu8SPGiGUwZ78ytW?= =?utf-8?q?OCwo+9DENoDRj6eQbJZX4BSoV6sZcMqFpiLUMKLPw1pHb9WUDjgY74eMMCTMi67xH?= =?utf-8?q?qdz/AfQR8IzKIpXR5J5K7lWq2eIdNP82JXk7VDC7OIxuM6VsQiaJBwZYGaZcZhqqp?= =?utf-8?q?6TNZTMGgNNIHJhQ/oy24wX5DWSzr+4aclxoUYwrXslQgZmbyuzCCciXArCPwCeTtj?= =?utf-8?q?ajEhL6aby3r8E1dOojqEFL4tOD/6UKX/jHYoMKH9iXyNpPQS5WApsbMtS1x8NVya9?= =?utf-8?q?G+OAKWcJ0AFvsgZOhGM3XYKwn6udbQewqkXidz5ZoJE6Q6eVvl0Ubj21VXzTNECX6?= =?utf-8?q?0cHIK1AqHfWE?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21a0ef62-b682-44e1-13fd-08dc304d9584 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 06:48:15.9535 (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: 9Z17DJOoaykXXg2Q/4NqFmptMSm/jwruOjuUrAIdU9mcYrcrLvqO7c1kwvjpW5thidTj/82U2DAuzey/Ij0d4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8011 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_224823_275281_68801A19 X-CRM114-Status: GOOD ( 18.24 ) 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 i.MX8ULP, i.MX93 MU has a Parameter register encoded as below: BIT: 15 --- 8 | 7 --- 0 RR_NUM TR_NUM So to make driver easy to support more variants, get the RR/TR registers number from Parameter register. The patch only adds support the specific MU, such as ELE MU. For generic MU, not add support for number larger than 4. Reviewed-by: Sascha Hauer Signed-off-by: Peng Fan --- drivers/mailbox/imx-mailbox.c | 46 ++++++++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index dced4614065f..9e89f773d2f9 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -29,7 +29,9 @@ #define IMX_MU_S4_CHANS 2 #define IMX_MU_CHAN_NAME_SIZE 20 -#define IMX_MU_NUM_RR 4 +#define IMX_MU_V2_PAR_OFF 0x4 +#define IMX_MU_V2_TR_MASK GENMASK(7, 0) +#define IMX_MU_V2_RR_MASK GENMASK(15, 8) #define IMX_MU_SECO_TX_TOUT (msecs_to_jiffies(3000)) #define IMX_MU_SECO_RX_TOUT (msecs_to_jiffies(3000)) @@ -93,10 +95,11 @@ struct imx_mu_priv { struct clk *clk; int irq[IMX_MU_CHANS]; bool suspend; - - u32 xcr[IMX_MU_xCR_MAX]; - bool side_b; + + u32 xcr[IMX_MU_xCR_MAX]; + u32 num_tr; + u32 num_rr; }; enum imx_mu_type { @@ -264,18 +267,17 @@ static int imx_mu_generic_rxdb(struct imx_mu_priv *priv, static int imx_mu_specific_tx(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp, void *data) { u32 *arg = data; + u32 num_tr = priv->num_tr; int i, ret; u32 xsr; - u32 size, max_size, num_tr; + u32 size, max_size; if (priv->dcfg->type & IMX_MU_V2_S4) { size = ((struct imx_s4_rpc_msg_max *)data)->hdr.size; max_size = sizeof(struct imx_s4_rpc_msg_max); - num_tr = 8; } else { size = ((struct imx_sc_rpc_msg_max *)data)->hdr.size; max_size = sizeof(struct imx_sc_rpc_msg_max); - num_tr = 4; } switch (cp->type) { @@ -324,6 +326,7 @@ static int imx_mu_specific_rx(struct imx_mu_priv *priv, struct imx_mu_con_priv * int i, ret; u32 xsr; u32 size, max_size; + u32 num_rr = priv->num_rr; data = (u32 *)priv->msg; @@ -345,13 +348,13 @@ static int imx_mu_specific_rx(struct imx_mu_priv *priv, struct imx_mu_con_priv * for (i = 1; i < size; i++) { ret = readl_poll_timeout(priv->base + priv->dcfg->xSR[IMX_MU_RSR], xsr, - xsr & IMX_MU_xSR_RFn(priv->dcfg->type, i % 4), 0, + xsr & IMX_MU_xSR_RFn(priv->dcfg->type, i % num_rr), 0, 5 * USEC_PER_SEC); if (ret) { dev_err(priv->dev, "timeout read idx %d\n", i); return ret; } - *data++ = imx_mu_read(priv, priv->dcfg->xRR + (i % 4) * 4); + *data++ = imx_mu_read(priv, priv->dcfg->xRR + (i % num_rr) * 4); } imx_mu_xcr_rmw(priv, IMX_MU_RCR, IMX_MU_xCR_RIEn(priv->dcfg->type, 0), 0); @@ -737,11 +740,30 @@ static struct mbox_chan *imx_mu_seco_xlate(struct mbox_controller *mbox, return imx_mu_xlate(mbox, sp); } +static void imx_mu_get_tr_rr(struct imx_mu_priv *priv) +{ + u32 val; + + if (priv->dcfg->type & IMX_MU_V2) { + val = imx_mu_read(priv, IMX_MU_V2_PAR_OFF); + priv->num_tr = FIELD_GET(IMX_MU_V2_TR_MASK, val); + priv->num_rr = FIELD_GET(IMX_MU_V2_RR_MASK, val); + } else { + priv->num_tr = 4; + priv->num_rr = 4; + } +} + static int imx_mu_init_generic(struct imx_mu_priv *priv) { unsigned int i; unsigned int val; + if (priv->num_rr > 4 || priv->num_tr > 4) { + WARN_ONCE(true, "%s not support TR/RR larger than 4\n", __func__); + return -EOPNOTSUPP; + } + for (i = 0; i < IMX_MU_CHANS; i++) { struct imx_mu_con_priv *cp = &priv->con_priv[i]; @@ -768,8 +790,8 @@ static int imx_mu_init_generic(struct imx_mu_priv *priv) imx_mu_write(priv, val, priv->dcfg->xSR[IMX_MU_GSR]); /* Clear any pending RSR */ - for (i = 0; i < IMX_MU_NUM_RR; i++) - imx_mu_read(priv, priv->dcfg->xRR + (i % 4) * 4); + for (i = 0; i < priv->num_rr; i++) + imx_mu_read(priv, priv->dcfg->xRR + i * 4); return 0; } @@ -874,6 +896,8 @@ static int imx_mu_probe(struct platform_device *pdev) return ret; } + imx_mu_get_tr_rr(priv); + priv->side_b = of_property_read_bool(np, "fsl,mu-side-b"); ret = priv->dcfg->init(priv); From patchwork Sun Feb 18 06:56:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13561707 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 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 B8825C4829E for ; Sun, 18 Feb 2024 06:48:55 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=c74RuhTANGfR8lpA9jYd5vLSYxgA3yj2m52/Qi1H5pM=; b=09wV5kdTrGQmX0EjTzu7x9P9+m gpyoZGhz0DtmPftSGpi9bv6WxjeeY4cCKYr4AiAXAGBeO33cwMxILJP0OCInbTElVC6AKC9SQTpcl BMGDMuTLWMWt+7Ym3S6mf5J7koBMbCpEF02ua5nJIxvwgJtwIRcp7lAOGKbm4Yh9k1JbZGOM++45M PN5vtlYIzT0poOP3vQ+ZJcK1enpHL3QYPw3CsM2754a6z8BiaardKYFiZQ9QuZJ3Gf9KKBsbhSLtL oS4wPNjeJKWzjV49KnQB/L/R9gFGrN/q1seCtJCC4DWNR/bluiOvCKi38d3Rfzq9MH9h1C/0Abnh/ Yj4HG/xg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayj-000000079ie-1E1e; Sun, 18 Feb 2024 06:48:45 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2612::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayO-000000079VV-3wIB for linux-arm-kernel@lists.infradead.org; Sun, 18 Feb 2024 06:48:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fqrEsY9V9kmDL4UT/09ymYtpESUW+zdJAszcaufPQaaLJjqLOHExfMlTrVCNOsYxuYbwqmXW2YVMdfiKSjJA2o4NUviSuUd1p6yV/+WtuJBGVIF3c8wDQajlshXUZf0aP4Be4flXnLrAgqg4g9fpwO0jBj0ytkE8zk5VhmVBE/eC/ylFtw2tLqCloX3cCNd7Nm0KExUyFjI/OqvpD+96IcCjBMR7+e/cqmh8XyzYLhsQf4I8K/Bjv13zdvmnVKslxTS7FJCa7Eq0J0rl+Sd0wSLBw5Vtj844ybqLE1VD1t9qhqXhVnKAv0UMKkIh3/7bjzRLkg4WgzdQcSHAE6vy5w== 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=QWArvz7J90WanI8GX1iUCYhXTMJeIk/4bgfoMfW89NQ=; b=hFt2HIMn8R14uZTwfBFqeuBrd89KtsUGjJrTNfXu1n2HZyVVrJ3JBdX4pGKD9zmPbtmboPtjAd5egNH87QSn9FmWBmPb0W5+sUxHD6APbnIj2gUsTo48HzVEQNGkERYmpB8HilQmWwLvEFqVsSQ0Tl+UhNkr17IP5QSRksOZ/gWyWNx6f0kpbGRSs0dAMUGwhCgAA4sqeTqjh0JG3uLohfvwTiPh8gfJzUcfmWRgYLd1P0IWc//QYX6Q7TVPZQSxDvy5nkE7GWJLmeBqi+rkMmcWni+OtQ1isn0FACPcyIgmfNzHyQVQq6lkjPRLcOaAF3cLtMgNaJiyzwN42Ybfbg== 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=QWArvz7J90WanI8GX1iUCYhXTMJeIk/4bgfoMfW89NQ=; b=DAZD/k2TGfLVcytJC6ABMxyHOewsGtSd/revTSPzaNX+CSJVr23K1/+qjOcbiYCLAEtmUpVKiV1kgsbhwTqn0Hel4HGKiagv+R9EoJ+yKpnzBx3PxUyLa5Uyej6wbdQ1HryBj8fmZEJvgyuRaaaGk4VZqtUddOhrZJEVDQiQbvE= 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 DBBPR04MB8011.eurprd04.prod.outlook.com (2603:10a6:10:1ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Sun, 18 Feb 2024 06:48:20 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1%4]) with mapi id 15.20.7292.033; Sun, 18 Feb 2024 06:48:20 +0000 From: "Peng Fan (OSS)" Date: Sun, 18 Feb 2024 14:56:16 +0800 Subject: [PATCH v7 4/6] tt Message-Id: <20240218-imx-mailbox-v7-4-8fb665eeae40@nxp.com> References: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> In-Reply-To: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> To: Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708239387; l=537; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=jR+NVcux9cCBu+JtZYj6Wcg3vDYavvf8KPYnrh9G/ZQ=; b=XHux1iLuTVvM24zz05nbtqaEX5p+r21k9i116UmQaPQNbwVGPuadkU2S1fubv78LtpImOLa3/ vEzg7IY74F3BNuEdWUmFabJKom9p+QhjEF3HYppbzyMu9ozRjepK7CC X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) 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_|DBBPR04MB8011:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b169c87-a6fa-47df-017e-08dc304d97fb 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: pXVVrGXFiCt+4Di0PJCk6AlTX2LrrLWoNKg4Lq93BZBNJKpEuwCaUaK966sLPn71t3+UP9xaEsvDDHTri+KpOvczb9Rh4yc3ou5QCTOXTMmLxJ0HveO3TdvVHj5RBkmkangtYbVc+cIvH07E/ezc7t1hlDDS7U4DtpCqrOwWPh+oKOWYOiq9o1jWtJNGZB4XQS9dQy5Har1HoN6fmbq2XhGo6mpMHEv9IFQZaOBscdLv/4glYfuucVtffIuxvmA5cSGM46TnhjtNij9tR7XRfVmh/ht1Xo/gGaO0GCdqIIcNW5LdTTkQxISZ11owqH/ig/RH7KPJSzWlIRHGpSRTIdg+7C6hH5kEzh+p8/jcWRqJhamipLLxi+M+ff6vwvU1dAONbaSvR6w7pDgybiWrHD4wfb15/WiVOXxq5gD5BydakQStcG3n532aTUHLH0rtvGVLgoH6v5HH3PXINUAV/Gn3yIRkyKs2er+pV+2Vp/Cj5XArH6249pds/q78+aQtK0S5jmMRZi1PNJuV3N86bWZLh+e2lg4wkAcxZ63ftzGMSs4oyOKdPoEw+i4uATtZbRqr3Z2ImuxtDAOQxbGnf06K7BDZoaUwXXx5xoKqc6MbY6p0MoPv8OeFnuHnX/6OkR5JrMcLpEpo7WlS8515WA== 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)(39860400002)(136003)(346002)(376002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(4744005)(66946007)(4326008)(2906002)(8936002)(7416002)(8676002)(66476007)(66556008)(86362001)(36756003)(921011)(38350700005)(478600001)(83380400001)(110136005)(9686003)(6666004)(6512007)(41300700001)(316002)(6506007)(26005)(52116002)(6486002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PSKefLN1njYeGTqYcWMi1jbvzbFT?= =?utf-8?q?sdO692ajT6nKkaP6ioTJqVYBGQTcxmXfyYGNEVhlrTnVK/siFm5yUUyUJmx50aKt5?= =?utf-8?q?ec1iAQ2+BZKh9zSGK4YZZ27gH4tdEIAlqlMTuADhCsw0Lepk2QWM5L81JGiRCT6eH?= =?utf-8?q?C0MR4aAG4y8d92dJ7x7OpCF4xytQqUn93O+sIRFUw/FUQJo1BGX7AuJgaozKMTh9q?= =?utf-8?q?K7zpuFuFnJci93po6fPiL54Sdd9f0L1+Xsd3yVWlUmgT80I2cbIsQrYEUEPsQ0zKv?= =?utf-8?q?H6XgCrhUizOqU689HylupxUARRNdgeyqFcMdJ/9jJYMJXHrj1qXXEszyc0gZidHYy?= =?utf-8?q?iQuTn7AGSD9PZUYl8wXuLdymj09fPnbg7NWDNa/metViuR8UYmfdL5u/cTXM12vf5?= =?utf-8?q?eMG/qI5Dq/GqmAyzgLwLtf6THwCk0l8x+Ab/7k/kv689pEZ8wN0L4usEhLQMCPTMe?= =?utf-8?q?9vjzhDXbuKLEvooT3JcUrZYbM9wEMt2QIw8kYaICa6u7Vu7KbpUZwHAGtSuu9I5Zg?= =?utf-8?q?gFzodC3PO8Rgr/wYgZqqTzFZ84vzS+TuKs+FtvqN1hX5NANYGARBJ0f8va0xiM3pg?= =?utf-8?q?sdB8xvSSSP4xC7TKqw16fx1EAZBLudC7bliRfOIQLd4WUzsOOD8x+AFldEwwuNHnX?= =?utf-8?q?ZHKsQAfxCqw6Oki8fPlhMGOXPq/FwM5hhedScHHK6r7TO5FgnabF4rmM9bpI9zuwV?= =?utf-8?q?xQ+ih6bGwHyPuAWukDN+Doj3n3380Lyfg4J2g5qpSz4xjZ7dExJqoho30PdzNBAAG?= =?utf-8?q?dqEyNvUN2jPFTsym6GJThD43tKeIrV8ihmEcH61xZSdIWhCP3FdqS8Gj0jaAcKI6V?= =?utf-8?q?sGdWEe5g1SGRqXzcJXiB3JcdwhRmqXq+wYkTL+FC7/t1petNJ6isBn3FlT+mediv8?= =?utf-8?q?DBb0gymt/T0nmSYiPK55grDGsDbRAnbbTxtCSaDQjVbu1Ai/uglUtvjToMBgccUD/?= =?utf-8?q?6B9fxP07d1C/uy9FsO2yGZrjdC5sjAviuMgzLYjT9DNhtUiO4BeKkeyGeOSOhwW1i?= =?utf-8?q?FedTgjk8AUxV/el/wQxlkXFGxokl1ksb6QIJM6YkfytEM666AD7nrs+ALIUKk0Wej?= =?utf-8?q?scERWR+C8/4MpHL1fDU7KzuQeC5luVNp50WrHuR9Cz9ljRGLdfpuz00bQ5KjtQMWM?= =?utf-8?q?YTq+n9e9zyNRIWEIbZkEVM6wUHtsLMyHh+it6xTUHNr6uOcLX7Tuze5VB4nFR1Gp4?= =?utf-8?q?8jp859g4NQLeVBvERjK8PeR/VkPq/ML6vqQXZksUTUZvSYWMduziSJfJ/ifyXNvYs?= =?utf-8?q?FZoow3yoOnGyB05Yjucid44EEP97c5Azo2cCOf2qx0G7c1M84pMuXJq4G57Z1TYun?= =?utf-8?q?/Apnf4xFBIoLvaPuGuk0SBwFczq0R/InNEw2ieRo8DI1Br15kUmBStIvWwsn0fy15?= =?utf-8?q?zVwwEF7lKKeIUkk3RXLA3+CF+S/7v0oPA5qEBarXoIKnB9R0LhiFPc69MuxEmEnfC?= =?utf-8?q?6Njmz8R7HNzQW5gtQz/fPqhWnoiQn8IzVz3U+Q8gcPQuat5ajs0jttDdX7tVwYqZu?= =?utf-8?q?IFSaBuCim4c9?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b169c87-a6fa-47df-017e-08dc304d97fb X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 06:48:20.0983 (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: lhL9CjLMeoJbU1app1lewy0HkQKkRdHPWPrb3vmnVPCxaDWuqd4CZ8oR8Wcnd0HBK8mjzpAIWIrcvWPbG2rt2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8011 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_224825_026981_A0D0F6ED X-CRM114-Status: UNSURE ( 7.72 ) 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: 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 Signed-off-by: Peng Fan --- drivers/mailbox/imx-mailbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 9e89f773d2f9..306af1880415 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -4,6 +4,7 @@ * Copyright 2022 NXP, Peng Fan */ +#include #include #include #include From patchwork Sun Feb 18 06:56:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13561706 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 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 6658EC48BC4 for ; Sun, 18 Feb 2024 06:48:54 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5yo830FZNns7EzzKohUTWop5m1sEZ35s4mcy10a7J2U=; b=GD1ZsqhH59TPpIbxlfJ3AEoEBR zhpsY583nyz/VmDsaovWq/LKaUlSYDp51DkcjZbySewp7WLiVVaUb6RFljZcaVhAbJ4huQ+gLYlu+ 6KIf8X/hWcvkm/yPxsX4VzsDGiHCk4sXXUgSkU+OWG5dxyHNK7YJey2Hm/7gstTlPW+B5pVnEwJNg ij6nIG2EuP8UhVIrISsahrai8BHcPuUx2daAsfXNxnf1yv9Q7cxikdzuJJgLcIVYQlmMJjVT18lLT uKdCUxrymz6ie8o9mQDUzlrOzmsccQYHeHWqde+iGdJ7JIRyvJ45Fo8zg+Wav7jPocXeEYbnuInpl C2gUsjZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayk-000000079jM-1yNE; Sun, 18 Feb 2024 06:48:46 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2612::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayQ-000000079VV-2mz9 for linux-arm-kernel@lists.infradead.org; Sun, 18 Feb 2024 06:48:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q9gLlvj3eOtyd2vUPooSHvfafgChzfdA+8l93xog2bhTrSXQCSt0UG/nBJGw1nOBGBbpkF+5+3lIKoOZJuVoNll0yltkbcvFyPNR8jZcAYafv1SEB4tfTvVJsSFfqrdVn/eC/oqwEU98L7nQm0E3bFW0flJ1y3M1U5OxxaR44aQ5CEi7xUT10SfMcOvpxuvJ4ER/W7HLZ8+zKPMK/MMUbA4PlJ+nqrB792fNTQhEBptAfr5gPG0NPctOQ0kKCZlWlHKU2+IgZvl6nDUNsf386a+vmvOZrfEOy2msQ55+tCo02nAdDrKUt6rHkYk5jac/uY0EcFZilJ3Bj/saclQYDg== 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=CvkBaNHIUgjGJ5yym/tBqi+SD6g5RuSBpWRmGGNYSaI=; b=V2iYj46auiB4fGFvh1BfQ+Qfz2GCsHmSG9It2/TybfpuxLWtk8f/g8udmzibLhKDvz3uYgYBz7sNB+pPUHws5OFWSih3QvrFJOSPmIcdR+oAtwnCFGNm8zi9SZnsFftqAbJViFOQEYcsYsGOt7pCXQVs843hiIM3rOw4r3nMfacxOget4N4K6dy8UNca0Yb3ExSQqMsHDh36rHmsRXgWj/cDA7RteAX+OcuUkWkoRMCfLvT1dhh/6a55MxyZLDtyij+7kuUW4xKmjgXd9cnjnKOE6d2hdZ5JqTU8ZcbOJajzpFkrprL9A3KcfdHah8rPJLsWP+j7DwTxzLwdXnT2kg== 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=CvkBaNHIUgjGJ5yym/tBqi+SD6g5RuSBpWRmGGNYSaI=; b=O4W3dGKZ7MwFlL0oTCKP/VKLmhvh2ut9SU4l/ysY+gemXAXEXygs47oIkb4dmoKrP+post46EauJsvdDcOEs+lp3OhjzFWuMdoYwvy3c+ixBZTcN3SFsZP0WiUcJalX2hsM284rWkhLbexHixyxLinDO9IsRUUTFeXt2rBlqqi4= 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 DBBPR04MB8011.eurprd04.prod.outlook.com (2603:10a6:10:1ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Sun, 18 Feb 2024 06:48:24 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1%4]) with mapi id 15.20.7292.033; Sun, 18 Feb 2024 06:48:24 +0000 From: "Peng Fan (OSS)" Date: Sun, 18 Feb 2024 14:56:17 +0800 Subject: [PATCH v7 5/6] mailbox: imx: populate sub-nodes Message-Id: <20240218-imx-mailbox-v7-5-8fb665eeae40@nxp.com> References: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> In-Reply-To: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> To: Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708239387; l=953; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=zmP601mImThDTxLev7/0znMw6wmWmFmrzE1cC9FHOTg=; b=fNOiY7ZKTAWVoPXxgE7iseOdYLiBYjTRWVLHmI7BcBYZx0357dHVF3zX9NNgfLMH8Zmoy6Asv mAZlHN1FNOTDFP0RKNUXRvCCRNonCbH7bAf0pgZ2tauqjVCMACvO+t1 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) 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_|DBBPR04MB8011:EE_ X-MS-Office365-Filtering-Correlation-Id: e37ad53b-15dc-4d4e-5f8a-08dc304d9a81 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: CU9JUqfP857SPivk83HUXhcu6tdguvtgn9X/BwWkyRHhO0p1mHYS6fSmiPXgnoGuXq2ynteToglbZdX30ZUBp8LMrAvx72Tn4fQpQqGPk7FBcNEzigOTBg3BkDN/alY7R+2iWDr21pVfilJ7cMg9QDF1Hghgb8MzwgO63jSQBsg5jGLRazOcmCzx2RorcBD2+fIgonxDWeTWRHLHaX7Umzy4czfqKPtlRPLzDOpTYVPRq88RXVln6SUNFcuSuQnbbErpsH+ALXO3dcR8CWaJia2dPS42IccH5uTNavdzEo/xQjBszjEaqRsc0kTQvR1QfqVFkC8tEPEGRts6yTf43Dl/6l0Zl1yXYl9pTx/vQG5Q3Wl3gdam8PfO+Wsq8y7TZbTlK1RWwLDee/guo8A/4MUya6OuF/53KgjoeeA1+7r6y1JQCbMMRloS9Tyn94N+wvDQUtlTYxd0KQbbflBqypEzTAYcGAcqCN0+4XLngxyOSCH2WaqUecLrMcdus7ZSUgXqW8j4I3t6AfdVIz+7JEji9qTdaAl79FmxDUhLZVdKsehvKrYrJinpU7LsnLt5MQ0DUbMVRnm5NwLkiIV3TMyC+VecRI+wpgYt+4wJ8AAB6K8g53orU8JlpfPJbUXyO7Eoj65Gg60KlGnJGJ9gMg== 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)(39860400002)(136003)(346002)(376002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(4744005)(66946007)(15650500001)(4326008)(2906002)(8936002)(7416002)(8676002)(66476007)(66556008)(86362001)(36756003)(921011)(38350700005)(478600001)(83380400001)(110136005)(9686003)(6666004)(6512007)(41300700001)(316002)(6506007)(26005)(52116002)(6486002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SAvdgQ7mBBrpAJCZqBs2RFRXPZYr?= =?utf-8?q?owvnoAByFhm1IRdEAq8PvZDgfLdNhsSVgZl8p5SzVUrDY87UKtG8IbVeIMO3lTT/q?= =?utf-8?q?AiMWsYalNYKziMr/hi7lDXPTlNrBG7bcyTwEgHTrBSK8UyckZcTbFGmaxYakkKy3s?= =?utf-8?q?l8XP4WVGflOyMZpP3Yc8W5f1oV0Eys3HpCx9dDKMEtiGAlJ9XduVLskGy7oC+5qAC?= =?utf-8?q?zeeHMuW2xl0Xis7tSRxPb42aY229zfeeakF7ZjWkjL7KuXNZmZ6eoCz55/5RMSiJU?= =?utf-8?q?5YnH7bXlo3EI9ZbwVfkhuQc6dLJQPvtS+QNfKTuSilzrO70PUfl307r/w8nYnpgum?= =?utf-8?q?XNsZzh/1iSXQ/C/9iATW5JvsH75gxvYPuCB3Vkzb7wPvUnqSjZa9PNXWbevYxUNYm?= =?utf-8?q?sIogH2Z3A5lts9bDRUC9mpoUowl7hEAoyUQAB2LPsuvB74Iq6vpio8l7CzLOKvO5i?= =?utf-8?q?wGE137H5YdMvFlgRqkgDZjfYMJP9UAfpHoFhCzP2oS+6KJ1wgQm85gBkIFLlqas2m?= =?utf-8?q?Vae0nBTcWRp9bZDET51JqdqMrhYbta+5NPOMJpTdj8JRv8BJFDCg3XKXQAemmus8p?= =?utf-8?q?hh3zAf3lX9bJe2Aw++0N6B5grn15DqCR+/MwZtUh60lufV3lagZ4c8XWQgybutkRG?= =?utf-8?q?ZX2YCmbRFxqRbPQfF2YnMKwi+YdMxGkan5sAJdQLzZCn8bfbwmC1c678vT3JLSVZT?= =?utf-8?q?hX8XYJfstmGT95fskSkMpKsoDMgPViEmG/j8eJ1BtMlukNmZ7qKFEqbq+7omSNuqn?= =?utf-8?q?KFyKVeaqUc/DZC2IZUSqdVUu9Iss2xmwBltZLWKCJJpfyDClTbcboq10iczLYbZkO?= =?utf-8?q?SH+rBGzAU/voqFxCM3x5D7ahKwch3t9s0uD+y7cWt+diBXiFcud5zoJtCS2q6TQaY?= =?utf-8?q?2ynTdccrzX8yhJl0WDfbwevbVY1sVTt28XBo1wXQxsdPd5xQ9xyKgJI54Wr/7Cdnn?= =?utf-8?q?0pm8dkw+YKB39AvR8a4tMFu1gkm3Zs8MJCpaJtbXQCM0F1uR3v7U8K3E9mQnsbkxq?= =?utf-8?q?XljhI750CEGP9QPYSZV9BVsNrH5JWM2EPuXpwd/EOeKHrJH80Z1sVaqqNNkV6ARaH?= =?utf-8?q?O4c2oDVmzY/0T0vXTcI0gJDxxU9b64xRZyQ0EV6mBqOH1dLii6JZfycyUm7oozIlJ?= =?utf-8?q?YQeSyW7pimBGBm7/YF0EHOQk819yXHfpfLvwbjSyI7guw1HC1q6P7q9k3u7Byje16?= =?utf-8?q?aGqZf69ngLwY7faVV7BUavGJnbnJWrFe1N2rcjylTArBT0Gj2FuOrnhmgbArpbrrU?= =?utf-8?q?ko90iFYwoZ852P//LECTLob9mAyp3gVjwLg/nChBOYMQT4lZ7tnkapXVt/eJibIsf?= =?utf-8?q?/919HF+RhlMd8TB/KdQt7ehC7pCRNwcwzQnps9E965PHd1cUEyBCltc3dSDekNPVJ?= =?utf-8?q?F+z5Se3HtT+vvF9M/F2fCZ6giTfmvMsvQT95uR9idL+LeGLguZp00tNa/Uggp++rf?= =?utf-8?q?un7CQ4d7XPP/2Wiu1jxSHlVZ3NmIae3fZqizm6NjasSpg6/cZg5j458oOBzXITkc/?= =?utf-8?q?NsBIUcrFtp6Y?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e37ad53b-15dc-4d4e-5f8a-08dc304d9a81 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 06:48:24.3268 (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: fflcqaUJmRaWXGda2OijgOvZUfLE5BnrKNDRzTtA9KD1iQ+8kJ051BEgNH3I4m2iFJL8jp7uZEd+fPiQaXPa7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8011 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_224826_938563_D7BDD8CE X-CRM114-Status: GOOD ( 10.03 ) 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 Some MUs such as i.MX95 MU, have internal SRAM which could be used for SCMI shared memory, so populate the sub-nodes to use the SRAM. Signed-off-by: Peng Fan --- drivers/mailbox/imx-mailbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 306af1880415..b36267591db2 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -920,6 +921,8 @@ static int imx_mu_probe(struct platform_device *pdev) if (ret) goto disable_clk; + of_platform_populate(dev->of_node, NULL, NULL, dev); + pm_runtime_enable(dev); ret = pm_runtime_resume_and_get(dev); From patchwork Sun Feb 18 06:56:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13561708 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 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 AAD3DC48BC4 for ; Sun, 18 Feb 2024 06:48:58 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gh4HkCHNZZa42Uk2YAAgiG/GaOjlUfIWFPSUOfY5mSQ=; b=4dF8H+x4SzW+Serjp5ob/XRZ1u FcmyzXtrg6EFTLT0pwf8+J086UiSqCmGq2gpEB0fQBBwrotiQQx+PosBnFfzWYLaCcSb6qAuDHPOE YnVcLQ9uIqW8K4YbjHx8SZ8xZBXXUnksFSIQKvG5oWRWHB6iffKLlROR+A12XO9F5PtqzpuuGhz7r vDCC70PJGISSbuNQb8tUJ7WPxkDRXDVdos7SWLDh+0b45gQv/O6O/Bq72xEXp/Pcar3PRHbXH3oud 6d0TxgtonQRNeS2fa1l7HlRqTfB3DILyjDj/jeOhVXlkp76Ii3MqaSWv+JwCW/LMPvf47HDSEy7DV mMeCzFag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayl-000000079kM-2UaA; Sun, 18 Feb 2024 06:48:47 +0000 Received: from mail-am6eur05on20601.outbound.protection.outlook.com ([2a01:111:f403:2612::601] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayV-000000079aT-2JSO for linux-arm-kernel@lists.infradead.org; Sun, 18 Feb 2024 06:48:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SYR96C5HTweasjullWnBP2scxec8xOCv6plsCr2/aTHgwMuoNnpTLnn2K9r8UtvHy5lU+YRi3gOQt8UiqzS9HaMjWALObPfwSEf0ECxrfCfhSfvyR8UOwcFDzexkoHJx+JQ86CAQ/bd4o6yttyEFj18VtyLotXgct9KqO6Mq6zJkDnJj8sBzxQTLTk4IsB3XA50yjgdIZWQC5gMqV+uW91/YL0rB34zFdFMeUIj68PuXTxIXHR0Yr8BLS9MYzQUhBLStRnu/0mqntMN5cFbFBH2JWQCzKi8WTydZRNpM+JsYBCeEU38mObsXF7bbSF4GByHngHSVdFxKQH24E4Q8sA== 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=ptTIaebQcuxJRRqep4bFx/oKrRjiTx/N+usGnZnKIkQ=; b=IrW20uUW7JuAuL9G7JqeuN/lh7wJn0imousvQ+okD1e/XrfhKorFU6s+tDb2JORFu8zt6xJANR/lCyGealFBlQyk/EDUUzOdaXJber5306ofSJxL+1jAmLwn9nMeveTTZc4jgOtSh0d2UP4VK7ZrNQoT7rW8n7gBOxjoZaE385lBcy/HqN3iAWeV2fWXpWumgFT5ZK7gmAOG3MsqLeCK3YB3RhkPGBJnyODsNnQ84UQVa0NyrRlBuVLMLtrIEx0aEE7VPnJOOhfMPnO2+Zjm8OxeEvG9DHRnzzUiH55tg7TJx6/xH/xEcYnrqSYeLC83dc7zwuhLCBl8DSFzIgS9jQ== 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=ptTIaebQcuxJRRqep4bFx/oKrRjiTx/N+usGnZnKIkQ=; b=iN5KI3Oz8M+l6ctsa9OcJ1wdmH2/JtiezVbY/Aqj2/3SUiAiTcXZZWZB12Dl32w+kOlp1SoHAg5Ey5ziwdvEWbu+U6I9OMAAjaatOwf1M1T5DWlpN9AbVIHG9dBSw/XYxLO1xsIqyQRF0sjPSR0eDirJE/wr/LHXpHMZt7SBtp8= 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 DBBPR04MB8011.eurprd04.prod.outlook.com (2603:10a6:10:1ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Sun, 18 Feb 2024 06:48:28 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1%4]) with mapi id 15.20.7292.033; Sun, 18 Feb 2024 06:48:28 +0000 From: "Peng Fan (OSS)" Date: Sun, 18 Feb 2024 14:56:18 +0800 Subject: [PATCH v7 6/6] mailbox: imx: support i.MX95 Generic/ELE/V2X MU Message-Id: <20240218-imx-mailbox-v7-6-8fb665eeae40@nxp.com> References: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> In-Reply-To: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> To: Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708239387; l=1293; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=SPNe0FKcSKFv7bAkLa3HwYU4wd0uFOj0fhQIX1FNVn0=; b=Wxy9v56DpfosDiC5gFqmOX9x+gE4Ac0XOkwMkn+ZUPd437dRRPX5mVQbGQxZ5pwJj0ZjOz6a6 CG/Hvha0jCaBqC4rXJ8UkMobx3OhtdtFANGKBLfiyrShEvyciHtdNIa X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) 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_|DBBPR04MB8011:EE_ X-MS-Office365-Filtering-Correlation-Id: c9b4369c-2ac7-4b61-456a-08dc304d9cfb 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: B89KesXKUyYVlqns/+14IfzOs0/kiKREEg0QKIFZIqzYuv7JhxBoeFIjz1vAfjSqGq6dn7wt7wFq2TiEdOysUPYsoBbmghLtI0Qtt4g2erDNsXiWh2U6cVYxbAtK5doTx8uojkqgfN8vcutuhtd2Znk/Hqb1Ltm5XnLfXri5L38HCtpu/w1xsJu4FUXBj1OsDSu3/w4OYAoDBi5Lzgntfeg+GF4VXd++SGSKDMnizq8sMr+Adn6X0J0pZwzGoshGkO1CrrJIGqdLCYQpL89Kb/pDG51zLPr4hDHdYCyrvuHkMCU5c2iVm5tih89mf2hteg9K5k8ze8aT9DE+x0vCVglqIa756lANOssjBujcf4reqEqanQ8P7ZALvh97jCjmtFqt4ckvK0lX3D+qtAWfRW0TvWrs9YCJP3nHIsWwAqatE7YxasWvop/7DY0RyPVauJfA2k1vfJImsbat/3FO3peYzCRfHNsSA8wajsT98awNyCYM2tJvYhKqNQ0F/16lQLxvyTn0XD1yuzkVSt5D+sIkgsCIMzld9TstU94fmpHQlVtsOb9iTMqdnElmlEQhfBccOj6FZ6rEKYKhyJH96S+Rwfp9h1hceBlVZPqIcqgwHHGeWTYIDvjR+7BCXRWVBFjSYoNkzbOcgXslQCme4w== 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)(39860400002)(136003)(346002)(376002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(66946007)(15650500001)(4326008)(2906002)(8936002)(7416002)(8676002)(66476007)(66556008)(86362001)(36756003)(921011)(38350700005)(478600001)(83380400001)(110136005)(9686003)(6666004)(6512007)(41300700001)(316002)(6506007)(26005)(52116002)(6486002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?RCHEAvj1Pp0dKg+jchkaRYSi4eKJ?= =?utf-8?q?LNSIlxb+aaj3982OePjs6galywEe0FruUXEIbalMieoBospkYO4tzCldYI8X3rlbm?= =?utf-8?q?RX2DdE7SV173ikOPck2TnvNzHwGH5oGvdm4UQfC1kA9niGVYAzxIy5EgBsdyO3VJG?= =?utf-8?q?zKV/Sk/RRzuWuNFUN+g3rermTfzAiuASQSha0bKW/QuQavz2Qjec8sCGJvkz7XEkr?= =?utf-8?q?9hI4KAMA4ugN7nmPCLpwtquICGZuZ6Vfbljcs3wi3VTs4dIDypaLyHSaNuAPp1smi?= =?utf-8?q?VFLk4Kp0BLNoDuv2MkUJfjiS1ezrFKLfPPSHqyJViTwgFqKKM3OtNCQR64zuQT7Gc?= =?utf-8?q?imMyTMLfGgiSiwXEUupYQakS8x9l1mdTV4T+hNri0TooxPbp3FYfe2WfLB6DuuVce?= =?utf-8?q?GjcaNgYk7bfWnysghVspWKorPBNW5eOjO+Z2Tq/boqVRZIz3NOy/DKBs/6IoDYQVP?= =?utf-8?q?bFuBSGs/2LB4r8Nn1R9IEO878Ex/2HMCfgPHxJadAZr1hKXMYLtzBWWKTCDno8Nf6?= =?utf-8?q?OKIHvFKudSdjwSqEbi+MHCCcA/n12Y7hEk1WjqRan4ggWgH0DG/1bLRoKeiDSz3cc?= =?utf-8?q?VxpTrqEyAWk2zRcroDrlOBGCGnJJ2JUYZognDxHo7RTSy87GxWlPsk22t3xl4t32X?= =?utf-8?q?oZIKNrdP+tlYG/9n1gdvPPZe3SbkujjzpwwuwIeOXKKkUxmOk2Oz4Fq4c0LNiyask?= =?utf-8?q?5gNrjrzH7RcLU0hIIAx35lgBV4x7uiiFGRvHxHSeCp/b2YiPRQRbpu+DWd+2uOzaP?= =?utf-8?q?vFFb+tcj6cXEy6hRLP39M5NbnmJD1z9f++erpnLX2VcwpWKtISiycblMQOZfpOFou?= =?utf-8?q?GiymHekfuux1PnvoBavGyIPXr2DYNxxKjuCpLNB6YOXD0t+BRZEHWqHugDTXQPhMa?= =?utf-8?q?l3al8rfFLIMudbxXjtYvQi/478atf+qYro9ygHCeYFefaIFyH6K43xqY1W2EMcgC6?= =?utf-8?q?6qBcX6HBGWxmcjngoWBc7qSU+EZnFr57E/DABV2W01zazRViYAQqLX7f3gpo8kk+H?= =?utf-8?q?Qx0aY2DFFZJR1p9Bxhy4G8+W3fSBW0o42v6ph82uex2mwCw0kwvlEwiYaGOI7fNAP?= =?utf-8?q?OHbX5AK62LNIMBvaLseOF8Jd+KnR0gckb2KzMtVmgwW0PPU+jEX0MO5wbTGkLKwd1?= =?utf-8?q?THdWVT/m7qZPCSu0rxVDWOkX1Upeb8l+ZlH+zd5Svii3eCXSRMAMAgyCXEjwYPPXo?= =?utf-8?q?GAFlZc4LJkrDC1X3LOpNIOIE7X7kWldNvfeWXZdfGZabqFxFCGTHVf5qepTW8D5XH?= =?utf-8?q?To7O6SyXNR1wvPBErF6ELDTi3HXniWD1i4Pqgds1/1g6De7hRBK2XF24USYP5uJ48?= =?utf-8?q?nArrK5FqqiE4P6iLRk7hNdQmmYk20SNfU0N5qpo/OpMZSZrX9YKKnNFvdUrFvsifq?= =?utf-8?q?2w5WXMNWPiy5nsHAJmgJ4b+mql4r7RYkRmhV05IZO9IwwXYmcjueHPQlz5Y0KbeyI?= =?utf-8?q?InTW493w3fRAsNXm79+igf/06LPI4KWkmg4FkNSNJNRooliDfj8hmzIA6JrlQnzQ5?= =?utf-8?q?qTh27zGzxkAC?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9b4369c-2ac7-4b61-456a-08dc304d9cfb X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 06:48:28.4768 (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: hmXnWDxtOICrAH5dF/KH/rZFnByeEvO2MbhuaiWL5f/HRg9y73vvobla9GMIWzfBwgGtRY9tiYKxToqIA7Y52Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8011 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_224831_738917_8212461E X-CRM114-Status: GOOD ( 11.47 ) 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.MX95 Generic/ELE/V2X MU support, its register layout is same as i.MX8ULP, but the Parameter registers would show different TR/RR. Since the driver already supports get TR/RR from Parameter registers, not hardcoding the number, this patch just add the compatible entry to reuse i.MX8ULP S4 cfg data. Signed-off-by: Peng Fan --- drivers/mailbox/imx-mailbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index b36267591db2..5c1d09cad761 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -1035,6 +1035,9 @@ static const struct of_device_id imx_mu_dt_ids[] = { { .compatible = "fsl,imx8ulp-mu", .data = &imx_mu_cfg_imx8ulp }, { .compatible = "fsl,imx8ulp-mu-s4", .data = &imx_mu_cfg_imx8ulp_s4 }, { .compatible = "fsl,imx93-mu-s4", .data = &imx_mu_cfg_imx93_s4 }, + { .compatible = "fsl,imx95-mu", .data = &imx_mu_cfg_imx8ulp }, + { .compatible = "fsl,imx95-mu-ele", .data = &imx_mu_cfg_imx8ulp_s4 }, + { .compatible = "fsl,imx95-mu-v2x", .data = &imx_mu_cfg_imx8ulp_s4 }, { .compatible = "fsl,imx8-mu-scu", .data = &imx_mu_cfg_imx8_scu }, { .compatible = "fsl,imx8-mu-seco", .data = &imx_mu_cfg_imx8_seco }, { },