microcrystal,rv3028-rtc

Description

Micro Crystal RV3028 RTC, periodic time update and alarm device

Examples

/* Example node for an RV3028 RTC on the i2c0 bus. */
&i2c0 {
  status = "okay";
  clock-frequency = <I2C_BITRATE_STANDARD>;

  rv3028: rv3028@52 {
    compatible = "microcrystal,rv3028";
    reg = <0x52>;
    int-gpios = <&gpiob 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    backup-switch-mode = "disabled";
    status = "okay";

    rv3028_rtc: rtc {
      compatible = "microcrystal,rv3028-rtc";
      status = "okay";
    };
  };
};

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.

Default value: 0