Commit Graph

6418 Commits

Author SHA1 Message Date
Gerard Marull-Paretas fa0dc683fd boards: arm: nrf9160_innblue22: use regulators
The board enabled power switches at init time, hardcoding switch
information in a board C file. This patch makes use of the regulator
infrastructure to describe such power switches in DT, making the board
specific C code obsolete. CONFIG_REGULATOR is only enabled if
CONFIG_SENSOR=y, as switches power sensors.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-06-27 12:23:00 -05:00
Gerard Marull-Paretas bfe2c4eef9 boards: arm: nrf9160_innblue21: use regulators
The board enabled power switches at init time, hardcoding switch
information in a board C file. This patch makes use of the regulator
infrastructure to describe such power switches in DT, making the board
specific C code obsolete. CONFIG_REGULATOR is only enabled if
CONFIG_SENSOR=y, as switches power sensors.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-06-27 12:23:00 -05:00
Kumar Gala 01640b9cda boards: remove usage of DT_LABEL
A number of boards utilize device_get_binding(DT_LABEL(...)) to
get a gpio for some purpose.  Switch over to using DEVICE_DT_GET
and device_is_ready() instead.  This is part of the ongoing
cleanup towards phasing out usage of the "label" property in DTS.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-06-27 12:45:19 +02:00
Aurelien Jarno 46618e4b86 boards: arm: nucleo_h7a3zi_q: add USB support
The Nucleo H7A3ZI-Q board has a micro USB connector connected to the USB
OTG HS controller. Enable it and update the documentation.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2022-06-24 20:25:52 +02:00
Alexandr Kolosov fc88a2a1fe boards: riscv: tlsr9518adk80d: add IMG_BLOCK_BUF_SIZE to board defconfig
Add IMG_BLOCK_BUF_SZE config into tlsr9518adk80d_defconfig due to
limitations for buffer image writter. The buffer shall be less (multiple
of access alignment) or equal to flash page. tlsr9518adk80d boards use
external P25Q16 IC as flesh memory. Flash page size of the IC is 256
bytes. So that, it is maximum image writer buffer size for such kind of
boards.

Signed-off-by: Alexandr Kolosov <rikorsev@gmail.com>
2022-06-24 20:25:33 +02:00
Alex Kolosov 1ddabc22f7 boards: riscv: tlsr9518adk80d: add new flash partition to the board dts
- Remove flash_mspi node that contains old one flash partition
- Add new partition in flash node
- Add the partition into choosen
- Add led2, led3 into aliases

Signed-off-by: Alex Kolosov <rikorsev@gmail.com>
2022-06-24 20:25:33 +02:00
Alex Kolosov 4a52bc22b6 soc: riscv: telink_b91: add dfu related configurations for b91 platform
Modify Telink b91 config files and linker script with necessary config
settings required for DFU.

Signed-off-by: Alex Kolosov <rikorsev@gmail.com>
2022-06-24 20:25:33 +02:00
Benjamin Björnsson 4db3b0c0d4 boards: arduino_nano_33_ble: Pull user LED low during board init
Pull user LED low during board init since the Arduino bootloader
leaves it high.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2022-06-23 15:47:32 -05:00
Rubin Gerritsen 8619e0300a boards: nrf52_bsim: Replace irq name table with function call
The interrupt names are now defined in the HW models.
As a result, all source files in the nrf52_bsim folder are now
free of nrf52832 specific references. Therefore these can in
theory be used for other models as well.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2022-06-23 14:35:26 +02:00
Erwan Gouriou c107ec44b6 boards: stm32: Add zephyr_udc0 when it is missing.
Some STM32 based boards where missing the alternate node label zephyr_udc0,
leading to build issues when compiling usb samples.

Fixes #46626

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-06-23 09:10:20 +02:00
Dmytro Firsov 9891f16d67 xenvm: doc: Update docs for Xen VM according to new evtchn functionality
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2022-06-22 17:53:45 +02:00
Benjamin Björnsson 48e905c731 boards: arm: arduino_nicla_sense_me: Add user button
This commit adds a user button to the board DTS.

