xref: /linux/Documentation/devicetree/bindings/clock/renesas,r9a08g045-vbattb.yaml (revision cdd30ebb1b9f36159d66f088b61aee264e649d7a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/renesas,r9a08g045-vbattb.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Renesas Battery Backup Function (VBATTB)
8
9description:
10  Renesas VBATTB is an always on powered module (backed by battery) which
11  controls the RTC clock (VBATTCLK), tamper detection logic and a small
12  general usage memory (128B).
13
14maintainers:
15  - Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
16
17properties:
18  compatible:
19    const: renesas,r9a08g045-vbattb
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    items:
26      - description: tamper detector interrupt
27
28  clocks:
29    items:
30      - description: VBATTB module clock
31      - description: RTC input clock (crystal or external clock device)
32
33  clock-names:
34    items:
35      - const: bclk
36      - const: rtx
37
38  '#clock-cells':
39    const: 1
40
41  power-domains:
42    maxItems: 1
43
44  resets:
45    items:
46      - description: VBATTB module reset
47
48  quartz-load-femtofarads:
49    description: load capacitance of the on board crystal
50    enum: [ 4000, 7000, 9000, 12500 ]
51    default: 4000
52
53required:
54  - compatible
55  - reg
56  - interrupts
57  - clocks
58  - clock-names
59  - '#clock-cells'
60  - power-domains
61  - resets
62
63additionalProperties: false
64
65examples:
66  - |
67    #include <dt-bindings/clock/r9a08g045-cpg.h>
68    #include <dt-bindings/clock/renesas,r9a08g045-vbattb.h>
69    #include <dt-bindings/interrupt-controller/arm-gic.h>
70    #include <dt-bindings/interrupt-controller/irq.h>
71
72    clock-controller@1005c000 {
73        compatible = "renesas,r9a08g045-vbattb";
74        reg = <0x1005c000 0x1000>;
75        interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
76        clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>, <&vbattb_xtal>;
77        clock-names = "bclk", "rtx";
78        assigned-clocks = <&vbattb VBATTB_MUX>;
79        assigned-clock-parents = <&vbattb VBATTB_XC>;
80        #clock-cells = <1>;
81        power-domains = <&cpg>;
82        resets = <&cpg R9A08G045_VBAT_BRESETN>;
83        quartz-load-femtofarads = <12500>;
84    };
85