From patchwork Mon Feb 19 05:22:36 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: 13562168 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 B731EC48BC3 for ; Mon, 19 Feb 2024 05:14:50 +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=X85wq6LucwIZb48GX+8cgbgHQP GK5VTWdKFU6vyAzEWWPyYQYEG9SrW3pcTt/OiLuSNRJPWkmGWQAp55T9oeLdk3h1eCpE86enO8C9n tWxDXtoK9YZgmEsBtnqqbDDrRMOQd5aDp1H6wEYe8eRQTjIgguCiGPYBkH+YyAI2BlhjIHN5zZ5JM YvOtsUMCQEvjr8TOvYwCAOS0Vgmnz7wpW/JX3mUv/LoyP82YOOzAtHUpoIx3Buk/WK5pTHQjIirW3 0uMmwheiQAhVXzYJAnqNCk3WrH4wt/Ua/Sv9YdXllAP7MCm78r177Z0aNrG+fmBom/0T7I7L3JYqJ qkkMEoBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzF-000000097Dm-2UsM; Mon, 19 Feb 2024 05:14:41 +0000 Received: from mail-he1eur01on0602.outbound.protection.outlook.com ([2a01:111:f400:fe1e::602] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvz8-00000009794-2CYa for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 05:14:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kvduVTptUOrSloxS1V4ej6XVP8fyu3j6ExTRwgLViCde0Qu1nIZETbV3KyPivkINqeOYkmDjMHxnATKWymoIsAgz+K8JIL42Ej3oNJuVYL8RpZMgbJbGpQVJKKYpz4rPGU80jbVFjbH1comns0gY8NxahnfnqHBcIq+rtmsZRnifv7vbknaAWstbG7t1rJUG4LcZ7PcEEiW2suz2Itj9HEfi1DQ6UKJBiijxjkbCtoXz9ubikOk//YuHhjB4ORnzULI7a+DftW4ZCeDmH3oWp2U+EcTlR9ui4EeAC/FJCnw6GCYtu/+zPgfpBD2dt9GjF48PDLL3K+el8kBPbJclpg== 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=UyaOKh9BpXvsVIdD0qsZQvDEdYS8HqQhjvBMD9pmC2qGDEkFGwHdVjHfbVdjTwY+ql8EQM7pt3GcHsJuTeSyR9OIOQNW2MxC7Aj0qaiLP5jR557btSZNzqfZkF4tyjH5RhORk0ZFbapc3xLvVpDgEFoXSw5SN6AECUYRNdGRP5955FDe2cF0fblq3wLEKHZWwM3M2UlrIPYSvOc/75xLP3D7/wyZ/2JAiDjxud9oHDFfOJ7W2V47OePUgFno+P1PD3QmcSBuluacFaPAmX5bHTgh94eqmN14EkSuQogQ4H3EdDfb1mgSEq4OzTDmOjTydrUb+loudt0lKesUIivZgg== 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=WxesPZ6yxzK5ZSya/OMygVANp3f6S1E68fP/nDcEuyPj7G1dYKCnQjg0wN84ZTJvm9dVHw94l3ymmTwSgz5yTCRa7ZtGbqGxizmaqWdla3MUdjAb0AtPRAH6gXr/maQwItTjNuj813cQuIKD6ZN5UZHmGqYr9G1QZuix5+tF/rw= 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 PR3PR04MB7228.eurprd04.prod.outlook.com (2603:10a6:102:8c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.34; Mon, 19 Feb 2024 05:14:25 +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; Mon, 19 Feb 2024 05:14:25 +0000 From: "Peng Fan (OSS)" Date: Mon, 19 Feb 2024 13:22:36 +0800 Subject: [PATCH v8 1/5] dt-bindings: mailbox: fsl,mu: add i.MX95 Generic/ELE/V2X MU compatible Message-Id: <20240219-imx-mailbox-v8-1-75535a87794e@nxp.com> References: <20240219-imx-mailbox-v8-0-75535a87794e@nxp.com> In-Reply-To: <20240219-imx-mailbox-v8-0-75535a87794e@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=1708320164; l=2741; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=C56rjccJP8TyE3Eb4IvcogQQf1ZEIotnAVpBDSA+e98=; b=3V0SZKQi4H/ccrA6TpxPTRRLuUcugewNkF5BqXuBFTIiYxKOz1wqbVmC3hJNuBvMh5i91ENSE +64+thDuENhDkzvWRdecPmCHCruO0MnNDour6Nus54CqOl3Hl1nUboI X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) 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_|PR3PR04MB7228:EE_ X-MS-Office365-Filtering-Correlation-Id: e370c039-7e82-4aab-9f48-08dc3109a3a6 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: jOKdzU3KEW2LQm/ZJXRS2Z+26bsxgrOV596PTaP0OIdPy8o765hfgD60l1wNu8yty3nNypNZ84PDc7bNUyYyjISJfEHxIcWvwJ6SngQRCgASEpjOpIcHuR+PmdJNO/yzdjbkTSaqEGIgTuoSDp+0tDpMNqmdonZ1DSGf2Inp3XOwD3ltuOo7VCQqGRSgro/4jyngRJb0Q86AqQzS92tRQBsgkfY8x627ycKdkSGl9jtUVbc4FyT6d+O/vJDHS0Wb80L9rUFVqGfrJ4mz3TzCrQdixosqKZKAURxI9PFYl2snNpRKqNCbsVzeBIj2rzfeQEXprzANF6yBeoOMwSsEdtxGEhn/mgqVUP2JLwKHhsIdNhq8ppVIm2OMaK5an6VMk95d1bcnUhP93K2AEg8eFmAGFmeE6EThQRkphragDl0x5aP0yzfjAQw0ntlKErU/f/m0hrgkVA5t+FKZLvbrXRdMIoZHVvyqQQSJtJjq7TFcbRy/FcDIBYW27svXrLdiMJf1zhHGeuWUl80uHkiC8SjJ0OPCwAILiOCpPfzV9mk7kSOgH/pnbNCMiULwQalR77GqqiZ2+6ni0Yo9FcjB/1x1mLpYZeeZi45362GyEJ3WFl9F4Mvfz3YA+m9EFNrKhvkkbkKFEGK+9/fQP6FoyQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(396003)(136003)(366004)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(41300700001)(8676002)(4326008)(2906002)(8936002)(66476007)(66946007)(7416002)(66556008)(38100700002)(5660300002)(15650500001)(86362001)(52116002)(6512007)(6666004)(316002)(36756003)(54906003)(6506007)(9686003)(6486002)(921011)(83380400001)(110136005)(478600001)(26005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?QnwZzUgZqssBcz5KS5rT1KM70yes?= =?utf-8?q?MWHPkHMTwrdZQkIqv8Ul1hPOSgKdfx+bxmJOoCDGsKRFqAnANkfYuJsk4Q0INCOzz?= =?utf-8?q?ExYHv5o40um1TZBmJmTyojOkx7teSnOfap7HgerH05hySZlUYtMvgmsrsBVdLGG2d?= =?utf-8?q?6cmzZQhLiUxIr/zX4AhqQ7z+Sezyog0kGigoHnjeypA+XU2GO/seymwzQC0px+Rey?= =?utf-8?q?aYttXIiNV6aG+HfI3R1goY/gxWlJsq+GW47yzSilZOYl1VpXt/WSa/Y9rqtg6dgvc?= =?utf-8?q?cJSRbB5pnqcpWOw5uKahI/B/e9BuVpL5XgKqoxsMDoeR898ZmkHL0MTL495uvLIyO?= =?utf-8?q?fX+vuD87rwxEZFua+0OTaeQUihTVbt+Up4AU3UesVKT6brB3vahvqXv1esOibwo7M?= =?utf-8?q?X9mjpeMaGSaSbjXb2/c5BpTGCRHwuiyjf6WlYcheUBiesCarh4pQSYnFqlGs4Rwc1?= =?utf-8?q?31DkpmL0FLGQywf1S0Gf8xSABlsDGCPiWLho6zma2bnU682y42WtwtzqYi3afivgc?= =?utf-8?q?DL/Un39AB5327oAdnqUsT5wAnKOo3rOtlO+8SVXIWySOKL+qUFOQ5ElTTs+BIwgx0?= =?utf-8?q?Kf57bh34MZNTKFu8QyBbV0WG3dKiE1clbeyFQDuyEUsPQMpUgg7sChLuRzNPwUgfA?= =?utf-8?q?gxaz9fu7YrGbX1xOg+lOs8Y1HHWgJKXsWT30qgRoae57UsGN3FvXobimv0/SgkK9q?= =?utf-8?q?YYw3I1JfMa9yeZ0rRLmCD3fp85PYl9dxkTrYiDou2dMKUyj6sFQDYJJutWgV3ya+n?= =?utf-8?q?yiMuHtsC1I3AyPYfcq/y1wOmaO5V6a78GbNpoq2OxABeJLJhqN7Gf/SfYIDbjNQuX?= =?utf-8?q?ZjaJCmnEAPdmSCLBxEZW575YzZz/r93kp0uu7iE04otf7jC2AnIIGXTyyaooONyFX?= =?utf-8?q?Bjs+eAzoo1imIX0Tn3a1Lg32vtRW374zsyb9aOn8+YX4xYeGvLWUpQpSaEr9XO8na?= =?utf-8?q?pbWSJOEzHWFc3ZtTbL60H8xBE/VXg16Pi+meMUfqWQA1GLtPSow9F4T+EjIGAb5IT?= =?utf-8?q?FF/cL53lD3NW1yOj1xF0jlGlIlsFBlafu/aeEIPTdf4XPLlxRWrWmO0KlY/rADboa?= =?utf-8?q?bFLs9C0Fpy7tmhjDO4u4mHQkCzb43+oQr1H0XibxQ9Dp/OsT848BtJ96XCcfcziP/?= =?utf-8?q?yA04oFFOQrITDMfHKIoOmPpN1oeaJnbHYwx705CsqAe3NidgCE3s+jwttwaVpmOOi?= =?utf-8?q?vgAAnSHFwZ9NYZEfw0u3GQV0IafkBgef3jFo+YGc290BSxRr/M7C8NKcv8DgFiOAW?= =?utf-8?q?f8bM37kP65xlcoQvSiJbfqcNmLWXMZyblFcn6zQcDA5x3kYnuCqFLOr06+Smw72Az?= =?utf-8?q?qK9CLabAgCfK9251LbHnWP3rHPErCQLdRz56wWP/BL/g9vp7cNXnwCCtHH1kel/sB?= =?utf-8?q?8Lc9nj5JSmLxzmQAzuS0hdYk4NlBbMCAWvwoGTjkm3hQBsE0n6J2k5zUdLlyB9U/3?= =?utf-8?q?1JKJafmhESTOuCKR9l4dQDhy5zjyEsgWuFuXemGPw5NH3yXVFehJJXx85MiBa6n3c?= =?utf-8?q?egh6K8S6ERY0?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e370c039-7e82-4aab-9f48-08dc3109a3a6 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2024 05:14:25.1165 (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: Ed4dkGAQEYN9a9O/2Vmh4MRzQbCiz3mb0siPvYncEkafazpu9ylhD1b6D21cFMR41vn9A74FDQHJTml0owYsKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7228 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_211434_581746_71EEB68B X-CRM114-Status: UNSURE ( 9.37 ) 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 Mon Feb 19 05:22:37 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: 13562170 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 BC538C48BC3 for ; Mon, 19 Feb 2024 05:14: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=QcWDNAxwnYYOEbbAA3c+5C+Ilxvfz+Y6fp8A/i0VXDU=; b=gH/vLZ/dARGEfcAxakJK42C+cL bfq9CaEBhixlRySrL5eBMybMyifnvrN4X5g4/5TI0aX2yf5t7h8XgEP7AZr94XTluprwkTVL6vL4I EKyJaHYLkjmW68hUbMVMx1WIgEb32h4fS6ORE3VfgvtlZ00KomT+mHj1w4o8h0wPZpBvzhxyhgd/Z egNzOpiM1Dsji8YB5Lm4B4akdoVDvhsqqlQY7dMLfAJQAcdv24SviQqrElAQxxLfkMFv6+DmOt/jS lKC0ZgUVd6C+cfflFx5byZNxsHnacSAGdajZQhFaaA1MncMPfwr+9ym3+8PL1LlGze3x8jIa9LaIf PRjQq/xA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzG-000000097EM-1FiA; Mon, 19 Feb 2024 05:14:42 +0000 Received: from mail-he1eur01on0602.outbound.protection.outlook.com ([2a01:111:f400:fe1e::602] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzB-00000009794-1CTQ for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 05:14:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NRptMHnBGFQzVmKVLojirra/lRKQOmeE8sY8FBTXfilZAhPRG+E0hXv+RvGNij0Tm6w4ci2gcLbCCiwbgy0QNYEt31Qb4cG8fWKRvOvvWSi6jzK0rom1n27pS0KmMqakYoBCMdpD6pQKGipMKsorrzsLMec27M4Lm2Bm9YsBwqVSGqZ9z7mj1wCEzvD+moM7uahFbZU4Ro3NtPUzyWpNaMspKmjlGFskTBKLyRT/QD5TAPrDQ4b3YWDfVqtjGuORQDBP7/bxXkqpZ+h86cCHV0U1XXp5xBEkm7uUQlkPRCX3HYaB0WkVA41hysx3HJqkqnrVsqSZrFiq9F7J/7rjiQ== 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=bFfjTTwERtnWNkZAOI2lZkDhBwzLWp1G3dJNy+4kVff6fxxUJMUa7vSXsX5/MiwmWSc0l1NLuLN7Dub0lDOqBkUy9F38iscLtcdZBh0WajPHErep6vXcjjNAzpRKftGhCm2Gk/hHMuLNgVffeREzemnjB0ja7KfBiFXAoCdMB0Hz6Hqv0huQZJcWHU9iQ5BgqWuW5YIM/vpXcIKgLEi7U/CdKv8wimHnNoMwQwKMDmppSUFJTOCzHTPq6OOfaB6SSBJTSsp4HdVJwq3nzvCGyBhKjvEQoM1EAO/RrcxG+29PFlBNHfuiaHaWlsgpl+mzqT6WLi36ybvhuQnMm2socg== 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=WCBoOTLQAQ4dFeh0ji8jV84CAMvUCGg/2COMLDq5cei0DmRT+7sKNU94fb6xo/7Itxk46Br/jO716apW8E9hmLA/tkDtciyntUOaiEmdsqmFENM+T2oxyg/jOCWYNwX/w4/cHhTSYIDiogeAu5f9RJViVuuYDsAyMyHUsPbL/Eo= 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 PR3PR04MB7228.eurprd04.prod.outlook.com (2603:10a6:102:8c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.34; Mon, 19 Feb 2024 05:14:29 +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; Mon, 19 Feb 2024 05:14:29 +0000 From: "Peng Fan (OSS)" Date: Mon, 19 Feb 2024 13:22:37 +0800 Subject: [PATCH v8 2/5] mailbox: imx: support return value of init Message-Id: <20240219-imx-mailbox-v8-2-75535a87794e@nxp.com> References: <20240219-imx-mailbox-v8-0-75535a87794e@nxp.com> In-Reply-To: <20240219-imx-mailbox-v8-0-75535a87794e@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=1708320164; l=3395; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=S0DKuiQSDcYtu53JqBC1+gV1zoHcWj4DjQyGEWhlcnk=; b=gr9A+GsNSjrArUHd/OF2V4iBesmVbMSKZw/32AIG4X456SV897HBeUiNhlttdCk6pFtRsEIu3 rG1RibGeuoFASKvJ3A0cKy5s3PLRUE/1pFv655leQwdC6hL7VGfH75z X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) 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_|PR3PR04MB7228:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c012eb2-d482-4001-88d0-08dc3109a633 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: gTukSGVndwJJ19RqUtsm8LKHPaXmbh6m6L8M5hrQkQHmN3wKL8wnoj6a9cpWldSa+3bkbb2StOQgW14uRNQvnkhbn4vq6+swzB5zSanW2fBTNfzLvc53vezRVkV/NL2GiId9HVvEMt2C0EzkUfBnjJ4lyXhNfnNyRHAOLLOatx+jx1hIz6+NAOFrvECfvOttzqX9gWRztOcrR1UlNB3z4vP1a0zJwiBZvkj5GeOr6A5NLQ6QXoKWf9eXnhjNGxZB8giywrCm15s/VxC4jyjUU0UOVao8ZJEc+SAHNg/2e9lr/CITlWXuX9MguHWOOylZWcnrW4yIPeaqdyOzoSuNv8fJWGK4h+aqTIcPrjZzTCFEZBY5nMuwgcAR18kncsTbCmK1Bq0k85WIqtvKKEOBezzRQX4kNze/OLmS2WUFH6Oe/AbF6CNdatfp9+4omFTSmN1ua274st5qZehJBCewnSQ7+A68Ltpt2FPDVaO71vjvOLjbgIkJW+xM7v+oUJFgalYTJ1683mIWQcBB1gAr0ILI3GRVUnAlDazj9D9kU8ijaTT9hC5BgwcqCLSmHJTlhZmn2JLYIox+lzt5/5ef+sjrPNN34XDiPFCD3Ua1R4LBTe5F9fpH9AoHTvG3UYMw X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(396003)(136003)(366004)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(41300700001)(8676002)(4326008)(2906002)(8936002)(66476007)(66946007)(7416002)(66556008)(38100700002)(5660300002)(15650500001)(86362001)(52116002)(6512007)(6666004)(316002)(36756003)(6506007)(9686003)(6486002)(921011)(83380400001)(110136005)(478600001)(26005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NhUFbh9OXrM8Ok/5YSEDZmeQ7Yw4?= =?utf-8?q?YCbJ84eWe1QcvRBFjMc2JsYns9kcB0UBYtSbE7l2dJ8NS3uzTp4Q1YTydX1HOlQcv?= =?utf-8?q?XBIF5VAvYvc/M0izwEB8ZfC2nN34hyRBBdt+qKOfqRRcsnND8d2pwjykjCCH/kUq/?= =?utf-8?q?8NgFlbEUgUxHndtAMiyRO09Zkv9V+DWIW6jc6GTtEYRYbkyI4jIYTMxMcGhuPzhUD?= =?utf-8?q?hUu/VBWGCPtwTBiZznGiRoNlEObxK6c/wPOaJdsTHP5tZWPe6CHgIELGOKd7NfuKV?= =?utf-8?q?cmsUaqLDMAcszD3yKsZPJJRAiBbHVwJJGNT2VSmad24QWHNaFgqccK0aU0KVd2OLi?= =?utf-8?q?XLejLTLWj6PTPySvmWh+iOh1EJ7X8JDzFpalZRHsoJKOClsCWZ51hzjq5IJUhYDV+?= =?utf-8?q?wSxY1clVplxwVnL8RRSi7bdhrhqmeipGCivgVbG7m1qHZvlw6npsN7fIhiLerzwz5?= =?utf-8?q?di4csKG/bTbsczZGE8bZVQq65mC/XjQtfH7wXxlneu5IH151DRqX+wxXZRXgrpwA9?= =?utf-8?q?j5r1JIpRsIFmaclVofQ0h/sik5awq6DiktiJhXpsTY6mWpnUA+HlOpy7nImyI9/LI?= =?utf-8?q?WOcHyuoxVmsEaVmOi6p4ui5VhrZ7I76eCX2SecYax4cEmm1anT9/X44BCb6QmUqSZ?= =?utf-8?q?gRAB2PZzqXu7IuDOnzCUTfNTSr4WQMjbj3Q23f9IfQK4pueQHoAscFhh0I6VWuw4K?= =?utf-8?q?HQ/XaeCI1+91xZSSslHbl76J2VGe74nUFA6ja+mSp4F7StS/KhSJ2kIIhom8Onimy?= =?utf-8?q?q5S6oqSNzmel2nuarfAX2H86A/zpzldr7U43vNWNQ6Tf7tudcyheghbSopSVUzskF?= =?utf-8?q?xRKkz2ORA1Mr87Ma7yrzhBwttCPMt7QqxdCsLZBPluQrHjXOsnHBua9nNVa5w1AsP?= =?utf-8?q?iMUOHO5GATKkyJ1qN81+Xjzwgt6YhjH4SZaKqFGNe6IxDkzPScP2fR9vpx1bqCqtQ?= =?utf-8?q?iAllURGfmjURj7g5XVuhHK3dk2TIlvkz8/JGZ6nD8IyfX5rQ+JeTKdkutIoTKKOel?= =?utf-8?q?bi8ryZ3CXQlMkfjMp4kXhBmQO7gYjVg8khjIUKwf4bFEeb+AR8H3xwJMmTQoukjwO?= =?utf-8?q?7e7Y59D2U74nLROxCoAQN/2Rm+IUWcCFtHZTe5DyM4iBNSW+Pmbon98FN1NPlU+Eo?= =?utf-8?q?CiMjRkFuTBR2ESkjSBMBCyOqQcJDR9AvmaEwX6sCCG0/XNgDExIfYtL4EFvS8LR4V?= =?utf-8?q?OrfCh0HN4GAIEExLxmVuqENcBjWCKcaF/+lcdZMBAJRFRVkAi2jhP684kQOdQRuKz?= =?utf-8?q?4KHNSaSrlO85EjYUSUHNcQ2BPkRq9NKoJaVqAE0OzgMyIBd0fN76lNRg+WAJg6adq?= =?utf-8?q?GPH3oNf/KeAZE1UYtXr+RHzlR3vvjJ1sWXalqCFIcGnalflATx5BNuUNfPxuIfwf4?= =?utf-8?q?P8MTUAeqsz72oWcjl0GQM1GhaCN1yQjija6IoAa6qunM36xKzXTlfzpfauWD8T1aB?= =?utf-8?q?2ZYeLlZiMPMHccID3VAdM8afvlEQVCVTgjBwEoFAjsdBG5iKC0Ez+iayFMlTCfSR/?= =?utf-8?q?D62z2a8ARVWx?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c012eb2-d482-4001-88d0-08dc3109a633 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2024 05:14:29.3468 (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: uyFp7gptauh9oESYIe2hex+1NoRZBGymsfEEYGVsUzDwysyo9rcNahAU0ig3zH2uS+fBkoJ3mGOCgQOJY/hrKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7228 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_211437_346660_636A5633 X-CRM114-Status: GOOD ( 15.48 ) 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 Mon Feb 19 05:22:38 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: 13562169 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 0E6C6C54766 for ; Mon, 19 Feb 2024 05:14:53 +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=INvJXxgYvHFJS5P/6F+HtrmQXzYX0WctofkODGaYdLU=; b=mrwkgKRAyCFXpgkM/+9BGq1wza rN/Mc3N3V7bvzIN1h8PEZWawRmHrbO0XRourFYmZyjePROKebDpp3C3vSkqCU0Ee0lXuk732dWve1 jPzkzmddD8A7iRhmniqb05e597SbSc+EtEOLUtNoEReCRbUXs34EEXElBwMPtDuDMa4zh2sy31oxA CanjJUlRBHdwoYLutknCS14f3g9ciC6W/Rc9bB1mnJl1v5pwi7hiDTgLpDMCMroDsaovL5//shVsk nMSQ+FKKa180sECP6X1JUAVrh+E9ZzhndbqwYWpDzHR1W4WHr+KmDZIxrMuSXlVoWk5c3xWTnp1VG IRwxos0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzH-000000097Ew-0H9I; Mon, 19 Feb 2024 05:14:43 +0000 Received: from mail-he1eur01on0602.outbound.protection.outlook.com ([2a01:111:f400:fe1e::602] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzD-00000009794-0IiH for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 05:14:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IziKeHMqcEqEEkZjOG4vu23NNm5N5pYQqsKJQ1Qvc0SV2d8OOf1b94Cq2Sc3fDh9ommnA75YsOgGAiaYPvE0opapPfRgopUhd/Lthzi/4CeawXCNSjqESmobfUWj2V36ddsKlw3mIDsmE/9DZfSJkyUII6aUdERYCXBTMY51WEHrnCSq5Z6tfsSPqKwjcr8Qj0GDPfp/5qVn0cRE7NXUhqR74sf7L3ePPitMZcX2MzPFQzxAomR8YTiDeff+w3fxJ9LkSy74JuLVyKK0BzlffzzqVLgUdk0bhMgfWnBj90PvvzjfZ3rnNOqhT6lVKB8d0IxmiPwSk2zqCH4a6GdB9g== 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=g9ASzfsAckp3To8egZu08nxG9biwql10p21FAR/MCyQ=; b=VMHY9Vx46e2KpGjt5gcYeFOJsJAammVFOnMsLeo0svPkjtGPn7yP3dTrbgBejQeXct1GXPKpUMo15VefLilHDYu1kWKn04lZRnidUApBBZa5JZEDZaP67dOHNaN0BXFmFRnoKFwzbUsmka/fkeSXjMVnJS7V7OMDyRErd62aKosjAYFMuEc4aH2YqZ8l7hhST9YXwK65zIhYlblHwkOHSsTHK77PcdVsqZvMjogvXnYlBg8fVDFd5s4gapupPBpd5PfbRuUAUaPxM5/gnG0i5q94dta3khVItViwrEiEXuzcNHElfkoLBD7JVHE1mh6PRvq+LCpgmOFlcCIlPM5HaA== 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=g9ASzfsAckp3To8egZu08nxG9biwql10p21FAR/MCyQ=; b=HGneWwVZish6n09LAoLeYyFDR67VOOxtszu4x5IKhw4cIeJwjiA5aqFW0+nbYhi9xufMSAwIvibPn6g0iJbULsRkXVuauhwLactnFEENUs+5b2+ZUgKuQBjV/+bqBGFvuhNqQi06BBljM6wjpPnISbXGs69V6c6C+FHtWaNR50s= 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 PR3PR04MB7228.eurprd04.prod.outlook.com (2603:10a6:102:8c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.34; Mon, 19 Feb 2024 05:14:33 +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; Mon, 19 Feb 2024 05:14:33 +0000 From: "Peng Fan (OSS)" Date: Mon, 19 Feb 2024 13:22:38 +0800 Subject: [PATCH v8 3/5] mailbox: imx: get RR/TR registers num from Parameter register Message-Id: <20240219-imx-mailbox-v8-3-75535a87794e@nxp.com> References: <20240219-imx-mailbox-v8-0-75535a87794e@nxp.com> In-Reply-To: <20240219-imx-mailbox-v8-0-75535a87794e@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=1708320164; l=4560; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=+IlXw1fjOboyTpIeSVF2fKTUEdBumvKo2AnSNJfxvrw=; b=41pBRlnIH6TjyGOqqmrKz3uruf12AZxg7vL+ILU9kg91mRfsdQxc5TUNuyWq9t4mYxS6Ypf+Y RnV7esNF01rDHO3CVVKH09DAows2Q1ek7n+Hd7YeShhrEyKcVs3HnTF X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) 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_|PR3PR04MB7228:EE_ X-MS-Office365-Filtering-Correlation-Id: 76e3544b-f09b-42fb-9a71-08dc3109a8b6 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: u26Nk+rvKP7150Hce/QHLE2MYXKlfldILCGmrpkN0bOvP4RwJ8Ygx3W2+vJV6svwPlTpadTuQ2PzJmy+KbIP6wmYFL+de/Rse4MmBi5pLFjP12Yc2TEk/deNUFVc8vqjtgI92J8cQDU6eLhhBNw8OwcUJoRQ972wLGn/8nCn7ub/l/rTWyNz3GD8tUyjGND/xOPvxRW6gyhV/aTxJy0/8AljLU2Wob21h4wFWKPl9VXVl+cUH1p1NhpGTq5mdCKtm5IpNt0fH5hcCpnM2SlOnTuRG3tFnXYED5jYqTtgEh++BDnB1dHtc2BhRwkOOuXB/vBxUNuSsHzoQX65BU4yjxAuoK+Dc7DCYSmZqPM4pQg24wRfSMsKJ5K2eDryhmpZTt+wzENNxc+ZVN66XOHqYBZe9/GoC3FOd6gacd3XHEAYcbdQ3tL/lbMADJW8DOO7aaIraJ9wDBPUc1wxiiuXaNq/nRydrHKcoYByAFXkImUGIr6APqdjkVu5neDT/HrIbIH8ngUNxDFheSNr/yooYgfhP+vidkIK9IxMDSZ3EkEFElUCpYLctns3hKLdokl1h23VPEzlUHpZgZiF/AVq7xQjKHDkJF/P+wCeyrVrlxIlaRK15FoFRBp6Syhv5hUoXLyy4U/VDSZpu/203NvUNA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(396003)(136003)(366004)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(41300700001)(8676002)(4326008)(2906002)(8936002)(66476007)(66946007)(7416002)(66556008)(38100700002)(5660300002)(15650500001)(86362001)(52116002)(6512007)(316002)(36756003)(6506007)(9686003)(6486002)(921011)(83380400001)(110136005)(478600001)(26005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4wwouiO/JTxfnRDiBUFubfddoeMn?= =?utf-8?q?Kils7ga5323278l73a/kkz+dgeYMuA6HdKDavfEaMj3WgM0z2q+l/PU20GOnG66qJ?= =?utf-8?q?F9NbHCctUAOgehw+qiYtRGQ+05082qpgf9I1GCGoPWHG7Y3ZvhvvuQP9974sqOzg1?= =?utf-8?q?+cmuCOK2sHYhWF1w9+zp+8L1Zba+9QxoLoSPX+zh2UCd6m/IRMOMFqNLEtlhHa23f?= =?utf-8?q?FVNgyunlUaBjnXg2d0ehXL+WrHCuUvJyiSZM9SK+QFR75F4O6mMM26sl46cB3NEDu?= =?utf-8?q?0kxeuMBCgbyaF6Dg+fFG/tUwg/Rj0cbEuC7EjP3M/6iz9obfX1H1afcDfwluAqrXM?= =?utf-8?q?4vF8oL0Z9nuPVLoP4ZkwVEHoR0vlwmq2sPoO40WlrXe/0KdMRP9u5/F5OEEu5TEV/?= =?utf-8?q?4FYjLnmbxvCMebs4bRiu5epgRsgjO0BTG0onwfgw44/oiIwVHk4K2cMMl9jUXW1Hx?= =?utf-8?q?Y2pczTfBz4ECBn7REyxi9+92epmjzA7JgDOmpCuFw+ZxZPUgyj3gNAZZHvmucHdkO?= =?utf-8?q?dJzjLRnquzupzgna9iu+bcTlYU8kjBSTW0PZuobMUzkisyXiUHFPOHBZ/Ijn9CWP8?= =?utf-8?q?k4W9BbeQqqlFaGjH0qBFJn5kANzfUhlgpP+P+pGkdFykC/26xc2GzC0BL7s0S1gp5?= =?utf-8?q?LcLU2b6xZKwS9nBMAfdWJ8+912x1JfqRYA4lmjPWgHDt2JTvb1FSKeEUk0LnG+Vmj?= =?utf-8?q?1BrLNzVGBQ1Y4/GXV6HfUs4x5Di4+XS2s1TmdnAorj9oOkAqXy2v38rIhQl1Uqais?= =?utf-8?q?8V10B0p+zUjPQ8DS9hzPUaU/NG0XQUqEVGu1S7wAmwhMAUTUzGhIjY3sYtTCGupKW?= =?utf-8?q?80WlDN2KkIWZQ0T6Le1k4K/6DjEwVZqNMkx+mS3LiELVl2Tr4HykQD6DEwAwiQCx0?= =?utf-8?q?dVHUcbZQ1rjPPJlIsExBBfG3zsuFET5wVAonG8T0VN/u8e/DpL1TYjw486Lj7M4Sc?= =?utf-8?q?JP6wvYAPxdcHATJ9TJnKEFCiDgNqS9uxCzYkjr3akcoKuyyfnr+4cpJZnwVkw6P7g?= =?utf-8?q?028NPQ0gf8gFOv7EtyNAuudQbMiyfqHNFEQVoyuodNUvn53QS4ACQFnrc7VpF5DQu?= =?utf-8?q?/CIkx8O7o4tOsT61nc/PkSLHO8X4inqiQx77YKDV6VLkPCp182AVuDQo3ReOZXWyp?= =?utf-8?q?zAXTptqLONAcRZ5YY89aQUorr5yLReMv0urivcjb4QU3r0EBiH19YQoOI8TIFg4nS?= =?utf-8?q?AZOIXCJ30BJ+cdAHIKzKwZaDRs6S5e/xAvbCyBU+GF6yeNBFOl3HHjtBY8bw/h6E2?= =?utf-8?q?+YMaN9tU6mWm8tF/UlF1h4eIMjL0VZUX89QVDzGwVp3DDTvVYonQJt1toix3S/7+0?= =?utf-8?q?aEi3SfgduCCTR5vP/3pORK/gYThFnwCqPAqaorPcpfiSsjxT/+wTgyCtik4WW+9NE?= =?utf-8?q?cqz1zId0ifCB6WetI98E7OP6fPhcKURw/iSOvmlip9XvMw4HMwqE6DkfIXgkEcurr?= =?utf-8?q?zK1GcuNTNYF2TrUFVOYbfY7eB4IE/xM6xSjefXH+UIJmOhgJd70K0iJO91tbl8GdP?= =?utf-8?q?A0cOaEh3I/8J?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76e3544b-f09b-42fb-9a71-08dc3109a8b6 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2024 05:14:33.5985 (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: jz0MqbYpHx3ZQx0INYB7o++ajMlMgCbIWbhncpq849QspC/Eg3f+HMFVC2CtHThYEjyAo40AWMV+J2R5Bb2GoQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7228 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_211439_167841_73FC2C58 X-CRM114-Status: GOOD ( 19.63 ) 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 | 47 +++++++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index dced4614065f..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 @@ -29,7 +30,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 +96,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 +268,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 +327,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 +349,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 +741,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 +791,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 +897,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 Mon Feb 19 05:22:39 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: 13562171 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 645E7C48BC3 for ; Mon, 19 Feb 2024 05:15:13 +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=JzpG5fGxGkp5P11Otenebqw2cA 7kNEewhX97aj7oyVfNocfp5kidTgBo3Nv8v1f07uwqHtlww7FhnuHg/I0twAOxLcvM5ibhKb2TXMe 5KODASMherB5bqxQ7LugZ7xr/ES8MUY6puOvKEj0QHI1mamOS8jPtuoLaYlZ5c6mLMfllAQMHT+n6 RpDgS8YNj/taBkf6uzmkW+3/JkuTHuZhCkwnQ8IX1MAXXmvK/BySbfxbci9ugJHLpczD6uuB3TPWz ojxyUB+oIjgOLqgOB23tYlnyMvRstIRDxUOlqtPteEjD1EpugjfLFD7K5OewvaVtLZ7QWPJ3Bop7k 3oFneBrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzZ-000000097PK-2CkB; Mon, 19 Feb 2024 05:15:01 +0000 Received: from mail-he1eur01on0602.outbound.protection.outlook.com ([2a01:111:f400:fe1e::602] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzE-00000009794-3Ksb for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 05:14:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NagNDRFWCjR/W15elPSJ/CCP/xuXQ1l+LLe5Nxz1XtB4Uix/xMLXBcXyt0n4ifS7UsmWUtq5CiY+3vShm8S7NLRPd/Y65C3HpuVeP0RKeXrJc4agM/zt9VsNF8FfokeUE4uld/LkF663HD+1lpPBgTvt6brG0itALWb6J+lW2ikYQQRmmVpDt1kufndk5j/MpjdhPOA09nKMnnvGFMzZ5MD8Z3n6Z8i+kFYaQufWOVfZ8BZLFyxdf7NoUI/H7q1ePzDn6r+sYHOqDHlP+RxhzcVUFbbe4SoBLrkldXSNgac5Hu6l5PxqtEq2CvgIq5kqFc6AwsnQCJo+lvf0KCprug== 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=PzoHRtJurAy4bq0mfwra8xlIeLyGpx3R5IV7/JcVVOYHZHNuHMEiaPGNquE5EpEm6IJTqEVdHU3VboXhXcsPZ2POUJvsNfwd3fnXgx/YicBP9mwg7HMxk5lRi4sGqNHYEpI0lLqeFm3JUsFPkpfR9ym+pEZ3ztLvsgLni//SiUHZP8X3HXynnDxP7cVfkZOo95EdKQpe/1nbWHDjsWZzS8ijljkUJeb0L/H4zvqicAjJlAvUpA9ZeO+5nvB9bL2VDxBAVMW3oGu99iA8USOhj7opM6PeTN4Yh4qZ4NtGkDFIB2qLiNDhttdLQKOAr8EiQ9+Z15l5kaUEbl0i2rRawA== 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=g7YeAHHYqDfX9x8sQ285vf6zwWl0/jxFmDsQ01SuRBI0DBWcQiWqJRwXHyuTEBCO2ck6S1IIHFZDP7MKSqCHXOQEis3N/ffA3riBgmf9FMdJIQS2I+YRttYnyaXfVYE82Xd4Nphhym3MmAKv9Oz07Hod75rwHbpR2fRKKw0I2x4= 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 PR3PR04MB7228.eurprd04.prod.outlook.com (2603:10a6:102:8c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.34; Mon, 19 Feb 2024 05:14:37 +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; Mon, 19 Feb 2024 05:14:37 +0000 From: "Peng Fan (OSS)" Date: Mon, 19 Feb 2024 13:22:39 +0800 Subject: [PATCH v8 4/5] mailbox: imx: populate sub-nodes Message-Id: <20240219-imx-mailbox-v8-4-75535a87794e@nxp.com> References: <20240219-imx-mailbox-v8-0-75535a87794e@nxp.com> In-Reply-To: <20240219-imx-mailbox-v8-0-75535a87794e@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=1708320164; l=953; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=zmP601mImThDTxLev7/0znMw6wmWmFmrzE1cC9FHOTg=; b=/3/HaJi+Vef9BHLHZ7pQtlvRQRBHaRyh+RoHiLrbdvd/dM5QoUAyUh7bgIbNg0yUffI/7v/+0 yFAuTbkdLSCANhOcJ0/kLr6agoIHCVD+Wi/AKQvVVhY2HdRaDjIyKE1 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) 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_|PR3PR04MB7228:EE_ X-MS-Office365-Filtering-Correlation-Id: 5056ffe2-7b3c-4141-c04b-08dc3109ab4e 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: mnYPkYodqqiNaFPKuFGf9xNItcNPeOWSPepsqmBlVG2ldiJ/TNGgnlCFFaf5qGZe91XpcleHVoWbuCTLYv+T8Cf5juN6Ux0rHNTIJnTpX63KnSZ6/+ShYCr3bLZaZavnG/SsK1fzlGBNrnZYfeo6LpF7s2r6nUsFFzC+l4Ys3CMpYXst82+tyBdtPi35UtPy7IpywuDFwXepG/NDRIxtoa3UDzVBTg1RYcRdnlCk7tjGa8yNugQyyNroID/cahkVS/ugsjcNNA6OWW6zg6KJy2cR8MYGAzGWmi1XKfYfGqW4zwfyG3QpN7Ld7jHCOJFVuefdKVpLqctiDIFmxTboOPzCZ8G+LPP+CgIQpR72B71q8QCrQIEA0G1u3DLHVSL0oCxJpU9YWS9jlHVVc9qP4lz5RQtBsIn0OmY+XA2bllfm8PVRedM9mow0BnM6wwnw9fvLrsuYWFr4bUfnq7gc7p2cAomLocFyJj7ytB8Kw3XPRLrXhm5zqiWNo4BF2/ASSwpvUmHEAhmiTs8vOHtOSpXQKKITGlL+F/EJ7cnyECwyoPt0W9k92yDE2bFf673bKI751kVxnzkXPcjVb6M/dAmFqTIzFWlQ+oECkpzv0djG9uLR4ahmPoiDdiwLp2o8dZp8TH0T/lqR3W4Sf0a2JA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(396003)(136003)(366004)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(41300700001)(8676002)(4326008)(4744005)(2906002)(8936002)(66476007)(66946007)(7416002)(66556008)(38100700002)(5660300002)(15650500001)(86362001)(52116002)(6512007)(316002)(36756003)(6506007)(9686003)(6486002)(921011)(83380400001)(110136005)(478600001)(26005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?gu9Sh0QOdzwQRz9HA47R6Pmq0YyI?= =?utf-8?q?Q0E8FYUhXB3R6JqQ2/rIgR4+5c54b/0nZep6KxWf/MRLQ4Rdzk74U6taNz1E+k1MZ?= =?utf-8?q?+dGjm1cRg6+5idhUATvpg9wiuMVVrDQVFNIr1hpmrLCfkbAa+RnrvjFC4VRCVb4LP?= =?utf-8?q?qB5WcRw0P7R7HoE2XXaAnx3TpXDYY+IfgaT6B0dUArWS59I6WipjZ5OYBF9bc4fmH?= =?utf-8?q?S5OEuX3UiBIgfsP9I8gq2B2MxrN3+w2LI4y7I5vR17Yc25aYOK2GecXoVFKod5yRG?= =?utf-8?q?qtRfuC+ESdw+UZ41rvinyPpkINLc6Mh/VoS140LxATY7cF1OdfqpRo9QtFYbyrJcp?= =?utf-8?q?gtewujgGI4EUI0bR8zzCBb8q2TQIqMnjotg9HzNXF9k/2a39xwTMVKZln18dpPeAk?= =?utf-8?q?WkGnqtfB1qsPPU+avbOEaffnDqOFcS0JU0SVFrCbyOBIwfnkO17A0GV63Da4fdxyR?= =?utf-8?q?uE2uj74gDXarBGgXgh/ClImrVI/cxZkm6JiTJI84umdSFwdnT5dANlmsmalZuKG6w?= =?utf-8?q?YOyySriYJLCXUKMBZAIhlOsRVhzceKivUYlCRuTCU0M1tukty8XOHH1z345oGPXZ7?= =?utf-8?q?ZSXISIF3XxLOQB/4dzroZwdYWP+zLDN0DeJa6t1HxoDL1nCp2FllD1dSu7CqIEkzM?= =?utf-8?q?0e1qtZvvoPa8gh+w9llFGqHD2hXo99nLmBpLloEhif0OY+7+5AsL4V7a1D97G2y5c?= =?utf-8?q?gJnf/DHVOP9mWVHzMcYhnxKbpnqefIR75unEj5lKGOgPgMFB3U8nB/zxN3DBfNTcS?= =?utf-8?q?O7sGyig7LKxECE2zW2LDEqQbkS83Qov1iSlRywBglTWviGiRfvXhMNAl64tHZzjeV?= =?utf-8?q?3rRChweZh6taxX5yPzD8icEbkVoRfUEjswDFn7739ObME1IQn7PI63Lsn1jkzljeM?= =?utf-8?q?rqBU8YsAFLbsuWAzyp77sc2Z+AWYKcmCIAG7oct+M2B1utUPqc7uaIGe4TEftw8/U?= =?utf-8?q?tu9AhEN2vlGdMr1U/fjxyo62v3Q3ks0UcYKv+GSWPs0IR1Efq3MGn6Y0hu0NStx2E?= =?utf-8?q?nkEclFkrCmMyjgNe0Uhn1u7cQcfB6VjEMyo4cMX/CV6MgiTDuhITJajmVUlNkRemm?= =?utf-8?q?rQ/oFqXR4xX/HEIIA6perTMroPpSfjXteO62tcntr/5fXg+U/a94jTaSe+Qe4h87F?= =?utf-8?q?hpvlTCpEJI+Di2HKbA8ql90v04iOlMjTOtToee8PmzPhxQd1rdHfFwmn8kfmXWrTZ?= =?utf-8?q?Cy1nz5u6pz4hiD7f1nYPedz+iRAqeSJ2/0LKU1CGy72RgUAAWXflR/aDBN5lxH+Mq?= =?utf-8?q?Ok1+ZmkuxktW26UcHMbBh4mdnCiVnKxzu6D4C6NW4TjWVX2uSdl4KW+SAm4aJ2NEo?= =?utf-8?q?GalOGJGSFzYzZCJI3KyoLYdwYXwNgVzWI/KfoRgvFdw82NVj3BPR9q3WwO9c+cbsE?= =?utf-8?q?DI/4nYkX9B9FhG1X8e7XZVpoNT7Vz2ngvzM79AjcQOxwHYAlRrwVNKKOQaQrYiEDK?= =?utf-8?q?fX/DDQuB7nykBjYBSo8/xeS85GaRf/e4m8X/Y00pxb4iWO7U50jp8OtvfMtwRyduK?= =?utf-8?q?0CRQsu31FbZj?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5056ffe2-7b3c-4141-c04b-08dc3109ab4e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2024 05:14:37.9142 (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: 9zSapXQplB6TPtmAEkXKkD9hoULv3OAAtbD4+s0OWXAG5xCLjVa9cQ50LfLAQsF8QuK3qqFaJSsWC69JP8ti4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7228 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_211440_866840_C6EF8E34 X-CRM114-Status: GOOD ( 11.04 ) 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 Mon Feb 19 05:22:40 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: 13562172 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 2308FC48260 for ; Mon, 19 Feb 2024 05:15:14 +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=XW26UxXAmT5LXYMAbAmRhmJxmI RkKWRpFDCSA9nGr/quTP1GQolYO4GyoHF+bl3VhXM197hNhPKsQhe6IMYWaW6YYI3Vod4Brv45wMf 8/3aRYbdFBP2klJxDtTjgNikZuta9NL/zG6ftS8N3q3iuGJaX204IKlHJ7ibXbTCi47EedeomEzP2 1LUO9xMn8+V6tv2EE3zb9yIMQsh8UtSNdaTjIZnAg6g6fXN0X2REmaazrYI7aW+TOo8j3swlhnpoH nJVfZoJdbAcRFVxoE0POHNyAcn91uvzmF82UEVbXPlK+T6zTE2WZZKxnS9GoDPngS1GeT8u4WuKBb YV/a+ctA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzb-000000097Qo-1omZ; Mon, 19 Feb 2024 05:15:03 +0000 Received: from mail-he1eur01on0606.outbound.protection.outlook.com ([2a01:111:f400:fe1e::606] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzO-000000097H2-0ei9 for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 05:14:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AGRDC+2DC6Sl/WQSnHTouPEwTEGbLj2bHXRC0gT6bwV2fXNb137Q3Xgxbd/9O38eDHPnDaFgcWdsNm7AZINf56r+krnrcw+gP7yB3+r8PBTfom5ZcjGdK2jOqny0J+LR6yYJAuDDktZqrk6DrWHjdwpLbeV9BZooYxaNrHYD8GwDIa2ZbWXXRuZsulxh+GSJDq0udiJCdDb28Pfb1AZALvP4ohyo0o+KqGqGZOnyfeHr/pFVONIAL5S7GyT9tEs/gUW5hKKFsU6GzG9QB6lGUECn0aNTyFHFE+Urw/NtdGzK/7X5/FPUqgbDJYR+1a6wl7a2HQTkmLeMKJjD48PPCA== 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=XvxDjwPHf3Awqwt/J7lzZa0fE2L7d+QYMv4KX9sFfyigrh77XflEAxTxn4PrZLH5BD1ev3hP5G0abtiGnj1OaJ8Zzc+Ly+S7zbcBTx/MT+iSkQ9X1ayXVt1vQgPiZ0ec4SzP8ZqhvA+ti9wYgLtuvhDL2aaGpuXH7P3s156OayE49AHQMIq9ScT9v1TqjgytjIYLLcL4f+G5p184v1eY3ea9sD0VGkiFOI0HtLJVVsbIl8qRWWtHGPcgtPl4hTCN5qWk+Zi0HZdIJf0+U3bMNuxfw3HR8f7NHNfTkDuTXPGvregRDDh87/rfw3WdCLrXdjK90czv3tGzJtvpH0nuIg== 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=kcQBdaDBR3tVIzv0Z7GcvzVSlCcgGokbS9I+GzMW2QvA4KkAjuUP/moTYfTkrUGzYVFNvUgySYlYjOAD0VYHS1a5ia5b4C3Xj3v7VbBSDc7PXlz/UVSVLl8MI7ih+9DkIfIbs3SX4tamS29ZNbcGt+r5QMrQPko2qM22X287jgQ= 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 PR3PR04MB7228.eurprd04.prod.outlook.com (2603:10a6:102:8c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.34; Mon, 19 Feb 2024 05:14:42 +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; Mon, 19 Feb 2024 05:14:42 +0000 From: "Peng Fan (OSS)" Date: Mon, 19 Feb 2024 13:22:40 +0800 Subject: [PATCH v8 5/5] mailbox: imx: support i.MX95 Generic/ELE/V2X MU Message-Id: <20240219-imx-mailbox-v8-5-75535a87794e@nxp.com> References: <20240219-imx-mailbox-v8-0-75535a87794e@nxp.com> In-Reply-To: <20240219-imx-mailbox-v8-0-75535a87794e@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=1708320164; l=1293; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=SPNe0FKcSKFv7bAkLa3HwYU4wd0uFOj0fhQIX1FNVn0=; b=JkLHlv+RQDYB9b2S7rCIxheJtOGUm0n0JoFKrWONQ8555b7x+y49cShVFhfk9f3GJBPoQMHS/ u7PPBZ6M0g3AcsKRYF6ja4ELQ6Kg1DQ//A7WXwgIIe5NwklcGWH3riq X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) 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_|PR3PR04MB7228:EE_ X-MS-Office365-Filtering-Correlation-Id: c8b12285-309a-4f2a-f383-08dc3109add0 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: s6yDi4zvbvbERNRfJKFrSWULUwuTeeqFWHVIpFK3QYf5A2+dN7VRh5TVc5SR38XWNm4UvtFlC5b9TlHZTH0es5V8/tvGlkCKxeajc88b4mU8XOK6KIDRvEIBh6xLNHMfkZ/fakUk7o1UfgBMOREBZJmRR3Ih/HVk97k6y9KOdKVzRKsdoC7SXk/fgiUHF7pO/IwEU5dDZMhtDNJZbGuce0jDfRQenY5CEs/xvKwHBL9qBBGr/18uBFPtUSQNceiHXQCTEapq26pF8RabE+gyy00nhvhpO33InPl6S1y+E6VCrEymkVb020HcvzBPBbUvWZdmB93EEmcdrQbYq0FOph1x+OujHf9cbhEiFlZP11k/6ev3N1sRGCy5WiSGMMsnfTM/Ba0d2xJ0+Yq94mjE1ln+9wVod9VqYAOwGMPAmsmEhQUphvIOloca/BGSehl89p+ebb954/FdG6FiIBHcuwNMABc15yiTf12b/zQM3lr1gk7E0KxdJzaeUWAtxL+mXfWbjKq2RF0UWeTb+VWyMh7eNKN3sfyOcEXZQCJ0qlW2k0BU8q82Fo8+jHdgfdKyTOfiCXktV+zhc8gbZVDkdzPR0TIxj3BzbrkxlwjK1PiNiv7TNpZB18Fx/6qtvSYpC1WqwucAb4tP4dsrNJMV4w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(396003)(136003)(366004)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(41300700001)(8676002)(4326008)(2906002)(8936002)(66476007)(66946007)(7416002)(66556008)(38100700002)(5660300002)(15650500001)(86362001)(52116002)(6512007)(316002)(36756003)(6506007)(9686003)(6486002)(921011)(83380400001)(110136005)(478600001)(26005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Wn1c8HctFKP+sGBf9FijusFrWDno?= =?utf-8?q?3i0Bg0yx5q8kXs6emR5mRDzKc3qPasPN9dFvrcF4KJ1rEn0aREd0rLDoM9eGXr1uT?= =?utf-8?q?4oqoK8HE2ZOYKm+nycNt8hpHaoH9oVUGYBrdX8sch3UgpthdTjW6x1mpIy7f8rTxF?= =?utf-8?q?RcdwzhQMdiivlae92dU+lJJPqFhr5UT302r2Gk1QDhlAma8cgOUKjml1OFuFpKz/S?= =?utf-8?q?wOo7za+jXA0moJ9B6uRBYXfHAVc68+fMmaHg3NC6LUJAJQLsCuh4TiM8ccRynEfO+?= =?utf-8?q?Cqtjb9qrJ8X0Q9NhVlbmLUqcx2BE4wqB00BtYKzwFgpZ9+Yy1v95n4mFz5ntv31ZF?= =?utf-8?q?dLLRGk0rZIkQSqep+l+GGJXq2W3p58i2HH04soWqQIULQXAsxWrsxB+pRBWWoC6jl?= =?utf-8?q?7jPJVrWwg4dCb/A/0JFPo+QC9txwHpUH9qV2umhWgJUsSU8monT+feYUp+zg9wAFV?= =?utf-8?q?fckKnhOueK5vWSHqHZvtG/k3CCFmTGJq6qlsNxQ9oTb3JRoepErU1huSkCSUbE3mg?= =?utf-8?q?uXPRH3V0+i9w6UzfgyAQj0oRfmdVlVXL73qAG8zVTpmmPR0dw7Hprjfu4s6su26sn?= =?utf-8?q?QdcdKVzBADwqY2gLKunOsCDaLuazaZp5N5508hwDfBGc+Fs8nlYFR+vJfsqMIIIuB?= =?utf-8?q?PzxOgA9CLEYxe3wmM6Z/Z4zhpinahsie4L9Q61tiyguXuf5jF8Mel3pDKBATBXDtK?= =?utf-8?q?LAy03dLgmGBSS8LHv2bv6VkcWjNN6RQFhTEjKaOYwBB80aqs/s1YUOaESG8OzlRdG?= =?utf-8?q?uvX0VuQqYiNwcsycamZNsvMatrEbDT0QYWbCohkaDbrWx5H9zfDrtdToGHIMjOIVx?= =?utf-8?q?6lmbbf4AWAj8r2npEQ5gpYYyNrrlhwGOO2Ss+PsHSnz+4NI5FLgyb34uU2qdIL3PI?= =?utf-8?q?h36mtEjEiHmlztKSzgwEKg2g/oFDi2LHGJs/e1PgiqSPyzbpN3C1DgAI4xfMltlQ7?= =?utf-8?q?gVYzVuqieQRFa1ypgYoQHYlw5/tq+R5yoaNiWky/UKA+TtdhUEbtmjuNKTyCFLoEN?= =?utf-8?q?u3/LRNdrgg1Sqmo34xacO76FNNyFyfEv6BpQMU1zhF8vVNSJFgkDtmpIIall/IePR?= =?utf-8?q?5Uwbzno6LovUHYPzCvfZ1n4DBzeR6XkZi5cE3spkWLlZjGK2kAYQU4Vp2xZYYz3N0?= =?utf-8?q?4VugPUfZC6SP+ZOCGFDToPUeEBx23OwdDsWwZyxRqyILDLgvN8ZxNNdaEu+fC3kYi?= =?utf-8?q?Sqz9wk/ybjrCQ9v+hmtZiG1hCQkaYt09j/S+91sgRiwGKVrX8A3I3/66q7twgxXA6?= =?utf-8?q?igY0yeQD/3hlpuff4IvxFiuPRxCOG2l/ewwsmdeVhqx90Wvo/oXhR81tMyXMHD7+t?= =?utf-8?q?TaIJp/kpqx5A58OJ+6WWNDG342xbw/0yy7GJd4GKei31j5rE1sQ1HYTjXfLWnBsix?= =?utf-8?q?c8tg6m4pc5seWUXG/LHAaF7nxBBaa1YjpMGD3vPg8ObKft30hyFqQpwGCfZi2qyp4?= =?utf-8?q?OQWd6O3Aqw6pH/PjfyeKl6N6udlmwtPVGeTDliS3jBy5ZWnAWIg5MhrGMDLpO8nKE?= =?utf-8?q?RE5rDc1FBjdj?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8b12285-309a-4f2a-f383-08dc3109add0 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2024 05:14:42.1316 (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: 3HQxyyNMEhhjXWXor9hsHNojaeZhe20rohGTxrXhwnZrZSxh9XiMv9zBS8ht/W2zf8PSHhLLcPrhI+V1AzbozA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7228 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_211450_219238_8AE6554A X-CRM114-Status: GOOD ( 11.99 ) 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 }, { },