nxp,pcf2127.yaml 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rtc/nxp,pcf2127.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NXP PCF2127 Real Time Clock
  7. allOf:
  8. - $ref: rtc.yaml#
  9. maintainers:
  10. - Alexandre Belloni <alexandre.belloni@bootlin.com>
  11. properties:
  12. compatible:
  13. enum:
  14. - nxp,pca2129
  15. - nxp,pcf2127
  16. - nxp,pcf2129
  17. - nxp,pcf2131
  18. reg:
  19. maxItems: 1
  20. interrupts:
  21. maxItems: 1
  22. start-year: true
  23. reset-source: true
  24. required:
  25. - compatible
  26. - reg
  27. additionalProperties: false
  28. examples:
  29. - |
  30. #include <dt-bindings/interrupt-controller/irq.h>
  31. i2c {
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. rtc@51 {
  35. compatible = "nxp,pcf2127";
  36. reg = <0x51>;
  37. pinctrl-0 = <&rtc_nint_pins>;
  38. interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
  39. reset-source;
  40. };
  41. };
  42. ...