Commit Graph
100 Commits
Author SHA1 Message Date
Lou Tianhao aa7b7f225a change(esp_hw_support): change modem clock implementation 2024-10-11 14:01:59 +08:00
Lou Tian Hao 9be8822b61 Merge branch 'feature/esp32c61_light_sleep_support_stage_deepsleep' into 'master'
feat(esp_hw_support): support esp32c61 deepsleep

Closes PM-203 and IDF-9245

See merge request espressif/esp-idf!33301
2024-09-20 15:30:30 +08:00
Lou Tianhao bc0404ae03 fix(ci): some actions taken to pass CI 2024-09-20 14:10:45 +08:00
Lou Tianhao 46350e362e fix(esp_hw_support): add clock retention contents for esp32c61 & esp32c5 2024-09-20 14:09:29 +08:00
Lou Tianhao 6be09eb5b8 change(pm): replace SOC_CLK_RC32K_NOT_TO_USE with CONFIG_ESP_CLK_RC32K_NOT_TO_USE 2024-09-20 14:07:18 +08:00
Lou Tianhao 9529c4ece4 fix(esp_hw_support): fix mmu memory powered down issue by software backup and restore mmu table content
squash! fix(esp_hw_support): fix mmu memory powered down issue by software backup and restore mmu table content
2024-09-20 14:07:18 +08:00
Lou Tianhao a30ed69f69 feat(pm): support top retention for esp32c61 2024-09-20 14:07:18 +08:00
Lou Tianhao d9c15bb772 fix(ci): some actions taken to pass CI 2024-09-20 10:53:05 +08:00
Lou Tianhao d70f24e414 feat(pm): support example deepsleep for esp32c61 2024-09-20 10:53:05 +08:00
Lou Tianhao 1604cef916 chanage(example/power_save): add wifi band (2.4 GHz and 5 GHz) menuconfig option for esp32c5 2024-09-19 20:04:44 +08:00
Lou Tian Hao 3415ff27d6 Merge branch 'fix/regdma_wait_node_issue' into 'master'
fix(pm): fix the issue of regdma wait node to immediately return to done caused by regdma wait mode comparator for esp32c6, esp32h2 and esp32p4

Closes PM-202

See merge request espressif/esp-idf!33547
2024-09-18 20:52:59 +08:00
Lou Tianhao dd3d5f1598 fix(ci): :fix the issue of regdma wait node to immediately return to done caused by regdma wait mode comparator for esp32c6 & esp32h2 &esp32p4 2024-09-14 19:21:51 +08:00
Lou Tian Hao c7d532049a Merge branch 'feature/esp32c61_light_sleep_support_stage_2' into 'master'
feat(esp_hw_support): esp32c61 sleep support (Stage 2: support basic pmu sleep function)

Closes IDF-9248, IDF-9247, IDF-9246, IDF-10993, IDF-9250, PM-203, and IDF-9244

