Commit Graph

4352 Commits

Author SHA1 Message Date
Ioannis Glaropoulos 093afd337c boards: nrf5340: update docs to reflect using TFM as the default SPE
Update the documentation of nRF5340 to stress that
TF-M is the default solution for building the Secure
image.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-12-11 11:23:26 +01:00
Ioannis Glaropoulos e1b413ba5c boards: nrf5340: support TFM without BL2 for nRF5340 non-secure
Extend the nRF5340 board's CMakeLists.txt file to
support building TF-M without BL2 for nRF5340. The
result of the build is a single merged-hex containing
TF-M (SPE) and Zephyr (NSPE).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-12-11 11:23:26 +01:00
Ioannis Glaropoulos 2d0deaac3e boards: arm: nrf5340: correct ram information in board yml files
Re-adjust the available RAM advertized by the nRF5340 DK
and PDK .yml files (Application core, Non-Secure version
of the board).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-12-11 11:23:26 +01:00
Ioannis Glaropoulos 164ee22525 boards: arm: nrf5340: modify default SRAM partitioning
Modify the default partitioning of the Application core
SRAM, for Secure and Non-Secure domain, to accommodate
the default build configuration of TF-M. The RAM TF-M
uses should fit into the sram0_secure. The partitioning
should match what TF-M is allocating to secure and non-
secure domain.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-12-11 11:23:26 +01:00
Ioannis Glaropoulos 88a865c28d boards: arm: nrf5340: default to build TFM without BL2 for NS builds
When building with TF-M support (for non-secure Zephyr
applications) default to build TF-M without BL2 support.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-12-11 11:23:26 +01:00
Ioannis Glaropoulos ef8fcdfd93 boards: arm: nrf5340: enable by default TF-M on non-secure builds
Enable building with TF-M by default on nRF5340 DK Application
core (cpuapp) when building for the non-secure version of the
board.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-12-11 11:23:26 +01:00
Kalyan Sriram e2ac6c5d4f boards: arm: blackpill_f411ce: add blackmagicprobe
Adds support for flashing the blackmagicprobe target
for the blackpill_f411ce board.

Signed-off-by: Kalyan Sriram <kalyan@coderkalyan.com>
2020-12-10 06:48:28 -06:00
Kalyan Sriram 459396dcb2 boards: arm: blackpill_f401ce: add blackmagicprobe
Adds support for flashing the blackmagicprobe target
for the blackpill_f401ce board.

Signed-off-by: Kalyan Sriram <kalyan@coderkalyan.com>
2020-12-10 06:48:28 -06:00
Martí Bolívar 3ac6f14417 doc: nRF5340-DK: add note about flash issues
Try to avoid gotchas by adding some more documentation.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-12-09 15:00:24 -06:00
Martí Bolívar 6628a16e4d runners: nrfjprog: boilerplate and recover rework
Rework the runner to improve various issues.

Every board.cmake file for an nRF SoC target is repeating boilerplate
needed for the nrfjprog runner's --nrf-family argument. The
information we need to decide the --nrf-family is already available in
Kconfig, so just get it from there instead. Keep the --nrf-family
argument around for compatibility, though.

This cuts boilerplate burden for board maintainers.

We also need to revisit how this runner handles recovery to fix it
in nRF53 and keep things consistent everywhere else.

To cleanly handle additional readback protection features in nRF53,
add a --recover option that does an 'nrfjprog --recover' before
flashing. Keep the behavior consistent across SoCs by supporting it on
those too. Because this is expected to be a bit tricky for users to
understand, check if a --recover is needed if the 'nrfjprog --program'
fails because of protection, and tell the user how to fix it.

Finally, instead of performing a separate 'nrfjprog --eraseall', just
give --chiperase to 'nrfjprog --program' process's arguments instead
of --sectorerase. This is cleaner, resulting in fewer subprocesses and
avoiding an extra chip reset.

