dt-bindings: serial: stm32: add examples
Subsystems (3)
PATCH 1/1 dt-bindings: serial: stm32: add examples
From: Valentin Caron <[email protected]>
Add examples to show more use cases :
- uart2 with hardware flow control
- uart4 without flow control
--- .../bindings/serial/st,stm32-uart.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+)
Documentation/devicetree/bindings/serial/st,stm32-uart.yaml +20 -0
@@ -82,6 +82,26 @@ additionalProperties: false examples: - | #include <dt-bindings/clock/stm32mp1-clks.h> + + usart4: serial@40004c00 { + compatible = "st,stm32-uart"; + reg = <0x40004c00 0x400>; + interrupts = <52>; + clocks = <&clk_pclk1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usart4>; + }; + + usart2: serial@40004400 { + 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@40011000 { compatible = "st,stm32-uart"; reg = <0x40011000 0x400>;
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Rob Herring
maintainerQuoted 5 lines · Valentin Caron
From: Valentin Caron <[email protected]>
Add examples to show more use cases :
- uart2 with hardware flow control
- uart4 without flow control
Why do I need these? I can go read your dts files if I need more examples.
Quoted 40 lines
Signed-off-by Valentin Caron <[email protected]>--- .../bindings/serial/st,stm32-uart.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+)Documentation/devicetree/bindings/serial/st,stm32-uart.yaml +20
-0@@ -82,6 +82,26 @@ additionalProperties: false examples: - | #include <dt-bindings/clock/stm32mp1-clks.h> + + usart4: serial@40004c00 { + compatible = "st,stm32-uart"; + reg = <0x40004c00 0x400>; + interrupts = <52>; + clocks = <&clk_pclk1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usart4>; + }; + + usart2: serial@40004400 { + 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@40011000 { compatible = "st,stm32-uart"; reg = <0x40011000 0x400>;Signature · 1 line
2.17.1
Quoted 8 lines · Rob Herring
Quoted 5 lines · Valentin Caron
From: Valentin Caron <[email protected]>
Add examples to show more use cases :
- uart2 with hardware flow control
- uart4 without flow controlWhy do I need these? I can go read your dts files if I need more examples.
Hi,
These examples were present in the dt-binding before the convertion to json :
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
Would you like a v2 with this precision ?
However this is not an essential patch, we can just drop it.
Quoted 40 lines
Quoted 40 lines
Signed-off-by Valentin Caron <[email protected]>--- .../bindings/serial/st,stm32-uart.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+)Documentation/devicetree/bindings/serial/st,stm32-uart.yaml +20
-0@@ -82,6 +82,26 @@ additionalProperties: false examples: - | #include <dt-bindings/clock/stm32mp1-clks.h> + + usart4: serial@40004c00 { + compatible = "st,stm32-uart"; + reg = <0x40004c00 0x400>; + interrupts = <52>; + clocks = <&clk_pclk1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usart4>; + }; + + usart2: serial@40004400 { + 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@40011000 { compatible = "st,stm32-uart"; reg = <0x40011000 0x400>;Signature · 1 line
2.17.1