mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
ARM: dts: imx6qdl-hummingboard: Add rtc0 and rtc1 aliases to fix hctosys
HummingBoard has two RTCs, first integrated within SoC that can be used to wake up from sleep - and a second on the carrier board including back-up battery which is intended for keeping time during power-off. Add aliases for both, ensuring that the battery-backed clock is primary rtc and used by default during boot for restoring system time. Fixes keeping time across power-cycle observed on Debian, which sets RTC_HCTOSYS_DEVICE="rtc0". Signed-off-by: Josua Mayer <josua@solid-run.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
8458002b76
commit
2a33952350
|
|
@ -41,6 +41,11 @@
|
|||
#include <dt-bindings/sound/fsl-imx-audmux.h>
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
rtc0 = &carrier_rtc;
|
||||
rtc1 = &snvs_rtc;
|
||||
};
|
||||
|
||||
/* Will be filled by the bootloader */
|
||||
memory@10000000 {
|
||||
device_type = "memory";
|
||||
|
|
@ -187,7 +192,7 @@ &i2c1 {
|
|||
status = "okay";
|
||||
|
||||
/* Pro baseboard model */
|
||||
rtc@68 {
|
||||
carrier_rtc: rtc@68 {
|
||||
compatible = "nxp,pcf8523";
|
||||
reg = <0x68>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -41,6 +41,11 @@
|
|||
#include <dt-bindings/sound/fsl-imx-audmux.h>
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
rtc0 = &pcf8523;
|
||||
rtc1 = &snvs_rtc;
|
||||
};
|
||||
|
||||
/* Will be filled by the bootloader */
|
||||
memory@10000000 {
|
||||
device_type = "memory";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user