File tree Expand file tree Collapse file tree 2 files changed +31
-6
lines changed
boards/ambiq/apollo4p_blue_kxr_evb Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 };
You can’t perform that action at this time.
0 commit comments