adi,max32-rtc-counter

Description

ADI MAX32 compatible Counter RTC

Examples

/*
 * Enable RTC counter.
 */
&rtc_counter {
    status = "okay";
};

/*
 * Enable 32kHz square wave output on P3.1.
 */
&rtc_counter {
    status = "okay";
    pinctrl-0 = <&sqwout_p3_1>;
    pinctrl-names = "default";
    sqw-frequency = <32768>;
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

clock-source

int

Clock source to be used by the RTC peripheral. The following options
are available:
- 4: "ADI_MAX32_PRPH_CLK_SRC_ERTCO" External Real-Time Clock Oscillator
- 5: "ADI_MAX32_PRPH_CLK_SRC_INRO" Internal Ring Oscillator
The target device might not support all option please take a look on
target device user guide

Legal values: 4, 5

sqw-frequency

int

Square wave output frequency value in Hz. Default is 0, which means that
the square wave output is disabled.

Default value: 0

Legal values: 0, 1, 512, 4096, 32768

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.