devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 05/12] dt_bindings: rs485: Add receiver enable polarity
       [not found] <20220404082912.6885-1-ilpo.jarvinen@linux.intel.com>
@ 2022-04-04  8:29 ` Ilpo Järvinen
  2022-04-06 17:54   ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Ilpo Järvinen @ 2022-04-04  8:29 UTC (permalink / raw)
  To: linux-serial, Greg KH, Jiri Slaby, Lukas Wunner, Andy Shevchenko
  Cc: Johan Hovold, heiko, giulio.benetti, Heikki Krogerus,
	Uwe Kleine-König, Ilpo Järvinen, Rob Herring,
	devicetree

Add polarity property for receiver enable. Some UARTs have
separate enable pins for tx (RTS or DE) and rx (RE). As most
RS485 transceivers have !RE pin, the default is active low in
contrast to rs485-rts-active-low that defaults to active high.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
---
 Documentation/devicetree/bindings/serial/rs485.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml
index 0c9fa694f85c..f2c9c9fe6aa7 100644
--- a/Documentation/devicetree/bindings/serial/rs485.yaml
+++ b/Documentation/devicetree/bindings/serial/rs485.yaml
@@ -33,6 +33,11 @@ properties:
     description: drive RTS low when sending (default is high).
     $ref: /schemas/types.yaml#/definitions/flag
 
+  rs485-rx-active-high:
+    description: Polarity of receiver enable signal (when separate from RTS).
+      True indicates active high (default is low).
+    $ref: /schemas/types.yaml#/definitions/flag
+
   linux,rs485-enabled-at-boot-time:
     description: enables the rs485 feature at boot time. It can be disabled
       later with proper ioctl.
-- 
2.30.2


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

* Re: [PATCH v2 05/12] dt_bindings: rs485: Add receiver enable polarity
  2022-04-04  8:29 ` [PATCH v2 05/12] dt_bindings: rs485: Add receiver enable polarity Ilpo Järvinen
@ 2022-04-06 17:54   ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2022-04-06 17:54 UTC (permalink / raw)
  To: Ilpo Järvinen
  Cc: Andy Shevchenko, Rob Herring, Heikki Krogerus, Greg KH,
	Johan Hovold, heiko, Jiri Slaby, linux-serial, devicetree,
	Lukas Wunner, giulio.benetti, Uwe Kleine-König

On Mon, 04 Apr 2022 11:29:05 +0300, Ilpo Järvinen wrote:
> Add polarity property for receiver enable. Some UARTs have
> separate enable pins for tx (RTS or DE) and rx (RE). As most
> RS485 transceivers have !RE pin, the default is active low in
> contrast to rs485-rts-active-low that defaults to active high.
> 
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> ---
>  Documentation/devicetree/bindings/serial/rs485.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

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

end of thread, other threads:[~2022-04-06 19:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220404082912.6885-1-ilpo.jarvinen@linux.intel.com>
2022-04-04  8:29 ` [PATCH v2 05/12] dt_bindings: rs485: Add receiver enable polarity Ilpo Järvinen
2022-04-06 17:54   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).