From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 4/4] ARM: Rockchip: document changing console baud rate
Date: Fri, 28 Nov 2025 19:49:17 +0100 [thread overview]
Message-ID: <20251128184920.109552-4-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20251128184920.109552-1-a.fatoum@pengutronix.de>
The rkbin-specific parts originate from the U-Boot ts433
documentation[1].
As they are useful to barebox users as well, import them here and add
some more barebox-specific info on baudrate configuration.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
Documentation/boards/rockchip.rst | 49 +++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/Documentation/boards/rockchip.rst b/Documentation/boards/rockchip.rst
index eb1bbe81819a..34b0a0e5aa1a 100644
--- a/Documentation/boards/rockchip.rst
+++ b/Documentation/boards/rockchip.rst
@@ -126,3 +126,52 @@ MaskROM mode when no other bootsource contains a valid bootloader. This means to
you have to make all other bootsources invalid by removing SD cards and shortcircuiting
eMMCs. The RK3568 EVB has a pushbutton to disable the eMMC.
On the Quartz64 boards, remove the eMMC module if present.
+
+Console Output
+--------------
+
+The DDR-init in the rkbin repository will set up a serial console
+at 1.5 MBaud, while barebox will set up the console with the baudrate it
+has been configured with in DT and/or Kconfig, which may be different.
+
+It can be useful for debugging to have the same baudrate for all components.
+
+The barebox baudrate is defined by device tree::
+
+ / {
+ chosen {
+ stdout-path = "serial0:1500000n8";
+ };
+ };
+
+and ``CONFIG_BAUDRATE`` controls the default if no baud rate is specified
+or the device tree has not been parsed yet:
+
+.. code-block:: console
+
+ $ scripts/config --file .config --set-str CONFIG_BAUDRATE 1500000
+
+
+The DDR-init baudrate can be modified by setting a ``uart baudrate``
+override in the ``ddrbin_param.txt`` file in the rkbin repository:
+
+.. code-block:: diff
+
+ diff --git a/tools/ddrbin_param.txt b/tools/ddrbin_param.txt
+ index 0d0f53884a72..f71e09aafc4c 100644
+ --- a/tools/ddrbin_param.txt
+ +++ b/tools/ddrbin_param.txt
+ @@ -11,7 +11,7 @@ lp5_freq=
+
+ uart id=
+ uart iomux=
+ -uart baudrate=
+ +uart baudrate=115200
+
+ sr_idle=
+ pd_idle=
+
+And after that the ``ddrbin_tool`` binary can be used to apply this
+modification to the relevant ddr init blob::
+
+$ tools/ddrbin_tool rk3568 tools/ddrbin_param.txt bin/rk35/rk3568_ddr_1560MHz_v1.21.bin
--
2.47.3
next prev parent reply other threads:[~2025-11-28 18:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 18:49 [PATCH 1/4] Documentation: migration-guides: don't warn about migration-master Ahmad Fatoum
2025-11-28 18:49 ` [PATCH 2/4] Documentation: factor out build rules into stand-alone Makefile Ahmad Fatoum
2025-11-28 18:49 ` [PATCH 3/4] ci: add workflow to check documentation build is warning free Ahmad Fatoum
2025-11-28 18:49 ` Ahmad Fatoum [this message]
2025-12-01 11:09 ` [PATCH 1/4] Documentation: migration-guides: don't warn about migration-master Sascha Hauer
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=20251128184920.109552-4-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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