[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210409161755.GA3745930@robh.at.kernel.org>
Date: Fri, 9 Apr 2021 11:17:55 -0500
From: Rob Herring <robh@...nel.org>
To: Erwan Le Ray <erwan.leray@...s.st.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
linux-serial@...r.kernel.org, devicetree@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Fabrice Gasnier <fabrice.gasnier@...s.st.com>,
Valentin Caron <valentin.caron@...s.st.com>
Subject: Re: [PATCH 1/2] dt-bindings: serial: stm32: add fifo threshold
configuration
On Tue, Apr 06, 2021 at 09:21:21AM +0200, Erwan Le Ray wrote:
> Add two optional DT properties, to configure RX and TX fifo threshold:
> - st,rx-fifo-threshold-bytes
> - st,tx-fifo-threshold-bytes
>
> This patch depends on patch ("dt-bindings: serial: Add rx-tx-swap to stm32-usart").
>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@...s.st.com>
> Signed-off-by: Erwan Le Ray <erwan.leray@...s.st.com>
>
> diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
> index c69f8464cdf3..e163449bf39e 100644
> --- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
> +++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
> @@ -65,6 +65,22 @@ properties:
> linux,rs485-enabled-at-boot-time: true
> rs485-rx-during-tx: true
>
> + st,rx-fifo-threshold-bytes:
> + description:
> + RX FIFO threshold configuration in bytes.
> + If value is set to 1, RX FIFO threshold is disabled.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [1, 2, 4, 8, 12, 14, 16]
> + default: 8
> +
> + st,tx-fifo-threshold-bytes:
> + description:
> + TX FIFO threshold configuration in bytes.
> + If value is set to 1, TX FIFO threshold is disabled.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [1, 2, 4, 8, 12, 14, 16]
> + default: 8
We already have 'tx-threshold' for 8250, so reuse that and add
'rx-threshold'.
Rob
Powered by blists - more mailing lists