rtc-ds1307.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rtc/rtc-ds1307.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Dallas DS1307 and compatible RTC
  7. maintainers:
  8. - Alexandre Belloni <alexandre.belloni@bootlin.com>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - enum:
  13. - dallas,ds1307
  14. - dallas,ds1308
  15. - dallas,ds1337
  16. - dallas,ds1338
  17. - dallas,ds1339
  18. - dallas,ds1388
  19. - dallas,ds1340
  20. - dallas,ds1341
  21. - maxim,ds3231
  22. - st,m41t0
  23. - st,m41t00
  24. - st,m41t11
  25. - microchip,mcp7940x
  26. - microchip,mcp7941x
  27. - pericom,pt7c4338
  28. - epson,rx8025
  29. - isil,isl12057
  30. - epson,rx8130
  31. - items:
  32. - enum:
  33. - st,m41t00
  34. - const: dallas,ds1338
  35. reg:
  36. maxItems: 1
  37. interrupts:
  38. minItems: 1
  39. maxItems: 2
  40. interrupt-names:
  41. maxItems: 2
  42. "#clock-cells":
  43. const: 1
  44. clock-output-names:
  45. description: From common clock binding to override the default output clock name.
  46. wakeup-source:
  47. description: Enables wake up of host system on alarm.
  48. vcc-supply: true
  49. allOf:
  50. - $ref: rtc.yaml
  51. - if:
  52. properties:
  53. compatible:
  54. contains:
  55. enum:
  56. - dallas,ds1339
  57. - dallas,ds1340
  58. - dallas,ds1388
  59. then:
  60. properties:
  61. trickle-resistor-ohms:
  62. description: Selected resistor for trickle charger. Should be specified if trickle
  63. charger should be enabled.
  64. enum: [ 250, 2000, 4000 ]
  65. trickle-diode-disable:
  66. description: Do not use internal trickle charger diode. Should be given if internal
  67. trickle charger diode should be disabled (superseded by aux-voltage-chargeable)
  68. deprecated: true
  69. unevaluatedProperties: false
  70. required:
  71. - compatible
  72. - reg
  73. examples:
  74. - |
  75. i2c {
  76. #address-cells = <1>;
  77. #size-cells = <0>;
  78. rtc@68 {
  79. compatible = "dallas,ds1337";
  80. reg = <0x68>;
  81. interrupt-parent = <&gpio4>;
  82. interrupts = <20 0>;
  83. trickle-resistor-ohms = <250>;
  84. };
  85. };