Skip to content

Commit 828e47c

Browse files
RichardSWheatleykartben
authored andcommitted
dts: arm: ambiq: ap4 kxr rtc driver
add rtc to kxr Signed-off-by: Richard Wheatley <[email protected]>
1 parent 0adef5e commit 828e47c

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
@@ -26,6 +26,7 @@
2626
led2 = &led2;
2727
sw0 = &button0;
2828
sw1 = &button1;
29+
rtc = &rtc0;
2930
};
3031

3132
leds {
@@ -79,6 +80,11 @@
7980
status = "okay";
8081
};
8182

83+
&rtc0 {
84+
status = "okay";
85+
clock = "XTAL";
86+
};
87+
8288
&wdt0 {
8389
status = "okay";
8490
};

dts/arm/ambiq/ambiq_apollo4p_blue.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,14 @@
331331
ambiq,pwrcfg = <&pwrcfg 0x4 0x400000>;
332332
};
333333

334+
rtc0: rtc@40004800 {
335+
compatible = "ambiq,rtc";
336+
reg = <0x40004800 0x210>;
337+
interrupts = <2 0>;
338+
alarms-count = <1>;
339+
status = "disabled";
340+
};
341+
334342
pinctrl: pin-controller@40010000 {
335343
compatible = "ambiq,apollo4-pinctrl";
336344
reg = <0x40010000 0x800>;

0 commit comments

Comments
 (0)