Hi,
I have figured the problem:
Default device tree configurations for FlexCAN enable the devices internal power supply only if a certain GPIO pin is asserted.
This pin is asserted when you connect the NXP peripheral baseboard MCIMX8-8X-BB (which we do not have).
MCIMX8-8X-BB Product Information|NXP
The issue is that the manual does not clearly point this out.
We assume that when booting the MEK board, the CAN device shall show up.
Of course, it is unusable without the CAN transceiver in the baseboard, but this is obvious.
The ambiguous issue is that the internal CAN device is enabled on an external GPIO signal.
Anyway, to get the CAN device to show up without the board, add the following to fsl-imx8qxp-mek.dts:
®_can_stby {
/delete-property/ vin-supply;
/delete-property/ gpio;
};
&flexcan1 {
status = "okay";
};
&flexcan2 {
status = "okay";
};
Running ifconfig -a shall show:
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:51
can1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:52
....
Best,
Beshr