Commit Graph

486 Commits

Author SHA1 Message Date
Filip Kokosinski 4858f8d667 boards: make names in platform YAML files unique
This commit makes names in the platform YAML files unique.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2023-01-10 09:59:25 +01:00
Jakub Zimnol e065050f1b boards: xtensa: m5stickc_plus: initial support
adds initial support for M5StickC-Plus board

Signed-off-by: Jakub Zimnol <j.zimnol@avsystem.com>
2023-01-09 10:16:27 +01:00
Fabio Baltieri 3e7e44b70d yamllint: indentation: fix files in boards/
Fix the YAML files indentation for files in boards/.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-01-04 14:23:53 +01:00
Diego Herranz 3606a507a8 boards/xtensa/esp32/esp32.dts: remove redundant button definition
7dbb1ff276
added a redundant section for the BOOT button which was already defined.

Signed-off-by: Diego Herranz <diegoherranz@diegoherranz.com>
2023-01-03 19:19:39 -05:00
Sylvio Alves 42b33382f7 driver: clock: esp32: retrieve HW clock from DTS
ESP32 and ESP32-S2 HW clock are tied to DTS clock configuration.
This changes updates the default configuration to retrieve
this information from DTS.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-01-03 17:12:06 -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 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
Glauber Maroto Ferreira d449b32b02 boards: xtensa: esp32s2_saola: dts: add power states
Add power states to ESP32-S2 Saola board dts.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-12-05 15:09:53 +01:00
Glauber Maroto Ferreira 7dbb1ff276 boards: xtensa: esp32: dts: add power states
Add power states to ESP32 board dts.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2022-12-05 15:09:53 +01:00
Sylvio Alves fb0026e6e0 boards: esp32_net: ignore PM tests
esp32_net is part of AMP solution and it is not intended
to have PM support. Ignore this board from tests

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2022-12-05 15:09:53 +01:00
Gerard Marull-Paretas e0c8de1e39 drivers: regulator: fixed: simplify implementation
Remove regulator-fixed-sync specialization, create a single driver that
is always synchronous. The asynchronous part is rarely/never used, so
let's keep things simple for now.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-11-30 15:49:30 +01:00
Anas Nashif ba7d730e9b tests/samples: use integration_plaforms in more tests/samples
integration_platforms help us control what get built/executed in CI and
for each PR submitted. They do not filter out platforms, instead they
just minimize the amount of builds/testing for a particular
tests/sample.
Tests still run on all supported platforms when not in integration mode.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-11-29 16:03:23 +01:00
Gaël PORTAY bcf32d74f8 boards: esp32: enable BOOT button
This enables the BOOT gpio-key mapped to GPIO0.

Signed-off-by: Gaël PORTAY <gael.portay@gmail.com>
2022-11-29 09:50:14 +01:00
Gaël PORTAY 15ffcb2845 boards: heltec_wifi_lora32_v2: fix indentations
This removes an empty line before closing the leds, and wraps the GPIO
button in a single line.

Signed-off-by: Gaël PORTAY <gael.portay@gmail.com>
2022-11-23 11:33:55 +01:00
Anas Nashif c1b575e20d intel_adsp: mtl: fix platform testing tags
Was very limited and restrictive and was missing many issues in CI.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-11-18 10:41:52 -05:00
Tom Burdick dbc366918d tests: Enable qemu_xtensa logging tests
Enables logging testing for qemu_xtensa along with the fixes needed to
correctly run the tests.

Several tests in log_api rely on being able to calculate the size of
the message in the mpsc_pbuf to know when an overflow occurs. The
size being calculated assumed a ROUND_UP size alignment to sizeof(long
long). On xtensa this is actually 16 bytes as defined by
CBPRINTF_PACKAGE_ALIGNMENT.

Changes the size calculation for SIMPLE_MSG_LEN to account for this.

The second issue was a misaligned package that would cause reading
from the incorrect memory when going to format the package with cbpprintf.

