Skip to content

Commit 42feaf4

Browse files
Merge pull request zephyrproject-rtos#20 from AmbiqMicro/ap4-kxr-pm-updates
dts: arm: ambiq: and pm to kxr cpu
2 parents 2a4bf98 + 46b14fa commit 42feaf4

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

boards/ambiq/apollo4p_blue_kxr_evb/apollo4p_blue_kxr_evb.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ supported:
1414
- gpio
1515
- spi
1616
- i2c
17+
- rtc
18+
- adc
19+
- hwinfo
1720
- clock_control
1821
- ble
1922
- usbd

dts/arm/ambiq/ambiq_apollo4p_blue.dtsi

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,35 @@
3333
cpu0: cpu@0 {
3434
compatible = "arm,cortex-m4f";
3535
reg = <0>;
36-
#address-cells = <1>;
37-
#size-cells = <1>;
3836

39-
itm: itm@e0000000 {
40-
compatible = "arm,armv7m-itm";
41-
reg = <0xe0000000 0x1000>;
42-
swo-ref-frequency = <DT_FREQ_M(48)>;
37+
cpu-power-states = <&idle &suspend_to_ram>;
38+
};
39+
40+
power-states {
41+
idle: idle {
42+
compatible = "zephyr,power-state";
43+
power-state-name = "suspend-to-idle";
44+
/*
45+
* As Apollo4 datasheet, run_to_sleep and sleep_to_run
46+
* transition time are both lower than 1us, but
47+
* considering the software overhead we set a
48+
* bigger value.
49+
*/
50+
min-residency-us = <100>;
51+
exit-latency-us = <5>;
52+
};
53+
54+
suspend_to_ram: suspend_to_ram {
55+
compatible = "zephyr,power-state";
56+
power-state-name = "suspend-to-ram";
57+
/*
58+
* As Apollo4 datasheet, run_to_deepsleep transition
59+
* time is lower than 1us and deepsleep_to_run
60+
* transition time is about 25us, but considering
61+
* the software overhead, we set a bigger value.
62+
*/
63+
min-residency-us = <2000>;
64+
exit-latency-us = <125>;
4365
};
4466
};
4567
};

0 commit comments

Comments
 (0)