Skip to contentSkip to conversation

serial: 8250_omap: Add compatible for AM654 UART

PATCH In review Nishanth Menon 3 participants 5 messages Jun 19, 2018 – Jun 26, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover serial: 8250_omap: Add compatible for AM654 UART

Hi,

This series was previously send out as part of a larger AM654 UART support series, but was determined to create a bit of merge conflicts due to interdependence.

Changes since RFC are indicated in corresponding patches in the series

Instead this series is split out. The series itself is based off v4.18-rc1 and available here:
https://github.com/nmenon/linux-2.6-playground/commits/upstream/v4.18-rc1/k3-1-am6-uart

Consolidated all patches (including all series) are available here:
https://github.com/nmenon/linux-2.6-playground/commits/upstream/v4.18-rc1/k3-am6-integ

Full Boot log (integrated of all series) is available here:
https://pastebin.ubuntu.com/p/bBFmnzYtCd/

Nishanth Menon (2):
dt-bindings: serial: 8250_omap: Add compatible for AM654 UART
controller
serial: 8250_omap: Add support for AM654 UART controller

 Documentation/devicetree/bindings/serial/omap_serial.txt | 1 +
 drivers/tty/serial/8250/8250_omap.c                      | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.15.1
#1 lore raw

PATCH 1/2 dt-bindings: serial: 8250_omap: Add compatible for AM654 UART controller

AM654 uses a UART controller that is only partially compatible with existing 8250 UART. UART DMA integration is substantially different and even a match against standard 8250 or omap4 would result in non-working UART once DMA is enabled by default.

Introduce a specific compatible to help build up the differences in follow on patches.

---

Changes since RFC:
* DT binding has been split out as it's own patch and commit message elaborated

RFC: https://patchwork.kernel.org/patch/10447641/

 Documentation/devicetree/bindings/serial/omap_serial.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/serial/omap_serial.txt +1 -0
index 4b0f05adb228..c35d5ece1156 100644
@@ -1,6 +1,7 @@
 OMAP UART controller
 
 Required properties:
+- compatible : should be "ti,am654-uart" for AM654 controllers
 - compatible : should be "ti,omap2-uart" for OMAP2 controllers
 - compatible : should be "ti,omap3-uart" for OMAP3 controllers
 - compatible : should be "ti,omap4-uart" for OMAP4 controllers
Signature · 1 line
2.15.1
maintainer Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: serial: 8250_omap: Add compatible for AM654 UART controller

Quoted 5 lines · Nishanth Menon

AM654 uses a UART controller that is only partially compatible with existing 8250 UART. UART DMA integration is substantially different and even a match against standard 8250 or omap4 would result in non-working UART once DMA is enabled by default.

Quoted 7 lines

Introduce a specific compatible to help build up the differences in follow on patches.

---

#3 lore raw

PATCH 2/2 serial: 8250_omap: Add support for AM654 UART controller

In reply to Nishanth Menon

AM654 uses a UART controller that is compatible (partially) with existing 8250 UART, however, has a few differences with respect to DMA support and control paths. Introduce a base definition that allows us to build up the differences in follow on patches.

---

Changes since RFC: Driver change has been split out with corresponding description.

RFC: https://patchwork.kernel.org/patch/10447641/

 drivers/tty/serial/8250/8250_omap.c | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/8250/8250_omap.c +1 -0
index 1b337fee07ed..a019286f8bb6 100644
@@ -1115,6 +1115,7 @@ static const u8 am3352_habit = OMAP_DMA_TX_KICK | UART_ERRATA_CLOCK_DISABLE;
 static const u8 dra742_habit = UART_ERRATA_CLOCK_DISABLE;
 
 static const struct of_device_id omap8250_dt_ids[] = {
+	{ .compatible = "ti,am654-uart" },
 	{ .compatible = "ti,omap2-uart" },
 	{ .compatible = "ti,omap3-uart" },
 	{ .compatible = "ti,omap4-uart", .data = &omap4_habit, },
Signature · 1 line
2.15.1