boards: adi: max32: Enable counter RTC

This commit enables counter RTC for following boards

- MAX32662 EVKIT
- MAX32655 EVKIT
- MAX32655 FTHR
- MAX32666 FTHR
- MAX32666 EVKIT
- MAX32670 EVKIT
- MAX32672 FTHR
- MAX32672 EVKIT
- MAX32690 EVKIT

Co-authored-by: Sadik Ozer <sadik.ozer@analog.com>
Co-authored-by: Maureen Helm <maureen.helm@analog.com>
Signed-off-by: Okan Sahin <okan.sahin@analog.com>
This commit is contained in:
Okan Sahin 2023-11-01 11:44:33 +03:00 committed by Anas Nashif
commit 0253a1054c
18 changed files with 87 additions and 0 deletions

View file

@ -78,6 +78,13 @@
status = "okay"; status = "okay";
}; };
/*
* ERTCO is required for counter RTC
*/
&clk_ertco {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -122,3 +129,7 @@
pinctrl-0 = <&owm_io_p0_6 &owm_pe_p0_7>; pinctrl-0 = <&owm_io_p0_6 &owm_pe_p0_7>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&rtc_counter {
status = "okay";
};

View file

@ -17,6 +17,7 @@ supported:
- spi - spi
- adc - adc
- counter - counter
- rtc_counter
- pwm - pwm
- w1 - w1
- flash - flash

View file

@ -112,6 +112,13 @@
status = "okay"; status = "okay";
}; };
/*
* ERTCO is required for counter RTC
*/
&clk_ertco {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -151,3 +158,7 @@
pinctrl-0 = <&spi1_mosi_p0_21 &spi1_miso_p0_22 &spi1_sck_p0_23 &spi1_ss0_p0_20>; pinctrl-0 = <&spi1_mosi_p0_21 &spi1_miso_p0_22 &spi1_sck_p0_23 &spi1_ss0_p0_20>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&rtc_counter {
status = "okay";
};

View file

@ -17,6 +17,7 @@ supported:
- spi - spi
- adc - adc
- counter - counter
- rtc_counter
- pwm - pwm
- flash - flash
ram: 128 ram: 128

View file

@ -102,6 +102,13 @@
status = "okay"; status = "okay";
}; };
/*
* ERTCO is required for counter RTC
*/
&clk_ertco {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -120,6 +127,10 @@
status = "okay"; status = "okay";
}; };
&rtc_counter {
status = "okay";
};
&spi0 { &spi0 {
status = "okay"; status = "okay";
pinctrl-0 = <&spi0a_copi_p0_3 &spi0a_cito_p0_2 &spi0a_sck_p0_4 &spi0a_ts0_p0_5>; pinctrl-0 = <&spi0a_copi_p0_3 &spi0a_cito_p0_2 &spi0a_sck_p0_4 &spi0a_ts0_p0_5>;

View file

@ -17,6 +17,7 @@ supported:
- spi - spi
- adc - adc
- counter - counter
- rtc_counter
- pwm - pwm
- flash - flash
ram: 80 ram: 80

View file

@ -110,3 +110,7 @@
pinctrl-0 = <&owm_io_p0_4 &owm_pe_p0_5>; pinctrl-0 = <&owm_io_p0_4 &owm_pe_p0_5>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&rtc_counter {
status = "okay";
};

View file

@ -16,6 +16,7 @@ supported:
- watchdog - watchdog
- adc - adc
- counter - counter
- rtc_counter
- pwm - pwm
- w1 - w1
- flash - flash

View file

@ -120,6 +120,10 @@
status = "okay"; status = "okay";
}; };
&rtc_counter {
status = "okay";
};
&spi1 { &spi1 {
status = "okay"; status = "okay";
pinctrl-0 = <&spi1_mosi_p0_17 &spi1_miso_p0_18 &spi1_sck_p0_19 &spi1_ss0_p0_16>; pinctrl-0 = <&spi1_mosi_p0_17 &spi1_miso_p0_18 &spi1_sck_p0_19 &spi1_ss0_p0_16>;

View file

@ -17,6 +17,7 @@ supported:
- spi - spi
- adc - adc
- counter - counter
- rtc_counter
- pwm - pwm
- w1 - w1
- flash - flash

View file

@ -65,6 +65,13 @@
status = "okay"; status = "okay";
}; };
/*
* ERTCO is required for counter RTC
*/
&clk_ertco {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -96,3 +103,7 @@
pinctrl-0 = <&spi0_mosi_p0_3 &spi0_miso_p0_2 &spi0_sck_p0_4 &spi0_ss0_p0_5>; pinctrl-0 = <&spi0_mosi_p0_3 &spi0_miso_p0_2 &spi0_sck_p0_4 &spi0_ss0_p0_5>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&rtc_counter {
status = "okay";
};

View file

@ -16,6 +16,7 @@ supported:
- watchdog - watchdog
- spi - spi
- counter - counter
- rtc_counter
- pwm - pwm
- flash - flash
ram: 160 ram: 160

View file

@ -103,6 +103,13 @@
status = "okay"; status = "okay";
}; };
/*
* ERTCO is required for counter RTC
*/
&clk_ertco {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -149,3 +156,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
cs-gpios = <&gpio0 5 (GPIO_ACTIVE_LOW | MAX32_VSEL_VDDIOH)>; cs-gpios = <&gpio0 5 (GPIO_ACTIVE_LOW | MAX32_VSEL_VDDIOH)>;
}; };
&rtc_counter {
status = "okay";
};

View file

@ -17,6 +17,7 @@ supported:
- spi - spi
- adc - adc
- counter - counter
- rtc_counter
- pwm - pwm
- flash - flash
ram: 200 ram: 200

View file

@ -100,6 +100,13 @@
status = "okay"; status = "okay";
}; };
/*
* ERTCO is required for counter RTC
*/
&clk_ertco {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -148,3 +155,7 @@
pinctrl-0 = <&spi1a_mosi_p0_15 &spi1a_miso_p0_14 &spi1a_sck_p0_16 &spi1a_ss0_p0_17>; pinctrl-0 = <&spi1a_mosi_p0_15 &spi1a_miso_p0_14 &spi1a_sck_p0_16 &spi1a_ss0_p0_17>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&rtc_counter {
status = "okay";
};

View file

@ -17,6 +17,7 @@ supported:
- spi - spi
- adc - adc
- counter - counter
- rtc_counter
- pwm - pwm
- flash - flash
ram: 200 ram: 200

View file

@ -163,3 +163,7 @@
pinctrl-0 = <&owm_io_p0_8 &owm_pe_p0_7>; pinctrl-0 = <&owm_io_p0_8 &owm_pe_p0_7>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&rtc_counter {
status = "okay";
};

View file

@ -17,6 +17,7 @@ supported:
- watchdog - watchdog
- adc - adc
- counter - counter
- rtc_counter
- pwm - pwm
- w1 - w1
- flash - flash