The button is not connected to nRESET as suggested
by the board schematics, but rather connected to
P0.21. The source code found in the Arduino IDE
connects an interrupt to this GPIO and calls
NVIC_System_Reset from there to cause the reset.

The button was therefore added as a regular button
to cover the most general case.

This has been verified on an Arduino Nicla Sense ME.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2022-06-22 14:37:35 +02:00
Keith Packard d0c75f3b96 lib/libc: Add picolibc support (aarch32, aarch64 and RISC-V) [v21]
Picolibc is a fork of newlib designed and tested on embedded systems. It
offers a smaller memory footprint (both ROM and RAM), and native TLS
support, which uses the Zephyr TLS support.

By default, the full printf version is included in the executable, which
includes exact floating point and long long input and output. A
configuration option has been added to switch to the integer-only
version (which also omits long long support).

Here are some size comparisons using qemu-cortex-m3 and this application
(parameters passed to printf to avoid GCC optimizing it into puts):

void main(void)
{
    printf("Hello World! %s %d\n", CONFIG_BOARD, 12);
}

                       FLASH    SRAM
    minimal             8696    3952
    picolibc int        7600    3960
    picolibc float     12304    3960
    newlib-nano int    11696    4128
    newlib-nano float  30516    4496
    newlib             34800    6112

---

v2:
	Include picolibc-tls.ld

v3:
	Document usage in guides/c_library.rst and
	getting_started/toolchain_other_x_compilers.rst

v4:
	Lost the lib/libc/picolibc directory somehow!

v5:
	Add PICOLIBC_ALIGNED_HEAP_SIZE configuration option.
	Delete PICOLIBC_SEMIHOST option support code

v6:
	Don't allocate static RAM for TLS values; TLS
	values only need to be allocated for each thread.

v7:
	Use arm coprocessor for TLS pointer storage where supported for
	compatibility with the -mtp=cp15 compiler option (or when the
	target cpu type selects this option)

	Add a bunch of tests

	Round TLS segment up to stack alignment so that overall stack
	remains correctly aligned

	Add aarch64 support

	Rebase to upstream head

v8:
	Share NEWLIB, NEWLIB_NANO and PICOLIBC library configuration
	variables in a single LIBC_PARTITIONS variable instead of
	having separate PICOLIBC_PART and NEWLIB_PART variables.

v9:
	Update docs to reference pending sdk-ng support for picolibc

v10:
	Support memory protection by creating a partition for
	picolibc shared data and any pre-defined picolibc heap.

v11:
	Fix formatting in arch/arm/core/aarch64/switch.S

v12:
	Remove TLS support from this patch now that TLS is upstream
	Require THREAD_LOCAL_STORAGE when using PICOLIBC for architectures
	that support it.

v13:
	Merge errno changes as they're only needed for picolibc.
	Adapt cmake changes suggested by Torsten Tejlmand Rasmussen

v14:
	Update to picolibc 1.7 and newer (new stdin/stdout/stderr ABI)

v15:
	Respond to comments from dcpleung:
	* switch kernel/errno to use CONFIG_LIBC_ERRNO instead of
          CONFIG_PICOLIBC
	* Add comment to test/lib/sprintf as to why the %n test
	  was disabled for picolibc.

v16:
	Switch picolibc to a module built with Zephyr. This eliminates
	toolchain dependencies and allows compiler settings for Zephyr
	to also be applied to picolibc.

v17:
	Provide Zephyr-specific 'abort' implementation.
	Support systems with MMU

v18:
	Allow use of toolchain picolibc version.

v19:
	Use zephyr/ for zephyr headers

v20:
	Add locking
	Use explicit commit for picolibc module

v21:
	Create PICOLIBC_SUPPORTED config param. Set on arc, arm, arm64,
	mips and riscv architectures.

