Debian Codegraph @

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/rtc/microcrystal,rv3028.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Microchip RV-3028 RTC
8
9 allOf:
10 - $ref: rtc.yaml#
11
12 maintainers:
13 - Alexandre Belloni <[email protected]>
14
15 properties:
16 compatible:
17 const: microcrystal,rv3028
18
19 reg:
20 maxItems: 1
21
22 interrupts:
23 maxItems: 1
24
25 "#clock-cells":
26 const: 0
27
28 trickle-resistor-ohms:
29 enum:
30 - 3000
31 - 5000
32 - 9000
33 - 15000
34
35 required:
36 - compatible
37 - reg
38
39 unevaluatedProperties: false
40
41 examples:
42 - |
43 #include <dt-bindings/interrupt-controller/irq.h>
44 i2c {
45 #address-cells = <1>;
46 #size-cells = <0>;
47
48 rtc@51 {
49 compatible = "microcrystal,rv3028";
50 reg = <0x51>;
51 pinctrl-0 = <&rtc_nint_pins>;
52 interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
53 trickle-resistor-ohms = <3000>;
54 };
55 };
56
57 ...