dts: arm: st: l1: Add RTC BBRAM to DTS

All STM32L1 devices have 4-byte battery-backed RTC registers, but
they have different number of registers:

STM32L151Xb-a has 5 registers.
STM32L151Xb has 20 registers.
STM32L151Xc, STM32L152Xc, STM32L152Xe have 32 registers.

Signed-off-by: Patryk Duda <pdk@semihalf.com>
This commit is contained in:
Patryk Duda 2022-10-26 21:13:57 +02:00 committed by Stephanos Ioannidis
parent 6268bde897
commit 70ef405b3b
5 changed files with 40 additions and 0 deletions

View file

@ -21,5 +21,13 @@
eeprom: eeprom@8080000{
reg = <0x08080000 DT_SIZE_K(4)>;
};
rtc@40002800 {
bbram: backup_regs {
compatible = "st,stm32-bbram";
st,backup-regs = <5>;
status = "disabled";
};
};
};
};

View file

@ -21,5 +21,13 @@
eeprom: eeprom@8080000{
reg = <0x08080000 DT_SIZE_K(4)>;
};
rtc@40002800 {
bbram: backup_regs {
compatible = "st,stm32-bbram";
st,backup-regs = <20>;
status = "disabled";
};
};
};
};

View file

@ -38,5 +38,13 @@
eeprom: eeprom@8080000{
reg = <0x08080000 DT_SIZE_K(8)>;
};
rtc@40002800 {
bbram: backup_regs {
compatible = "st,stm32-bbram";
st,backup-regs = <32>;
status = "disabled";
};
};
};
};

View file

@ -38,5 +38,13 @@
eeprom: eeprom@8080000{
reg = <0x08080000 DT_SIZE_K(8)>;
};
rtc@40002800 {
bbram: backup_regs {
compatible = "st,stm32-bbram";
st,backup-regs = <32>;
status = "disabled";
};
};
};
};

View file

@ -38,5 +38,13 @@
eeprom: eeprom@8080000{
reg = <0x08080000 DT_SIZE_K(16)>;
};
rtc@40002800 {
bbram: backup_regs {
compatible = "st,stm32-bbram";
st,backup-regs = <32>;
status = "disabled";
};
};
};
};