Fixes the padding used to align the package in cbprintf.h and adds a build
assert ensuring correct alignment when building against xtensa in both
cbprintf.h and log_msg.h.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2022-11-04 11:02:27 -04:00
Flavio Ceolin 13bedbe1c9 intel: ace15: Enabling sha driver by default
Enable intel-adsp-sha driver y default when it is enabled in DT.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2022-10-31 12:45:33 -07:00
Gaël PORTAY cd9d2db892 boards: heltec_wifi_lora32_v2: enable lora
This enables the support for the Semtech SX1276 chip on board (see the
pinout[1] and schematic[2] documents).

The chip is connected to SPI as follow:

| PIN  | GPIO   |
| ---- | -------|
| CS#  | GPIO18 |
| CLK  | GPIO5  |
| MOSI | GPIO27 |
| MISO | GPIO19 |
| RST# | GPIO14 |

Additionally, the LoRa DIO PINs are connected as follow:

| PIN  | GPIO   |
| ---- | -------|
| DIO0 | GPIO26 |
| DIO1 | GPIO35 |
| DIO2 | GPIO34 |

_Note_: The first three DIO PINs are connected to the ESP32 MCU only.

[1]: https://resource.heltec.cn/download/WiFi_LoRa_32/WIFI_LoRa_32_V2.1.pdf
[2]: https://resource.heltec.cn/download/WiFi_LoRa_32/V2/WIFI_LoRa_32_V2(868-915).PDF

Signed-off-by: Gaël PORTAY <gael.portay@gmail.com>
2022-10-31 11:23:20 +01:00
Kumar Gala 81d904554a boards: Change defconfigs to use CONFIG_MP_MAX_NUM_CPUS
Move to using CONFIG_MP_MAX_NUM_CPUS in defconfig as we phase
out CONFIG_MP_NUM_CPUS.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
2022-10-19 16:01:20 +02:00
Anas Nashif d038eb5dc7 intel_adsp: move memory windows to DTS proper
Instead of just declaring the memory window register in DTS and have
everything else all over the place (headers, Kconfig, etc.) this change
defines the memory window instances in DTS and uses the device model to
initialize the windows. Code is still part of the SoC, given that we do
not have a driver subsystem suitable for this type of device yet.

Move FW status to own workflow and separate from window setup.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-10-11 08:28:25 -04:00
Jaska Uimonen c9bf8ee4eb dts: xtensa: intel: add dmic dts definitions
Add Intel dmic dai dts definitions for ace15, cavs15 and cavs25
platforms.

Add also pre dts cmake files as the dmic nodes use same address and emit
warnings otherwise.

Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
2022-10-05 12:41:45 +02:00
Felipe Neves f0a85f69ad boards: xtensa: esp32s2_franzininho: add support
to the ESP32 S2 Franzininho educational development
board.

Signed-off-by: Felipe Neves <felipe.neves@linaro.org>

boards: xtensa: esp32s2_franzininho: remove docs

section for debugging since this board does not have
any on board debug or connection for that.

Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2022-10-02 18:10:52 -04:00
Grant Ramsay 05b356963a boards: xtensa/esp32_ethernet_kit: Add Ethernet support
Configures ESP32 Ethernet support for the esp32_ethernet_kit board

Signed-off-by: Grant Ramsay <grant.ramsay@hotmail.com>
2022-10-01 14:51:28 -04:00
Grant Ramsay 58de4291d5 boards: xtensa/esp32_ethernet_kit: Init Ethernet phy
Initialises the Ethernet phy hardware.
Sets phy RESET_N pin high shortly after boot

Signed-off-by: Grant Ramsay <grant.ramsay@hotmail.com>
2022-10-01 14:51:28 -04:00
Grant Ramsay 7bc8211aa4 boards: xtensa: Add esp32_ethernet_kit board
Adds support for the esp32_ethernet_kit board.
esp32_ethernet_kit board is useful for testing ESP32 Ethernet

Signed-off-by: Grant Ramsay <grant.ramsay@hotmail.com>
2022-10-01 14:51:28 -04:00
Stephanos Ioannidis 9912804d3c boards: esp32: Update outdated links
This commit updates the outdated/redirected links.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Fabio Baltieri c19c5a99cf boards: drop few stale CONFIG_PINMUX entries
The one in esp32_net_defconfig is redundant and lpcxpresso51u68 is not
really using any of the pinmux api, so that can go as well.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2022-09-21 13:54:54 -05:00
Thomas Stranger 932020d700 boards: remove pinmux as supported feature
The tag that marks pinmux as supported is not used by any test or
sample, therefore this doesn't seem needed anymore.

