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:
parent
4c880f4b0a
commit
df8c89b528
9 changed files with 161 additions and 2 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue