Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions boards/espressif/esp32_devkitc/esp32_devkitc-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,14 @@
<I2S1_I_SD_GPIO11>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN1_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp32_devkitc/esp32_devkitc_procpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ supported:
- input
- crypto
- retained_mem
- rmt
vendor: espressif
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,14 @@
<I2S1_I_SD_GPIO12>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN1_GPIO12>;
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ supported:
- i2s
- crypto
- retained_mem
- rmt
vendor: espressif
10 changes: 10 additions & 0 deletions boards/espressif/esp32c3_devkitc/esp32c3_devkitc-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@
<TWAI_RX_GPIO5>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN0_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp32c3_devkitc/esp32c3_devkitc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ supported:
- entropy
- crypto
- retained_mem
- rmt
vendor: espressif
10 changes: 10 additions & 0 deletions boards/espressif/esp32c3_devkitm/esp32c3_devkitm-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@
<TWAI_RX_GPIO5>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN0_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp32c3_devkitm/esp32c3_devkitm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ supported:
- entropy
- crypto
- retained_mem
- rmt
vendor: espressif
10 changes: 10 additions & 0 deletions boards/espressif/esp32c3_rust/esp32c3_rust-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,14 @@
output-high;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN0_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp32c3_rust/esp32c3_rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ supported:
- entropy
- crypto
- retained_mem
- rmt
vendor: espressif
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,14 @@
<I2S_I_SD_GPIO23>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN0_GPIO12>;
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ supported:
- netif:openthread
- crypto
- retained_mem

- rmt
testing:
ignore_tags:
- bluetooth
10 changes: 10 additions & 0 deletions boards/espressif/esp32h2_devkitm/esp32h2_devkitm-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,14 @@
<TWAI_RX_GPIO27>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN0_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp32h2_devkitm/esp32h2_devkitm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ supported:
- netif:openthread
- crypto
- retained_mem
- rmt
10 changes: 10 additions & 0 deletions boards/espressif/esp32s2_devkitc/esp32s2_devkitc-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,14 @@
<I2S0_I_SD_GPIO17>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN1_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp32s2_devkitc/esp32s2_devkitc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ supported:
- dma
- crypto
- retained_mem
- rmt
testing:
ignore_tags:
- bluetooth
Expand Down
10 changes: 10 additions & 0 deletions boards/espressif/esp32s2_saola/esp32s2_saola-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,14 @@
<I2S0_I_SD_GPIO17>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN1_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp32s2_saola/esp32s2_saola.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ supported:
- input
- crypto
- retained_mem
- rmt
testing:
ignore_tags:
- bluetooth
Expand Down
10 changes: 10 additions & 0 deletions boards/espressif/esp32s3_devkitc/esp32s3_devkitc-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,14 @@
<TWAI_RX_GPIO6>;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT3_GPIO13>;
};

group2 {
pinmux = <RMT_IN3_GPIO12>;
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ supported:
- video
- crypto
- retained_mem
- rmt
vendor: espressif
10 changes: 10 additions & 0 deletions boards/espressif/esp32s3_eye/esp32s3_eye-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,14 @@
output-high;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT3_GPIO13>;
};

group2 {
pinmux = <RMT_IN3_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp32s3_eye/esp32s3_eye_procpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ supported:
- video
- crypto
- retained_mem
- rmt
vendor: espressif
10 changes: 10 additions & 0 deletions boards/espressif/esp_wrover_kit/esp_wrover_kit-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,14 @@
output-high;
};
};

rmt_default: rmt_default {
group1 {
pinmux = <RMT_OUT0_GPIO13>;
};

group2 {
pinmux = <RMT_IN0_GPIO12>;
};
};
};
1 change: 1 addition & 0 deletions boards/espressif/esp_wrover_kit/esp_wrover_kit_procpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ supported:
- entropy
- crypto
- retained_mem
- rmt
vendor: espressif
1 change: 1 addition & 0 deletions drivers/misc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# zephyr-keep-sorted-start
add_subdirectory_ifdef(CONFIG_DEVMUX devmux)
add_subdirectory_ifdef(CONFIG_ESPRESSIF_RMT espressif_rmt)
add_subdirectory_ifdef(CONFIG_ETHOS_U ethos_u)
add_subdirectory_ifdef(CONFIG_FT800 ft8xx)
add_subdirectory_ifdef(CONFIG_GROVE_LCD_RGB grove_lcd_rgb)
Expand Down
1 change: 1 addition & 0 deletions drivers/misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ menu "Miscellaneous drivers"

# zephyr-keep-sorted-start
source "drivers/misc/devmux/Kconfig"
source "drivers/misc/espressif_rmt/Kconfig"
source "drivers/misc/ethos_u/Kconfig"
source "drivers/misc/ft8xx/Kconfig"
source "drivers/misc/grove_lcd_rgb/Kconfig"
Expand Down
5 changes: 5 additions & 0 deletions drivers/misc/espressif_rmt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
# SPDX-License-Identifier: Apache-2.0

zephyr_library()
zephyr_library_sources(rmt.c rmt_common.c rmt_encoder_bytes.c rmt_encoder_copy.c rmt_encoder_simple.c rmt_encoder.c rmt_rx.c rmt_tx.c)
41 changes: 41 additions & 0 deletions drivers/misc/espressif_rmt/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
# SPDX-License-Identifier: Apache-2.0

menuconfig ESPRESSIF_RMT
bool "ESP32 RMT driver"
default y
depends on DT_HAS_ESPRESSIF_ESP32_RMT_ENABLED
select DMA if DT_HAS_ESPRESSIF_ESP32_GDMA_ENABLED && SOC_SERIES_ESP32S3
help
Enables the ESP32 Remote Control Transceiver driver.

if ESPRESSIF_RMT

config ESPRESSIF_RMT_INIT_PRIORITY
int "ESP32 RMT driver init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
ESP32 RMT driver initialization priority in POST_KERNEL.

config ESPRESSIF_RMT_TX_ISR_CACHE_SAFE
bool "RMT TX ISR Cache Safe"
help
Ensure the RMT interrupt is Cache-Safe by allowing the interrupt handler to be
executable when the cache is disabled (e.g. SPI Flash write).

config ESPRESSIF_RMT_RX_ISR_CACHE_SAFE
bool "RMT RX ISR Cache Safe"
help
Ensure the RMT interrupt is Cache-Safe by allowing the interrupt handler to be
executable when the cache is disabled (e.g. SPI Flash write).

config ESPRESSIF_RMT_PM
bool "Support for power management"
help
If enabled, RMT driver is compiled with support for power management.

module = ESPRESSIF_RMT
module-str = espressif_rmt
source "subsys/logging/Kconfig.template.log_config"

endif
Loading
Loading