The driver has only been probed from platform devices so far. Add the
"mrvl,pxa-uart" compatible used by the upstream device trees.

The UART clock is still taken from pxa_get_uartclk() rather than from
the clocks phandle as barebox has no clock driver for the PXA3xx clock
controller the device trees point to.

Assisted-by: Claude Opus 5
Signed-off-by: Sascha Hauer <[email protected]>
---
 drivers/serial/serial_pxa.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/serial/serial_pxa.c b/drivers/serial/serial_pxa.c
index a0bebef811..bc792d62a5 100644
--- a/drivers/serial/serial_pxa.c
+++ b/drivers/serial/serial_pxa.c
@@ -187,8 +187,18 @@ static int pxa_serial_probe(struct device *dev)
        return 0;
 }
 
+static __maybe_unused struct of_device_id pxa_serial_dt_ids[] = {
+       {
+               .compatible = "mrvl,pxa-uart",
+       }, {
+               /* sentinel */
+       }
+};
+MODULE_DEVICE_TABLE(of, pxa_serial_dt_ids);
+
 static struct driver pxa_serial_driver = {
        .name = "pxa_serial",
        .probe = pxa_serial_probe,
+       .of_compatible = DRV_OF_COMPAT(pxa_serial_dt_ids),
 };
 console_platform_driver(pxa_serial_driver);

-- 
2.47.3


Reply via email to