Signed-off-by: Keith Packard <keithp@keithp.com>
2022-06-22 13:15:55 +02:00
Vinayak Kariappa Chettimada 87fec9d98d boards: nrf5340dk_nrf5340_cpunet: Remove explicit BT_HCI_VS enable
Remove explicit BT_HCI_VS enable, this will be enabled when
the used Controller selects BT_HAS_HCI_VS.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2022-06-22 12:28:05 +02:00
Vinayak Kariappa Chettimada 048619639d boards: nrf5340dk_nrf5340_cpunet: Disable BT_ECC support
Disable BT_ECC support in network core to reduce RAM usage.
ECC implementation can instead be supported in the Host
running in the application core.

This is also to keep hci_uart (nRF52 Series) and hci_rpmsg
(nRF53 Series) have the same support features. ECC is not
enabled in hci_uart sample.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2022-06-22 12:28:05 +02:00
Sylvio Alves b8dbe08425 soc: esp32s2: fix invalid storage address
Fix duplicated storage address.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2022-06-22 12:27:32 +02:00
Martin Jäger ac47200150 boards: arm: nucleo_f446re: use can2 instance for testing
Choose can2 as the zephyr,canbus instance and add necessary settings
for testing of the STM32 dual CAN driver implementation.

Signed-off-by: Martin Jäger <martin@libre.solar>
2022-06-22 12:25:26 +02:00
Henrik Brix Andersen b39960a5df boards: arm: twr_ke18f: enable I2C bus recovery
Enable I2C bus recovery for LPI2C0 and LPI2C1 on the NXP TWR-KE18F
development board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-06-22 12:24:08 +02:00
Henrik Brix Andersen 83206a425f boards: arm: mimxrt1024_evk: enable I2C bus recovery
Enable I2C bus recovery for LPI2C4 on the NXP i.MX RT1024 Evaluation Kit
board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-06-22 12:24:08 +02:00
Yinfang Wang 4278d69924 test: Enable the GPIO tests on EHL_CRB.
Enable testcases under tests/drivers/gpio/gpio_basic_api
To run in twister, "-X gpio_loopback" parameter is needed.

Signed-off-by: Yinfang Wang <yinfang.wang@intel.com>
2022-06-21 10:47:56 +02:00
Jeremy Bettis 44eb40187c npcx9m6f_evb: Instructions on how to flash board
Add instructions on how to flash blinky sample to this board using jlink
jtag programmer.

Signed-off-by: Jeremy Bettis <jbettis@google.com>
2022-06-20 10:26:11 +02:00
Evgeniy Paltsev c9f23499ff boards: ARC: nsim: simplify runner setup & pass MP_NUM_CPUS unconditionally
Do not check for exact SoC to pass '--cores=${CONFIG_MP_NUM_CPUS}'
options to runners an pass it unconditionally instead.

That preventis from issues when adding new SoC/board.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2022-06-16 10:48:48 -04:00
Kumar Gala 4aae32640f dts: arm/arm64: remove DTS 'label' property requirement from gic and timer
The armv8 timer, arm gic, and arm gic-v3-its don't use or need the
devicetree label property.  Update the dts bindings to not require it and
remove setting of the label property in dts files.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-06-16 09:48:12 -05:00
Filip Kokosinski c3c100787c boards/riscv/hifive_unmatched: add board image
This commit add the image of the SiFive HiFive Unmatched board to the
docs.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-06-16 11:27:39 +02:00
Filip Kokosinski 1cc29873e8 boards/riscv/hifive_unleashed: add board image
This commit adds the image of the SiFive HiFive Unleashed boards to the
docs.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-06-16 11:27:39 +02:00
Filip Kokosinski b642e0c6a2 boards/riscv/hifive1_revb: add board image
This commit adds the image of the SiFive HiFive1 Rev B board to the
docs.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-06-16 11:27:39 +02:00
Filip Kokosinski f5bd089a85 boards/riscv/hifive1: fix link and add board image
This commit fixes link pointing to HiFive1's page on the vendor site and
adds its image to the docs.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-06-16 11:27:39 +02:00
Aurelien Jarno c7b46f7baa boards: arm: nucleo_h7a3zi_q: increase the CPU frequency
The STM32H7A3 SoC supports a CPU clock up to 280 MHz for VOS0. The AHB
bus is also limited to 280 MHz, while the APB buses are limited to
140 MHz.

