Driver: Add pin inversion to Esp32 Uart

Additional properties are added to esp32 uart to allow
for signal inversion.

Signed-off-by: Ayush Kothari <ayush@croxel.com>
This commit is contained in:
Ayush Kothari 2024-05-10 21:00:06 +05:30 committed by Anas Nashif
commit 13dfd86616
2 changed files with 23 additions and 0 deletions

View file

@ -21,3 +21,15 @@ properties:
Overrides hw-flow-control if both are set.
Using this mode, the pin assigned to DTR
is asserted during transmission.
tx-invert:
type: boolean
description: |
Invert the binary logic of tx pin. When enabled, physical logic levels are inverted and
we use 1=Low, 0=High instead of 1=High, 0=Low.
rx-invert:
type: boolean
description: |
Invert the binary logic of rx pin. When enabled, physical logic levels are inverted and
we use 1=Low, 0=High instead of 1=High, 0=Low.