[PATCH 0/4] hw/arm/fsl-imx8mp: Add inital FlexCAN support

Bernhard Beschow posted 4 patches 3 weeks, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260701224612.48342-1-shentey@gmail.com
Maintainers: Gaurav Sharma <gaurav.sharma_7@nxp.com>, Bernhard Beschow <shentey@gmail.com>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>, Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Jean-Christophe Dubois <jcd@tribudubois.net>, Matyas Bobek <matyas.bobek@gmail.com>, Pavel Pisa <pisa@cmp.felk.cvut.cz>, Francisco Iglesias <francisco.iglesias@amd.com>, Vikram Garhwal <vikram.garhwal@bytedance.com>, Jason Wang <jasowang@redhat.com>
There is a newer version of this series
docs/system/arm/imx8m.rst   |  1 +
include/hw/arm/fsl-imx8mp.h |  8 +++++
include/hw/net/flexcan.h    |  4 ++-
hw/arm/fsl-imx6.c           |  2 +-
hw/arm/fsl-imx8mp.c         | 37 +++++++++++++++++++++
hw/arm/imx8mp-evk.c         | 64 ++++++++++++++++++++++++++++++-------
hw/misc/imx8mp_ccm.c        |  3 ++
hw/net/can/flexcan.c        | 61 +++++++++++++++++++++++++++--------
hw/arm/Kconfig              |  1 +
9 files changed, 154 insertions(+), 27 deletions(-)
[PATCH 0/4] hw/arm/fsl-imx8mp: Add inital FlexCAN support
Posted by Bernhard Beschow 3 weeks, 3 days ago
Now that FlexCAN emulation is on its way into master [1], let's add it to
imx8mp-evk as well. While the real i.MX8M Plus supports CAN FD which isn't
emulated yet, the non-FD mode works well under Linux: It is possible to use
`cangen` and `candump` either way on the host and on the guest, as described in
docs/system/devices/can.rst.

This series consists of four patches where the first three are preparations.
The last patch integrates FlexCAN into the i.MX8M Plus SoC and EVK board.

It would be nice if this series could make it into 11.1.

Based-on: cover.1782140438.git.matyas.bobek@gmail.com

[1]
https://lore.kernel.org/qemu-devel/20260629120032.1645265-35-peter.
maydell@linaro.org/

Bernhard Beschow (4):
  hw/net/can/flexcan: Subclass TYPE_CAN_FLEXCAN
  hw/arm/imx8mp-evk: Open code DEFINE_MACHINE_AARCH64
  hw/arm/imx8mp-evk: Introduce FslImx8mpEvkState
  hw/arm: Add basic FlexCAN3 support to TYPE_FSL_IMX8MP and imx8mp-evk

 docs/system/arm/imx8m.rst   |  1 +
 include/hw/arm/fsl-imx8mp.h |  8 +++++
 include/hw/net/flexcan.h    |  4 ++-
 hw/arm/fsl-imx6.c           |  2 +-
 hw/arm/fsl-imx8mp.c         | 37 +++++++++++++++++++++
 hw/arm/imx8mp-evk.c         | 64 ++++++++++++++++++++++++++++++-------
 hw/misc/imx8mp_ccm.c        |  3 ++
 hw/net/can/flexcan.c        | 61 +++++++++++++++++++++++++++--------
 hw/arm/Kconfig              |  1 +
 9 files changed, 154 insertions(+), 27 deletions(-)

-- 
2.54.0