nxp,pcf2123.yaml 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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,pcf2123.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NXP PCF2123 SPI Real Time Clock
  7. maintainers:
  8. - Javier Carrasco <javier.carrasco.cruz@gmail.com>
  9. allOf:
  10. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  11. - $ref: rtc.yaml#
  12. properties:
  13. compatible:
  14. enum:
  15. - nxp,pcf2123
  16. reg:
  17. maxItems: 1
  18. interrupts:
  19. maxItems: 1
  20. required:
  21. - compatible
  22. - reg
  23. unevaluatedProperties: false
  24. examples:
  25. - |
  26. #include <dt-bindings/interrupt-controller/arm-gic.h>
  27. spi {
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. rtc@3 {
  31. compatible = "nxp,pcf2123";
  32. reg = <3>;
  33. interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_LOW>;
  34. spi-cs-high;
  35. };
  36. };
  37. ...