Skip to content
Snippets Groups Projects
Commit b1ec4c49 authored by Michal Simek's avatar Michal Simek Committed by Greg Kroah-Hartman
Browse files

dt-bindings: serial: rs485: Fix rs485-rts-delay property


commit 12b3642b6c242061d3ba84e6e3050c3141ded14c upstream.

Code expects array only with 2 items which should be checked.
But also item checking is not working as it should likely because of
incorrect items description.

Fixes: d50f974c ("dt-bindings: serial: Convert rs485 bindings to json-schema")
Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/820c639b9e22fe037730ed44d1b044cdb6d28b75.1726480384.git.michal.simek@amd.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f04cd022
No related branches found
No related tags found
1 merge request!176🤖 Sync Bot: Update v6.12-ktn to Latest Stable Kernel (v6.12.4)
...@@ -18,16 +18,15 @@ properties: ...@@ -18,16 +18,15 @@ properties:
description: prop-encoded-array <a b> description: prop-encoded-array <a b>
$ref: /schemas/types.yaml#/definitions/uint32-array $ref: /schemas/types.yaml#/definitions/uint32-array
items: items:
items: - description: Delay between rts signal and beginning of data sent in
- description: Delay between rts signal and beginning of data sent in milliseconds. It corresponds to the delay before sending data.
milliseconds. It corresponds to the delay before sending data. default: 0
default: 0 maximum: 100
maximum: 100 - description: Delay between end of data sent and rts signal in milliseconds.
- description: Delay between end of data sent and rts signal in milliseconds. It corresponds to the delay after sending data and actual release
It corresponds to the delay after sending data and actual release of the line.
of the line. default: 0
default: 0 maximum: 100
maximum: 100
rs485-rts-active-high: rs485-rts-active-high:
description: drive RTS high when sending (this is the default). description: drive RTS high when sending (this is the default).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment