]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MIPS: dts: loongson64g-package: Switch to Loongson UART driver
authorRong Zhang <rongrong@oss.cipunited.com>
Sun, 15 Mar 2026 18:44:00 +0000 (02:44 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 6 Apr 2026 12:14:24 +0000 (14:14 +0200)
commit79b888ee4c6387bc07c5452bfd031cb985871a5f
tree1ab89917a235b789d60d4786f0a845b471b266c8
parent2300d68e577909c7d3013910ff818e8572288491
MIPS: dts: loongson64g-package: Switch to Loongson UART driver

Loongson64g is Loongson 3A4000, whose UART controller is compatible with
Loongson 2K1500, which is NS16550A-compatible with an additional
fractional frequency divisor register.

Update the compatible strings to reflect this, so that 3A4000 can
benefit from the fractional frequency divisor provided by loongson-uart.
This is required on some devices, otherwise their UART can't work at
some high baud rates, e.g., 115200.

Tested on Loongson-LS3A4000-7A1000-NUC-SE with a 25MHz UART clock.
Without fractional frequency divisor, the actual baud rate was 111607
(25MHz / 16 / 14, measured value: 111545) and some USB-to-UART
converters couldn't work with it at all. With fractional frequency
divisor, the measured baud rate becomes 115207, which is quite accurate.

Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/loongson/loongson64g-package.dtsi