[PATCH v8 0/2] Add support to fetch baudrate from dtb

Venkatesh Yadav Abbarapu venkatesh.abbarapu at amd.com
Thu Sep 21 13:20:41 CEST 2023


In this patch series
- Add support in Kconfig and convert for armada boards
- Fetch baudrate from the dtb and update

Changes in v8:
- Added test to cover fetch_baud_from_dtb.
- Changed this check_valid_baudrate() to static and removed 
  from serial.h
- Fixed the compilation error.
 
Changes in v7:
- Updated the commit message.

Changes in v6:
- Changed Kconfig OF_SERIAL_DT_BAUD to OF_SERIAL_BAUD.
- Added IS_ENABLED() in place of #ifdef CONFIG_OF_SERIAL_AUD

Changes in v5:
- Adding DEFAULT_ENV_IS_RW Kconfig in missing files
- Updating DEFAULT_ENV_IS_RW to CONFIG_DEFAULT_ENV_IS_RW

Changes in v4:
- Moved SERIAL_DT_BAUD to another patch
- Added doc file for fetching serial baudrate from DT.
- Changed Kconfig SERIAL_DT_BAUD to OF_SERIAL_DT_BAUD
- Added function docs wherever required.
- Moved changes from fdtdec api to ofnode
- Changed serial_get_valid_baudrate to check_valid_baudrate
- Added function fetch_baud_from_dtb to fetch baud from DT
- Used dectoul() for parsing baudrate

Changes in v3:
- Add SERIAL_DT_BAUD to Kconfig
- Moved DEFAULT_ENV_IS_RW to Kconfig also updated armada files
- Moved filler changes from zynqmp.h to generic file env_default.h
- Removed ENV_RW_FILLER and added padding in the generic file env_default.h.
- Print baudrate parameter properly when SERIAL_DT is enabled.

Changes in v2:
- Changed to #ifdef from #if CONFIG_IS_ENABLED to enable patching in spl.
- Added SPL_ENV_SUPPORT dependency in SERIAL_DT_BAUD to allow SPL compilation.
- Moved DEFAULT_ENV_IS_RW to Kconfig also updated armada files
- Moved ENV_RW_FILLER to generic file env_default.h.
- Increased the ENV_RW_FILLER padding to support 8000000 baud.



Algapally Santosh Sagar (2):
  configs: Add support in Kconfig and convert for armada boards
  serial: zynqmp: Fetch baudrate from dtb and update

 arch/sandbox/dts/test.dts                   |  1 +
 configs/eDPU_defconfig                      |  1 +
 configs/mvebu_db-88f3720_defconfig          |  1 +
 configs/mvebu_espressobin-88f3720_defconfig |  1 +
 configs/uDPU_defconfig                      |  1 +
 doc/README.serial_dt_baud                   | 41 +++++++++++++++++
 drivers/core/ofnode.c                       | 18 ++++++++
 drivers/serial/Kconfig                      | 15 +++++++
 drivers/serial/serial-uclass.c              | 49 +++++++++++++++++++++
 include/configs/mvebu_armada-37xx.h         |  1 -
 include/dm/ofnode.h                         | 14 +++++-
 include/env_default.h                       |  8 +++-
 include/env_internal.h                      |  2 +-
 include/serial.h                            |  7 +++
 test/dm/serial.c                            |  1 +
 15 files changed, 155 insertions(+), 6 deletions(-)
 create mode 100644 doc/README.serial_dt_baud

-- 
2.25.1



More information about the U-Boot mailing list