microchip,rtc-g1

Description

Microchip G1 RTC driver

Microchip RTC driver.

This driver configures the RTC peripheral in Microchip
microcontrollers for clock and interrupts.

Group g1 RTC driver supports following hardware peripherals:
  - module name="RTC" id="U2250" version="2.1.0"

The node has the 'rtc' node label set in your SoC's devicetree, so you can
modify it like this:

  &rtc {
      /* your modifications go here */
  };

  Example:
  Correction in ppm = (FREQCORR.VALUE * 1e6 ppm) / (8192 * 128)

  &rtc {
    cal-constant = <1048576>; /* 8192 * 128 */
  };

Properties

Properties not inherited from the base binding file.

Name

Type

Details

prescaler

int

RTC frequency equals clock-frequency divided by the prescaler value

Legal values: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024

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.

cal-constant

int

Define the constant used to calculate the calibration.

More information can be found in the datasheet of each SoC series at
RTC Frequency Correction topic.

clock-frequency

int

Clock frequency information for RTC operation

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.