Commit graph

5342 commits

Author SHA1 Message Date
Felipe Neves
d368087fc0 drivers: serial: added minimal uart driver for esp32c3
based on uart rom functions, also enable console driver
on top if this driver enabling logging

Signed-off-by: Felipe Neves <felipe.neves@espressif.com>
2021-08-03 11:20:06 -05:00
Andrei Emeltchenko
eee22a6e9c doc: ehl_crb: Update EHL CRB documentation
Zephyr is now able to convert ELF binary to the EFI application for
launching directly from the EFI firmware. The bootloader is not needed
and the information about grub was removed.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2021-08-03 13:57:56 +02:00
Enjia Mai
c2ac8fe7d7 acrn_ehl_crb: fix the incorrect configuration of timer IRQ priority
The default CONFIG_APIC_TIMER_IRQ_PRIORITY is 4, but it should be 1 for
ACRN. That's why the testcase failed due to no timer interrupt was
triggered.

And we also temporary adjust the testing IRQ for dynamic isr due to it
conflict with the IRQ of the APIC TSC deadline TIMER.

Fixes #36203.

Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
2021-08-03 07:30:15 -04:00
Chen Peng1
85a2e67bb5 doc: update up_squared document to use UEFI bootable method.
for up_squared board, we already support to use UEFI bootable
method to run zephyr tests, so update the document to use
this UEFI method, rather than legacy BIOS stuff.

Signed-off-by: Chen Peng1 <peng1.chen@intel.com>
2021-08-03 07:29:33 -04:00
David Leach
bdd536a09e watchdog: add watchdog driver support to mimxrt685 platform
Add watchdog support to the mimxrt685 platform.

The mimxrt685 platform is excluded from the watchdog
test case because the test case uses variables in the
noinit section that need to be retained through a reset
but the rt685 does not retain this memory through a
reset.

Signed-off-by: David Leach <david.leach@nxp.com>
2021-08-02 13:21:20 -05:00
Kumar Gala
40fcb1ce9b soc: arm: nxp_imx: rt: refactor flexspi boot config
* Move definition of flexspi_nor_config_t into soc/ dir so it can
  be shared by all i.MX RT based boards.
* Use Kconfig symbol CONFIG_NXP_IMX_RT_BOOT_HEADER instead of
  HAL define (which is set based on the Kconfig symbol)
* Rename board files to flexspi_nor_config.c since they
  are already namespaced by the board dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-08-02 12:59:57 -05:00
Alex Tsamakos
094a8ac132 boards: actinius_*: fix board init priority
This fixes an issue that surfaced with Zephyr v2.6.0,
where the GPIO driver has not completed initialization
when attempting to use it during POST_KERNEL with
KERNEL_INIT_PRIORITY_DEFAULT.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2021-08-02 12:54:36 -05:00
Kieran Mackey
081c2f801f boards: add pca953x to bl5340_dvk
Adding pca953x and attached pins to board dts file

Signed-off-by: Kieran Mackey <kieran.mackey@lairdconnect.com>
2021-07-31 14:56:34 -04:00
Kieran Mackey
4cfb638145 boards: add pca953x to bt6x0
Adding pca953x and attached pins to board dts file

Signed-off-by: Kieran Mackey <kieran.mackey@lairdconnect.com>
2021-07-31 14:56:34 -04:00
Yuriy Vynnychek
4962e03d58 boards: riscv: tlsr9518adk80d: add Telink B91 Flash driver support
Added Flash driver board level support.

Signed-off-by: Yuriy Vynnychek <yura.vynnychek@telink-semi.com>
2021-07-30 19:53:04 -04:00
Greg Leach
42b05fa024 boards: add mcp7940n to bl5340_dvk
Adding mcp7940n and attached pins to board dts file

Signed-off-by: Greg Leach <greg.leach@lairdconnect.com>
2021-07-30 19:51:29 -04:00
Michał Mieszczak
dfa660de8f boards: arm: Enable USB for stm32f103_mini board
Enable USB on pins PA11 and PA12.

Signed-off-by: Michał Mieszczak <michal@mieszczak.com.pl>
2021-07-30 19:51:03 -04:00
Michał Mieszczak
c899045ce4 boards: arm: Use HSE for stm32f103_mini board
Change clock freqency to 72MHz and source to HSE.