This patch updates the PLL configuration to change the CPU frequency to
280 MHz, while tkaing into account the above constraints.

The Q output divisor is adjusted to keep a frequency in the same range,
in practice increased from 48 to 56 MHz. It is currently only used by
the SPI so that should not be an issue, especially given the SPI
interface can use much higher frequencies.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2022-06-16 11:26:35 +02:00
Filip Kokosinski 3ed800edb8 boards/riscv/hifive_unleashed: add Renode simulation support
This commit adds Renode simulation support to the HiFive Unleashed
board.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-06-16 10:28:58 +02:00
Gerard Marull-Paretas 4c8a8149de dts: add reg-shift property to all ns16550 devices
The ns16550 flags reg-shift property as optional. In case it is not
supplied, the ns16550 driver relies on a value defined in <soc.h>, or,
by default it takes 4 (shift by 2).

This patch adds the property to all ns16550 nodes, with the following
values:

- 2 if SoC did not have any custom value defined by
  UART_REG_ADDR_INTERVAL (corresponds to 1 << 2 = 4)
- If SoC defined DEFAULT_REG_INTERVAL (snps_arc_iot/it8xxx2), use such
  value (4=2, 2=1, 1=0).

These changes will allow simplifying the ns16550 driver.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-06-15 16:59:02 -05:00
Jaxson Han cb19bd4fc2 boards: arm64: xenvm: Fix build issues
Temporarily set CONFIG_LOG_MODE_MINIMAL=n and CONFIG_USERSPACE=n to fix
the build error.

Signed-off-by: Jaxson Han <jaxson.han@arm.com>
2022-06-15 09:12:40 +02:00
Jaxson Han 1b028dc0e6 dts: bindings: Add Xen Platform related dts bindings
Add the Xen Platform related dts bindings.

Signed-off-by: Jaxson Han <jaxson.han@arm.com>
2022-06-15 09:12:40 +02:00
Rajavardhan Gundi e68913567d Revert "boards: mec1501modular: build without image gen tool"
This reverts commit 209e4ee1a1
which had broken the "spi_gen utility find" functionality.

Signed-off-by: Rajavardhan Gundi <rajavardhan.gundi@intel.com>
2022-06-14 11:40:16 -04:00
Henrik Brix Andersen 06465c0504 boards: arm: holyiot_yj16019: use LFRC RC oscillator
The 32.768 kHz crystal shown on the Holyiot YJ-16019 schematics is not
mounted. Enable the LRRC RC oscillator instead.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2022-06-14 09:31:57 +02:00
Anas Nashif 798a552daf boards: intel_s1000_crb: remove board/soc
Remove the intel_s1000_crb board. it is no longer available or supported
in the zephyr tree.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-06-13 16:19:51 -04:00
Naga Sureshkumar Relli 63cf51440d boards: riscv: Add qspi flash to Polarfire SOC icicle board
The MT25QL256 part is connected via the RPI connector using Fabric IOs
on the Polarfire SOC Icicle Kit.

Signed-off-by: Naga Sureshkumar Relli <nagasuresh.relli@microchip.com>
2022-06-13 12:11:28 +02:00
Chay Guo a4c9e13ea8 boards: arm: Enable flash for storage on mimxrt595_evk
- The MX25UM51345G flash is connected to FLEXSPI PortA for
  mimxrt595_evk.
