Skip to content

Commit

Permalink
dts: arm: ambiq: ap4 kxr rtc driver
Browse files Browse the repository at this point in the history
add rtc to kxr

Signed-off-by: Richard Wheatley <[email protected]>
  • Loading branch information
RichardSWheatley authored and aaronyegx committed Dec 23, 2024
1 parent 6dce233 commit d71ac0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boards/ambiq/apollo4p_blue_kxr_evb/apollo4p_blue_kxr_evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
led2 = &led2;
sw0 = &button0;
sw1 = &button1;
rtc = &rtc0;
};

leds {
Expand Down Expand Up @@ -79,6 +80,11 @@
status = "okay";
};

&rtc0 {
status = "okay";
clock = "XTAL";
};

&wdt0 {
status = "okay";
};
Expand Down
8 changes: 8 additions & 0 deletions dts/arm/ambiq/ambiq_apollo4p_blue.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x400000>;
};

rtc0: rtc@40004800 {
compatible = "ambiq,rtc";
reg = <0x40004800 0x210>;
interrupts = <2 0>;
alarms-count = <1>;
status = "disabled";
};

pinctrl: pin-controller@40010000 {
compatible = "ambiq,apollo4-pinctrl";
reg = <0x40010000 0x800>;
Expand Down

0 comments on commit d71ac0c

Please sign in to comment.