From: "Matyáš Bobek" <matyas.bobek@gmail.com>
To: qemu-devel@nongnu.org, Matyas Bobek <bobekmat@fel.cvut.cz>,
Pavel Pisa <pisa@fel.cvut.cz>,
Bernhard Beschow <shentey@gmail.com>
Cc: "Marc Kleine-Budde" <mkl@pengutronix.de>,
"Oliver Hartkopp" <socketcan@hartkopp.net>,
"Nikita Ostrenkov" <n.ostrenkov@gmail.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Matyáš Bobek" <matyas.bobek@gmail.com>
Subject: [PATCH v1 6/6] docs/arm/sabrelite: Mention FlexCAN support
Date: Mon, 15 Dec 2025 21:03:15 +0100 [thread overview]
Message-ID: <b13be1ee5d264b051eacf260ea767f6b6424e55b.1765826753.git.matyas.bobek@gmail.com> (raw)
In-Reply-To: <cover.1765826753.git.matyas.bobek@gmail.com>
Also added example command line usage of the Sabrelite board
with FlexCAN controllers.
Signed-off-by: Matyáš Bobek <matyas.bobek@gmail.com>
---
docs/system/arm/sabrelite.rst | 1 +
docs/system/devices/can.rst | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/docs/system/arm/sabrelite.rst b/docs/system/arm/sabrelite.rst
index 4ccb0560af..d3a3c01dd6 100644
--- a/docs/system/arm/sabrelite.rst
+++ b/docs/system/arm/sabrelite.rst
@@ -24,6 +24,7 @@ The SABRE Lite machine supports the following devices:
* 4 SDHC storage controllers
* 4 USB 2.0 host controllers
* 5 ECSPI controllers
+ * 2 FlexCAN CAN controllers
* 1 SST 25VF016B flash
Please note above list is a complete superset the QEMU SABRE Lite machine can
diff --git a/docs/system/devices/can.rst b/docs/system/devices/can.rst
index 09121836fd..5f21c01550 100644
--- a/docs/system/devices/can.rst
+++ b/docs/system/devices/can.rst
@@ -173,6 +173,26 @@ The test can also be run the other way around, generating messages in the
guest system and capturing them in the host system. Other combinations are
also possible.
+Examples on how to use CAN emulation for FlexCAN on SabreLite board
+-------------------------------------------------------------------
+FlexCANs are connected to QEMU CAN buses by passing the bus IDs as machine properties:
+* property ``canbus0`` for connecting ``flexcan1``
+* property ``canbus1`` for connecting ``flexcan2``
+Note that upstream Linux SabreLite DTs have only a single FlexCAN (``flexcan1``) enabled.
+
+An example command to run QEMU emulating a Sabrelite development board
+with both FlexCANs connected to a single QEMU CAN bus (called ``qcan0``),
+bridged to host system ``can0`` interface::
+
+ qemu-system-arm -M sabrelite -smp 4 -m 1G \
+ -object can-bus,id=qcan0 \
+ -machine canbus0=qcan0 -machine canbus1=qcan0 \
+ -object can-host-socketcan,if=can0,canbus=qcan0,id=qcan0-socketcan \
+ -kernel ... -dtb ... -initrd ...
+
+Note that in the Linux guest, bitrate for the FlexCAN device is ignored,
+but needs to be set via the ``ip`` command.
+
Links to other resources
------------------------
--
2.52.0
next prev parent reply other threads:[~2025-12-15 20:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 20:03 [PATCH v1 0/6] hw/arm/sabrelite: Add FlexCAN support Matyáš Bobek
2025-12-15 20:03 ` [PATCH v1 1/6] hw/arm/sabrelite: Convert machine to full class Matyáš Bobek
2025-12-15 20:03 ` [PATCH v1 2/6] hw/misc/imx6_ccm: Add PLL3 and CAN clock Matyáš Bobek
2025-12-15 20:03 ` [PATCH v1 3/6] hw/net/can/flexcan: NXP FlexCAN core emulation Matyáš Bobek
2025-12-15 20:03 ` [PATCH v1 4/6] hw/arm: Plug FlexCAN into FSL_IMX6 and Sabrelite Matyáš Bobek
2025-12-15 20:03 ` [PATCH v1 5/6] tests: Add qtests for FlexCAN Matyáš Bobek
2025-12-15 20:03 ` Matyáš Bobek [this message]
2025-12-16 0:44 ` [PATCH v1 0/6] hw/arm/sabrelite: Add FlexCAN support Pavel Pisa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b13be1ee5d264b051eacf260ea767f6b6424e55b.1765826753.git.matyas.bobek@gmail.com \
--to=matyas.bobek@gmail.com \
--cc=bobekmat@fel.cvut.cz \
--cc=mkl@pengutronix.de \
--cc=n.ostrenkov@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=pisa@fel.cvut.cz \
--cc=qemu-devel@nongnu.org \
--cc=shentey@gmail.com \
--cc=socketcan@hartkopp.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).