From patchwork Wed Jul 26 11:24:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13327857 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 667FDCA66 for ; Wed, 26 Jul 2023 11:21:44 +0000 (UTC) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2080.outbound.protection.outlook.com [40.107.241.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D39110D4; Wed, 26 Jul 2023 04:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q6YVy6M1VItomtlEfxzaHu9r62t8Qy3pXJpaGeWdy+n323GK8cDfoyf6yZXBNWzOlOJWzH9Mx8HUEp3YFqq6Xo+FdQoNAYQOzdPwkoj4BjKfodpFabC6ddVkaRFlT+nl4vMUOEdSKyKYvKfDTW9xR/a6swsQoKHfAipSH8nBHhIp34x0hlty3KmagrtqmxykRB1/gAh/i2lS959lcm7YkSDKVDmg3mkO1zziWhGZsv8YqRxDW9FrvzAyXtan5JjyuFHrjNEnzXBNvt6Lb+WNIzqtJtnDq3gjEB4L7rXiUKYbXg1uOiTl6TgHtj4dhoF6A+i2AoDfBrK8NC5ed2jHNA== 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=9IOQxIa8FKC0yUlr0xsHuBIdtG+zywvS5eDQEPXrJo4=; b=g8E5en/jMQtCXwkUVmxTNqmYJwIC6xacGzKJe4LR3Ny492p6r/zdMak/z8x5LOHthrtw3oIgPXcCYwrS5YZPXxolXSZw3le35rp0gAXIgls+oH62iCqoJ4mMhEQjAqR3+owELgusGsDoJhKl5kDQeQKIESv9GVymgQ3cvdg0K04NVQNMUm+ciEkrYL6KFjlt5Z4+uFsREwcQyfu2YB7iZ7/keYYOehTWZSo/ugpg67fG+EqGxGSu1tOaYR1QLCFUPQ/O94KZMc1I/t/VnDV9UJ8yyFu5o/EZmlP2DbdRmpmNFbPGSts42m8sR/wKI8inBt3OcRJTJO1x3sCJZZjyWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9IOQxIa8FKC0yUlr0xsHuBIdtG+zywvS5eDQEPXrJo4=; b=Y5zQgd5oZVxgZ6cUkfOaPAfM83KJkdQKm1o3fSH2w59GHXIwBIQhteTEVuKw0LH6CIwbFU6gqgI91mm/qO1kkNDM4dkpZKH00iPK7YMy1ktHBXjHLlCrKH7AAlunI0wNLZKzXIHB7UnYXhAn4woOQdIHezTz/rPSrgkRLdVn2R0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) by DB8PR04MB6892.eurprd04.prod.outlook.com (2603:10a6:10:113::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Wed, 26 Jul 2023 11:21:31 +0000 Received: from DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::d73c:e747:3911:dcc]) by DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::d73c:e747:3911:dcc%5]) with mapi id 15.20.6631.026; Wed, 26 Jul 2023 11:21:31 +0000 From: haibo.chen@nxp.com To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, wg@grandegger.com, mkl@pengutronix.de Cc: kernel@pengutronix.de, linux-imx@nxp.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, haibo.chen@nxp.com, devicetree@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v3 1/2] arm64: dts: imx93: add the Flex-CAN stop mode by GPR Date: Wed, 26 Jul 2023 19:24:57 +0800 Message-Id: <20230726112458.3524165-1-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2P153CA0049.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::18) To DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4010:EE_|DB8PR04MB6892:EE_ X-MS-Office365-Filtering-Correlation-Id: db47d5ad-573b-4b15-5c9c-08db8dca767c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nyO6F1nn1XhuY1ex9HGqpiV3XtayohqgQpwhf3LwhpWOeuRwkFqm6ODv/twM70igBUxJDQLVeuJx+pBurtBzuQgFyW5p313Yh3Yz5iVeLfkNTu+t52z3TVnjHclcCc0sSTxjLzd/M0MFMaarc2HSa9fj91EzyyfUAgIBN4vZLH4UD+rQ0wciZauu43geeyYrEkZcXjfVsZv/h9J5SIxjLDTPMhggBtEVz5lrXFmbz4hL4ahtz+wMy04scOMUErC50qTyVBB6FZoQr2x9I5AMqSUi9QP8keHpXZg2a8q9ehtk1mfXzY3wg5ln8NA0sk0sCO/v5atqggk1hsSteA9QGvLUB6TJNer1xqirobn1qPX5mV4jdrti0uQezR0X37AhalF1eCpgFlw6JMpfN7oUP1pEf3z/u9hcRmEurer7f65zlTu8RJdsOuUp/IxZwSZOD2NpxnA6m24Pduu3mtDq+XfQDMThmM1rEzW1xa6uoWJE2iQw+MT5GbaZkPq17pE/J5ATNRVlEjeQ/KSy3TIy6BwamHkB1gAzNUEaGl+M0Nhb54HDYk4m0FDoiMYKhg0vXPq4mN18Qkg0qCgpAvwnZ6WLhxQ7t8rmViotCJgOuHKyxdukWsqyvGZKke79y1Lw X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4010.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(396003)(346002)(376002)(366004)(136003)(451199021)(2906002)(52116002)(6486002)(6666004)(2616005)(38350700002)(38100700002)(36756003)(186003)(7416002)(5660300002)(86362001)(83380400001)(41300700001)(8676002)(316002)(6506007)(26005)(8936002)(1076003)(66556008)(478600001)(6512007)(4326008)(66946007)(9686003)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8p0GrCTY8MEgm3vvSnFBXmHBz0dq?= =?utf-8?q?HzH5N28Ioz8VvCzvi1gbLijHAGk3kJqQWwSF7wbLAPTFa1P2pntSoq5hPWc0uRQx8?= =?utf-8?q?23QLTaUTzaxVK3etGHsoQwJB6IDqEH/KeFuOiuSWz9U9uhf6RW1ix6vTBOltBuLGE?= =?utf-8?q?pgRn8d07np4GAR/dULdFw93DdNJHF7LmO2ErVJAX8wvJl41toeXPViNEx2/04QmSH?= =?utf-8?q?JKIA5/ZiscvXLoUzVKpgeWck1deZ5oIpQYRH7vo82Q9ROZ1osMtHBdgSiEmJ7uux6?= =?utf-8?q?oFmLgZzwgdwQz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+Vpmqk6VVniROtmprly1AYRZrGzyqwevHnQ3Os6VPdrdx3g?= =?utf-8?q?nwEd+jae9GX6iKjSAW8RpRD/wEeTMjjbFXudit0xuTwi/lrdadFMKDc5Rt5F11YSb?= =?utf-8?q?ikvC6aoPRbQHBMQB6QmDunckKOB8mxvIP8EP/8zAfGZYyZOxhYuDOMfz+1Jaqf9Gm?= =?utf-8?q?enRO7/FiEAdDleyQWMe4fpTwOn7uVJ2e+HghGU8vNmnEefIooliZTeLO36zNdVv4/?= =?utf-8?q?ABReLZ82/3A1LCKPGUHlCt9gpgU+t1Uam0Eih2nyB4b9XdNwS4ddhYCMoQtCGb+Ov?= =?utf-8?q?wWBi9qfjG9siczn2R4N0QdFs0P9kBy64fioSAFb2b+s5LHcOR7tJSTji5jCx1pAbb?= =?utf-8?q?PwYqY/XgbwAX?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: db47d5ad-573b-4b15-5c9c-08db8dca767c X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4010.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2023 11:21:31.6428 (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: 7zp4guQRAJ6nTFdbEUhM7H6kTyNkM7Hp4wGse/erOq5sBB5yzs70C35pLtf4RyPeBqNLsoRNR5pL28x44G6m7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6892 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Haibo Chen imx93 A0 chip use the internal q-channel handshake signal in LPCG and CCM to automatically handle the Flex-CAN stop mode. But this method meet issue when do the system PM stress test. IC can't fix it easily. So in the new imx93 A1 chip, IC drop this method, and involve back the old way,use the GPR method to trigger the Flex-CAN stop mode signal. Now NXP claim to drop imx93 A0, and only support imx93 A1. So here add the stop mode through GPR. This patch also fix a typo for aonmix_ns_gpr. Signed-off-by: Haibo Chen --- arch/arm64/boot/dts/freescale/imx93.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 4ec9df78f205..e0282c4ba11d 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -185,7 +185,7 @@ aips1: bus@44000000 { #size-cells = <1>; ranges; - anomix_ns_gpr: syscon@44210000 { + aonmix_ns_gpr: syscon@44210000 { compatible = "fsl,imx93-aonmix-ns-syscfg", "syscon"; reg = <0x44210000 0x1000>; }; @@ -319,6 +319,7 @@ flexcan1: can@443a0000 { assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; assigned-clock-rates = <40000000>; fsl,clk-source = /bits/ 8 <0>; + fsl,stop-mode = <&aonmix_ns_gpr 0x14 0>; status = "disabled"; }; @@ -591,6 +592,7 @@ flexcan2: can@425b0000 { assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; assigned-clock-rates = <40000000>; fsl,clk-source = /bits/ 8 <0>; + fsl,stop-mode = <&wakeupmix_gpr 0x0c 2>; status = "disabled"; };