Skip to content

Commit

Permalink
boards: adi: max32662evkit: Enable RTC
Browse files Browse the repository at this point in the history
This commit enables RTC for MAX32662 EVKIT.
Default alarm count is set as 1

Co-authored-by: Okan Sahin <[email protected]>
Signed-off-by: Maureen Helm <[email protected]>
  • Loading branch information
MaureenHelm and oknshn committed Sep 16, 2024
1 parent f72ec79 commit deb86c0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/adi/max32662evkit/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Below interfaces are supported by Zephyr on MAX32662EVKIT.
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| RTC | on-chip | Real Time Clock |
+-----------+------------+-------------------------------------+
| DMA | on-chip | dma controller |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
Expand Down
13 changes: 13 additions & 0 deletions boards/adi/max32662evkit/max32662evkit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
led0 = &led1;
sw0 = &pb1;
watchdog0 = &wdt0;
rtc = &rtc;
};
};

Expand All @@ -66,6 +67,13 @@
status = "okay";
};

/*
* ERTCO requires for RTC
*/
&clk_ertco {
status = "okay";
};

&gpio0 {
status = "okay";
};
Expand All @@ -84,6 +92,11 @@
status = "okay";
};

&rtc {
status = "okay";
alarms-count = <1>;
};

&spi0 {
status = "okay";
pinctrl-0 = <&spi0a_copi_p0_3 &spi0a_cito_p0_2 &spi0a_sck_p0_4 &spi0a_ts0_p0_5>;
Expand Down
1 change: 1 addition & 0 deletions boards/adi/max32662evkit/max32662evkit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ supported:
- trng
- watchdog
- spi
- rtc
- adc
- counter
ram: 80
Expand Down

0 comments on commit deb86c0

Please sign in to comment.