- remove from 3 mec1x boards, they still use pinmux,
  but as the tag is neither used in tests and pinmux
  deprecated anyway no need for it.
- remove from 5 esp32 boards, as they now use pinctrl.
- remove from 2 lpc boards, as they now use pinctrl.
- remove from 1 stm32 board, as it now uses pinctrl.
- remove from 1 npcx board, as it now uses pinctrl.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2022-09-19 13:54:48 -05:00
Enjia Mai 76743f42bd boards: xtensa: update the documentation for changes of cavstool
Update the usage for cavstool.py to remote-fw-service.py to adapt
the renaming. And also correct the params --log-port and --req-port
in the doc.

Signed-off-by: Enjia Mai <enjia.mai@intel.com>
2022-09-16 13:34:05 -04:00
Sylvio Alves 9105f1ef61 docs: esp32: update openocd section
This PR removes information regarding previous
west extension related to OpenOCD download.
This extension is no longer available and manual download
is required until upstream OpenOCD receives
all xtensa and riscv patches.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2022-09-16 09:02:41 +01:00
Lauren Murphy 1983a4c50c boards, dts: fix namespace for intel adsp cavs, ace
Fixes namespace for Intel ADSP CAVS and ACE boards.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2022-09-14 07:23:08 -04:00
Michael Laß 53af1ba59e boards: heltec_wifi_lora32_v2: improve documentation
* Document use of OLED display.
* Fix indentation in list of features.
* References are only rendered if they are used and currently most of
  them are not. Introduce a list of links in addition to the actual
  references to make them show up.

Signed-off-by: Michael Laß <bevan@bi-co.net>
2022-09-12 20:08:39 +00:00
Michael Laß fec126f190 boards: heltec_wifi_lora32_v2: enable trng0
trng0 refers to the entropy source in the ESP32, as defined in
esp32.dtsi. It enables the configuration item ENTROPY_ESP32_RNG and
therefore offers an entropy driver, making the use of
CONFIG_TEST_RANDOM_GENERATOR unnecessary.

This change helps running the esp32_wifi_station sample.

Signed-off-by: Michael Laß <bevan@bi-co.net>
2022-09-12 20:08:39 +00:00
Flavio Ceolin 45465708f0 soc: intel_adsp: Add ACE soc series
ACE15_MTPM is one SOC from the ACE series. Organize
it following cavs pattern.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2022-09-09 16:03:59 -04:00
Lauren Murphy 3b8c1f755b boards: mtpm: make DAI_SSP_HAS_POWER_CONTROL optional
Makes DAI_SSP_HAS_POWER_CONTROL depend on DAI_INTEL_SSP
in intel_adsp_ace15_mtpm Kconfig.defconfig.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2022-09-08 16:25:25 -04:00
Sylvio Alves a1a22f348b docs: esp32: add binary blobs documentation info
Updates all ESP32 boards with proper binary blob
download command.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2022-09-01 21:48:18 +00:00
Anas Nashif ead7bf6409 boards: intel_adsp_cavs25: make DAI_SSP_HAS_POWER_CONTRO optional
Make DAI_SSP_HAS_POWER_CONTRO depend on DAI_INTEL_SSP

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-09-01 16:23:57 -04:00
Kumar Gala 1a75e77b6b intc: remove defconfig setting of interrupt controller drivers
Now that interrupt controller drivers are enabled based on devicetree
we can remove any cases of them getting enabled by *.conf files.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-09-01 10:25:36 +02:00
Kumar Gala f957402f26 mm: remove setting CONFIG_MM_DRV_INTEL_ADSP_MTL_TLB in defconfig
We drive the default setting of CONFIG_MM_DRV_INTEL_ADSP_MTL_TLB
via devicetree so there is no need to set
CONFIG_MM_DRV_INTEL_ADSP_MTL_TLB in defconfig files.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-31 11:17:37 -05:00
Anas Nashif 6d3dfd009a boards: nxp_adsp: remove unused CONFIG_BOOTLOADER_SRAM_SIZE
This option is not being used by xtensa, so remove it.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-08-31 10:41:22 +02:00
Anas Nashif 6e7e9c2ba8 boards: intel_adsp: remove unused CONFIG_BOOTLOADER_SRAM_SIZE
This option is not being used by xtensa code, so remove it.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-08-31 10:41:22 +02:00
Gerard Marull-Paretas e81e92dbb9 boards: convert images to JPEG and reduce image size
The boards folder uses ~142.8 MB, being the largest in the repository.
This is due mostly to board images, which are in most cases not
optimized for web content. This patch tries to address this problem by
converting all pictures to JPEG (quality 75) and by adjusting its size
up to 750 px (the width of the documentation content). Images that
specified a fixed width in rst files are converted down to that value
instead.

