laokaiyao
330149f3a6
i2c: support i2c on esp32h2
2023-02-01 11:23:11 +08:00
wuzhenghui
7a4d38eac1
example: bringup light sleep example for esp32c6
2023-01-31 22:12:58 +08:00
wuzhenghui
cd9d914ba0
codeclean: clean esp32c6 rtc_sleep related code
2023-01-31 22:12:58 +08:00
Li Shuai
c0ddaa5920
lp_timer: add hal-layer codes for esp32c6
2023-01-31 22:12:27 +08:00
Li Shuai
59cf87fe7d
pmu: sleep initialization and sleep start support for esp32c6
...
Initialize the pmu sleep machine constant when pmu is initialized, and calculate
the pmu sleep time adjustment value and hardware configuration value according
to the machine constant during system sleep.
Calibrate fast OSC before each sleep and use the calibration value to calculate
PMU hardware wait cycles when use the fast OSC as the work clock.
2023-01-31 22:12:27 +08:00
Li Shuai
6c1f58f135
pmu: add hal layer codes for esp32c6
2023-01-31 22:12:27 +08:00
Li Shuai
34d0464662
pmu: pmu register address mapping structure redefinition
2023-01-31 22:12:22 +08:00
morris
3151f9c8f1
usj: bringup on esp32h2
2023-01-31 16:21:47 +08:00
morris
dbca74f1ef
gdma: prevent mutli-channels connect to the same peripheral
...
1. add check in the gdma driver, to prevent multiple channels connecting
to the same peripheral
2. memory copy DMA ID will occupy the peripheral's DMA ID on some ESP
targets (e.g. esp32c3/s3). We should search for a free one when
install async memcpy driver.
Closes https://github.com/espressif/esp-idf/issues/10575
2023-01-31 15:18:19 +08:00
Song Ruo Jing
ad55230b0a
ledc: Add support for esp32h2; Refactor ledc driver clock source selection related code
...
LEDC examples and test cases are supported on ESP32H2.
Switch to use general clock IDs for ledc_clk_cfg_t enum values.
Deprecate LEDC_USE_RTC8M_CLK.
2023-01-30 19:19:34 +08:00
morris
a15830bcfc
Merge branch 'bugfix/correct_default_apb_frequency' into 'master'
...
soc: fix wrong APB_CLK_FREQ value on esp32c6
Closes IDF-6343
See merge request espressif/esp-idf!22080
2023-01-30 17:12:55 +08:00
Mahavir Jain
9374ebe529
esp32h2: add support for AES peripheral
...
Closes IDF-6280
2023-01-30 10:09:14 +05:30
Mahavir Jain
8203d40fc3
esp32h2: add support for SHA peripheral
...
Closes IDF-6275
2023-01-30 10:08:58 +05:30
morris
774a05399b
soc: fix wrong APB_CLK_FREQ value on esp32c6
2023-01-28 06:33:23 +00:00
Mahavir Jain
e7ca2f2622
Merge branch 'feature/esp32c6_enable_hmac_and_ds_support' into 'master'
...
Feature/esp32c6 enable hmac and ds support
Closes IDF-5355 and IDF-5360
See merge request espressif/esp-idf!21761
2023-01-20 20:30:54 +08:00
Marius Vikhammer
e2d3f7c54c
Merge branch 'feature/c6_wdt' into 'master'
...
wdt: add support for WDTs on C6
Closes IDF-5935 and IDF-5340
See merge request espressif/esp-idf!21038
2023-01-20 10:36:42 +08:00
Alexey Lapshin
0f97a24892
sdio_slave: fix strict aliasing violation for sdio_ringbuf_recv()
...
This happened because of passing sdio_slave_hal_send_desc_t** to function
sdio_ringbuf_recv() which is declared to have char** as input parameter
2023-01-19 13:21:27 +07:00
Marius Vikhammer
5e9e8c396f
wdt: add support for WDTs on C6
2023-01-19 12:58:26 +08:00
Aditya Patwardhan
4831edc624
esp32c6/hal: Added support for HMAC and DS on esp32c6
...
* Update DS test_apps for esp32c6 SoC
2023-01-19 09:53:34 +05:30
Kevin (Lao Kaiyao)
668e125dd4
Merge branch 'feature/support_i2s_on_h2' into 'master'
...
i2s: support i2s on esp32h2
Closes IDF-6219 and IDF-6700
See merge request espressif/esp-idf!21948
2023-01-19 10:47:33 +08:00
Alexey Lapshin
af83cd60e1
Revert "sdio_slave: workaround the sdio_slave crash issue with release config + GCC11"
...
This reverts commit 19add3fb05
.
2023-01-19 00:04:06 +07:00
Wan Lei
e7c520e849
Merge branch 'feature/add_spi_ckl_source_selectable' into 'master'
...
spi_master: add feature spi periph clk source selectable
Closes IDF-6289
See merge request espressif/esp-idf!21324
2023-01-19 00:54:24 +08:00
laokaiyao
c79187fdeb
i2s: support i2s on esp32h2
2023-01-18 18:42:56 +08:00
Armando (Dou Yiwen)
9f3fd2802f
Merge branch 'feature/sdio_slave_c6' into 'master'
...
sdio: c6 support
Closes IDF-5809
See merge request espressif/esp-idf!21486
2023-01-18 16:42:32 +08:00
Song Ruo Jing
9db3865cb7
Merge branch 'feature/esp32h2_gpio_support' into 'master'
...
gpio: Add support for esp32h2
Closes IDF-6227, IDF-6388, IDF-6403, and IDF-6676
See merge request espressif/esp-idf!21986
2023-01-18 16:24:13 +08:00
wanlei
184145817c
spi_master: add feature spi periph clk source selectable
2023-01-18 15:40:12 +08:00
Song Ruo Jing
4c8fdc31f9
gpio: Add support for esp32h2
2023-01-18 11:41:12 +08:00
morris
b589fff0af
rmt: support esp32h2
2023-01-18 11:40:35 +08:00
Armando
d39f0310de
sdio: split sdio ll version init, and hs_enable
2023-01-18 02:34:46 +00:00
Armando
f1de9faa71
sdio: c6 support
2023-01-18 02:34:46 +00:00
morris
d9825f5165
Merge branch 'feature/add_clk_tree_get_frequency_api' into 'master'
...
clk_tree: Stage 4 - Add a general API to get the frequency of different clocks
Closes IDF-6569
See merge request espressif/esp-idf!21830
2023-01-17 17:08:23 +08:00
Kevin (Lao Kaiyao)
5d61788032
Merge branch 'bugfix/i2s_fix_incorrect_sclk_in_legacy_driver' into 'master'
...
i2s: fix incorrect sclk in legacy driver
See merge request espressif/esp-idf!21997
2023-01-17 15:34:06 +08:00
C.S.M
01913f6d01
Merge branch 'feature/esp32h2_build_test' into 'master'
...
ESP32H2 (CI): enable CI build stage test on esp32h2
Closes IDF-6263 and IDF-6264
See merge request espressif/esp-idf!21954
2023-01-17 13:28:11 +08:00
Kevin (Lao Kaiyao)
c5af31fa19
Merge branch 'feature/support_pcnt_on_h2' into 'master'
...
pcnt: support pcnt on esp32h2
Closes IDF-6221 and IDF-6669
See merge request espressif/esp-idf!21950
2023-01-17 12:20:00 +08:00
laokaiyao
3908f4c84d
i2s_test: fix output half sample rate failure
2023-01-17 11:37:22 +08:00
laokaiyao
c25fc7d242
i2s: fix incorrect sclk in legacy driver
2023-01-17 11:34:25 +08:00
Song Ruo Jing
c7c2462d39
system: Add complete support for disabling ROM logging by calling esp_deep_sleep_disable_rom_logging on C2, C3, and S3
2023-01-17 11:30:43 +08:00
Song Ruo Jing
2c9aa4559c
clk_tree: Add a general API to get the frequency of different clocks
...
Add basic clk_tree driver and hal implementation.
2023-01-17 11:30:24 +08:00
Cao Sen Miao
94120b82c2
esp32h2: add build test
2023-01-17 10:29:04 +08:00
laokaiyao
482a26e284
sdm: support sdm on esp32h2
2023-01-13 16:55:51 +08:00
laokaiyao
2730186561
pcnt: support pcnt on esp32h2
2023-01-13 16:11:50 +08:00
morris
ce84476870
gptimer: support esp32h2
2023-01-12 14:10:11 +00:00
Armando (Dou Yiwen)
d1b8da74d8
Merge branch 'refactor/improve_adc_power_maintanance' into 'master'
...
adc: improve adc power maintanance
Closes IDF-6114 and IDF-6318
See merge request espressif/esp-idf!21151
2023-01-12 20:30:36 +08:00
morris
f7c3d791a2
Merge branch 'feature/systimer_support_esp32h2' into 'master'
...
systimer: assign counter and alarm in esp_hw_support
Closes IDF-6484, IDF-5323, and IDF-6230
See merge request espressif/esp-idf!21984
2023-01-12 11:01:17 +08:00
morris
1f3507eac0
Merge branch 'feature/gdma_support_h2' into 'master'
...
gdma: support esp32h2
Closes IDF-6222 and IDF-6238
See merge request espressif/esp-idf!21932
2023-01-11 14:04:14 +08:00
C.S.M
e96e7ecbee
Merge branch 'bugfix/fix_bunch_of_i2c_issues' into 'master'
...
I2C: Fix bunch of small issues
Closes IDFGH-8722 and IDFGH-8310
See merge request espressif/esp-idf!21891
2023-01-11 11:02:53 +08:00
morris
6c1d98d556
systimer: assign counter and alarm in esp_hw_support
2023-01-10 17:05:49 +08:00
morris
3681dee80e
gdma: support esp32h2
2023-01-10 16:37:02 +08:00
morris
cbde82c33f
apm: added low level functions for tee controller
2023-01-10 16:37:01 +08:00
jiangguangming
cceccb4ed9
hal: add rtc_cntl LL function for wake stub
2023-01-10 16:09:49 +08:00
C.S.M
faac178784
Merge branch 'feature/brownout_bringup_c6' into 'master'
...
BOD: Bringup for ESP32C6
Closes IDF-5345
See merge request espressif/esp-idf!21888
2023-01-10 14:42:43 +08:00
Cao Sen Miao
56a2d0b8a2
BOD: Bringup for ESP32C6
2023-01-10 10:37:30 +08:00
Armando
5be3c21cfc
adc: improve power logic
2023-01-09 17:10:04 +08:00
Armando
f9da48d94f
rtc: add pwdet and sar adc power related low level func
2023-01-09 17:09:01 +08:00
Cao Sen Miao
467356cfcd
I2C: Fix issue that pointer would be NULL if calls i2c_param first,
...
Closes https://github.com/espressif/esp-idf/issues/10163
2023-01-09 10:18:03 +08:00
laokaiyao
6b631b68d1
sdm: correct concept duty to density
2023-01-06 17:01:48 +08:00
morris
4f37b0b0a0
Merge branch 'feature/esp32h2_clock_basic_support' into 'master'
...
WIP: clk: Add basic clock support for esp32h2
See merge request espressif/esp-idf!21865
2023-01-05 19:19:22 +08:00
Wan Lei
419544a2c8
Merge branch 'bugfix/fix_micro_error_SPI_HOST_MAX' into 'master'
...
spi: fix micro SPI_HOST_MAX error
Closes IDFGH-8932
See merge request espressif/esp-idf!21557
2023-01-05 16:07:17 +08:00
Wan Lei
747214616c
Merge branch 'feature/add_api_spi_slave_trans_in_isr' into 'master'
...
spi_slave: add isr version api to add transaction in isr callback
Closes IDF-6199 and IDF-6049
See merge request espressif/esp-idf!20587
2023-01-05 12:46:01 +08:00
wanlei
971eaa0c08
spi_slave: fix spi_slave_isr iram_safe and add test case for it
2023-01-04 15:35:04 +08:00
Aditya Patwardhan
04a9366694
esp32c6-SHA/AES support: Added sha_ll.h and aes_ll.h files in hal layer
2023-01-04 12:07:26 +05:30
Song Ruo Jing
662df0da3b
ledc: Channel configuration requires the ledc core clock on to be effective. Therefore, a clock source is selected for the core clock since the peripheral initialization. Additionally, correct the usage of channel para_up and duty_start bits.
2023-01-03 15:16:00 +08:00
Song Ruo Jing
981d6a67b0
clk: Add basic clock support for esp32h2
2023-01-03 11:00:32 +08:00
Kevin (Lao Kaiyao)
42509fa0b3
Merge branch 'bugfix/i2s_pdm_dac_wrong_clock_freq' into 'master'
...
i2s_pdm: fix tx frequency limitation
Closes IDFGH-9010
See merge request espressif/esp-idf!21764
2022-12-30 10:16:03 +08:00
morris
cb7e957cc4
Merge branch 'feature/io_mux_use_pll80_c6' into 'master'
...
io_mux: support change clock source to PLL_F80M
Closes IDF-6342 and IDF-6345
See merge request espressif/esp-idf!21613
2022-12-29 22:06:52 +08:00
laokaiyao
943dcd2cd1
i2s_pdm: fix tx frequency limitation
...
Closes: https://github.com/espressif/esp-idf/issues/10420
2022-12-29 16:31:03 +08:00
morris
ca1b182b25
glitch_filter: support derive clock source form IO MUX
2022-12-29 14:46:16 +08:00
morris
672ac58ad5
io_mux: can set different clock source
2022-12-29 14:46:16 +08:00
Cao Sen Miao
4713a9a7f2
ESP32H2: Introduce new chip target esp32h2, hello_world example supported
2022-12-29 12:29:14 +08:00
Li Shuai
3ce896429c
periph clock: implemented the modem module enable, disable and reset for esp32c6
2022-12-27 21:31:59 +08:00
Li Shuai
63af1e9631
modem clock(driver): implemented the modem clock driver for esp32c6
2022-12-27 21:31:59 +08:00
Li Shuai
8c05d6fd9d
modem clock(hal): implemented the modem clock hal-layer for esp32c6
2022-12-27 21:31:21 +08:00
Li Shuai
28dfaeaaef
modem clock(ll): implemented the modem clock ll-layer (include modem syscon and lpcon) for esp32c6
2022-12-27 21:31:21 +08:00
Kevin (Lao Kaiyao)
4a86240b6e
Merge branch 'feature/support_adc_on_c6' into 'master'
...
adc: support adc on c6
Closes IDF-5310, IDF-5311, IDF-5917, and IDF-6567
See merge request espressif/esp-idf!21431
2022-12-27 21:01:43 +08:00
morris
011315a146
Merge branch 'feature/rmt_clock_rc_fast_c6' into 'master'
...
rmt: support PLL clock on esp32c6
Closes IDF-6341
See merge request espressif/esp-idf!21602
2022-12-27 12:53:56 +08:00
morris
bc2a2d3cde
gptimer: support RC_FAST clock source
...
GPTimer on C6 supports RC_FAST as the clock source. The benefit of this
clock is that, the clock can sustain in light sleep.
Added a new API to return the real resolution of the timer handle.
2022-12-26 13:18:25 +08:00
laokaiyao
ec812c1370
adc: add ADC target test for esp32c6
2022-12-23 14:05:56 +08:00
laokaiyao
5333ac81bf
adc: support ADC on esp32c6 (driver/test/example)
2022-12-23 11:24:06 +08:00
laokaiyao
e27f3e3128
adc: support ADC on esp32c6 (hal)
2022-12-23 11:24:06 +08:00
Kevin (Lao Kaiyao)
42c6ae3522
Merge branch 'feature/support_rtcio_on_c6' into 'master'
...
rtcio: support rtcio on c6
Closes IDF-6027
See merge request espressif/esp-idf!21603
2022-12-23 10:56:49 +08:00
Song Ruo Jing
5d300b9bc1
Merge branch 'refactor/ledc_unit_test' into 'master'
...
ledc: Move ledc unit test to test_apps pytest framework
Closes IDF-5502
See merge request espressif/esp-idf!21723
2022-12-22 15:24:47 +08:00
laokaiyao
7a002ab7a6
rtcio: support rtcio on c6
2022-12-22 14:14:38 +08:00
morris
32cd193ddf
rmt: support pll clock source on esp32c6
2022-12-22 11:25:54 +08:00
wanlei
faaf776730
spi: fix micro SPI_HOST_MAX error
...
Closes https://github.com/espressif/esp-idf/issues/10349
2022-12-21 20:03:46 +08:00
Song Ruo Jing
774197b7d3
ledc: Move ledc unit test to test_apps pytest framework
...
Add ledc_hal_set_duty_start and ledc_hal_set_duty_int_part to IRAM
Fix test_ledc.c minor issues
2022-12-21 12:04:42 +08:00
laokaiyao
f44aa9bcc5
i2s: fixed rx update stuck bug
2022-12-20 14:49:35 +08:00
laokaiyao
cd5f2c3d76
i2s_test: add unity signal for synchronization
2022-12-20 14:49:35 +08:00
Jiang Jiang Jian
97d6050fea
Merge branch 'feature/esp32c2_optimize_npl_element_count' into 'master'
...
Feature/esp32c2 optimize npl element count
Closes BT-3012
See merge request espressif/esp-idf!21562
2022-12-14 17:18:07 +08:00
Song Ruo Jing
19ee95e509
gptimer: Fix esp32c6 gptimer clock source, no APB, instead, is PLL_F80M_CLK
2022-12-13 19:18:34 +08:00
Song Ruo Jing
244d3caa97
i2s: Fix esp32c6 get I2S_CLK_SRC_PLL_160M clock frequency value wrong issue
2022-12-13 19:18:34 +08:00
Song Ruo Jing
182e937c5a
clk_tree: Add basic clock support for esp32c6
...
- Support SOC ROOT clock source switch
- Support CPU frequency change
- Support RTC SLOW clock source switch
- Support RTC SLOW clock + RC FAST calibration
Remove FPGA build for esp32c6
2022-12-13 19:18:34 +08:00
zwl
cdcdc50cfe
Renamed BAH
2022-12-13 18:02:19 +08:00
Jakob Hasse
b36c0e823f
Merge branch 'feature/linux_esp_hw_support' into 'master'
...
linux target: add support for building esp_hw_support, soc and hal components for linux target
See merge request espressif/esp-idf!21502
2022-12-12 09:59:31 +08:00
Marius Vikhammer
4ddbaa4166
linux target: add support for building esp_hw_support, soc and hal components for linux target
2022-12-09 13:59:39 +08:00
morris
62f1cbca2c
gpio: support glitch filter
2022-12-09 11:33:42 +08:00
Wan Lei
35a749a76e
Merge branch 'test/re-enable_unit-test' into 'master'
...
test: re-enable some test cases of spi for esp32c2 and c6
Closes IDF-5146
See merge request espressif/esp-idf!21052
2022-12-08 17:54:04 +08:00
Song Ruo Jing
9402ab427b
ledc: Add basic support for esp32c6
2022-12-07 18:40:50 +08:00
wanlei
7f14f9e487
spi_slave_hd: fix c6 bringup issue of dma interrupt invokr bit
2022-12-07 11:37:48 +08:00
Darian Leung
d69d1aafaf
hal: Fix USB DWC HAL host channel halt race condition
...
This commit fixes a race condtion bug with usb_dwc_hal_chan_request_halt()
where a channel the channel is halted if it has just completed a transfer
(i.e., finished processing a QTD with the "HOC" flag set) but the channel is
still pending interrupt handling. In this case...
- usb_dwc_hal_chan_request_halt() would simply read the channel's underlying
register, determine it is not active, not set the "halt_requested" flag, and
simply return true.
- The caller assumes of usb_dwc_hal_chan_request_halt() will assume that the
channel has halted, and may proceed to reconfigure the pipe/port
- When usb_dwc_hal_chan_decode_intr() comes to process the pending interrupt
it will simply return USB_DWC_HAL_CHAN_EVENT_CPLT not knowing a halt has been
requested.
This commit updates the implementation of usb_dwc_hal_chan_request_halt() so
that a halt is properly requested even if the underlying channel has already
physically halted.
2022-12-06 18:08:54 +08:00
C.S.M
6b1d4b4d49
ESP32-H2: Last MR for g0 component support, (only hal left)
2022-12-05 17:32:21 +08:00