Skip to content

Commit 1428b4c

Browse files
khoatranyjduynguyenxa
authored andcommitted
dts: arm: renesas: ra: Add battery backup node for Renesas
RA8 family Add a battery backup (VBAT) node to the device tree for the Renesas RA8 family. This enables support for RTC VBAT domain switching when main power is lost. Signed-off-by: Khoa Tran <[email protected]>
1 parent 5a24826 commit 1428b4c

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

dts/arm/renesas/ra/ra8/r7fa8t1xh.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/delete-node/ &i2s0;
1212
/delete-node/ &i2s1;
13+
/delete-node/ &battery_backup;
1314

1415
/ {
1516
clocks: clocks {

dts/arm/renesas/ra/ra8/ra8x1.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,29 @@
5757
system: system@4001e000 {
5858
compatible = "renesas,ra-system";
5959
reg = <0x4001e000 0x1000>;
60+
#address-cells = <1>;
61+
#size-cells = <1>;
6062
status = "okay";
63+
64+
battery_backup: battery-backup@3b0{
65+
compatible = "renesas,ra-battery-backup";
66+
reg = <0x3b0 0x2>, <0x3d0 0x4>,
67+
<0xa84 0x1>, <0xa88 0x1>,
68+
<0xc40 0x1>, <0xc45 0x1>,
69+
<0xc46 0x1>, <0xc48 0x1>,
70+
<0xc49 0x1>, <0xc4a 0x1>,
71+
<0xc4c 0x1>, <0xc4d 0x1>,
72+
<0xc4e 0x1>, <0xd00 0x80>;
73+
reg-names = "vbrsabar", "bbfsar",
74+
"vbattmnselr", "vbtbpcr1",
75+
"vbtber", "vbtbpcr2",
76+
"vbtbpsr", "vbtadsr",
77+
"vbtadcr1", "vbtadcr2",
78+
"vbtictlr", "vbtictlr2",
79+
"vbtimonr" , "vbtbkrn";
80+
manual-configure;
81+
status = "disabled";
82+
};
6183
};
6284

6385
elc: elc@40201000 {

dts/arm/renesas/ra/ra8/ra8x2.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,29 @@
6969
system: system@4001e000 {
7070
compatible = "renesas,ra-system";
7171
reg = <0x4001e000 0x1000>;
72+
#address-cells = <1>;
73+
#size-cells = <1>;
7274
status = "okay";
75+
76+
battery_backup: battery-backup@3b0{
77+
compatible = "renesas,ra-battery-backup";
78+
reg = <0x3b0 0x2>, <0x3d0 0x4>,
79+
<0xa84 0x1>, <0xa88 0x1>,
80+
<0xc40 0x1>, <0xc45 0x1>,
81+
<0xc46 0x1>, <0xc48 0x1>,
82+
<0xc49 0x1>, <0xc4a 0x1>,
83+
<0xc4c 0x1>, <0xc4d 0x1>,
84+
<0xc4e 0x1>, <0xd00 0x80>;
85+
reg-names = "vbrsabar", "bbfsar",
86+
"vbattmnselr", "vbtbpcr1",
87+
"vbtber", "vbtbpcr2",
88+
"vbtbpsr", "vbtadsr",
89+
"vbtadcr1", "vbtadcr2",
90+
"vbtictlr", "vbtictlr2",
91+
"vbtimonr" , "vbtbkrn";
92+
manual-configure;
93+
status = "disabled";
94+
};
7395
};
7496

7597
pinctrl: pin-controller@40400800 {

0 commit comments

Comments
 (0)