- Updated flexspi_mx25um51345g driver to support DTR OPI mode.
- Tested with tests/drivers/flash.

Signed-off-by: Chay Guo <changyi.guo@nxp.com>
2022-06-13 12:10:57 +02:00
Chay Guo c846537820 boards: arm: Add wdog support on mimxrt595_evk
Add watchdog support to the mimxrt595 platform.
The mimxrt595 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 rt595 does not retain this memory through a
reset.

Signed-off-by: Chay Guo <changyi.guo@nxp.com>
2022-06-13 12:10:57 +02:00
Chay Guo fdca36e1cc boards: arm: mimxrt595: Add CTimer driver for mimxrt595_evk
Add counter support using CTimer for RT595.
Tested with samples/drivers/counter/alarm.

Signed-off-by: Chay Guo <changyi.guo@nxp.com>
2022-06-13 12:10:57 +02:00
Chay Guo 77a0bc2135 boards: mimxrt595: Add SPI support
Enable access to the HS_SPI pins(JP26) on the mimxrt595_evk board.
Using DMA mode, tested with spi_loopback testcase.

Signed-off-by: Chay Guo <changyi.guo@nxp.com>
2022-06-13 12:10:57 +02:00
Chay Guo 705ab550d1 boards: arm: Added DMA support on MIMXRT595-EVK
Added DMA driver support.
Tested with tests/drivers/dma/loop_transfer

Signed-off-by: Chay Guo <changyi.guo@nxp.com>
2022-06-13 12:10:57 +02:00
Chay Guo 0d64506130 boards: Add I2C and sensor driver support on MIMXRT595-EVK
Enable I2C access to FXOS7000 sensor on the mixrt595_evk board
Tested using samples/sensor/fxos8700 for mimxrt595_evk_cm33.

Signed-off-by: Chay Guo <changyi.guo@nxp.com>
2022-06-13 12:10:57 +02:00
Kumar Gala bb03af637c drivers: gpio: remove unused HAS_DTS_GPIO Kconfig symbol
All the gpio drivers are based on devicetree and thus we always set
HAS_DTS_GPIO, thus we don't need this Kconfig option anymore.  Remove
uses as its safe to assume DTS is supported for GPIO.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-06-10 09:47:31 +02:00
Kumar Gala a7af8ce6a7 drivers: disk: Remove use of unused devicetree "label" property
We should avoid use of the label property in devicetrees.  The
'zephyr,sdmmc-disk' compatible node has a 'label' property set
but there isn't any code utilizing this so removing the property
from any devicetrees that have it set (as well as example in docs).

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-06-10 09:46:46 +02:00
Marcin Niestroj d87277d879 boards: arm: seeeduino_xiao: fix vendor prefix
Use "seeed" instead of "seeedstudio", as the former is registered in
`dts/bindings/vendor-prefixes.txt`.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2022-06-09 11:33:48 +02:00
Chay Guo 191f93c325 boards: Add analog comparator support on MIMXRT1170 EVK
Updated mcux_acmp sample to support discrete mode config.
Add ACMP support on MIMXRT1170 EVK.

Signed-off-by: Chay Guo <changyi.guo@nxp.com>
2022-06-09 11:30:49 +02:00
Fu Haolei bf21e849cd doc: it8xxx2: Documentation improvements
Better documentation describing the flashing and booting process.

Signed-off-by: Fu Haolei <haolei.fu@intel.com>
2022-06-08 12:43:23 +02:00
Yannis Damigos 7721432486 boards/odroid_go: Add bluetooth support
Add bluetooth support

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2022-06-08 12:43:10 +02:00
Carlo Caione 0c053190b7 riscv: Introduce qemu_riscv32e board.
To support and test RV32E.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2022-06-08 18:50:22 +09:00
Tomasz Gorochowik 7cef5d7231 docs: fix QuickFeather board name in the docs
This change is required to generate proper build command in the docs.

Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
2022-06-07 10:08:29 -07:00