ACPI / property: Document RS485 _DSD properties
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 26 Apr 2022 12:24:42 +0000 (15:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 12:48:21 +0000 (14:48 +0200)
Document RS485 related properties returned from ACPI _DSD as device
properties.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220426122448.38997-5-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/firmware-guide/acpi/enumeration.rst

index 47fb4d6d45570643949ab4678bcdd5229292e690..f584a6a0c5e3cbb38526ebc125650b5dd073a8b9 100644 (file)
@@ -390,6 +390,31 @@ descriptors once the device is released.
 See Documentation/firmware-guide/acpi/gpio-properties.rst for more information
 about the _DSD binding related to GPIOs.
 
+RS-485 support
+==============
+
+ACPI _DSD (Device Specific Data) can be used to describe RS-485 capability
+of UART.
+
+For example::
+
+       Device (DEV)
+       {
+               ...
+
+               // ACPI 5.1 _DSD used for RS-485 capabilities
+               Name (_DSD, Package ()
+               {
+                       ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+                       Package ()
+                       {
+                               Package () {"rs485-rts-active-low", Zero},
+                               Package () {"rs485-rx-active-high", Zero},
+                               Package () {"rs485-rx-during-tx", Zero},
+                       }
+               })
+               ...
+
 MFD devices
 ===========