Skip to content

Commit 2978fdc

Browse files
committed
Merge tag 'renesas-r9a08g045-dt-binding-defs-tag3' into renesas-clk-for-v6.13
Renesas RZ/G3S DT Binding Definitions VBATTB clock definitions for the Renesas RZ/G3S (R9A08G045) SoC, shared by driver and DT source files.
2 parents e1ef630 + cdfd5da commit 2978fdc

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
7+
title: Renesas Battery Backup Function (VBATTB)
8+
9+
description:
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+
14+
maintainers:
15+
- Claudiu Beznea <[email protected]>
16+
17+
properties:
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+
53+
required:
54+
- compatible
55+
- reg
56+
- interrupts
57+
- clocks
58+
- clock-names
59+
- '#clock-cells'
60+
- power-domains
61+
- resets
62+
63+
additionalProperties: false
64+
65+
examples:
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+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
*
3+
* Copyright (C) 2024 Renesas Electronics Corp.
4+
*/
5+
#ifndef __DT_BINDINGS_CLOCK_R9A08G045_VBATTB_H__
6+
#define __DT_BINDINGS_CLOCK_R9A08G045_VBATTB_H__
7+
8+
#define VBATTB_XC 0
9+
#define VBATTB_XBYP 1
10+
#define VBATTB_MUX 2
11+
#define VBATTB_VBATTCLK 3
12+
13+
#endif /* __DT_BINDINGS_CLOCK_R9A08G045_VBATTB_H__ */

0 commit comments

Comments
 (0)