amba_pl011: Add cts-event-workaround DT property
authorPhil Elwell <phil@raspberrypi.org>
Fri, 29 Sep 2017 09:32:19 +0000 (10:32 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:31:33 +0000 (11:31 +0000)
commitef7f5c3166142d6a7a07cb8f360c6d137fc896f5
treea8511afcfc41d1af30e13d8c1fac32fb6045ba3a
parentd7537e52ab51bef941b2c37cf88f00697352d5c3
amba_pl011: Add cts-event-workaround DT property

The BCM2835 PL011 implementation seems to have a bug that can lead to a
transmission lockup if CTS changes frequently. A workaround was added to
the driver with a vendor-specific flag to enable it, but this flag is
currently not set for ARM implementations.

Add a "cts-event-workaround" property to Pi DTBs and use the presence
of that property to force the flag to be enabled in the driver.

See: https://github.com/raspberrypi/linux/issues/1280

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Documentation/devicetree/bindings/serial/pl011.yaml
drivers/tty/serial/amba-pl011.c