uart: Introduce uart driver for the Loongson family
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest3 patches 3 repliesIn review
- v53 patches 12 repliesSuperseded
- v43 patches 7 repliesSuperseded
Changes in v6 from the cover letter
Patch-1:
- Add Conor's Acked-by tag, thanks.
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: serial: 8250: Add Loongson uart compatibleDocumentation/ | +14 | 0 replies | |
| 2/3 | serial: 8250: Add Loongson uart driver supportdrivers/ drivers/ drivers/ | +249 | 0 replies | |
| 3/3 | LoongArch: dts: Add uart new compatible stringarch/ arch/ arch/ | +3 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Conor Dooley | Huacai Chen |
|---|---|---|
| Series | R-b | |
| 1/3 | A-b | |
| 2/3 | ||
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/3] uart: Introduce uart driver for the Loongson family
Hi all:
For various reasons, I will be taking over from Haowei and continuing to push forward with this patch set. Thanks to Haowei for his efforts so far.
This patchset introduce a generic UART framework driver for Loongson family. It can be found on Loongson3 series cpus, Loongson-2K series cpus and Loongson LS7A bridge chips.
Thanks.
------
V6:
Patch-1:
- Add Conor's Acked-by tag, thanks.
Patch-2:
- Add more missing #include;
- Convert mcr_invert/msr_invert from int to u8;
- Split serial_fixup() on a preceding line;
- Add macro definition to avoid magic numbers, such as LOONGSON_QUOT_FRAC_MASK;
- Rework the relevant data structures, where loongson_uart_ddata represents the Soc's driver_data;
- Drop PORT_LOONGSON and use PORT_16550A instead.
- devm_platform_get_and_ioremap_resource() instead of platform_get_resource();
- Use uart_read_port_properties() and parse the clock attributes;
- Use switch-case instead of if-else in serial_fixup().
Link to V5:
https://lore.kernel.org/all/[email protected]/
V5:
Patch-1:
- Since the Loongson UART is NS8250A-compatible, simply add ls2k* compatible to 8250.yaml.
DTS{i} tested by make dtbs_check W=1
Link to V4:
https://lore.kernel.org/all/[email protected]/
V4:
Patch-1:
- Rename binding name from loongson,uart.yaml to
loongson,ls2k0500-uart.yaml;
- Drop ls7a compatible;
- According to the manual, ls3a and ls2k uart are the same, so merge their compatible.
Patch-2:
- Format code;
- Add the LOONGSON_UART_DLF macro definition to avoid magic numbers;
- Simplify the code, merge flags and quirks, and remove struct
loongson_uart_config;
- Use DEFINE_SIMPLE_DEV_PM_OPS;
- Drop loongson,ls7a-uart compatible.
Patch-3:
- Add ls2k* compatible string, and ns16550a as the fallback compatible.
Link to V3:
https://lore.kernel.org/all/[email protected]/
Binbin Zhou (3):
dt-bindings: serial: 8250: Add Loongson uart compatible
serial: 8250: Add Loongson uart driver support
LoongArch: dts: Add uart new compatible string
.../devicetree/bindings/serial/8250.yaml | 14 ++ arch/loongarch/boot/dts/loongson-2k0500.dtsi | 2 +- arch/loongarch/boot/dts/loongson-2k1000.dtsi | 2 +- arch/loongarch/boot/dts/loongson-2k2000.dtsi | 2 +- drivers/tty/serial/8250/8250_loongson.c | 238 ++++++++++++++++++ drivers/tty/serial/8250/Kconfig | 10 + drivers/tty/serial/8250/Makefile | 1 + 7 files changed, 266 insertions(+), 3 deletions(-) create mode 100644 drivers/tty/serial/8250/8250_loongson.c
base-commit: 0d97f2067c166eb495771fede9f7b73999c67f66
Signature · 1 line
2.47.3