Skip to contentSkip to conversation

drivers: char: Enable OMAP UART driver for TI K3 devices

PATCH Superseded Vaishnav Achath 2 participants 2 messages Apr 8, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: char: Enable OMAP UART driver for TI K3 devices

TI K3 devices (J721E, J721S2, AM62X .etc) has the same variant of UART as OMAP4. Add the compatible used in Linux device tree, "ti,am654-uart" to the omap-uart dt_match so that the driver can be used with these devices. Also enable the driver for ARM64 platforms.

---

Xen logs from J721E EVM: https://gist.github.com/vaishnavachath/8185e2378981705e1deb121f109f46b5

 xen/drivers/char/Kconfig     | 2 +-
 xen/drivers/char/omap-uart.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
xen/drivers/char/Kconfig +1 -1
index e18ec3788c..dcb9e85853 100644
@@ -55,7 +55,7 @@ config HAS_EXYNOS4210
 config HAS_OMAP
 	bool "Texas Instruments OMAP UART driver"
 	default y
-	depends on ARM_32
+	depends on ARM_32 || ARM_64
 	help
 	  This selects the Texas Instruments OMAP UART. If you have a Texas
 	  Instruments based CPU, say Y.
xen/drivers/char/omap-uart.c +1 -0
index f4368c158c..03b5b66e7a 100644
@@ -372,6 +372,7 @@ static int __init omap_uart_init(struct dt_device_node *dev,
 static const struct dt_device_match omap_uart_dt_match[] __initconst =
 {
     DT_MATCH_COMPATIBLE("ti,omap4-uart"),
+    DT_MATCH_COMPATIBLE("ti,am654-uart"),
     { /* sentinel */ },
 };
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 3 lines · Vaishnav Achath

TI K3 devices (J721E, J721S2, AM62X .etc) has the same variant

s/has/have

Quoted 19 lines

of UART as OMAP4. Add the compatible used in Linux device tree, "ti,am654-uart" to the omap-uart dt_match so that the driver can be used with these devices. Also enable the driver for ARM64 platforms.

---

Xen logs from J721E EVM: https://gist.github.com/vaishnavachath/8185e2378981705e1deb121f109f46b5

 xen/drivers/char/Kconfig     | 2 +-
 xen/drivers/char/omap-uart.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
xen/drivers/char/Kconfig +0 -0
index e18ec3788c..dcb9e85853 100644

xen/drivers/char/Kconfig config HAS_EXYNOS4210 · line 58

Quoted 5 lines
xen/drivers/char/Kconfig +1 -1
@@ -55,7 +55,7 @@ config HAS_EXYNOS4210
 config HAS_OMAP
        bool "Texas Instruments OMAP UART driver"
        default y
-       depends on ARM_32
+       depends on ARM_32 || ARM_64

depends on ARM please

With that:

~Michal