Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Benjamin Gaignard and committed by
Rob Herring
d50f974c c5c689d3

+46 -31
+1 -31
Documentation/devicetree/bindings/serial/rs485.txt
··· 1 - * RS485 serial communications 2 - 3 - The RTS signal is capable of automatically controlling line direction for 4 - the built-in half-duplex mode. 5 - The properties described hereafter shall be given to a half-duplex capable 6 - UART node. 7 - 8 - Optional properties: 9 - - rs485-rts-delay: prop-encoded-array <a b> where: 10 - * a is the delay between rts signal and beginning of data sent in milliseconds. 11 - it corresponds to the delay before sending data. 12 - * b is the delay between end of data sent and rts signal in milliseconds 13 - it corresponds to the delay after sending data and actual release of the line. 14 - If this property is not specified, <0 0> is assumed. 15 - - rs485-rts-active-low: drive RTS low when sending (default is high). 16 - - linux,rs485-enabled-at-boot-time: empty property telling to enable the rs485 17 - feature at boot time. It can be disabled later with proper ioctl. 18 - - rs485-rx-during-tx: empty property that enables the receiving of data even 19 - while sending data. 20 - 21 - RS485 example for Atmel USART: 22 - usart0: serial@fff8c000 { 23 - compatible = "atmel,at91sam9260-usart"; 24 - reg = <0xfff8c000 0x4000>; 25 - interrupts = <7>; 26 - atmel,use-dma-rx; 27 - atmel,use-dma-tx; 28 - linux,rs485-enabled-at-boot-time; 29 - rs485-rts-delay = <0 200>; // in milliseconds 30 - }; 31 - 1 + See rs485.yaml
+45
Documentation/devicetree/bindings/serial/rs485.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/serial/rs485.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: RS485 serial communications Bindings 8 + 9 + description: The RTS signal is capable of automatically controlling 10 + line direction for the built-in half-duplex mode. 11 + The properties described hereafter shall be given to a 12 + half-duplex capable UART node. 13 + 14 + maintainers: 15 + - Rob Herring <robh@kernel.org> 16 + 17 + properties: 18 + rs485-rts-delay: 19 + description: prop-encoded-array <a b> 20 + allOf: 21 + - $ref: /schemas/types.yaml#/definitions/uint32-array 22 + - items: 23 + items: 24 + - description: 25 + Delay between rts signal and beginning of data sent in milliseconds. 26 + It corresponds to the delay before sending data. 27 + default: 0 28 + maximum: 1000 29 + - description: 30 + Delay between end of data sent and rts signal in milliseconds. 31 + It corresponds to the delay after sending data and actual release of the line. 32 + default: 0 33 + maximum: 1000 34 + 35 + rs485-rts-active-low: 36 + description: drive RTS low when sending (default is high). 37 + $ref: /schemas/types.yaml#/definitions/flag 38 + 39 + linux,rs485-enabled-at-boot-time: 40 + description: enables the rs485 feature at boot time. It can be disabled later with proper ioctl. 41 + $ref: /schemas/types.yaml#/definitions/flag 42 + 43 + rs485-rx-during-tx: 44 + description: enables the receiving of data even while sending data. 45 + $ref: /schemas/types.yaml#/definitions/flag