With this patch, folder goes down to ~53.5 MB from 142.8 MB (-~63%).
Note that this patch introduces a new set of binary files to git
history, though (bad).

The process has been automated using this quickly crafted Python script:

```python
from pathlib import Path
import re
import subprocess

def process(doc, image, image_jpeg, size):
    subprocess.run(
        (
	     f"convert {image}"
	     "-background white -alpha remove -alpha off -quality 75"
	     f"-resize {size}\> {image_jpeg}"
	),
        shell=True,
        check=True,
        cwd=doc.parent,
    )
    if image != image_jpeg:
        (doc.parent / image).unlink()

for doc in Path(".").glob("boards/**/*.rst"):
    with open(doc) as f:
        content = ""
        image = None
        for line in f:
            m = re.match(r"^(\s*)\.\. (image|figure):: (.*)$", line)
            if m:
                if image:
                    process(doc, image, image_jpeg, size)

                image = Path(m.group(3))
                if image.suffix not in (".jpg", ".jpeg", ".png"):
                    content += line
                    image = None
                    continue

                image_jpeg = image.parent / (image.stem + ".jpg")
                size = 750
                content += (
                    f"{m.group(1)}.. {m.group(2)}:: {image_jpeg}\n"
                )
            elif image:
                m = re.match(r"\s*:height:\s*[0-9]+.*$", line)
                if m:
                    continue

                m = re.match(r"\s*:width:\s*([0-9]+).*$", line)
                if m:
                    size = min(int(m.group(1)), size)
                    continue

                content += line
                if line == "\n":
                    process(doc, image, image_jpeg, size)
                    image = None
            else:
                content += line

    with open(doc, "w") as f:
        f.write(content)
```

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-29 10:18:18 +02:00
Gerard Marull-Paretas 1416c8ce12 boards: qemu: delete all QEMU logos
We had a bunch of QEMU logos embedded in all QEMU boards. Logos do not
add much value to the documentation, so just delete them.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-29 10:18:18 +02:00
Enjia Mai f2204b552b doc: boards: update the usage of intel_adsp boards
Update the usage of intel_adsp boards according to adding
the port support.

Signed-off-by: Enjia Mai <enjia.mai@intel.com>
2022-08-16 22:51:53 -07:00
Felipe Neves 0244155d2a boards: esp32_net: ignore some build tests
because esp32_net has only small IRAM space

which may overflow for large samples.

Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2022-08-16 18:06:02 +02:00
Felipe Neves d808fa2c6d samples: drivers: ipm_esp32: add return
when ipm driver initialization fails.

Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2022-08-16 18:06:02 +02:00
Felipe Neves 6ba5b21337 soc: xtensa: esp32_net: update kconfig
specific of soc to make it compatible to the new toolchain.

Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2022-08-16 18:06:02 +02:00
Felipe Neves 907e602875 boards: xtensa: esp32_net: update documentation
with latest esp32 information about the toolchain
for esp32.

Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2022-08-16 18:06:02 +02:00
Felipe Neves bb6e656ec0 soc: esp32_net: added esp32_net as an option
to use esp32 core 1 as a separate CPU, also
provide infrastructure to load firmware to
that CPU

Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
2022-08-16 18:06:02 +02:00
Kumar Gala f2fa572561 entropy: remove Kconfig.defconfig* setting of entropy drivers
Now that entropy drivers are enabled based on devicetree
we need to remove any cases of them getting enabled by
Kconfig.defconfig* files as this can lead to errors.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-09 23:37:33 -05:00