Skip to content

Commit 12b3642

Browse files
michalsimekgregkh
authored andcommitted
dt-bindings: serial: rs485: Fix rs485-rts-delay property
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: d50f974 ("dt-bindings: serial: Convert rs485 bindings to json-schema") Signed-off-by: Michal Simek <[email protected]> Cc: [email protected] Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/820c639b9e22fe037730ed44d1b044cdb6d28b75.1726480384.git.michal.simek@amd.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 55796b4 commit 12b3642

File tree

1 file changed

+9
-10
lines changed
  • Documentation/devicetree/bindings/serial

1 file changed

+9
-10
lines changed

Documentation/devicetree/bindings/serial/rs485.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ properties:
1818
description: prop-encoded-array <a b>
1919
$ref: /schemas/types.yaml#/definitions/uint32-array
2020
items:
21-
items:
22-
- description: Delay between rts signal and beginning of data sent in
23-
milliseconds. It corresponds to the delay before sending data.
24-
default: 0
25-
maximum: 100
26-
- description: Delay between end of data sent and rts signal in milliseconds.
27-
It corresponds to the delay after sending data and actual release
28-
of the line.
29-
default: 0
30-
maximum: 100
21+
- description: Delay between rts signal and beginning of data sent in
22+
milliseconds. It corresponds to the delay before sending data.
23+
default: 0
24+
maximum: 100
25+
- description: Delay between end of data sent and rts signal in milliseconds.
26+
It corresponds to the delay after sending data and actual release
27+
of the line.
28+
default: 0
29+
maximum: 100
3130

3231
rs485-rts-active-high:
3332
description: drive RTS high when sending (this is the default).

0 commit comments

Comments
 (0)