summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJoakim Zhang <qiangqing.zhang@nxp.com>2018-10-09 16:39:49 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:34:27 +0800
commitb683ffdfb332a3d80c8292eb6418efd085be99ba (patch)
treedb850fab6b7d921d85484485dd7a14407fc61fa9 /Documentation
parent96e898101eb79350c66e67d6a3c26b68b657a8d9 (diff)
MLK-19692-1 can: flexcan: add CAN wakeup function for MX8
This patch is to add CAN wakeup function on MX8 platforms and update the binding file fsl-flexcan.txt. For MX8, the function "flexcan_irq()" should not call "flexcan_exit_stop_mode()" due to firmware(SCU) cannot make SC IPC calls from an interrupt context. If not exit stop mode in ISR, it will continuously enter wakeup ISR for the reason that system will respond IRQ before call CAN system resume. To fix the issue, we can exit stop mode during noirq resume stage. For wakeup case, it should not set pinctrl to sleep state by pinctrl_pm_select_sleep_state. Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com> Reviewed-by: Andy Duan <fugang.duan@nxp.com> Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/net/can/fsl-flexcan.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt b/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
index a99d922bd662..c5ed89cd9c8f 100644
--- a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
+++ b/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
@@ -24,6 +24,8 @@ Optional properties:
req_bit is the bit offset of CAN stop request.
ack_gpr is the gpr register offset of CAN stop acknowledge.
ack_bit is the bit offset of CAN stop acknowledge.
+ stop-mode = <&gpr req_gpr req_bit ack_gpr ack_bit>, this format is for i.MX6/7
+ series to set stop mode. For i.MX8 series, stop mode feature is supported by default.
- trx_en_gpio : enable gpio
- trx_stby_gpio : standby gpio
- trx_nerr_gpio : NERR gpio