zephyr,rtc-counter

Description

Counter-based Virtual Real Time Clock (RTC).

Some counters continue running in lower power modes. The epoch offset
can be stored in NVMEM so it is preserved across resets, allowing the
RTC to maintain wall-clock time as long as the underlying counter keeps
running.

Examples

&rtc {
        counter_rtc: counter-rtc {
                compatible = "zephyr,rtc-counter";
                status = "okay";
                alarms-count = <1>;

                nvmem-cells = <&epoch_offset>;
                nvmem-cell-names = "epoch-offset";
        };
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

alarms-count

int

Number of alarms supported by RTC device. The number of
alarms defaults to 0, which indicates that the RTC has
no alarms.

nvmem-cell-names

string-array

Names for each nvmem-cells specified.

nvmem-cells

phandle-array

List of phandles to the nvmem data cells.