See merge request espressif/esp-idf!33294
2024-09-11 15:11:58 +08:00
Lou Tianhao d242b662c4 change(pm): remove some cache regs that don not need to backup now 2024-09-10 19:37:50 +08:00
Lou Tianhao 50ec7f990c fix(ci): take some actions to pass ci 2024-09-10 19:37:50 +08:00
Lou Tianhao ac76402aff fix(pm): write back cache for psram 2024-09-10 19:37:50 +08:00
Lou Tianhao d5c58a1d8c fix(pm): add hp power_supply_wait_time_us to avoid power glitch 2024-09-10 19:37:45 +08:00
Lou Tianhao 46af50ee5a fix(pm): mspi cannot access flash when pd pll source 2024-09-10 10:45:57 +08:00
Lou Tianhao d4447739a9 example(light_sleep); enable lp_timer/gpio/uart wakeup for esp32c61 2024-09-10 10:45:57 +08:00
Lou Tianhao fd94fe1161 feat(pm): support cpu retention for esp32c61 2024-09-10 10:45:52 +08:00
Lou Tianhao c9434aaebf change(pm): update pmu analog param for lightsleep(including pu xtal and fosc) & deepsleep 2024-09-10 10:44:13 +08:00
Lou Tianhao 0926a700c2 feat(pm): support basic pmu sleep 2024-09-10 10:44:13 +08:00
Lou Tianhao 4393343ac9 fix(ci): some actions taken to pass ci 2024-08-29 14:15:41 +08:00
Lou Tianhao 02f5e0f98c change(pm): remove rc32k for esp32c5 2024-08-28 10:44:09 +08:00
Lou Tianhao d6737c3207 refactor(esp_hw_support): refactor sleep clock, split it to support multiple targets 2024-08-28 10:44:08 +08:00
Lou Tianhao 5e5fb89c10 change(esp_hw_support): modify the root clock source of pmu modem state to pll for esp32c5 2024-08-28 10:44:08 +08:00
Lou Tianhao bfba80b778 fix(pm): write back cache for psram and hold psram cs1
squash! fix(pm): write back cache for psram and hold psram cs1
2024-08-28 10:44:08 +08:00
Lou Tianhao 47a0677525 feat(pm): support ext1_wakeup/esp_deep_sleep_enable_gpio_wakeup for esp32c5mp deepsleep 2024-08-28 10:44:08 +08:00
Lou Tianhao 04485a655f change(esp_hw_support): set cpu clk 80m by selecting source pll240m and divider 3
squash! change(esp_hw_support): set cpu clk 80m by selecting source pll240m and divider 3

squash! change(esp_hw_support): set cpu clk 80m by selecting source pll240m and divider 3

squash! change(esp_hw_support): set cpu clk 80m by selecting source pll240m and divider 3
2024-08-28 10:44:08 +08:00
Lou Tianhao 4a124913c4 fix(pm): mspi cannot access flash when pd pll source 2024-08-28 10:44:08 +08:00
Lou Tianhao d891995a7a feat(pm): support sleep_gpio for esp32c5 2024-08-28 10:44:08 +08:00
Lou Tianhao ef8ff691aa change(esp_hw_support): update pmu sleep analog parameter
change(pm): update pmu analog param for pu xtal or pu rc_fast during sleep

change(pm): update pmu analog param for reducing the impact of temperature on chip voltage
2024-08-28 10:44:08 +08:00
Lou Tianhao 24aa547c80 change(esp_hw_support): change regdma link entry num 2024-08-28 10:44:08 +08:00
Lou Tianhao a0da9ade35 feat(esp_hw_support): support top domain powered down during sleep for esp32c5 2024-08-28 10:44:08 +08:00
Lou Tianhao 50791931a1 feat(esp_hw_support): support the new version regdma driver for esp32c5mp 2024-08-28 10:44:08 +08:00
Lou Tianhao 6c9ed891ee feat(esp_hw_support): support cpu domain powered down during sleep for esp32c5 2024-08-28 10:44:08 +08:00
Lou Tianhao 980ec70d0a feat(esp_hw_support): support pmu init and sleep for esp32c5
fix(ci): add efuse header in pmu_sleep
2024-08-28 10:44:08 +08:00
Lou Tianhao 3e70dafa0b change(soc): update pmu register context structure and driver for esp32c5 2024-08-28 10:44:08 +08:00
Lou Tianhao 6274040f38 feat(pm): support modem clock for esp32c61 2024-08-13 11:03:21 +08:00
Lou Tianhao c00b55e9e6 fix(soc): c61 update pmu_struct to v1.1.14 2024-07-12 17:39:08 +08:00
Lou Tian Hao ede24b0440 Merge branch 'docs/add_the_description_of_gpio_wakeup_in_lightsleep_when_pd_top' into 'master'
docs(pm): add description for gpio_wakeup

Closes PM-161