Having a separate 'west flash --recover' option doubles the number of
test cases if we want to keep exhaustively enumerating them. That
doesn't feel worthwhile, so update the test cases by picking a
representative subset of the possibilities. Each test now has enough
state that it's worth wrapping it up in a named tuple for readability.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-12-09 15:00:24 -06:00
Anas Nashif e0f3833bf7 power: remove SYS_ and sys_ prefixes
Remove SYS_ and sys_ from all PM related functions and defines.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-12-09 15:18:29 -05:00
Anas Nashif dd931f93a2 power: standarize PM Kconfigs and cleanup
- Remove SYS_ prefix
- shorten POWER_MANAGEMENT to just PM
- DEVICE_POWER_MANAGEMENT -> PM_DEVICE

and use PM_ as the prefix for all PM related Kconfigs

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-12-09 15:18:29 -05:00
Tomasz Bursztyka 7492841dd1 boards/x86: Enable Intel VT-D for up_squared
Mainly for testing Intel VT-D for now.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-12-08 09:29:20 -05:00
Anas Nashif 6bf01e6b10 Revert "boards: define flash partitions for nucleo_h743zi"
This reverts commit 7516d5846d.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-12-07 19:02:48 -05:00
Nicolas VINCENT 7516d5846d boards: define flash partitions for nucleo_h743zi
Defines partitions that can be used by mcuboot on nucleo_h743zi board.
Please note that mcuboot is not yet supported on stm32 h7 family as the
write-block-size is greater than 8.

Signed-off-by: Nicolas VINCENT <nicolas.vincent@vossloh.com>
2020-12-07 16:16:11 -05:00
Guillaume Paquet 40f2524859 boards: arm: nordic: rakwireless Introduce rak5010_nrf52840 board
Add rak5010 board from RAKWireless based on nrf52840.
Board Documentation is completed

Signed-off-by: Guillaume Paquet <guillaume.paquet@smile.fr>
2020-12-07 14:51:28 -06:00
Mulin Chao a279b4cfb7 drivers: adc: add adc support in npcx7 series
NPCX7 includes a 10-bit resolution Analog-to-Digital Converter (ADC). Up
to 10 voltage inputs can be measured and a internal voltage reference
(VREF), 2.816V (typical) is used for measurement. It can be triggered
automatically in Autoscan mode. Each input channel is assigned a
separate result register, which is updated at the end of the conversion.

The CL also includes:
— Add npcx adc device tree declarations.
— Zephyr adc api implementation.
— Add adc definitions of npcx7 in
  tests/drivers/adc/adc_api/src/test_adc.c for supporting test suites.

Signed-off-by: Mulin Chao <MLChao@nuvoton.com>
2020-12-07 12:11:17 -05:00
Watson Zeng 510c58f3b1 arc: mdb-nsim runner: launch cores according CONFIG_MP_NUM_CPUS
nsim_hs_smp has 2 cores, and CONFIG_MP_NUM_CPUS defalut value is 2.
But some tests will have extra config: CONFIG_MP_NUM_CPUS=1, so we
need to launch cores according CONFIG_MP_NUM_CPUS, not using a fix
number 2.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2020-12-07 11:06:26 -05:00
Watson Zeng 9137d11beb arc: nsim_hs_smp: use the default value of mdb instrs_per_pass option
Instrs_per_pass option specify the number of instructions excuted
before simulator switches operations. the default value is 512. If we
specify a small value for it the debugger's overhead will increase
significantly for simulation because of the time taken to rapidly
switch operations. And the overhead will cause some time critical
task failure.

Restore instrs_per_pass value from 10 to default 512, we will have a
good sanitycheck result for nsim_hs_smp.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2020-12-07 11:06:26 -05:00
Gerson Fernando Budke c1a547fd46 boards: arm: sam4: Enable bossac bootloader runner
The SAM4E/S SoC have a ROM bootloader named SAM-BA.  Add bossac
to the board west runner list.  This requires Zephyr SDK 0.12.0.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-12-07 09:11:34 -06:00
Johann Fischer 2f6164e2e5 shields: enable SD card support on Waveshare Epaper shield
Enable SD card support on Waveshare Epaper shield.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2020-12-07 12:56:13 +01:00
Johann Fischer c1fdf92172 shields: enable SD card support on adafruit_2_8_tft_touch_v2
Enable SD card support on Adafruit 2.8 TFT Touch v2 shield.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2020-12-07 12:56:13 +01:00
Pawel Czarnecki 967d336dae boards: riscv: litex_vexriscv: enable clock control driver
This enables the LiteX clock control driver for litex_vexriscv platform.