Signed-off-by: Michał Mieszczak <michal@mieszczak.com.pl>
2021-07-30 19:51:03 -04:00
Gerson Fernando Budke
62ba4723d4 drivers: serial: uart_sam0: Add pinctrl support
Add Atmel sam0 sercom[uart] pinctrl bindings and implements pinctrl at
driver level.  It changes all sam0 boards to use new feature and remove
pinmux driver dependency for sercom[uart].  The samples that require a
binding were update to keep consistency and avoid errors.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-07-30 14:37:20 -05:00
Maureen Helm
fa505f9d58 boards: arm: Add PWM LEDs to the mimxrt685_evk board
Adds support for PWM LEDs (red, green, blue) to the mimxrt685_evk board
by adding devicetree nodes and aliases, and configuring the associated
pinmuxes. The red PWM LED is disabled by default because it's connected
to the same PWM channel as the blue PWM LED.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-07-30 13:08:03 -05:00
Mahesh Mahadevan
d1e4d0042f boards: RT600: Add PWM support
Add PWM support for RT600

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-07-30 13:08:03 -05:00
Martí Bolívar
39782901e7 treewide: fix overlays after TF-M NS rename
Some devicetre overlays do not reflect the recent rename to make NS
variants of boards with TF-M support have more consistent names; fix
it.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-07-30 07:06:44 -04:00
Francois Ramu
0d42e75666 boards: arm: nucleo_f103rb: DTS and Documentation updates
This commit updates the DTS and documentation with DMA feature.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-07-29 11:48:23 -04:00
Francois Ramu
d074d07062 boards: arm: nucleo_f207zg: DTS and Documentation updates
This commit updates the DTS and documentation with DMA feature.
only the DMA2 is enable here.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-07-29 11:48:23 -04:00
Francois Ramu
e060425dcd boards: arm: nucleo_f429zi: DTS and Documentation updates
This commit updates the DTS and documentation with DMA feature.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-07-29 11:48:23 -04:00
Francois Ramu
1146f85a7f boards: arm: nucleo_l152re: DTS and Documentation updates
This commit updates DTS and documentation with DMA feature.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-07-29 11:48:23 -04:00
Francois Ramu
5f3329c00b boards: arm: nucleo_f091rc: DTS and Documentation updates
This commit updates the DTS and documentation with DMA.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-07-29 11:48:23 -04:00
Krishna Mohan Dani
9610bc95ef boards/arm: stm32f3_disco: Enabling DMA
This commit enables DMA on stm32f3_disco platform and updates
the documentation with DMA.

Signed-off-by: Krishna Mohan Dani <krishnamohan.d@hcl.com>
2021-07-29 11:01:40 -04:00
Julien Massot
c472075b5a boards: arm: rcar h3ulcb: Add OpenOCD configuration
On R-Car the Cortex R7 is usually not the boot processor.
This configuration file make use of the Cortex A57 processor,
to initialize the Cortex R7.

It boils down to few steps:
 - Apply power to the Cortex R7
 - Set the boot address for the Cortex R7
 - loading a firmware
 - releasing the Cortex R7 reset

This configuration file also rely on A57 bootloaders,
to initialize device, memory, and security groups.

This file has been tested on openocd 0.10.0+dev-01508-gf79c90268-dirty,
shipped with zephyr sdk 0.12.4, and on openocd master
65c9653cc768f77a5e8cf2af73e0f40d614bdec2.

Thread awareness is possible thanks to this patch:
http://openocd.zylin.com/#/c/6369/

Signed-off-by: Julien Massot <julien.massot@iot.bzh>
2021-07-29 08:28:27 -05:00
Erwan Gouriou
89b8a80188 boards/arm: nucleo_u575zi_q: Minimal board description
Introduce nucleo_u575zi_q board with minimal description.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-07-29 07:28:32 -05:00
Glauber Maroto Ferreira
ed63e2a562 soc: esp32s2: add initial soc support files for esp32s2
by adding specific soc files for esp32s2 bring-up, such as:
- linker script
- soc initialization code
- initial device tree source files
- esp32s2 saola board support.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
2021-07-28 21:09:27 -04:00
Martí Bolívar
bcdaaa055f boards: add deprecations for various 'ns' TF-M boards
Various non-secure variants of boards with SoCs that have Trusted
Firmware M support were recently renamed without any deprecations
added for the old names. This unnecessarily breaks the build for out
of tree users.

