# Common fields for UART controllers

include: base.yaml

bus: uart

properties:
  clock-frequency:
    type: int
    description: Clock frequency information for UART operation
  current-speed:
    type: int
    description: Initial baud rate setting for UART
  hw-flow-control:
    type: boolean
    description: Set to enable RTS/CTS flow control at boot time
  parity:
    type: string
    description: |
      Configures the parity of the adapter. Enumeration id 0 for none, 1 for odd
      and 2 for even parity. Default to none if not specified.
    enum:
      - "none"
      - "odd"
      - "even"
  stop-bits:
    type: string
    description: |
      Sets the number of stop bits.
    enum:
      - "0_5"
      - "1"
      - "1_5"
      - "2"
  data-bits:
    type: int
    description: |
      Sets the number of data bits.
    enum:
      - 5
      - 6
      - 7
      - 8
      - 9
