microcrystal,rv3032-mfd (on i2c bus)

Description

Microcrystal rv-3032-c7 I2C MFD

The following example displays the node layout
with every possible partial driver included.

rv3032: rv3032c7@51 {
  compatible = "microcrystal,rv3032-mfd";
  reg = <0x51>;
  int-gpios = <&porta 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
  evi-gpios = <&porta 10 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
  backup-switch-mode = "disabled";
  always-on;
  status = "okay";

  rtc0: rv3032_rtc {
    compatible = "microcrystal,rv3032";
    status = "okay";
  };

  counter0: rv3032_counter {
    compatible = "microcrystal,rv3032-counter";
    status = "okay";
  };

  temp0: rv3032_temp {
    compatible = "microcrystal,rv3032-temp";
    low-temp = <40>;
    high-temp = <105>;
    status = "okay";
  };
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

int-gpios

phandle-array

GPIO connected to the RV3028 INT interrupt output. This signal is open-drain, active low.

evi-gpios

phandle-array

GPIO connected to the RV3028 EVI event/interrupt input. This signal is open-drain, active low.

always-on

boolean

AON stand for - Always On. This is not part of rv-3032-c7 chip functionality but
real use case where main power is kept always on and advanced backup-switch is not
used as expected.
  - true  : Driver act like power was not interrupted on next device init
  - false : Every boot and execution of driver init function is like fresh boot.
            alarms are cleaned and device is clean.

backup-switch-mode

string

Automatic backup switchover function selection:
  - disabled: The switchover function is disabled - only one power supply available (VDD)
  - direct: Direct Switching Mode (DSM): when VDD < VBACKUP, switchover occurs from VDD to
    VBACKUP without requiring VDD to drop below VTH:LSM (2.0 V)
  - level: Level Switching Mode (LSM): when VDD < VTH:LSM (2.0 V) AND VBACKUP > VTH:LSM,
    switchover occurs from VDD to VBACKUP

This property is required.

Legal values: 'disabled', 'direct', 'level'

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.