Skip to content

Commit 65942a8

Browse files
Merge pull request zephyrproject-rtos#19 from AmbiqMicro/ap4-kxr-add-rtc
dts: arm: ambiq: ap4 kxr rtc driver
2 parents 2414da5 + b53b5b9 commit 65942a8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

boards/ambiq/apollo4p_blue_kxr_evb/apollo4p_blue_kxr_evb.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
led2 = &led2;
2626
sw0 = &button0;
2727
sw1 = &button1;
28+
rtc = &rtc0;
2829
};
2930

3031
leds {
@@ -67,6 +68,11 @@
6768
status = "okay";
6869
};
6970

71+
&rtc0 {
72+
status = "okay";
73+
clock = "XTAL";
74+
};
75+
7076
&wdt0 {
7177
status = "okay";
7278
};

dts/arm/ambiq/ambiq_apollo4p_blue.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,14 @@
313313
ambiq,pwrcfg = <&pwrcfg 0x4 0x10000>;
314314
};
315315

316+
rtc0: rtc@40004800 {
317+
compatible = "ambiq,rtc";
318+
reg = <0x40004800 0x210>;
319+
interrupts = <2 0>;
320+
alarms-count = <1>;
321+
status = "disabled";
322+
};
323+
316324
pinctrl: pin-controller@40010000 {
317325
compatible = "ambiq,apollo4-pinctrl";
318326
reg = <0x40010000 0x800>;

0 commit comments

Comments
 (0)