drivers: rtc: rpi_pico: Add support for the Raspberry Pi Pico RTC

This adds the minimal get_time/set_time support for the rp2040 and
enables support by default on the Pico boards. This doesn't support
configuring the clock source or alarm interrupts yet.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
This commit is contained in:
Andrew Featherstone 2023-11-07 16:14:09 +00:00 committed by Fabio Baltieri
commit df8c89b528
9 changed files with 161 additions and 2 deletions

View file

@ -24,6 +24,7 @@
};
aliases {
rtc = &rtc;
watchdog0 = &wdt0;
};
@ -133,6 +134,11 @@
status = "okay";
};
&rtc {
clocks = <&clocks RPI_PICO_CLKID_CLK_RTC>;
status = "okay";
};
&adc {
status = "okay";
pinctrl-0 = <&adc_default>;