lkml.org 
[lkml]   [2023]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 2/2] dt-bindings: serial: Add support for enabling RS485 mode via GPIO at boot time
On Tue, Nov 21, 2023 at 09:28:12AM +0100, Tomas Paukrt wrote:
> Add an option to enable the RS485 mode at boot time based on
> the state of a GPIO pin (DIP switch or configuration jumper).
> The GPIO is defined by the device tree property "linux,rs485-mode-gpio".
>
> Signed-off-by: Tomas Paukrt <tomaspaukrt@email.cz>
> ---
> Documentation/devicetree/bindings/serial/rs485.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml
> index 9418fd6..7a72f37 100644
> --- a/Documentation/devicetree/bindings/serial/rs485.yaml
> +++ b/Documentation/devicetree/bindings/serial/rs485.yaml
> @@ -47,6 +47,10 @@ properties:
> later with proper ioctl.
> $ref: /schemas/types.yaml#/definitions/flag
>
> + linux,rs485-mode-gpio:

This has little to do with Linux, so no need for linux prefix.

The preferred form is always plural '-gpios'.

> + description: GPIO pin to enable RS485 mode at boot time.
> + maxItems: 1
> +
> rs485-rx-during-tx:
> description: enables the receiving of data even while sending data.
> $ref: /schemas/types.yaml#/definitions/flag
> --
> 2.7.4
>

\
 
 \ /
  Last update: 2023-11-27 21:01    [W:0.414 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site