OSDN Git Service

dt-bindings: serial: uartlite: Add properties for synthesis-time parameters
authorSean Anderson <sean.anderson@seco.com>
Thu, 26 Aug 2021 19:21:52 +0000 (15:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Sep 2021 08:05:32 +0000 (10:05 +0200)
commit3de536a8c365ada3481839ffe8da533c9940ea3f
treeb1a26b70ab2ee367f0c7e484d80a3276dfa4f74f
parentf77529d9b91ac484d2ec4ad733e7594731334348
dt-bindings: serial: uartlite: Add properties for synthesis-time parameters

The uartlite device is a "soft" device. Many parameters, such as baud
rate, data bits, and the presence of a parity bit are configured before
synthesis and may not be changed (or discovered) at runtime. However, we
must know what these settings are in order to properly calculate the
uart timeout (and to inform the user about the actual baud of the uart).

These properties are present for out-of-tree bindings generated by
Xilinx's tools. However, they are also (mostly) present in in-tree
bindings. I chose current-speed over xlnx,baudrate primarily because it
seemed to be used by more existing bindings. Although these properties
are marked as "required", note that only current-speed is required by
the driver itself. Hopefully, this will allow for an easier transition.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/20210826192154.3202269-3-sean.anderson@seco.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml