devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/3] arm64: dts: imx93: add the Flex-CAN stop mode by GPR
@ 2023-07-26  9:09 haibo.chen
  2023-07-26  9:09 ` [PATCH v2 2/3] can: flexcan: remove the auto stop mode for IMX93 haibo.chen
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: haibo.chen @ 2023-07-26  9:09 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, s.hauer, wg,
	mkl
  Cc: kernel, linux-imx, davem, edumazet, kuba, pabeni, haibo.chen,
	devicetree, linux-can, netdev

From: Haibo Chen <haibo.chen@nxp.com>

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.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx93.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 4ec9df78f205..d2040019e9c7 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -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 = <&anomix_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";
 			};
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-26 11:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26  9:09 [PATCH v2 1/3] arm64: dts: imx93: add the Flex-CAN stop mode by GPR haibo.chen
2023-07-26  9:09 ` [PATCH v2 2/3] can: flexcan: remove the auto stop mode for IMX93 haibo.chen
2023-07-26  9:09 ` [PATCH v2 3/3] can: flexcan: lack of stop mode dts properity should not block driver probe haibo.chen
2023-07-26 10:16   ` Marc Kleine-Budde
2023-07-26 11:10     ` Bough Chen
2023-07-26  9:57 ` [PATCH v2 1/3] arm64: dts: imx93: add the Flex-CAN stop mode by GPR Marc Kleine-Budde
2023-07-26 11:10   ` Bough Chen
2023-07-26 11:12     ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).