[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210209095948.15889-1-valentin.caron@foss.st.com>
Date: Tue, 9 Feb 2021 10:59:48 +0100
From: Valentin Caron <valentin.caron@...s.st.com>
To: Rob Herring <robh+dt@...nel.org>,
Alexandre Torgue <alexandre.torgue@...s.st.com>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Erwan Le Ray <erwan.leray@...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>
Subject: [PATCH] dt-bindings: serial: stm32: add examples
From: Valentin Caron <valentin.caron@...com>
Add examples to show more use cases :
- uart2 with hardware flow control
- uart4 without flow control
Signed-off-by: Valentin Caron <valentin.caron@...s.st.com>
---
.../bindings/serial/st,stm32-uart.yaml | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
index 06d5f251ec88..3a4aab5d1862 100644
--- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
@@ -82,6 +82,26 @@ additionalProperties: false
examples:
- |
#include <dt-bindings/clock/stm32mp1-clks.h>
+
+ usart4: serial@...04c00 {
+ compatible = "st,stm32-uart";
+ reg = <0x40004c00 0x400>;
+ interrupts = <52>;
+ clocks = <&clk_pclk1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usart4>;
+ };
+
+ usart2: serial@...04400 {
+ compatible = "st,stm32-uart";
+ reg = <0x40004400 0x400>;
+ interrupts = <38>;
+ clocks = <&clk_pclk1>;
+ st,hw-flow-ctrl;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rtscts>;
+ };
+
usart1: serial@...11000 {
compatible = "st,stm32-uart";
reg = <0x40011000 0x400>;
--
2.17.1
Powered by blists - more mailing lists