From patchwork Thu Aug 1 00:00:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13749334 X-Patchwork-Delegate: kuba@kernel.org Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010012.outbound.protection.outlook.com [52.101.69.12]) (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 2CD7A131182; Thu, 1 Aug 2024 00:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.12 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722470445; cv=fail; b=V6AV1ZJiNzzk4DFF7Sqhu32htk0ETnIT6LqZUB1zPvr0hmmgq6paUkUEvAW/VJR966qt8bhpFVg5WHwccR3nCGjSAfhPQC9ix7PcDxIPUtt6qE5GBqEdtbd8HJXODLBrg1in3scISXc2JZdJZ7rHHhAeniz1xJVsl5QnUywaxlc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722470445; c=relaxed/simple; bh=+DIGgBkBWyrtYQfrFvCkUgA9e8HOpEMFLYOPNyi1qdI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Cft5qrc+asuiBCgN2Hy2vMInr3RRwOOLCiSxhZFfQSKxi/Lzs675CzwExKO4CRJvIalQcKYTnEUpZvZIf5cRtt4MtIFSl+ljQAoXiSTK+Odc2qLEZd3tRXI8Sh+9belIZ57fGMPhS8uRF0h4OFtwYWdsfUFitg0M+DngLw/UBpk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=BuPpN6h8; arc=fail smtp.client-ip=52.101.69.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="BuPpN6h8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RUPf4ft3gVF2fukSy1l1MpppnAMd44ZuYY2lewxRY2DYWCTESz0ZJKDBQqypm17mE0rEBxLqcvojwrEYBO2h+A3QpVqGckQejpzklHm9Ri0YU01D/IcLB4KIE5GOMf1KIdEdtrnxlKoUKHwB5FW0LHwsbtrAZv1XEfw204pcvGODn4f30HHzVkzlAhrkoRMXlYrS5StJfZSQaJK/4953YApFDn0edMY5OmmkjtwzWPDTMjbKm1BoHP1csYGEoPvVAV0MovGUxRIe8Up0FMhffkGJyeFS/Wt8tg4OINK8VOHVnSm0TKnwYTxcb0P99nHfjbOgLvRdeiTwMjdmWpt6EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=GOd6FLZLIcIbPo0Sq0J+NOU0MeVyh5JVCAAuAq9yNW8=; b=yAW90NdIMcuI39k1dgovf6CLqz+/OpV3uERFv7wbT/VLHde0rY0ceUibtiF1A9mLbjUQ6lx1MEFVhIr+dh4LEDBW6anN+f+gQzpBGTaAzzagrXpgRQcPsy1JT0XzSJPRjt1hrG38YzOH5qNTHK397C8GlkI/2JPd9c1pbuFrvEgDNp7xKdJQKEq7PQFB2LWBN++HMk/x+1lI0t7pd1IAW8ZsHC3YWkexROWaWOK58e/aKG/VD8J51b9nczS8voJ4hNc5mDMbZ4J9KpWI/HrrX75UwAW03vS8A73YTyk1y09F6YEAtJygVoHGx8fzSEBwLqv/k62LiInEiloTm9X5pA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GOd6FLZLIcIbPo0Sq0J+NOU0MeVyh5JVCAAuAq9yNW8=; b=BuPpN6h8umnJqOqfi2q8t7IO8EbiPUTLuroDHMIPsN/MX4tLWq2lMn8VLHa91fvOR7+kBzY1H0IAkmpFRE7ZvUV6UVQuXAzMWtnU6x/gwt7V0g1M2qygznAbOyQgzPDXWErmhVspcBGWq4zbGu/L2b0fWsj/nBVqfIxIKZFNigNxmrKWch4FZh75jhsFuBafrB5CIPwHDoSBWbUkwOl0MNBiMJJi38+yHf0q9XhUnmK2E6Wnnwu69zF2a+ChRaIjmacDUu7zEUShkgFArv3jVgECOcuMl3TEv1u6KdmI3E9i5UwiaSKsxIYysjzoc2Ej2qDdDW5ypzBwAJluLZULDw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by GVXPR04MB10406.eurprd04.prod.outlook.com (2603:10a6:150:1e3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Thu, 1 Aug 2024 00:00:41 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.7807.026; Thu, 1 Aug 2024 00:00:41 +0000 From: Frank Li Date: Wed, 31 Jul 2024 20:00:25 -0400 Subject: [PATCH v4 1/2] dt-bindings: can: fsl,flexcan: move fsl,imx95-flexcan standalone Message-Id: <20240731-flexcan-v4-1-82ece66e5a76@nxp.com> References: <20240731-flexcan-v4-0-82ece66e5a76@nxp.com> In-Reply-To: <20240731-flexcan-v4-0-82ece66e5a76@nxp.com> To: Marc Kleine-Budde , Vincent Mailhol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, haibo.chen@nxp.com, imx@lists.linux.dev, han.xu@nxp.com, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1722470433; l=1301; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=27/RZ5zCVbTg9TNZoQv/itKKz/Wfggk4JwdgIMWCZlY=; b=AFJNs7QbZtuXOjgRtyV2TpwxBYqiQGHkci4mUV6Z+Xm4fjzchhyOfmaUONIy1UrPmysFyYI1L CHr3RJQuYE+BLwoXmy3rlODSZCbx3qk+Jk2iASNQxhSQcm0SmbI1L2C X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR06CA0040.namprd06.prod.outlook.com (2603:10b6:a03:14b::17) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|GVXPR04MB10406:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c10c5bd-4235-4606-e45f-08dcb1bcfbce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hODffCBIpmMiu/U+VOTzltEFEQPYbmQ?= =?utf-8?q?ERP33j8uuunSyE1hDURtGCfld4avCrEX0THbtzPKxdez2HyZjU+AMXrK3Px5gXosK?= =?utf-8?q?r3PaIWWEdy+BGgUNsaP0VyL31NQw8WijTtS3I0baB5oIrkBqu7+Rfs+TEyWVATlvD?= =?utf-8?q?j2AUYD1AH0fA4mCouI7jfK8Z1Y+zxBG7RJWCRc9bnLZaqrq/OsfDTcXR1/5B3gaue?= =?utf-8?q?Y/Pa6fFA6NrvWEI8k6b4CvuOdYzLj6LxsKOA7OrDYvSEYf8WwvgxGrv07Bkdf5fzs?= =?utf-8?q?XF0+7I/AEFFMEb03rU3d0qGCqiLf2KD5JZpaU/KMqhCCe1wEuqHQ9MCWC5MyPLXCT?= =?utf-8?q?ZHzF2knNbffTyCcYbopdlYFiDY4yoNrAEBL74Fn8xIVLqGRLbxZLxQfSdDABMAujD?= =?utf-8?q?e3A3qFMlIBETybN2Cb8YgwXUTAGwLVHapxjPAHe+9vIYrJJoGYcZCGN7Octv4DwmO?= =?utf-8?q?s5qvG7OKAyd/3FqT8w0B5n1syrCST1D1wC8hGk2mrFh5UJANOpQsUoqposVCRntEH?= =?utf-8?q?G9/ZWPOnaSOA1gAOjuhxXznuddcOtHvL/lDGeA0NEEjE3b+NnsH2HzLnoyeyZva/9?= =?utf-8?q?rCbJYmKRjOKLjvF7x3Q42M7ov131JV6+lPdkvPT1uYTjrapjlxkFy40830bWgg5Ux?= =?utf-8?q?j+Z6eNiacjy9ebQs4ZCMekO8yWvgZluAMsCshpUOMz9ydXLw5MngsfH3L0qK35P7G?= =?utf-8?q?uDluEyekEhszCLWFAqYiAFSDnFIoVbBu4i4m92sLuCnz855z8Uf2RRXa9jlQfdHe/?= =?utf-8?q?o4IF/al0p6d5BKXvPZbO5G3HT7J2cD24N85B5Xba/ClIrUJ3ve7fvsddyeTI31zpE?= =?utf-8?q?wSrg+8/33MEHGGOQKAuVXrHdl9XRCLT/eSHfwNRKTuDCyV75KL07oDmOG2T3SyQCh?= =?utf-8?q?oCUcwO9K7n0HGyBudLEk3c9TaKszJ9qgKRl7haViq2bEZUvVg+OOR8hik1i/tnpvR?= =?utf-8?q?bygV2xgdIN/1lVS5JBrrk9k5H63cA8JE/1wkTxby2DstsaYuosuhUciXdJQnVrBNX?= =?utf-8?q?YXUZd6duznDhSLdj137p+8TRoxL4l7rKEhjaKyJ6yyIMrTIz4eMbefrV5hn0JUmxS?= =?utf-8?q?WQRMVaUyPYfxo9MHL/cnkCUy/lJw94gc26OVqOY6Ul3eFw7AaX1DDkj9Ws5zDctL2?= =?utf-8?q?eOUVJf7WK6OeQliw4wFsnI6rymS9yLIldf/oLfijedQayKxVEAzo3a0xkrgiyPkEv?= =?utf-8?q?DhDJNwEgOCuVJ6ff7cKvRfMK0bXg5rfEC4s1Nq+wzNlk/Aoag4bBXBhMzFKDBGFLw?= =?utf-8?q?vwerAnyYDIUDhn+eB+wP5sTbHyK1iRUyhuSIRYmLmSiIALaLqUMouydAjH/+VgB//?= =?utf-8?q?PBwmRTe2OTTCblMVNMXZJME0vPEaqsUG+Q=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(366016)(376014)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?UQCY1u+jIGhexmGsqSCo3Rw1Msh2?= =?utf-8?q?BCwLSwygmg7M5l+1/VocthdzjcjbG0ACMu4iqUtOrK5Aa+DokXMy5+S8zv/qUkB6Y?= =?utf-8?q?WvSbq10BRFdZDyIdMXlL8h8Wm715pDi+1HS0v5Ev17EuZicXdZ6Mxk0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uy2tn3ADnm?= =?utf-8?q?GOrIEMb2j0XhTGsghNEe/9i492KdPZJdH/1lyAJzIvIqhs21spdftEWeqlBROnyyu?= =?utf-8?q?LX7cLlF0Ga0OB0LiUKkJsMO78ccEaEM5CXIsJ418NmfOOFYVHZfwPcumfBlI9JBdT?= =?utf-8?q?9NFUaTiJJHDHH1GW4RCCkYEMOQRWglbFWyTkUGOaxVtUujr45eOv9NN9YD+mgmvQz?= =?utf-8?q?O1PW5gFmFHAV4RDxDEs7DZa5X2DEO2Qgn0FKvDwVrhkV0sE623GOq64OR2McxtZEn?= =?utf-8?q?g8ZtWxkA3NCI5NWlbrceqC1xbZsSLGF8YSP2/SjuaK0mKU8uAWfnlZ/HwqCZTeOjW?= =?utf-8?q?isptz6ltfzxE38XbCD3jCN21QofJqGKIx4o0GmOpeG/ri4wZmgmi3xD0+eBg5Hrtd?= =?utf-8?q?Ql4kCNeFmlzwXKHovpAd4iMad9tPOoEcP9BORghK61dYGCtJkXSEEbRCeUuMxQyDY?= =?utf-8?q?A9clHymsSjETTvulWdkscjjCEvGhz3MKgmz8m82ph+WoTYaAOIsrX1W9qxx/USlAl?= =?utf-8?q?Ab4Jr+Rkcyin?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c10c5bd-4235-4606-e45f-08dcb1bcfbce X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 00:00:41.7078 (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: 32lBsQizggUUTTaWjhqMywWhW3E98YgBw6H/rFFAvSNXl6TtUiGQXM4sU10bR/zCyRSzJgsw/i/S5mQUdIzg4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10406 X-Patchwork-Delegate: kuba@kernel.org From: Haibo Chen The flexcan in iMX95 is not compatible with imx93 because wakeup method is difference. Make fsl,imx95-flexcan not fallback to fsl,imx93-flexcan. Reviewed-by: Han Xu Signed-off-by: Haibo Chen Reviewed-by: Rob Herring (Arm) Signed-off-by: Frank Li --- Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml index b6c92684c5e29..c08bd78e3367e 100644 --- a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml +++ b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml @@ -17,6 +17,7 @@ properties: compatible: oneOf: - enum: + - fsl,imx95-flexcan - fsl,imx93-flexcan - fsl,imx8qm-flexcan - fsl,imx8mp-flexcan @@ -39,9 +40,6 @@ properties: - fsl,imx6ul-flexcan - fsl,imx6sx-flexcan - const: fsl,imx6q-flexcan - - items: - - const: fsl,imx95-flexcan - - const: fsl,imx93-flexcan - items: - enum: - fsl,ls1028ar1-flexcan From patchwork Thu Aug 1 00:00:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13749335 X-Patchwork-Delegate: kuba@kernel.org Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011026.outbound.protection.outlook.com [52.101.65.26]) (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 A089A1494D1; Thu, 1 Aug 2024 00:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.26 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722470451; cv=fail; b=Vj21oCg635cbIaQFIXTV/Eoo01HVmR8J8c0/86yTmec9DQSTPWcx2HoKN91TkPFGUMDf0rMusrYrMBxFJDTGQY+lh3VAwYm6uFji0rdMtdh2LnZCqVlth/SEvaxOFB66w+5G1OV27G4N2YuA7ZJhrE20O2cAyUiW6zNBgPoMhKY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722470451; c=relaxed/simple; bh=IVSQUSfBDeaesbJm52M4rmlYN3OmCbE5ouiCrdgSVOk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=oKoQk50tQkloaaMfpwCHu8Dh14eIh3E8ErgJjh7n9b91l8faHKUBkV4VmadD2hu/e1/uU9hFQ8jtgu2JPKuFMEeqjIA/Q3j0ILQdWPcLAxH28c8gDmxRQaQS1C3HeFGBjJqoPSDn9575r3IPLxHh/gilKeWszSCb5lQJxyhPskI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=hkVenUqD; arc=fail smtp.client-ip=52.101.65.26 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="hkVenUqD" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Q1ulSn3yUytN0Sq2w78oPUYfDV7CRte8Ka6bxQClSHOnmYyz159t+aQpu8o3V9GwGsJ/5Md5u2gVRyqaBmIJvgydGhuiAGhAhZd1TZ8wJ6QTRog4zNpDc5rhs9mrL1nL2tf7JTImQ7ZHt+PbdTQOY8s5HOrHlkx4/0giMba7WlDedSCfSiMB2jBx8EKINufcytipKs/6XkB+NHir0Tm45lWkx6SAZztd58FSIPhwOJ4vmfZ4Q2jyuYNdIH23tNeBgJeqltjtznXQma1U8nR1gIpGs3LpEZhuKW3/W+/ZRG6WRavNDw7ucTMRmr5vK5DdqQ3lgo66LlDf4JUldVKNRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=St4NJuio65wQSfmzYa86IyNljHrNbq7WpnUr3BaOoQo=; b=Jsj+yoeOaDE3K8LwvxZdSYV2SlZACdOW9Un+x7KNDs/x7Vz8eFP4piSA4wbURuBxIlJoqsZriP3aHzQnhfteJ3nMIJdYTH3oXC2TKJNd+lSGg+IwNwQOvv2Zo0A1YClhF9XwYDupN69+tTi9HSASA9uvMsPxbhaLjW6EKh5OF7mXXiLU8Azkvb6DR4Z0ij40TbQlARc1a7NNIem3hib6IKk8LDjTBXbFgSIqSNlwnuyzRS/Myae7QYcG1j2S0UJoc8sgCLxxWcAEOT0YIUnBltrNyki/NjPZ9v7RjxpjoeoxdyviPIEnyXW9LSPUVyYYyZUws4/GXq5tzqjdrCWaZA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=St4NJuio65wQSfmzYa86IyNljHrNbq7WpnUr3BaOoQo=; b=hkVenUqDhqYfDD96vdZ+iWrNe5PDtEvkhtvfpiQ8+XdV5QKW02m0iD9XP5y3mgoVTlOX+J49E17r83643ttIdp3qWbB6X62uA1h31/PAzZPmNvONH1nmy6YPCWdLoXuo/H70jbhKLkHEqjT4pe3r+0lwvh73oaDvSkxoaO2xXsnaQPCW9Xswn60zLXuUF3YtMobyWLn37eCJ0qnH2L0zydwqLflnNfoFyry0XMBTO/jFgLWMoNPgI6JUy8Qi8SiCC1qkq8BrFh+hPlxhrxQ0QwI7JLc/ynPEpYbjGL66tAraYdQsXStRRKzsP4zV+2VUiRkxxtA4CBGmtazC3IeZoQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by GVXPR04MB10406.eurprd04.prod.outlook.com (2603:10a6:150:1e3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Thu, 1 Aug 2024 00:00:46 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.7807.026; Thu, 1 Aug 2024 00:00:46 +0000 From: Frank Li Date: Wed, 31 Jul 2024 20:00:26 -0400 Subject: [PATCH v4 2/2] can: flexcan: add wakeup support for imx95 Message-Id: <20240731-flexcan-v4-2-82ece66e5a76@nxp.com> References: <20240731-flexcan-v4-0-82ece66e5a76@nxp.com> In-Reply-To: <20240731-flexcan-v4-0-82ece66e5a76@nxp.com> To: Marc Kleine-Budde , Vincent Mailhol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, haibo.chen@nxp.com, imx@lists.linux.dev, han.xu@nxp.com, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1722470433; l=6676; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=DZF8lRBk1z5gCbtmnlwiLvTEP638d+rt+ccnMOssc7U=; b=WgyEiLBek2oI95DkWOwlYosG1t33YnBjHQYtg1HnULg/kBaYbREDwlk5VEpY31g7qReUTSFkh xXfajy4zZaTBzVBArwtjx0YFQZIiS840kKL2nG1I2sFJqpYSUR4Jpvt X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR06CA0040.namprd06.prod.outlook.com (2603:10b6:a03:14b::17) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|GVXPR04MB10406:EE_ X-MS-Office365-Filtering-Correlation-Id: d792edf2-3a7e-4ae3-c973-08dcb1bcfe5a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?cgUantOS6rUqMpRMwpBiexHvDC2zxZT?= =?utf-8?q?Rfyr+aX54igtz/s0i4YgV38fxu032L6BIsflFcE5kJqGTUJI0+/NWwi9nWLYZQA5x?= =?utf-8?q?MSBhVfoQw03vaCAm+UmkcE24kA44OKJNQIf9hgLXREHWJaXSQ5izeNjGg/XVpjOWm?= =?utf-8?q?lf5vLyujaBCj3PoFblb3I/4pvaLfVVQc2/xjKJw2j81llNvuAz/oiEmf6r5Mw7jMJ?= =?utf-8?q?3DSJ1xbZPNiaHe4NnTya0WecyfbvpkvBOPxtnnJIBp9vaG7fiXQsJtIVgpTka2R9q?= =?utf-8?q?cxjIx+Lyhoo14xjHGeMMqJhwZ9oJPPD7JS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heUFzcmnasxxrZGdUw3WWbBwOxvCD7O?= =?utf-8?q?YPAHsM4fZQ5TAtwYOaI/4dAsdA3KdFkgwDZzesx37jmQYVKhg7AKe6Ht5NYrgaOzV?= =?utf-8?q?JEd8/st1rOAln2lHG4T/eAmACobJ2RqeVki+AX5+eXWWrtelb7l4ZufuUPI6UBTCc?= =?utf-8?q?Ckxc5TsShAL4JT7ItVQWIPqp1UWHyMG6Ug=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(366016)(376014)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4+2cMuQXCY97fcJpiEOozBOQYVcG?= =?utf-8?q?K7+oHHjusXerM+8J7kvAtvEtkZ8NqpBX74Cbhl8hFEy+6Xj6qp5u045po87qpqixO?= =?utf-8?q?SVg+IFVWaqE5VQamUXnWKxzMEFR6dzwFS6vHEHvjwGESqQOqxgxEERjfKkjodNShr?= =?utf-8?q?cyFpRzvdnSbuD21pjc7Jh8ri0uwfm9eG4zOCJjdML06UCdebA5N3JYLmNdESsjZ6P?= =?utf-8?q?+X6q6gR/SvbIWSgKordSWZTmYTx9jHrINOKYo3EPpqOvAmOT0gdu+wjnhLR7Rfxqa?= =?utf-8?q?XUZ4tDpQeBDGlefp/a0OgI+IHRsL73DGobMLIWYjWxh99h2g8+ZW/BWcNf89595LT?= =?utf-8?q?IPwH6ybvda6SeIBLcDh1Y0JBiQpgIiY1K2R0sXQ/brjNFknxraZotzML09GjnA6VI?= =?utf-8?q?E77arbbEWiYd+IhNdgksnzr/dPWYQ+2x/i95zeuQltK4G+JJjSgS1k5MXIPDpD/Nx?= =?utf-8?q?OnbsdMD7h8JGlEgcWOnib+X/Uze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KkRcjjKHc1LwaAcnasTEpkan8vblq?= =?utf-8?q?+c9w7K6CV1u8+tmYdZWUqODf6CZGVuUB37r8WpTGPQJt0RI//1+S/T3Qz7NWNokNX?= =?utf-8?q?AbgjknMgldBHLqg26LmkVegvieBv29Qp9XuUvlGbJoiuoWw8kApngoAGd9oLUxkPq?= =?utf-8?q?eHCq4LklVC6C?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d792edf2-3a7e-4ae3-c973-08dcb1bcfe5a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 00:00:46.0043 (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: 2YZFRrqE7WJ0Xs5IHKvRyw6JAfZwjmcFuf1g0i2Mlp3Ll8FbqlaXHovOyCthWk5/V+ejFEdcpf7fIb/uQ0OgbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10406 X-Patchwork-Delegate: kuba@kernel.org From: Haibo Chen iMX95 defines a bit in GPR that sets/unsets the IPG_STOP signal to the FlexCAN module, controlling its entry into STOP mode. Wakeup should work even if FlexCAN is in STOP mode. Due to iMX95 architecture design, the A-Core cannot access GPR; only the system manager (SM) can configure GPR. To support the wakeup feature, follow these steps: - For suspend: 1) During Linux suspend, when CAN suspends, do nothing for GPR and keep CAN-related clocks on. 2) In ATF, check whether CAN needs to support wakeup; if yes, send a request to SM through the SCMI protocol. 3) In SM, configure the GPR and unset IPG_STOP. 4) A-Core suspends. - For wakeup and resume: 1) A-Core wakeup event arrives. 2) In SM, deassert IPG_STOP. 3) Linux resumes. Add a new fsl_imx95_devtype_data and FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI to reflect this. Reviewed-by: Han Xu Signed-off-by: Haibo Chen Reviewed-by: Vincent Mailhol Signed-off-by: Frank Li --- Change from v1 to v2 - fsl_imx95_devtype_data keep order by value - Add empty line after fsl_imx95_devtype_data - suspend/resume code look symmetrical --- drivers/net/can/flexcan/flexcan-core.c | 50 +++++++++++++++++++++++++++++----- drivers/net/can/flexcan/flexcan.h | 2 ++ 2 files changed, 45 insertions(+), 7 deletions(-) diff --git a/drivers/net/can/flexcan/flexcan-core.c b/drivers/net/can/flexcan/flexcan-core.c index f6e609c388d55..3c98231e25898 100644 --- a/drivers/net/can/flexcan/flexcan-core.c +++ b/drivers/net/can/flexcan/flexcan-core.c @@ -354,6 +354,14 @@ static struct flexcan_devtype_data fsl_imx93_devtype_data = { FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR, }; +static const struct flexcan_devtype_data fsl_imx95_devtype_data = { + .quirks = FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_ENABLE_EACEN_RRS | + FLEXCAN_QUIRK_DISABLE_MECR | FLEXCAN_QUIRK_USE_RX_MAILBOX | + FLEXCAN_QUIRK_BROKEN_PERR_STATE | FLEXCAN_QUIRK_SUPPORT_FD | + FLEXCAN_QUIRK_SUPPORT_ECC | FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX | + FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR | FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI, +}; + static const struct flexcan_devtype_data fsl_vf610_devtype_data = { .quirks = FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_ENABLE_EACEN_RRS | FLEXCAN_QUIRK_DISABLE_MECR | FLEXCAN_QUIRK_USE_RX_MAILBOX | @@ -548,6 +556,13 @@ static inline int flexcan_enter_stop_mode(struct flexcan_priv *priv) } else if (priv->devtype_data.quirks & FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR) { regmap_update_bits(priv->stm.gpr, priv->stm.req_gpr, 1 << priv->stm.req_bit, 1 << priv->stm.req_bit); + } else if (priv->devtype_data.quirks & FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI) { + /* For the SCMI mode, driver do nothing, ATF will send request to + * SM(system manager, M33 core) through SCMI protocol after linux + * suspend. Once SM get this request, it will send IPG_STOP signal + * to Flex_CAN, let CAN in STOP mode. + */ + return 0; } return flexcan_low_power_enter_ack(priv); @@ -559,7 +574,11 @@ static inline int flexcan_exit_stop_mode(struct flexcan_priv *priv) u32 reg_mcr; int ret; - /* remove stop request */ + /* Remove stop request, for FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI, + * do nothing here, because ATF already send request to SM before + * linux resume. Once SM get this request, it will deassert the + * IPG_STOP signal to Flex_CAN. + */ if (priv->devtype_data.quirks & FLEXCAN_QUIRK_SETUP_STOP_MODE_SCFW) { ret = flexcan_stop_mode_enable_scfw(priv, false); if (ret < 0) @@ -1987,6 +2006,9 @@ static int flexcan_setup_stop_mode(struct platform_device *pdev) ret = flexcan_setup_stop_mode_scfw(pdev); else if (priv->devtype_data.quirks & FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR) ret = flexcan_setup_stop_mode_gpr(pdev); + else if (priv->devtype_data.quirks & FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI) + /* ATF will handle all STOP_IPG related work */ + ret = 0; else /* return 0 directly if doesn't support stop mode feature */ return 0; @@ -2013,6 +2035,7 @@ static const struct of_device_id flexcan_of_match[] = { { .compatible = "fsl,imx8qm-flexcan", .data = &fsl_imx8qm_devtype_data, }, { .compatible = "fsl,imx8mp-flexcan", .data = &fsl_imx8mp_devtype_data, }, { .compatible = "fsl,imx93-flexcan", .data = &fsl_imx93_devtype_data, }, + { .compatible = "fsl,imx95-flexcan", .data = &fsl_imx95_devtype_data, }, { .compatible = "fsl,imx6q-flexcan", .data = &fsl_imx6q_devtype_data, }, { .compatible = "fsl,imx28-flexcan", .data = &fsl_imx28_devtype_data, }, { .compatible = "fsl,imx53-flexcan", .data = &fsl_imx25_devtype_data, }, @@ -2314,9 +2337,19 @@ static int __maybe_unused flexcan_noirq_suspend(struct device *device) if (device_may_wakeup(device)) flexcan_enable_wakeup_irq(priv, true); - err = pm_runtime_force_suspend(device); - if (err) - return err; + /* For FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI, it need ATF to send + * to SM through SCMI protocol, SM will assert the IPG_STOP + * signal. But all this works need the CAN clocks keep on. + * After the CAN module get the IPG_STOP mode, and switch to + * STOP mode, whether still keep the CAN clocks on or gate them + * off depend on the Hardware design. + */ + if (!(device_may_wakeup(device) && + priv->devtype_data.quirks & FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI)) { + err = pm_runtime_force_suspend(device); + if (err) + return err; + } } return 0; @@ -2330,9 +2363,12 @@ static int __maybe_unused flexcan_noirq_resume(struct device *device) if (netif_running(dev)) { int err; - err = pm_runtime_force_resume(device); - if (err) - return err; + if (!(device_may_wakeup(device) && + priv->devtype_data.quirks & FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI)) { + err = pm_runtime_force_resume(device); + if (err) + return err; + } if (device_may_wakeup(device)) flexcan_enable_wakeup_irq(priv, false); diff --git a/drivers/net/can/flexcan/flexcan.h b/drivers/net/can/flexcan/flexcan.h index 025c3417031f4..4933d8c7439e6 100644 --- a/drivers/net/can/flexcan/flexcan.h +++ b/drivers/net/can/flexcan/flexcan.h @@ -68,6 +68,8 @@ #define FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR BIT(15) /* Device supports RX via FIFO */ #define FLEXCAN_QUIRK_SUPPORT_RX_FIFO BIT(16) +/* Setup stop mode with ATF SCMI protocol to support wakeup */ +#define FLEXCAN_QUIRK_SETUP_STOP_MODE_SCMI BIT(17) struct flexcan_devtype_data { u32 quirks; /* quirks needed for different IP cores */