All of lore.kernel.org
 help / color / mirror / Atom feed
* Extending serial port linux driver to toggle RS485 direction pin (GPIO)
@ 2021-11-02 17:55 Jochen
  2021-11-02 18:58 ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Jochen @ 2021-11-02 17:55 UTC (permalink / raw)
  To: linux-serial

Hello,

I have a RS485 hardware shield connected to the hardware uart of a raspberry PI3, where you have to toggle the RS485 driver DIRECTION-pin from within your software during write-commands. The DIR-Pin is connected to a GPIO pin of the PI.

As I do not want to do that in every application software, I thought it could be a good idea to enhance the serial-port driver (locally on my PI) with that functionality. Looking to the sources of amba-pl011.c I thought the "pl011_write"-function could be the right place to do so....but to be honest it seems not to work

Could you please give me a hint where to do that best in the serial port driver? (or is there already a RS485 driver with configurable Dir-GPIO-pin).
Is there a documentation of the serial-port architecture available which could help me to solve my problem?

Bests
Jochen


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-16 14:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 17:55 Extending serial port linux driver to toggle RS485 direction pin (GPIO) Jochen
2021-11-02 18:58 ` Greg KH
2021-11-03  7:23   ` Jochen Mades
2021-11-03  8:23     ` Greg KH
2021-11-16  6:43   ` Jochen Mades
2021-11-16  8:28     ` Greg KH
2021-11-16 11:47       ` Jochen Mades
2021-11-16 14:21         ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.