xref: /freebsd-src/sys/contrib/device-tree/Bindings/rtc/microcrystal,rv3032.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/microcrystal,rv3032.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Microchip RV-3032 RTC
86be33864SEmmanuel Vadot
96be33864SEmmanuel VadotallOf:
10fac71e4eSEmmanuel Vadot  - $ref: rtc.yaml#
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotmaintainers:
136be33864SEmmanuel Vadot  - Alexandre Belloni <alexandre.belloni@bootlin.com>
146be33864SEmmanuel Vadot
156be33864SEmmanuel Vadotproperties:
166be33864SEmmanuel Vadot  compatible:
176be33864SEmmanuel Vadot    const: microcrystal,rv3032
186be33864SEmmanuel Vadot
196be33864SEmmanuel Vadot  reg:
206be33864SEmmanuel Vadot    maxItems: 1
216be33864SEmmanuel Vadot
226be33864SEmmanuel Vadot  interrupts:
236be33864SEmmanuel Vadot    maxItems: 1
246be33864SEmmanuel Vadot
256be33864SEmmanuel Vadot  start-year: true
266be33864SEmmanuel Vadot
276be33864SEmmanuel Vadot  trickle-resistor-ohms:
286be33864SEmmanuel Vadot    enum:
296be33864SEmmanuel Vadot      - 1000
306be33864SEmmanuel Vadot      - 2000
316be33864SEmmanuel Vadot      - 7000
326be33864SEmmanuel Vadot      - 11000
336be33864SEmmanuel Vadot
346be33864SEmmanuel Vadot  trickle-voltage-millivolt:
35b97ee269SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
366be33864SEmmanuel Vadot    enum:
376be33864SEmmanuel Vadot      - 1750
386be33864SEmmanuel Vadot      - 3000
396be33864SEmmanuel Vadot      - 4400
406be33864SEmmanuel Vadot
41*84943d6fSEmmanuel Vadot  wakeup-source: true
42*84943d6fSEmmanuel Vadot
436be33864SEmmanuel Vadotrequired:
446be33864SEmmanuel Vadot  - compatible
456be33864SEmmanuel Vadot  - reg
466be33864SEmmanuel Vadot
476be33864SEmmanuel VadotadditionalProperties: false
486be33864SEmmanuel Vadot
496be33864SEmmanuel Vadotexamples:
506be33864SEmmanuel Vadot  - |
516be33864SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
526be33864SEmmanuel Vadot    i2c {
536be33864SEmmanuel Vadot        #address-cells = <1>;
546be33864SEmmanuel Vadot        #size-cells = <0>;
556be33864SEmmanuel Vadot
566be33864SEmmanuel Vadot        rtc@51 {
576be33864SEmmanuel Vadot            compatible = "microcrystal,rv3032";
586be33864SEmmanuel Vadot            reg = <0x51>;
596be33864SEmmanuel Vadot            pinctrl-0 = <&rtc_nint_pins>;
606be33864SEmmanuel Vadot            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
616be33864SEmmanuel Vadot            trickle-resistor-ohms = <7000>;
626be33864SEmmanuel Vadot            trickle-voltage-millivolt = <1750>;
636be33864SEmmanuel Vadot        };
646be33864SEmmanuel Vadot    };
656be33864SEmmanuel Vadot
666be33864SEmmanuel Vadot...
67