adi,max32-rtc-counter

Description

ADI MAX32 compatible Counter RTC

Examples

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

/* Use INRO as clock source */
&clk_32k {
        status = "okay";
        clocks = <&clk_inro>;
};

/* Use RTC_CLK_IN as clock source */
&clk_rtc_in {
  status = "okay";
  pinctrl-0 = <&rtc_clk_in_p0_12>;
  pinctrl-names = "default";
};

&clk_32k {
  status = "okay";
  clocks = <&clk_rtc_in>;
};

&rtc_counter {
  status = "okay";
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

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.