serial-peripheral-props.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/serial/serial-peripheral-props.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Common Properties for Serial-attached Devices
  7. maintainers:
  8. - Rob Herring <robh@kernel.org>
  9. - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  10. description:
  11. Devices connected over serial/UART, expressed as children of a serial
  12. controller, might need similar properties, e.g. for configuring the baud
  13. rate.
  14. properties:
  15. max-speed:
  16. $ref: /schemas/types.yaml#/definitions/uint32
  17. description:
  18. The maximum baud rate the device operates at.
  19. This should only be present if the maximum is less than the slave
  20. device can support. For example, a particular board has some
  21. signal quality issue or the host processor can't support higher
  22. baud rates.
  23. current-speed:
  24. $ref: /schemas/types.yaml#/definitions/uint32
  25. description: |
  26. The current baud rate the device operates at.
  27. This should only be present in case a driver has no chance to know
  28. the baud rate of the slave device.
  29. Examples:
  30. * device supports auto-baud
  31. * the rate is setup by a bootloader and there is no way to reset
  32. the device
  33. * device baud rate is configured by its firmware but there is no
  34. way to request the actual settings
  35. additionalProperties: true