TCAN3413: Multiplexing CANH and CANL line with GPIO for logical switch for firmware mode selection

Part Number: TCAN3413
Other Parts Discussed in Thread: TMUX7236, TMUX6236

Tool/software:

Hello Team,

We are using TCAN3413 as a trans receiver  in our design with RK3576 SoC for supporting CAN FD and classical CAN 2.0B protocol communication. We have one external connector on which CAN bus is connected i.e. CANH and CANL line which will be connected to vehicle systems CAN interface. We also want multiplex that CAN lines to 2 GPIO of SoC for operating mode selection

i.e.

On device power up if we SoC will check for the GPIO status if GPIO1 will be low, device will boot up in Code programming and similar other use case for other GPIO2.

But the issue is when device will be connected to the CAN bus of the vehicle and if there is fault on the bus and on Power up when SoC tries to check GPIO it will damage SoC as the voltage level for the GPIO of SOC will be either 3.3V or 1.8V.

We need suggestion for the block marked in Brown. Please suggest what we can use for multiplexing this line with GPIO