Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rtc/microcrystal,rv3032.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Microchip RV-3032 RTC Device Tree Bindings
0008 
0009 allOf:
0010   - $ref: "rtc.yaml#"
0011 
0012 maintainers:
0013   - Alexandre Belloni <alexandre.belloni@bootlin.com>
0014 
0015 properties:
0016   compatible:
0017     const: microcrystal,rv3032
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   interrupts:
0023     maxItems: 1
0024 
0025   start-year: true
0026 
0027   trickle-resistor-ohms:
0028     enum:
0029       - 1000
0030       - 2000
0031       - 7000
0032       - 11000
0033 
0034   trickle-voltage-millivolt:
0035     $ref: /schemas/types.yaml#/definitions/uint32
0036     enum:
0037       - 1750
0038       - 3000
0039       - 4400
0040 
0041 required:
0042   - compatible
0043   - reg
0044 
0045 additionalProperties: false
0046 
0047 examples:
0048   - |
0049     #include <dt-bindings/interrupt-controller/irq.h>
0050     i2c {
0051         #address-cells = <1>;
0052         #size-cells = <0>;
0053 
0054         rtc@51 {
0055             compatible = "microcrystal,rv3032";
0056             reg = <0x51>;
0057             pinctrl-0 = <&rtc_nint_pins>;
0058             interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
0059             trickle-resistor-ohms = <7000>;
0060             trickle-voltage-millivolt = <1750>;
0061         };
0062     };
0063 
0064 ...