intersil,isl12022.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rtc/intersil,isl12022.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Intersil ISL12022 Real-time Clock
  7. maintainers:
  8. - Alexandre Belloni <alexandre.belloni@bootlin.com>
  9. properties:
  10. compatible:
  11. const: isil,isl12022
  12. reg:
  13. maxItems: 1
  14. interrupts:
  15. maxItems: 1
  16. '#clock-cells':
  17. const: 0
  18. isil,battery-trip-levels-microvolt:
  19. description:
  20. The battery voltages at which the first alarm and second alarm
  21. should trigger (normally ~85% and ~75% of nominal V_BAT).
  22. items:
  23. - enum: [2125000, 2295000, 2550000, 2805000, 3060000, 4250000, 4675000]
  24. - enum: [1875000, 2025000, 2250000, 2475000, 2700000, 3750000, 4125000]
  25. required:
  26. - compatible
  27. - reg
  28. allOf:
  29. - $ref: rtc.yaml#
  30. # If #clock-cells is present, interrupts must not be present
  31. - if:
  32. required:
  33. - '#clock-cells'
  34. then:
  35. properties:
  36. interrupts: false
  37. unevaluatedProperties: false
  38. examples:
  39. - |
  40. #include <dt-bindings/interrupt-controller/irq.h>
  41. i2c {
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. rtc@6f {
  45. compatible = "isil,isl12022";
  46. reg = <0x6f>;
  47. interrupts-extended = <&gpio1 5 IRQ_TYPE_LEVEL_LOW>;
  48. isil,battery-trip-levels-microvolt = <2550000>, <2250000>;
  49. };
  50. };
  51. ...