adi,max31335.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rtc/adi,max31335.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Analog Devices MAX31335 RTC
  7. maintainers:
  8. - Antoniu Miclaus <antoniu.miclaus@analog.com>
  9. description:
  10. Analog Devices MAX31335 I2C RTC ±2ppm Automotive Real-Time Clock with
  11. Integrated MEMS Resonator.
  12. allOf:
  13. - $ref: rtc.yaml#
  14. properties:
  15. compatible:
  16. const: adi,max31335
  17. reg:
  18. maxItems: 1
  19. interrupts:
  20. maxItems: 1
  21. "#clock-cells":
  22. description:
  23. RTC can be used as a clock source through its clock output pin.
  24. const: 0
  25. adi,tc-diode:
  26. description:
  27. Select the diode configuration for the trickle charger.
  28. schottky - Schottky diode in series.
  29. standard+schottky - standard diode + Schottky diode in series.
  30. enum: [schottky, standard+schottky]
  31. trickle-resistor-ohms:
  32. description:
  33. Selected resistor for trickle charger. Should be specified if trickle
  34. charger should be enabled.
  35. enum: [3000, 6000, 11000]
  36. required:
  37. - compatible
  38. - reg
  39. unevaluatedProperties: false
  40. examples:
  41. - |
  42. #include <dt-bindings/interrupt-controller/irq.h>
  43. i2c {
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. rtc@68 {
  47. compatible = "adi,max31335";
  48. reg = <0x68>;
  49. pinctrl-0 = <&rtc_nint_pins>;
  50. interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
  51. aux-voltage-chargeable = <1>;
  52. trickle-resistor-ohms = <6000>;
  53. adi,tc-diode = "schottky";
  54. };
  55. };
  56. ...