Fix that by adding the following deprecations (deprecated name ->
replacement name):

  bl5340_dvk_cpuappns        -> bl5340_dvk_cpuapp_ns
  mps2_an521_nonsecure       -> mps2_an521_ns
  musca_b1_nonsecure         -> musca_b1_ns
  musca_s1_nonsecure         -> musca_s1_ns
  nrf5340dk_nrf5340_cpuappns -> nrf5340dk_nrf5340_cpuapp_ns
  nrf9160dk_nrf9160ns        -> nrf9160dk_nrf9160_ns

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-07-28 21:09:11 -04:00
Andrzej Głąbek
954dfa755b tests: drivers: i2s_api: Allow testing on nRF52840 DK and nRF5340 DK
Provide configurations for the nRF52840 DK and nRF5340 DK boards.
Adjust the test to cover specifics of I2S peripherals on nRF SoCs
(need of starting RX and TX simultaneously, lack of internal loopback).

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2021-07-28 18:41:26 -04:00
Ioannis Glaropoulos
44bec9a473 boards: stm: switch postbuild.sh script to a command from a byproduct
Running postbuild.sh script after TF-M builds is a command,
to be executed after build, not a post-build byproduct.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-07-28 19:38:35 +02:00
Affrin Pinhero
1a4015f28d board/arm stm32: SDMMC support for stm32h747i_disco
This commit adds support for SDMMC in stm32h747i_disco.
This commit is tested with fat fs list file example in
samples/subsys/fs/fatfs.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-07-28 07:33:06 -04:00
Scott Worley
6976800cf0 Microchip: MEC172x GPIO driver version 2
Create version 2 of the MEC GPIO driver to support MEC172x to not
interfere with MEC152x. When the MEC172x ECIA interrupt aggregator
driver is ready, this driver will use ECIA for registering GPIO
interrupt callbacks instead of maintaining its own interrupt table.
Add V2 DT binding.
Add the Kconfig configuration settings for the MEC172x GPIO
V2 driver at the SoC and board level.
Add port id to DT allowing use of DT FOR EACH macro in the driver.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-07-27 18:01:55 -04:00
Felipe Neves
3917203d52 driver: timer: esp32c3: added tickless support
For esp32c3 system timer clock driver enabling tickless mode
kernel

Signed-off-by: Felipe Neves <felipe.neves@espressif.com>
2021-07-27 17:42:01 -04:00
Marcin Niestroj
4a40d78a81 boards: circuitdojo_feather_nrf9160: disconnect SDO/SDA0 of LIS2DH12TR
LIS2DH12TR has an internal pull-up connected to SDA0 pin, while this pin
is connected directly to GND on PCB. This results in constant power
consumption, which can be prevented by disconnecting internal SDA0
pull-up. Do so by adding 'disconnect-sdo-sa0-pull-up' DT property, so
that accelerometer driver will send a proper command during boot.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2021-07-27 14:47:57 -05:00
Marcin Niestroj
ccd35abdbd boards: circuitdojo_feather_nrf9160: use GPIO_ACTIVE_HIGH instead of 0
Using GPIO_ACTIVE_HIGH explicitly says what is the active level of GPIO,
so prefer that instead of using 0.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2021-07-27 14:47:57 -05:00
Scott Worley
dd1a9559be Microchip: XEC RTOS timer: Add MEC172x support to driver
Update Microchip XEC RTOS timer driver adding MEC172x support and
using more device tree properities in the driver. We must also update
the XEC counter driver to use the new GIRQ DT properties.
Add new properties to RTOS timer and RTC timer YAML. These two timers
are linked due to option using a high speed timer for kernel busy wait.
Add Kconfig logic for XEC RTOS timer to MEC172x SoC.
Enable the Microchip XEC RTOS timer in the MEC172x evaluation board.
Add device tree nodes for most peripeherals.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-07-27 09:29:34 -04:00
Johan Hedberg
602ad0023b boards: Revert "boards: acrn_ehl_crb: Add ibecc DTS node"
This reverts commit 445a23a167.

