u-boot/doc/device-tree-bindings/serial
Caleb Connolly 69e9b3428b
serial: msm: calculate bit clock divider
The driver currently requires the bit clock divider be hardcoded in
devicetree (or use the hardcoded default from apq8016).

The bit clock divider is used to derive the baud rate from the core
clock:

  baudrate = clk_rate / csr_div

clk_rate is the actual programmed core clock rate which is returned by
clk_set_rate(), and this UART driver only supports a baudrate of 115200.
We can therefore determine the appropriate value for UARTDM_CSR by
iterating over the possible values and finding the one where the
equation above holds true for a baudrate of 115200.

Implement this logic and drop the non-standard DT bindings for this
driver.

Tested on dragonboard410c.

Tested-by: Robert Marko <robert.marko@sartura.hr>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-04-23 13:29:16 +02:00
..
8250.txt armv8: LS2080A: Consolidate LS2080A and LS2085A 2016-04-06 10:26:46 -07:00
altera_jtaguart.txt nios2: convert altera_jtag_uart to driver model 2015-10-23 07:36:37 +08:00
altera_uart.txt nios2: convert altera_uart to driver model 2015-10-23 07:36:51 +08:00
bcm2835-aux-uart.txt serial: bcm283x_mu: add device tree support 2016-11-28 20:09:46 -05:00
mcf-uart.txt m68k: add basic set of devicetrees 2019-05-23 23:14:38 -04:00
microchip,pic32-uart.txt drivers: serial: add driver for Microchip PIC32 UART controller. 2016-02-01 22:14:00 +01:00
msm-geni-serial.txt serial: msm-geni: Use upstream Linux bindings 2023-05-02 14:23:58 -04:00
mxc-serial.txt dm: imx: serial: support device tree 2016-10-07 12:26:14 +02:00
omap_serial.txt ns16550: replace with binding files from Linux kernel 2016-01-25 10:40:03 -05:00
pl01x.txt serial: pl01x: expose skip_init platdata option in DT 2016-11-28 20:09:47 -05:00
qca,ar9330-uart.txt drivers: serial: add serial driver for ar933x SOC 2016-05-21 01:25:50 +02:00
sandbox-serial.txt sandbox: dts: Add a serial console node 2014-09-10 13:00:00 -06:00
sh.txt serial: sh: Add HSCIF support for R-Car SoC 2023-04-07 17:13:28 +02:00
snps-dw-apb-uart.txt ns16550: replace with binding files from Linux kernel 2016-01-25 10:40:03 -05:00
xilinx_uartlite.txt serial: uartlite: Move driver to DM 2016-01-27 15:55:49 +01:00