1# Copyright (c) 2020 STMICROELECTRONICS 2# SPDX-License-Identifier: Apache-2.0 3 4# Common fields for STM32 UART peripherals. 5description: STM32 UART-BASE 6 7include: [uart-controller.yaml, pinctrl-device.yaml, reset-device.yaml] 8 9properties: 10 reg: 11 required: true 12 13 clocks: 14 required: true 15 16 resets: 17 required: true 18 19 interrupts: 20 required: true 21 22 single-wire: 23 type: boolean 24 description: | 25 Enable the single wire half-duplex communication. 26 Using this mode, TX and RX lines are internally connected and 27 only TX pin is used afterwards and should be configured. 28 RX/TX conflicts must be handled on user side. 29 30 tx-rx-swap: 31 type: boolean 32 description: 33 Swap the TX and RX pins. Used in case of a cross wired connection. 34 35 tx-invert: 36 type: boolean 37 description: | 38 Invert the binary logic of tx pin. When enabled, physical logic levels are inverted and 39 we use 1=Low, 0=High instead of 1=High, 0=Low. 40 41 rx-invert: 42 type: boolean 43 description: | 44 Invert the binary logic of rx pin. When enabled, physical logic levels are inverted and 45 we use 1=Low, 0=High instead of 1=High, 0=Low. 46 47 pinctrl-0: 48 required: true 49 50 pinctrl-names: 51 required: true 52 53 wakeup-line: 54 type: int 55 description: | 56 EXTI line number matching the device wakeup interrupt mask register. 57 This property is required on stm32 devices where the wakeup interrupt signal could be 58 configured masked at boot (sm32wl55 for instance), preventing the device to wakeup 59 the core from stop mode(s). 60 Valid range: 0 - 31 61 62 de-enable: 63 type: boolean 64 description: | 65 Enable activating an external transeiver through the DE pin which must also be configured 66 using pinctrl. 67 68 de-assert-time: 69 type: int 70 default: 0 71 description: | 72 Defines the time between the activation of the DE signal and the beginning of the start bit. 73 It is expressed in 16th of a bit time. 74 Valid range: 0 - 31 75 76 de-deassert-time: 77 type: int 78 default: 0 79 description: | 80 Defines the time between the activation of the DE signal and the beginning of the start bit. 81 It is expressed in 16th of a bit time. 82 Valid range: 0 - 31 83 84 de-invert: 85 type: boolean 86 description: | 87 Invert the binary logic of the de pin. When enabled, physical logic levels are inverted and 88 we use 1=Low, 0=High instead of 1=High, 0=Low. 89