See merge request espressif/esp-idf!31709
2024-06-26 14:00:09 +08:00
Lou Tianhao afbd7e2a13 docs(pm): add description for gpio_wakeup 2024-06-26 11:33:55 +08:00
Lou Tian Hao ec9c9413bc Merge branch 'feature/esp32c5mp_light_sleep_support_stage_1' into 'master'
feat(esp_hw_support): esp32c5mp sleep support (Stage 1: support modem clock)

See merge request espressif/esp-idf!31028
2024-06-19 19:09:43 +08:00
Lou Tianhao 1b65a70928 change(esp_hw_support): bypass esp_sleep_pd_config 2024-06-19 11:19:42 +08:00
Lou Tianhao 8c52c983b4 feat(esp_hw_support): support modem clock for esp32c5mp 2024-06-19 11:19:37 +08:00
Lou Tian Hao 4121274449 Merge branch 'fix/core1_access_cache_when_core0_close_cache_during_sleep' into 'master'
fix(esp_system): fix core1 access cache when core0 close cache during sleep

See merge request espressif/esp-idf!30941
2024-05-21 10:52:18 +08:00
Lou Tianhao df8fd000d4 fix(esp_system): fix core1 access cache when core0 close cache during sleep 2024-05-20 14:49:49 +08:00
Lou Tianhao e3ec2724e7 remove(wifi): sleep_retention member in struct wifi_osi_funcs_t 2024-04-12 14:14:13 +08:00
Lou Tianhao 4061e282dd draft(i2c): need to support regdma_i2c for esp32c5beta3 2024-04-12 14:14:06 +08:00
Lou Tianhao 534e7a528f feat(pm): support pd top for esp32c5beta3 2024-04-12 11:34:54 +08:00
Lou Tianhao 2c59c4fbf2 fix(ci): bypass c5mp ci check 2024-04-10 20:45:49 +08:00
Lou Tianhao 22c66db66b draft(esp_hw_support): need to support rtcio for c5beta3 2024-04-10 11:45:15 +08:00
Lou Tianhao 3fb4909483 feat(example): support esp32c5 timer/gpio/uart wakeup 2024-04-10 11:45:04 +08:00
Lou Tianhao 86221b2ed7 change(esp_hw_support): remove fast osc calibration during light sleep(need c5mp to fix) 2024-04-09 20:58:42 +08:00
Lou Tianhao 8b3b1470b5 change(esp_hw_support): support cpu retention and power off during sleep for esp32c5 beta3 2024-04-09 20:58:42 +08:00
Lou Tian Hao 5fa57d12b2 Merge branch 'feature/esp32c5beta3_light_sleep_support_stage_0' into 'master'
feat(esp_hw_support): esp32c5 sleep support (Stage 1: support modem clock)

Closes IDF-8845

See merge request espressif/esp-idf!29839
2024-03-27 14:33:04 +08:00
Lou Tianhao 85e803ded4 docs(pm): add description for newly added filed in modem_syscon 2024-03-27 11:40:32 +08:00
Lou Tianhao 4535dfdd49 change(pm): esp32c5 hardware does not have clk_fe_cal_160m_en 2024-03-26 19:59:05 +08:00
Lou Tianhao bd4147b5ef fix(ci): add sdkconfig head and change some macro 2024-03-26 19:59:00 +08:00
Lou Tianhao f5487c72ab change(pm): move the modem_clock-related code outside SOC_PM_SUPPORT_PMU_MODEM_STATE 2024-03-26 19:55:06 +08:00
Lou Tian Hao ebbff30163 Merge branch 'docs/add_internal_inspection_mechanism_description_for_ext1' into 'master'
docs(pm): add internal inspection mechanism description doc for ext1

See merge request espressif/esp-idf!29149
2024-02-23 13:24:11 +08:00
Lou Tian Hao 5e9d02549f docs(pm): improve chinese description 2024-02-23 11:05:49 +08:00
Lou Tianhao 71c8879099 docs(pm): add internal inspection mechanism description doc 2024-02-22 19:24:08 +08:00
Lou Tian Hao 8bcac0bd7a Merge branch 'change/support_test_io_wakeup' into 'master'
change(pm): change test_io_wakeup

