From: Pierre-Olivier Huard <pierre-olivier.huard@rtone.fr>
To: barebox@lists.infradead.org
Cc: sebastien.bourdelin@rtone.fr, a.fatoum@pengutronix.de,
oss-contrib@rtone.fr,
Pierre-Olivier Huard <pierre-olivier.huard@rtone.fr>
Subject: [PATCH 0/2] serial: ns16550: support half duplex rs485
Date: Tue, 6 Feb 2024 16:22:37 +0100 [thread overview]
Message-ID: <20240206152239.341460-1-pierre-olivier.huard@rtone.fr> (raw)
The default ns16550 driver does not support rs485. This patchset adds
support for half duplex rs485 to the ns16550 driver. Basic handling of the RTS
signal is done to enable the rs485 transceivers.
Some properties are now parsed from the device tree:
- 'linux,rs485-enabled-at-boot-time', enabling RTS toggling when sending data
- 'rs485-rts-active-low', inverting the RTS signal
- 'rs485-rx-during-tx', enabling RX during TX, disabled by default
Pierre-Olivier Huard (2):
serial: ns16550: add basic support for rs485
serial: ns16550: add support for half duplex rs485
drivers/serial/serial_ns16550.c | 42 +++++++++++++++++++++++++++++++--
drivers/serial/serial_ns16550.h | 7 ++++++
2 files changed, 47 insertions(+), 2 deletions(-)
--
2.43.0
next reply other threads:[~2024-02-06 15:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 15:22 Pierre-Olivier Huard [this message]
2024-02-06 15:22 ` [PATCH 1/2] serial: ns16550: add basic support for rs485 Pierre-Olivier Huard
2024-02-06 15:22 ` [PATCH 2/2] serial: ns16550: add support for half duplex rs485 Pierre-Olivier Huard
2024-02-08 7:15 ` [PATCH 0/2] serial: ns16550: support " Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240206152239.341460-1-pierre-olivier.huard@rtone.fr \
--to=pierre-olivier.huard@rtone.fr \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=oss-contrib@rtone.fr \
--cc=sebastien.bourdelin@rtone.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox