Sylvio Alves
bdda8ac48e
soc: esp32s3: add esp32s3_appcpu for AMP support
...
Adds esp32s3_appcpu SoC and update default esp32s3 SoC
to support AMP feature.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-09-27 12:07:21 +02:00
Eric Holmberg
9452cbfe9d
soc: esp32s3: add ADC single-shot support
...
Add support for single-shot ADC readings.
Signed-off-by: Eric Holmberg <eric.holmberg@northriversystems.co.nz>
2023-08-17 10:36:20 +02:00
Marek Matej
79869f8abd
dts: xtensa: esp32xx rework soc/sip list
...
Introduce dtsi files representing the
current portfolio of chips and modules
based on the followint criteria:
- flash size
- psram size
- gpio count
- certification status
Update the boards dts files according
to which SOC/SIP they are using.
Signed-off-by: Marek Matej <marek.matej@espressif.com>
2023-07-25 18:12:33 +02:00
Gerard Marull-Paretas
e4c43e4cc9
pm: power-states node needs to be a child of cpus
...
This again aligns with Linux.
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-07-25 09:16:14 +02:00
Gerard Marull-Paretas
5eee169cf0
dts: riscv: espressif: esp32: move power-states to soc dts files
...
CPU idle states are not board specific. This patch moves ESP32 idle
states to the core SoC dts files. Board can always tweak some state
parameters (if needed), but the definition belongs to core SoC dts
files, same as e.g. peripherals.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-07-25 09:16:14 +02:00
Lucas Tamborrino
2718c82715
dts: xtensa: esp32s2: add twai as canbus
...
Add twai node as zephyr,canbus for testing purposes
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-07-24 13:25:11 +00:00
Hiroki Tada
7e3f0ef407
samples: Add esp32s2_saola overlay
...
- Add overlay for the esp32s2_saola board to die_temp_polling sample.
- Add aliases for the die_temp_polling sample to esp32s2 dtsi.
Signed-off-by: Hiroki Tada <tada.hiroki@fujitsu.com>
2023-07-24 13:22:03 +00:00
Eric Holmberg
2789e6a3c0
soc: esp32s3: add TWAI driver configuration
...
Add TWAI configuration for CAN.
Signed-off-by: Eric Holmberg <eric.holmberg@northriversystems.co.nz>
2023-07-10 15:13:52 +02:00
Lucas Tamborrino
a35dd4b926
drivers: dma: esp32s3: Add DMA support for esp32s3
...
Add GDMA support for esp32s3.
Remove suspend/resume since they are optional and do
the same as start/stop.
Fix possible null pointer derreference.
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-05-10 10:15:05 +02:00
Sylvio Alves
4c66ac81fd
soc: esp32s3: add usb serial dts interface
...
Enable ESP32-S3 usb-serial interface.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-05-09 14:31:23 +02:00
Benjamin Björnsson
a43a43d4b0
dts: Add missing adc dt-bindings include
...
Add missing include of adc dt-bindings in top .dtsi
file containing an adc node.
Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-20 10:48:33 +02:00
Sylvio Alves
a6c8c6e546
soc: esp32s3: add Wi-Fi support
...
This adds Wi-Fi linker areas and also bring wi-Fi entry
into SoC device tree.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-04-19 17:11:58 +02:00
Moritz Fischer
32bf596297
dts: xtensa: espressif: esp32s2: Add TWAI node
...
This adds the TWAI node to the ESP32S2 devicetree.
Signed-off-by: Moritz Fischer <moritzf@google.com>
2023-04-11 11:27:34 +02:00
Lucas Tamborrino
2c1da15e35
dts: esp32s3: add PCNT device
...
Add PCNT node device to esp32s3
Update PCNT binding to include esp32s3
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-04-05 11:23:48 -05:00
Lucas Tamborrino
1b2ec541ce
dts: esp32s3: add MCPWM device
...
Add MCPWM device node to esp32s3
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-04-02 22:08:57 -04:00
Lucas Tamborrino
ed0d242bb7
dts: esp32s3: add LEDC device
...
Add LEDC device for esp32s3
Update PWM LED binding
Remove invalid comment from driver source file
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-03-31 09:19:56 +02:00
Lucas Tamborrino
7486fe7a83
dts: esp32s3: add TRNG support
...
Add True Random Number Generator support on esp32s3
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-03-23 09:40:50 +01:00
Felipe
bd705e68b0
soc: xtensa: esp32: increase shared memory region
...
for esp32 and esp32_net because the default 2048
bytes are not sufficient for rpmsg usage.
Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
2023-03-16 16:42:13 +01:00
Lucas Tamborrino
fd2191b2b1
dts: esp32s3: Add wdt support
...
Add watchdog support for esp32s3
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-03-15 09:11:42 +01:00
Lucas Tamborrino
c530eca285
dts: esp32s3: Add timers support
...
Add timer support for esp32s3
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-03-14 10:50:37 +01:00
Lucas Tamborrino
fa358f9757
dts: esp32s3: Add SPI support
...
Add SPI support for esp32s3
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-03-13 14:02:06 +01:00
Lucas Tamborrino
ca0c46604f
dts: esp32s3: add i2c support
...
Add i2c support for esp32s3
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-02-28 14:44:47 +01:00
Sylvio Alves
bbd40b85c0
soc: esp32s3: add base source content
...
This brings esp32s3 linker, DTS and all
necessary files to allow the soc support.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-02-27 19:41:33 +01:00
Felipe Neves
865f4e64b5
dts: xtensa: esp32: modify esp32 dts
...
To split ipm area into ipm memory and
general use shared memory.
Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2023-02-19 20:41:18 -05:00
Marek Matej
937ea00e7a
drivers: adc: esp32: Add support for single-shot conversion
...
Allow single-shot adc conversion on all supported targets.
Signed-off-by: Marek Matej <marek.matej@espressif.com>
2022-12-23 23:45:05 +00:00
Marek Matej
45d55205db
drivers: esp32: temp: CPU die temperature sensor
...
Support for the measuring the CPU die temperature
for the ESP32 targets S2,C3. The ESP32 support
was ommited due to lack of offset calibration.
Signed-off-by: Marek Matej <marek.matej@espressif.com>
2022-12-15 18:21:39 +01:00
Marek Matej
f86a7d2c25
drivers: dac: esp32: Add support for DAC controller
...
Initial DAC driver for the ESP32/ESP32-S2 SOCs
Signed-off-by: Marek Matej <marek.matej@espressif.com>
2022-12-13 16:29:38 +00:00
Lucas Tamborrino
a11a103518
drivers: spi: esp32/s2: add DMA support
...
Add SPI DMA support for esp32/s2.
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2022-10-04 10:35:14 +02:00
Grant Ramsay
897952370e
drivers: ethernet: Add ESP32 Ethernet driver
...
This is to enable ESP32 Ethernet support
Signed-off-by: Grant Ramsay <grant.ramsay@hotmail.com>
2022-10-01 14:51:28 -04:00
Grant Ramsay
113f868ddf
drivers: mdio: Add ESP32 MDIO driver
...
The MDIO driver is required to for ESP32 Ethernet
Signed-off-by: Grant Ramsay <grant.ramsay@hotmail.com>
2022-10-01 14:51:28 -04:00
Sylvio Alves
6946d441a8
Revert "soc: esp32: fix flash write blocks size"
...
This reverts commit fdd47f39be
.
After v4.4.1, write-block-size is no longer needed to be 32-bytes
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2022-09-01 21:48:18 +00:00
Felipe Neves
a5379b71f8
drivers: ipm: ipm_esp32: remove hardcoded nodelabels
...
by making shared memory property of IPM binding.
Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2022-08-16 18:06:02 +02:00
Felipe Neves
4bff7ecab3
drivers: ipm: esp32: added IPM driver
...
implemented by software for esp32 dual core
variants.
Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2022-08-16 18:06:02 +02:00
Lucas Tamborrino
ca9126fa81
dts: esp32/s2: add bindings to pcnt peripheral
...
Add pcnt node to esp32 and esp32s2.
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2022-08-08 10:51:41 +02:00
Henrik Brix Andersen
9ca851721e
dts: xtensa: espressif: esp32: add twai devicetree node
...
Add devicetree node for the ESP32 TWAI CAN controller.
Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2022-07-30 17:32:04 +01:00
Glauber Maroto Ferreira
54710ddc83
esp32: dts: add RTC timer node
...
- add RTC timer node bindings
- add RTC timer node to the DT.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-07-27 09:48:33 +02:00
Kumar Gala
136960e071
dts: xtensa: Remove label property from devicetrees
...
Label properties are not required.
Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-26 12:57:35 -05:00
Lucas Tamborrino
eca365929b
dts: esp32: add bindings to mcpwm driver
...
add new pwm driver based on the mcpwm peripheral
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2022-07-14 10:29:26 +02:00
Glauber Maroto Ferreira
00f3582d89
soc: esp32: dts: counter: add properties and update dt
...
- adds properties 'group', 'index' and 'prescaler'.
- updates board's dts to include those properties.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-07-13 15:53:04 +02:00
Lucas Tamborrino
02675bbc80
dts: esp32: full ledc configuration in binding
...
This commit moves the hardware configuration for ledc
peripheral to the device-tree instead of Kconfig.
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2022-06-29 14:48:25 +00:00
Sylvio Alves
fdd47f39be
soc: esp32: fix flash write blocks size
...
Current write block size does not guarantee proper
write operation, what might cause corrupted data.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2022-06-22 12:27:32 +02:00
Glauber Maroto Ferreira
d6e8474498
esp32/s2/c3: pinctrl: dts: move pinctrl node out of SoC bus
...
On Espressif SoCs, the pin controller is a virtual device.
Pin settings are actually controlled in a distributed way.
Therefore, that node does not belong to the SoC bus.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-05-13 11:25:58 -07:00
Gerard Marull-Paretas
0d85931315
dts: migrate includes to <zephyr/...>
...
In order to bring consistency in-tree, migrate all dts code to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to zephyrproject-rtos#45388 for more details.
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 19:54:54 +02:00
Henrik Brix Andersen
472d0de081
dts: xtensa: espressif: esp32: add GPIO map for accessing full GPIO range
...
Add a GPIO pass-thru map for accessing the full range (0 to 39) of ESP32
GPIO pins by their datasheet number.
GPIOs 0 to 31 are mapped to gpio0 while GPIOs 32 to 39 are mapped to
gpio1.
Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2022-04-28 10:26:40 +02:00
Glauber Maroto Ferreira
188e92e531
esp32/s2/c3: dts: uart: remove peripheral property
...
The pinctrl support made usage of the 'peripheral'
property no longer required.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-04-20 13:27:47 +02:00
Glauber Maroto Ferreira
d06959c057
esp32/s2/c3: dts: remove pinmux node
...
remove the pinmux node from ESP32, ESP32-S2
and ESP32-C3 SoCs.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-04-20 13:27:47 +02:00
Glauber Maroto Ferreira
12f794a9f4
soc: esp32s2: dts: remove property "use-iomux"
...
which became deprecated when pinctrl came into stage.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-04-20 13:27:47 +02:00
Glauber Maroto Ferreira
dbd747b7f0
dts: xtensa: esp32s2: add pinctrl node and bindings
...
to support implementation and peripheral usage of the pinctrl
driver API.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-04-20 13:27:47 +02:00
Glauber Maroto Ferreira
4986747156
esp32: dts: spi: remove property "use-iomux"
...
which became deprecated when pinctrl came into stage.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-04-20 13:27:47 +02:00
Glauber Maroto Ferreira
70d4a6c25e
dts: esp32: add pinctrl bindings and definitions
...
to support implementation and peripheral usage of the pinctrl
driver API.
Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-04-20 13:27:47 +02:00