See merge request espressif/esp-idf!28368
2024-01-11 16:53:09 +08:00
Lou Tianhao 19f2149390 change(pm): change test_io_wakeup 2024-01-11 11:07:16 +08:00
Lou Tian Hao d8dfdd9c6f Merge branch 'feature/support_test_io_wakeup' into 'master'
feat(pm): add test_io_wakeup

Closes PM-66

See merge request espressif/esp-idf!27460
2024-01-08 15:37:03 +08:00
Lou Tianhao e28606aed2 feat(pm): add test_io_wakeup 2024-01-08 11:12:25 +08:00
Lou Tian Hao b74cc4637b Merge branch 'feature/support_hw_trigger_regdma_when_pu_top' into 'master'
fix(pm):  trigger regdma retention by PMU when TOP is not power down on esp32H2

Closes PM-47 and PM-65

See merge request espressif/esp-idf!28046
2024-01-08 10:44:06 +08:00
Lou Tianhao aed3127d19 feat(pm): support PMU trigger regdma when PU TOP 2024-01-05 16:17:32 +08:00
Lou Tian Hao fedb3d9f9d Merge branch 'change/change_regdma_power_issue_macro' into 'master'
change(pm): change name SOC_PM_RETENTION_HAS_REGDMA_POWER_BUG

Closes PM-45

See merge request espressif/esp-idf!27934
2023-12-19 11:19:51 +08:00
Lou Tianhao d8b1f7207a change(pm): change macro SOC_PM_RETENTION_HAS_REGDMA_POWER_BUG 2023-12-15 15:04:06 +08:00
Lou Tian Hao e4ba9ac3c4 Merge branch 'doc/change_deepsleep_example_readme' into 'master'
Doc/change deepsleep example readme

Closes IDFGH-11523

See merge request espressif/esp-idf!27413
2023-11-29 11:32:01 +08:00
Lou Tianhao 29488207ff docs(pm):add uart wakeup description when pd top 2023-11-28 19:31:33 +08:00
Lou Tianhao e54684754c docs(pm):add gpio wakeup description when pd top 2023-11-28 12:02:25 +08:00
Lou Tianhao 5793945499 docs(pm):change_deepsleep_example_readme 2023-11-28 12:02:25 +08:00
Lou Tian Hao cde12242b4 Merge branch 'feature/support_ext1_clear_spec_pins' into 'master'
feat: support ext1 add or remove spec pin for chips which support ext1 wakeup

Closes IDFGH-11440

See merge request espressif/esp-idf!26999
2023-11-21 11:29:33 +08:00
Lou Tianhao ea7cfc40ae change(pm/ext1): replace esp_sleep_clear_ext1_wakeup_io by esp_sleep_disable_ext1_wakeup_io 2023-11-20 19:30:50 +08:00
Lou Tianhao b86d550ec5 change(pm/ext): remove ext0_wakeup_clear and ext1_wakeup_clear 2023-11-20 16:36:50 +08:00
Lou Tianhao 8db9f79bd2 change(pm/ext1): replace esp_sleep_set_ext1_wakeup_io by esp_sleep_enable_ext1_wakeup_io 2023-11-20 16:04:01 +08:00
Lou Tianhao d97f45b3a8 bugfix: ext0_wakeup_prepare func when s_config.wakeup_triggers & RTC_EXT0_TRIG_EN == false 2023-11-20 16:03:57 +08:00
Lou Tianhao 7343d16a13 change(pm): add ESP_PM_LOCK_MAX in esp_pm_lock_type_t and change some description for esp_pm_lock_create 2023-11-17 16:24:01 +08:00
Lou Tianhao aaa1ea8af1 docs(pm/ext1): support esp_sleep_enable_io_ext1_wakeup and esp_sleep_disable_io_ext1_wakeup 2023-11-17 16:23:56 +08:00
Lou Tianhao a02f72bb81 change(pm/ext1): replace deprecated ext1 func 2023-11-17 16:20:54 +08:00
Lou Tianhao 5b91acb1a1 fix(pm/ext1): ext1_wakeup_prepare func when s_config.wakeup_triggers & RTC_EXT1_TRIG_EN == false 2023-11-17 16:20:38 +08:00
Lou Tianhao cc0e73a11f feat(pm/ext1): support esp_sleep_enable_io_ext1_wakeup and esp_sleep_disable_io_ext1_wakeup
squash! feat(pm/ext1): support esp_sleep_enable_io_ext1_wakeup and esp_sleep_disable_io_ext1_wakeup
2023-11-17 16:20:38 +08:00
Lou Tianhao 7469df6c14 fix(pm/ext1): fix c6 h2 lp_aon_ll_ext1_set_wakeup_pins func 2023-11-17 11:38:20 +08:00
Lou Tian Hao ca32e5268b Merge branch 'change/change_some_code_for_sleep_callback' into 'master'
change(pm): change sleep callback implement