This change was made with the incorrect assumption that using IBECC in
an ACRN VM is a valid use case. Turns out that ACRN will always manage
the IBECC access itself and the Zephyr driver is only useful for running
natively on the hardware.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2021-07-27 07:18:26 -04:00
Scott Worley
6b3749d2ff Microchip: MEC172x Add aggregated interrupt driver
Add driver implementation and header files for a MEC172x
aggregated interrupt driver. Enable the parent(ECIA) node
to have the driver initialize interrupt hardware for use.
Enable child nodes for those GIRQs used for aggregation.
Refer to chip documention for the list of GIRQs restricted
to aggregation and those which support direct mode.
Add chip level device tree node for MEC172x EC interrupt
aggregator parent and GIRQ children. Each child node contains
a list of sources representing the source bit position in the
GIRQ registers.
Add DT bindings for ECIA and GIRQ nodes.
Add build file(s) and configuration items for the MEC172x ECIA
aggregated interrupt driver. Add and enable the MEC172x interrupt
driver on the MEC172x evaluation board(EVB). Enable parent node to
initialize ECIA hardware. Child nodes are left disabled until a
future driver needs them.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-07-26 12:24:52 -04:00
Affrin Pinhero
295808a052 board/arm stm32: SDMMC support for stm32l496g_disco
This commit adds support for SDMMC driver, Which
was missing. THi commit will solveserror SDMMC init
error on stm32l496g_disco boards.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-07-26 15:29:34 +02:00
Affrin Pinhero
166a13b1bf board/arm STM32: SDMMC support for stm32f746g_disco
This commit adds support for SDMMC driver,
Which was missing. THi commit will solves
error SDMMC init error on STm32F746G_DISCO
boards.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-07-26 15:29:34 +02:00
Piotr Mienkowski
e7c630861a samples: counter/alarm: add support for Atmel SAM boards
Add support for sam_e70_xplained, sam_v71_xult based on TC0 counter.

Note: TC module is a 16-bit counter. Even with slow, 32768 Hz input
clock the time span counted by the driver is short.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2021-07-26 05:13:40 -04:00
Leonard Pollak
9bea9d2ef2 doc: boards: arm: Seeeduino XIAO added i2c to docs
This adds documentation for the i2c interface on the
Seeeduino XIAO.

Signed-off-by: Leonard Pollak <leonardp@tr-host.de>
2021-07-25 06:24:21 -04:00
Leonard Pollak
732990a180 boards: arm: Seeeduino XIAO enable i2c
This board has the capability to use SERCOM2 as an i2c
interface on pins 8 and 9.
This adds the neccessary pinmux settings and devicetree
node.

Tested with the i2c shell module.

Signed-off-by: Leonard Pollak <leonardp@tr-host.de>
2021-07-25 06:24:21 -04:00
Ruibin Chang
aba4e68e91 ITE boards/it8xxx2_evb/defconfig: use default clock setting
Use default system clock setting 32768 in
soc/riscv/risc-ite/it8xxx2/Kconfig.

Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
2021-07-24 21:26:49 -04:00
Thomas Stranger
a498ede0d7 doc: stm32wl and stm32l5 boards: update supported features
This commit updates the supported features of stm32l5 and stm32wl boards
to match the devicetree configuration.
- add link to board defconfig and board.dts
- sort supported features table alphabethically by interface.

Additionally CRYP peripheral is added as supported feature to the
mikroe_mini_m4_for_stm32 board documentation.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-07-23 16:25:27 -04:00
Thomas Stranger
809b7c76d3 boards: nucleo_wl55jc and lora_e5_dev_board enable aes
This commit enables aes support for nucleo_wl55jc and
lora_e5_dev_board.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-07-23 16:25:27 -04:00
Thomas Stranger
010d020aef boards: stm32l562e_dk enable aes peripheral
This commit enables the hw aes accelerator on the stm32l562_dk.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-07-23 16:25:27 -04:00
Kumar Gala
5c3ccf97ec boards: arm: lpcxpresso55s69: Fix sram partitioning in devicetree
SRAM partitioning for non-secure should be done via a reserved-memory
node and not fixed-partitions.  fixed-partitions is meant for flash
style devices.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-07-23 09:10:56 -05:00
Francois Ramu
89be03ad10 boards: arm: disco_l475_iot1 board DTS of the dma-cell on quadspi
The stm32l47r soc has a dma of type dma-v2, so the cells have
only 3 elements,. This adpat for the quadspi periph.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-07-22 04:52:53 -04:00
Nicolas Pitre
89482f0119 net: ethernet: bridging support
This adds the ability to create Ethernet bridges for connecting
separate Ethernet segments together to appear as a single
Ethernet network.

This mimics the Linux functionality of the same name.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2021-07-21 18:20:01 -04:00
Scott Worley
d3f6b54f8e Microchip: MEC172x clock control driver
Implement a clock control driver for Microchip MEC172x handling
configuring the 32 KHz input sources for the PLL and peripheral-32k
clock domains. MEC172x differs from MEC152x. MEC152x had one 32K source
for both PLL and peripherals. MEC172x allows the two domains to use
independent 32 KHz sources. Device tree updated to provide addresses
of hardware used by the driver.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-07-21 17:46:07 -04:00