Skip to content

Commit 0253a10

Browse files
oknshnozersaMaureenHelm
authored andcommitted
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 <[email protected]> Co-authored-by: Maureen Helm <[email protected]> Signed-off-by: Okan Sahin <[email protected]>
1 parent 5e38168 commit 0253a10

18 files changed

+87
-0
lines changed

boards/adi/max32655evkit/max32655evkit_max32655_m4.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@
7878
status = "okay";
7979
};
8080

81+
/*
82+
* ERTCO is required for counter RTC
83+
*/
84+
&clk_ertco {
85+
status = "okay";
86+
};
87+
8188
&gpio0 {
8289
status = "okay";
8390
};
@@ -122,3 +129,7 @@
122129
pinctrl-0 = <&owm_io_p0_6 &owm_pe_p0_7>;
123130
pinctrl-names = "default";
124131
};
132+
133+
&rtc_counter {
134+
status = "okay";
135+
};

boards/adi/max32655evkit/max32655evkit_max32655_m4.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ supported:
1717
- spi
1818
- adc
1919
- counter
20+
- rtc_counter
2021
- pwm
2122
- w1
2223
- flash

boards/adi/max32655fthr/max32655fthr_max32655_m4.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@
112112
status = "okay";
113113
};
114114

115+
/*
116+
* ERTCO is required for counter RTC
117+
*/
118+
&clk_ertco {
119+
status = "okay";
120+
};
121+
115122
&gpio0 {
116123
status = "okay";
117124
};
@@ -151,3 +158,7 @@
151158
pinctrl-0 = <&spi1_mosi_p0_21 &spi1_miso_p0_22 &spi1_sck_p0_23 &spi1_ss0_p0_20>;
152159
pinctrl-names = "default";
153160
};
161+
162+
&rtc_counter {
163+
status = "okay";
164+
};

boards/adi/max32655fthr/max32655fthr_max32655_m4.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ supported:
1717
- spi
1818
- adc
1919
- counter
20+
- rtc_counter
2021
- pwm
2122
- flash
2223
ram: 128

boards/adi/max32662evkit/max32662evkit.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@
102102
status = "okay";
103103
};
104104

105+
/*
106+
* ERTCO is required for counter RTC
107+
*/
108+
&clk_ertco {
109+
status = "okay";
110+
};
111+
105112
&gpio0 {
106113
status = "okay";
107114
};
@@ -120,6 +127,10 @@
120127
status = "okay";
121128
};
122129

130+
&rtc_counter {
131+
status = "okay";
132+
};
133+
123134
&spi0 {
124135
status = "okay";
125136
pinctrl-0 = <&spi0a_copi_p0_3 &spi0a_cito_p0_2 &spi0a_sck_p0_4 &spi0a_ts0_p0_5>;

boards/adi/max32662evkit/max32662evkit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ supported:
1717
- spi
1818
- adc
1919
- counter
20+
- rtc_counter
2021
- pwm
2122
- flash
2223
ram: 80

boards/adi/max32666evkit/max32666evkit_max32666_cpu0.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@
110110
pinctrl-0 = <&owm_io_p0_4 &owm_pe_p0_5>;
111111
pinctrl-names = "default";
112112
};
113+
114+
&rtc_counter {
115+
status = "okay";
116+
};

boards/adi/max32666evkit/max32666evkit_max32666_cpu0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ supported:
1616
- watchdog
1717
- adc
1818
- counter
19+
- rtc_counter
1920
- pwm
2021
- w1
2122
- flash

boards/adi/max32666fthr/max32666fthr_max32666_cpu0.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@
120120
status = "okay";
121121
};
122122

123+
&rtc_counter {
124+
status = "okay";
125+
};
126+
123127
&spi1 {
124128
status = "okay";
125129
pinctrl-0 = <&spi1_mosi_p0_17 &spi1_miso_p0_18 &spi1_sck_p0_19 &spi1_ss0_p0_16>;

boards/adi/max32666fthr/max32666fthr_max32666_cpu0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ supported:
1717
- spi
1818
- adc
1919
- counter
20+
- rtc_counter
2021
- pwm
2122
- w1
2223
- flash

0 commit comments

Comments
 (0)