See merge request espressif/esp-idf!26461
2023-10-24 10:15:09 +08:00
Lou Tianhao 13a405a32b change(pm): Change sleep callback implement 2023-10-23 08:13:47 +00:00
Lou Tianhao 2d3f95dad4 bugfix(pm): fix esp_sleep_enable_ext1_wakeup func
regression introduced in commit<808a01e65>
2023-10-10 19:30:38 +08:00
Lou Tian Hao adae54faca Merge branch 'bringup/support_callback_mechanism_in_lightsleep_flow' into 'master'
Power Management: support_callback_mechanism_in_lightsleep_flow

Closes WIFI-5936

See merge request espressif/esp-idf!24597
2023-10-08 20:16:01 +08:00
Lou Tianhao 450e685cb7 feat(PowerManagement/lightsleep): Support ESP_SLEEP_EVENT_CALLBACKS 2023-09-25 15:39:18 +08:00
Lou Tianhao a28a09855d feat(PowerManagement/lightsleep): Support PM_LIGHT_SLEEP_CALLBACKS 2023-09-25 15:39:12 +08:00
Lou Tianhao 34f8f1bb2c feat(PowerManagement/lightsleep): Define and export a strong symbol of rv_core_critical_regs_restore 2023-09-20 21:49:57 +08:00
Lou Tian Hao 925a7310ca Merge branch 'feat/add_internal_pull_up_or_pull_down_option_for_deepsleep_wakeup_prepare' into 'master'
feat(pm): add internal pull-up/downs option for gpio used for deepsleep wakeup

Closes IDFGH-10994

See merge request espressif/esp-idf!25972
2023-09-20 10:44:07 +08:00
Lou Tianhao 88364b8b11 feat(pm): add internal pull-up/downs option for gpio used for deepsleep wakeup
stash
2023-09-19 11:00:59 +08:00
Lou Tian Hao 5690d7b4dc Merge branch 'docs/add_ext1_wakeup_per_pin_description_for_c6_and_h2' into 'master'
docs(pm): add ext1 wakeup per pin description

See merge request espressif/esp-idf!25759
2023-09-11 13:07:48 +08:00
Lou Tianhao 72d7a7884d docs(pm): add ext1 wakeup per pin description 2023-09-06 11:59:55 +08:00
Lou Tian Hao 0878b9bdcd Merge branch 'feature/support_EXT1_WAKEUP_MODE_PER_PIN_for_esp32c6_and_esp32h2' into 'master'
Feature: support ext1 wakeup mode per pin for esp32c6 and esp32h2

See merge request espressif/esp-idf!24875
2023-08-10 14:01:03 +08:00
Lou Tianhao 808a01e656 feat(pm/deepsleep): Support EXT1_WAKEUP_MODE_PER_PIN 2023-08-09 19:46:25 +08:00
Lou Tianhao d59e91c030 feature: support_hp_regi2c_for_esp32c6 2023-08-09 14:24:31 +08:00