Signed-off-by: Pawel Czarnecki <pczarnecki@internships.antmicro.com>
Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
2020-12-06 12:35:16 -05:00
Pawel Czarnecki 98fd9d0975 boards/dts: riscv: litex_vexriscv: add clock control driver to devicetree
This extends litex_vexriscv.dts file by adding clock controller nodes.

Signed-off-by: Pawel Czarnecki <pczarnecki@internships.antmicro.com>
Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
2020-12-06 12:35:16 -05:00
Carlo Caione d9666ff4d0 qemu_cortex_a53: Get SRAM info from DTS
SRAM base address and size are currently hardcoded in the defconfig.
This is wrong because symbols like KERNEL_RAM_SIZE and KERNEL_VM_BASE
are not currently being set. Fix this by adding the correct DTS entry.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2020-12-05 10:24:54 -05:00
Andrei Gansari f48c82ebe7 boards: lpcxpresso55s69: enable TFM with MCUboot
Set building TFM with MCUboot. Set the build configuration to
profile_medium, we need smaller TFM images to fit into flash.
Build MCUboot, TFM, sign it, sign Zephyr NS image and merge all the
images. Also change the other configuration, BL2=OFF, to merge as a
single image.
Update documentation on how to flash the board.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2020-12-04 15:06:56 +02:00
Andrei Gansari d969debb10 boards: lpcxpresso55s69: BL2=OFF memory settings
Create a special configuration when BL2=OFF is set. DTS partitioning is
used for MCUboot, but does not match TFM's flash_layout.h configuration
when BL2=OFF, DTS matches when BL2=ON.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2020-12-04 15:06:56 +02:00
Andrei Gansari 38c5cf63e9 boards: lpcxpresso55s69: partition refactor
Refactor lpcxpresso55s69's partitions to match TFM's flash_layout.h
configuration. This matches TFM with MCUboot configuration.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2020-12-04 15:06:56 +02:00
Martin Åberg 5166b74d5f boards: set CPU_HAS_FPU on LEON3 soc and boards
GR716A and QEMU has FPU.

Signed-off-by: Martin Åberg <martin.aberg@gaisler.com>
2020-12-04 14:33:43 +02:00
Wu Han f28bbe96f2 boards: arm: Add stm32f103_mini board
STM32F103RCT6 mini system board with many variations.

Signed-off-by: Wu Han <wuhanstudio@qq.com>
2020-12-03 10:54:38 -06:00
Erwan Gouriou 36a330a470 boards: nucleo_h7: Remove --use-elf runner instruction
I don't have much explanation for this change except that
I can't program soc on these boards with this option being set.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-03 11:33:20 -05:00
Erwan Gouriou 348996fbe4 boards: nucleo_h743zi: Fix openocd configuration
Similar to what was done for other h7 based boards,
use 'connect_assert_srst' and fix init routine.

Fixes #29732

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-03 11:33:20 -05:00
Erwan Gouriou 72b5bebaca boards: stm32h747i_disco: Assign usart8 to m4 target
Resource sharing between m7 and m4 core was a bit abusive
as the whole SERIAL ports where disabled on m4 core.
Since it is possible to use a finer grain resource sharing and
having no serial node configured could lead to compilation issue
in some samples assign usart8 to m4 target.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-03 11:33:20 -05:00
Erwan Gouriou c34d776f15 boards: stm32h747i_disco: Minor doc fix.
Minor doc addition within _m7 target dts file.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-03 11:33:20 -05:00
Erwan Gouriou cece97b96c boards: Fix openocd debug config on stm32h7 based boards
On these 3 stm32h7 based boards, 'connect_assert_srst' should
be used in order to be able to program after board unplug/plug.

