Hi team,
When using the TDA4VM evaluation board, the CAN device number is changed. The customer is trying to fix the CAN device number using an alias. The DTS file is as follows:
/ {
chosen {
stdout-path = "serial2:115200n8";
bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
};
aliasis{
can0 = &mcu_mcan0;
can1 = &mcu_mcan1;
can2 = &main_mcan0;
can3 = &main_mcan2;
};
However, there is still a change in the device number. For example, MCU_mcan0 is used, but the actual device number is can3, not can0. The contents of can0~3 of aliasis under /sys are passed correctly as follows:
cat /sys/firmware/devicetree/base/aliasis/can0 /bus@100000/bus@28380000/can@40528000 cat /sys/firmware/devicetree/base/aliasis/can1 /bus@100000/bus@28380000/can@40568000 cat /sys/firmware/devicetree/base/aliasis/can2 /bus@100000/can@2701000 cat /sys/firmware/devicetree/base/aliasis/can3 /bus@100000/can@2721000
Could you help check this case? Thanks.
Best Regards,
Cherry