rtc.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rtc/rtc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Real Time Clock Common Properties
  7. maintainers:
  8. - Alexandre Belloni <alexandre.belloni@bootlin.com>
  9. description: |
  10. This document describes generic bindings which can be used to
  11. describe Real Time Clock devices in a device tree.
  12. properties:
  13. $nodename:
  14. pattern: "^rtc(@.*|-([0-9]|[1-9][0-9]+))?$"
  15. aux-voltage-chargeable:
  16. $ref: /schemas/types.yaml#/definitions/uint32
  17. enum: [0, 1]
  18. description: |
  19. Tells whether the battery/supercap of the RTC (if any) is
  20. chargeable or not:
  21. 0: not chargeable
  22. 1: chargeable
  23. quartz-load-femtofarads:
  24. description:
  25. The capacitive load of the quartz(x-tal), expressed in femto
  26. Farad (fF). The default value shall be listed (if optional),
  27. and likewise all valid values.
  28. start-year:
  29. $ref: /schemas/types.yaml#/definitions/uint32
  30. description:
  31. If provided, the default hardware range supported by the RTC is
  32. shifted so the first usable year is the specified one.
  33. trickle-diode-disable:
  34. $ref: /schemas/types.yaml#/definitions/flag
  35. description:
  36. Do not use internal trickle charger diode. Should be given if
  37. internal trickle charger diode should be disabled.
  38. deprecated: true
  39. trickle-resistor-ohms:
  40. description:
  41. Selected resistor for trickle charger. Should be given
  42. if trickle charger should be enabled.
  43. trickle-voltage-millivolt:
  44. description:
  45. Selected voltage for trickle charger. Should be given
  46. if trickle charger should be enabled and the trickle voltage is different
  47. from the RTC main power supply.
  48. wakeup-source:
  49. $ref: /schemas/types.yaml#/definitions/flag
  50. description:
  51. Enables wake up of host system on alarm.
  52. reset-source:
  53. $ref: /schemas/types.yaml#/definitions/flag
  54. description:
  55. The RTC is able to reset the machine.
  56. additionalProperties: true
  57. ...