Problem is that 'connect_assert_srst' prevents gdb-attach procedure
to complete which now requires 'reset halt' to be performed before
hand.
Fix this by forcing 'reset halt' by introducing a new init routine.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-03 11:33:20 -05:00
Erwan Gouriou 2c46d70ac1 boards: nucleo_h723zg: Use openocd as default flash interface
Since this board is fully supported on openocd,
let's use openocd to comply with other boards and
remove the dependency on stm32cubeprogrammer.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-03 11:33:20 -05:00
Christian Taedcke ec6e09a6e0 boards: lpcxpresso55s69 fix some arduino an mikrobus pins
Some pins on the arduino header and on the mikrobus header were wrong.
These are now corrected. They are the same on the lpcxpresso55s28
board.

Signed-off-by: Christian Taedcke <christian.taedcke@lemonbeat.com>
2020-12-03 03:58:58 -06:00
Erwan Gouriou e452867e2f boards/shields: x_nucleo_iks01a3: No irq-gpio on stm32mp157c_dk2
On stm32mp157c_dk2, the pin mapped on arduino connector pin A3
could not be used as GPIO.
As a consequence, pin "irq-gpio" from x_nucleo_iks01a3 shield
should not be used.

Use board overlay to remove it from shield definition.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-02 13:17:30 -06:00
Gerson Fernando Budke cfba66aa78 boards: arm: sam4l_ek: Enable gpio tests
Enable GPIO tests and update hardware table documentation.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-12-02 11:48:43 -06:00
Gerson Fernando Budke 752f00c959 drivers: gpio: sam: Add sam4l SoC support
Add initial version of SAM4L GPIO driver.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-12-02 11:48:43 -06:00
Erwan Gouriou fe3bf7b227 boards: stm3f4_disco: Fix button gpio config
According to boards schematics, user button is pulled down by
external resistor when not pressed and pushing the button sets
it to high.

Fixes #30224

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-11-30 15:51:07 -06:00
Paul M. Bendixen a888e925c3 boards: MikroE Clicker 2: Added board
Added support for the Clicker 2 for STM32 board from MikroElektronika

Signed-off-by: Paul M. Bendixen <pbe@trifork.com>
2020-11-30 15:50:59 +01:00
Martin Jäger 92e16191ac drivers: gpio: stm32: use generic LL headers
Use generic LL headers instead of depending on soc.h.

Signed-off-by: Martin Jäger <martin@libre.solar>
2020-11-30 15:50:03 +01:00
Ioannis Glaropoulos 018d2b2325 boards: arm: nRF5340: add a note about required nRF CL tools
Add a note in the documentation regarding the required
nRF Command Line Tools for properly working with the
nRF5340 DK.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-11-27 14:48:13 +02:00
Gerson Fernando Budke a937487087 soc: arm: sam4s: Add common Kconfig defs
The current SAM4S define at board level common flags that should be on
soc defines.  Add common flags at SoC Kconfig defines and drop the
correspondent at board defines.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-11-26 13:51:23 +01:00
Gerson Fernando Budke 435f369636 soc: arm: sam4e: Add common Kconfig defs
The current SAM4E define at board level common flags that should be on
soc defines.  Add common flags at SoC Kconfig defines and drop the
correspondent at board defines.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-11-26 13:51:23 +01:00
Erwan Gouriou 82c614ac9d boards: Fix 2 liners copyright
Convert 2 lines copyright before this new format starts creating
the new in vogue style.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-11-26 13:51:04 +01:00
Alexander Kozhinov a796a3ea90 boards: arm: nucleo_h723zg
add new board

Signed-off-by: Alexander Kozhinov <AlexanderKozhinov@yandex.com>
2020-11-25 15:07:59 +02:00
Erwan Gouriou 610fd27164 boards: nulceo_l552ze_q: Enable MPU on ns target
The bug on TFM that prevented to enable MPU on NS side is
fixed on TFM current version.
MPU can now be safely enabled on NS target.

Fixes: #27809

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-11-25 14:27:11 +02:00
Gerard Marull-Paretas ca3488cb9b boards: stm32h747i_disco: enable SDRAM
Enable SDRAM on M7 core.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-24 16:33:17 +01:00