[PATCH v2 00/11] serial: mvebu-uart: Fixes and new support for higher baudrates

From: Pali Rohár
Date: Fri Jun 25 2021 - 10:36:59 EST


This patch series fixes mvebu-uart driver used on Marvell Armada 37xx
boards and add support for baudrates higher than 230400.

In v2 was added patch with DIV_U64_ROUND_CLOSEST helper and changed
patch "implement UART clock driver for configuring UART base clock" to
fix compile errors on 32-bit archs, including usage of new math helper.

Pali Rohár (11):
serial: mvebu-uart: fix calculation of clock divisor
serial: mvebu-uart: do not allow changing baudrate when uartclk is not
available
serial: mvebu-uart: correctly calculate minimal possible baudrate
dt-bindings: mvebu-uart: fix documentation
arm64: dts: marvell: armada-37xx: Fix reg for standard variant of UART
serial: mvebu-uart: remove unused member nb from struct mvebu_uart
math64: New DIV_U64_ROUND_CLOSEST helper
serial: mvebu-uart: implement UART clock driver for configuring UART
base clock
dt-bindings: mvebu-uart: document DT bindings for
marvell,armada-3700-uart-clock
arm64: dts: marvell: armada-37xx: add device node for UART clock and
use it
serial: mvebu-uart: implement support for baudrates higher than 230400

.../bindings/clock/armada3700-uart-clock.txt | 24 +
.../devicetree/bindings/serial/mvebu-uart.txt | 15 +-
.../arm64/boot/dts/marvell/armada-3720-db.dts | 4 +
.../dts/marvell/armada-3720-espressobin.dtsi | 4 +
.../dts/marvell/armada-3720-turris-mox.dts | 4 +
.../boot/dts/marvell/armada-3720-uDPU.dts | 4 +
arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 17 +-
drivers/tty/serial/Kconfig | 1 +
drivers/tty/serial/mvebu-uart.c | 605 +++++++++++++++++-
include/linux/math64.h | 13 +
10 files changed, 661 insertions(+), 30 deletions(-)
create mode 100644 Documentation/devicetree/bindings/clock/armada3700-uart-clock.txt

--
2.20.1