Dynamically change MUX settings in CAN1 in i.MX6ULL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Dynamically change MUX settings in CAN1 in i.MX6ULL

1,135 次查看
keshavakumarb
Contributor I

Dear NXP support,

We have 3 CAN transceivers in our design.

CAN0 :
MUX config:
CAN1_TXD(UART3_CTS_B)
CAN1_RXD(UART3_RTS_B)

CAN1
MUX config 1:
CAN2_TXD(UART2_CTS_B)
CAN2_RXD(UART2_RTS_B)

MUX config 2:
CAN2_TXD(ENET1_RX_EN)
CAN2_RXD(ENET1_TX_DATA0)

We want to dynamically change between MUX config1 and MUX config2 in CAN1 without rebooting the device.

Please suggest a way to achieve this.

With Regards,
Keshava Kumar B

标签 (3)
0 项奖励
回复
3 回复数

997 次查看
keshavakumarb
Contributor I

Thank you for the quick response...!! I will go through the options u have suggested :smileyhappy:  igorpadykov‌ ... Meanwhile, I have a few clarifications regarding this...

  • Whether changing IO MUX on the fly will create any problems? or is it recommended to have these kind of IO MUX settings only in boot time..?
  • Is it possible to change IO MUX settings using device tree overlays??
  • If yes, when we change IO MUX settings using the above method, is it necessary to re-init CAN driver?? or changes are reflected automatically.??

With Regards,

Keshava Kumar B

0 项奖励
回复

997 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Keshava

I believe it is not necessary to to re-init CAN driver.

Other questions, as they are general linux and no i.mx specific

suggest to post on kernel mail list
Majordomo Lists at VGER.KERNEL.ORG 

Best regards
igor

0 项奖励
回复

997 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Keshava

probably one can try with device tree overlays
overlay-notes.txt\devicetree\Documentation - linux-imx - i.MX Linux kernel 
https://elinux.org/images/8/82/Antoniou--transactional_device_tree_and_overlays.pdf 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复