w1-uart.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/w1/w1-uart.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: UART 1-Wire Bus
  7. maintainers:
  8. - Christoph Winklhofer <cj.winklhofer@gmail.com>
  9. description: |
  10. UART 1-wire bus. Utilizes the UART interface via the Serial Device Bus
  11. to create the 1-Wire timing patterns.
  12. The UART peripheral must support full-duplex and operate in open-drain
  13. mode. The timing patterns are generated by a specific combination of
  14. baud-rate and transmitted byte, which corresponds to a 1-Wire read bit,
  15. write bit or reset pulse.
  16. The default baud-rate for reset and presence detection is 9600 and for
  17. a 1-Wire read or write operation 115200. In case the actual baud-rate
  18. is different from the requested one, the transmitted byte is adapted
  19. to generate the 1-Wire timing patterns.
  20. https://www.analog.com/en/technical-articles/using-a-uart-to-implement-a-1wire-bus-master.html
  21. properties:
  22. compatible:
  23. const: w1-uart
  24. reset-bps:
  25. default: 9600
  26. description:
  27. The baud rate for the 1-Wire reset and presence detect.
  28. write-0-bps:
  29. default: 115200
  30. description:
  31. The baud rate for the 1-Wire write-0 cycle.
  32. write-1-bps:
  33. default: 115200
  34. description:
  35. The baud rate for the 1-Wire write-1 and read cycle.
  36. required:
  37. - compatible
  38. additionalProperties:
  39. type: object
  40. examples:
  41. - |
  42. serial {
  43. onewire {
  44. compatible = "w1-uart";
  45. };
  46. };