summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial/rs485.yaml
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@st.com>2020-01-22 12:55:57 +0300
committerRob Herring <robh@kernel.org>2020-01-23 23:34:15 +0300
commitd50f974c4f7fef1b2d1d010f4f81d40e1ad09f8a (patch)
treeed13c7363a064e754935a5a30f59bd6988a04ef6 /Documentation/devicetree/bindings/serial/rs485.yaml
parentc5c689d3221e5fc82525db454021b1adcb33d855 (diff)
downloadlinux-d50f974c4f7fef1b2d1d010f4f81d40e1ad09f8a.tar.xz
dt-bindings: serial: Convert rs485 bindings to json-schema
Convert rs485 binding to yaml style file. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/serial/rs485.yaml')
-rw-r--r--Documentation/devicetree/bindings/serial/rs485.yaml45
1 files changed, 45 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml
new file mode 100644
index 000000000000..d4beaf11222d
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/rs485.yaml
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/serial/rs485.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: RS485 serial communications Bindings
+
+description: The RTS signal is capable of automatically controlling
+ line direction for the built-in half-duplex mode.
+ The properties described hereafter shall be given to a
+ half-duplex capable UART node.
+
+maintainers:
+ - Rob Herring <robh@kernel.org>
+
+properties:
+ rs485-rts-delay:
+ description: prop-encoded-array <a b>
+ allOf:
+ - $ref: /schemas/types.yaml#/definitions/uint32-array
+ - items:
+ items:
+ - description:
+ Delay between rts signal and beginning of data sent in milliseconds.
+ It corresponds to the delay before sending data.
+ default: 0
+ maximum: 1000
+ - description:
+ Delay between end of data sent and rts signal in milliseconds.
+ It corresponds to the delay after sending data and actual release of the line.
+ default: 0
+ maximum: 1000
+
+ rs485-rts-active-low:
+ description: drive RTS low when sending (default is high).
+ $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.
+ $ref: /schemas/types.yaml#/definitions/flag
+
+ rs485-rx-during-tx:
+ description: enables the receiving of data even while sending data.
+ $ref: /schemas/types.yaml#/definitions/flag