Dynamically change MUX settings in CAN1 in i.MX6ULL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamically change MUX settings in CAN1 in i.MX6ULL

1,012 Views
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

Labels (3)
0 Kudos
3 Replies

874 Views
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 Kudos

874 Views
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 Kudos

874 Views
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 Kudos