Commit graph

3800 commits

Author SHA1 Message Date
Michael Hope 3903b12fc1 boards: arm: add the Arduino Nano 33 IOT
The Arduino Nano 33 IOT is a a small form factor development board
with USB, Wifi, Bluetooth, a 6 axis IMU, and secure element.

Signed-off-by: Michael Hope <mlhx@google.com>
2020-07-12 13:21:24 +02:00
Jared Wolff 126a5678a6 boards: arm: nrf: Adding board.c to nRF9160 Feather def
Allows the Circuit Dojo nRF9160 Feather to remain powered on
battery power.

Signed-off-by: Jared Wolff <hello@jaredwolff.com>
2020-07-10 17:56:00 +02:00
Jared Wolff 11966acdd3 boards: arm: nrf: Adding Circuit Dojo nRF9160 Feather definitions.
Adding the Circuit Dojo nRF9160 Feather device tree definitions.
Both secure and non secure targets.

Signed-off-by: Jared Wolff <hello@jaredwolff.com>
2020-07-10 17:56:00 +02:00
Alexandre Bourdiol e09fcca8a8 boards: arm: nucleo_f767zi: ethernet restriction on cut-A
nucleo_f767zi with soc cut-A (Device marking A) has some ethernet
restrictions.
Use of cut-Z is adviced.

fixes #26519

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2020-07-10 12:05:54 +02:00
Daniel Leung d0e36f2cac boards: intel_s1000_crb: add zephyr,flash-controller to DTS
The board has a SPI NOR flash enabled by default but was missing
the "zephyr,flash-controller" in DTS. This prevents the flash
shell sample to compile. So add the DTS entry.

Fixes #26764

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2020-07-09 14:03:14 -04:00
Stephanos Ioannidis 3322489d22 config: Rename TEXT_SECTION_OFFSET to ROM_START_OFFSET
The `TEXT_SECTION_OFFSET` symbol is used to specify the offset between
the beginning of the ROM area and the address of the first ROM section.

This commit renames `TEXT_SECTION_OFFSET` to `ROM_START_OFFSET` because
the first ROM section is not always the `.text` section.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2020-07-09 14:02:38 -04:00
Maureen Helm 18bb0b8904 boards: arm: Clean up lpcxpresso55s16 board.cmake
Cleans up the lpcxpresso55s16 board.cmake to make it consistent with
other lpc boards. jlink.board.cmake sets the default runner to jlink if
not already set.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2020-07-09 07:58:50 -05:00
Maureen Helm 8a8b90d6d1 boards: arm: Clean up zephyr-app-commands usage in frdm_k82f board doc
Cleans up the frdm_k82f board document to make its usage of
zephyr-app-commands consistent with other frdm boards.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2020-07-09 07:58:50 -05:00
Maureen Helm 877997e71f boards: arm: Remove OPENSDA_FW cmake variables from nxp boards
The OPENSDA_FW and LPCLINK_FW cmake variables are remnants of pre-west
days where we used an environment variable to set the desired debug host
tool, such as jlink or pyocd, based on which debug probe firmware was
loaded on the board. We now have two possible ways to do this, neither
of which requires the nxp-specific OPENSDA_FW or LPCLINK_FW variables:

1. Set standardized cmake runner variables when generating the build
   system:
   $ west build -- -DBOARD_FLASH_RUNNER=jlink -DBOARD_DEBUG_RUNNER=jlink

2. Use the west "--runner" argument with the debug and flash commands:
   $ west debug -r jlink

Remove the now unnecessary OPENSDA_FW ond LPCLINK_FW variables and
update board documentation accordingly.

A few boards (frdm_kw41z, hexiwear_k64, mimxrt10{20,50,60,64}_evk)
reordered pyocd.board.cmake and jlink.board.cmake includes to preserve
the default runner when OPENSDA_FW was not explicitly set.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2020-07-09 07:58:50 -05:00
Peter Bigot 9dc7640ede spi-device: set CS gpio flags for all devices that had none
The generic SPI GPIO chip select support now respects devicetree flags
for signal active level.  Update all cs-gpios properties to specify
active low.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-07-09 06:07:07 -05:00
Gerson Fernando Budke 1b293b2ba5 boards: arm: samr21: Add active low CS gpio flags
Update cs-gpios flag with active low value to instruct spi driver how
to handle cs signal.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-07-08 23:22:19 -04:00
Stéphane D'Alu d9619e493d boards: decawave_dwm1001_dev: make button active low
Make the board button active low.

Signed-off-by: Stéphane D'Alu <sdalu@sdalu.com>
2020-07-08 16:10:25 -05:00
Christian Taedcke 2872af1a93 boards: efr32mg_sltb004a: Add support for sensor ccs811
The on-board sensor has a enable pin that must be pulled
high in order to power the sensor.
Since no i2c sensor connected to ENV_I2C is supported by zephyr yet,
changed the pins of i2c1 to be connected to CCS811_I2C pins.

Signed-off-by: Christian Taedcke <christian.taedcke@lemonbeat.com>
2020-07-08 15:31:03 -05:00
Ioannis Glaropoulos 619a498845 soc: arm: nrf5340: remove DTS nodes for non-functional devices
Several peripherals are non-functional in the ENG_A revision
of nRF5340 (Application MCU) so we delete the corresponding
DTS nodes in the device description.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Ioannis Glaropoulos c6c978ad19 boards: nrf5340dk_nrf5340: properly choose UARTE pins for Network MCU
When building for nRF5340 Application MCU we need to properly
select which are the default GPIO port/pins for UARTE on the
Network MCU (so we allocate them to Network MCU). These  depend
on the actual version of the board we are using (PDK or DK) so
this commit implements the corresponding conditional logic.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Ioannis Glaropoulos e684dfa399 boards: arm: nrf5340: enable erratum19 configuration on nRF5340 PDK
When building for nRF5340 PDK board, enable Kconfig option
for Erratum 19. Do not enable when building on nRF5340 DK.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Ioannis Glaropoulos ee92112502 boards: arm: nrf5340: add definition for nRF5340 DK
Add the board definition for Nordic
nRF5340 DK.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Ioannis Glaropoulos cbc52292b1 boards: arm: nrf5340: rename nRF5340 board definition directory
We rename the nRF5340 board directory to
nrf5340dk_nrf5340 since this will be now
containing board definitions for both the
nRF5340 PDK and DK.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Ioannis Glaropoulos f1801fac34 boards: arm: nrf5340: refactor common board Kconfig structure
Refactor the common Kconfig and build files of nRF5340
board definition to enable building for either nRF5340
PDK or DK.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Ioannis Glaropoulos 6b93b493ca boards: arm: nrf5340pdk: remove un-needed nrf5340pdk prefix
We do not need to have the nrf5340pdk_ prefix in the
partition configuration and sram planning files for
nrf5340 platforms because these files may be common
for any nrf5340 board variant. Also, we do not need
it in the common .dts header for the Application MCU.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Ioannis Glaropoulos ac9901d5fc dts: arm: nordic: add Eng A suffix to nRF5340 CPUAPP .dtsi headers
Rename the nRF5340 QKAA variant .dtsi headers (Application
MCU) by adding an Engineering A (Eng A) suffix. This is done
to indicate that the headers should be explicitly used when
building for a board that contains the Engineeering A nrf5340
SoC variant.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Ioannis Glaropoulos e65f57bdb1 boards: arm: nrf5340: remove SoC compatibles from board node
We do not need to list the SoC compatibles in the
PDK node definition, this was accidentally left out.
Removing it in this commit.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-07-08 10:45:57 +02:00
Daniel Leung cbb252adef boards: x86: update build_grub.sh for Python 3
Since Python 2 is already EOL, Linux distributions are starting
to drop support for Python 2. For example, on Ubuntu 20.04,
"python" is no longer available. This breaks the bootstrap
and autogen.sh as they are both default to executing "python".
Fix this by setting the PYTHON environment variable before
building so both scripts will use python3 instead.

Also update git checkout to grab the official 2.04 release.

Fixes #25398

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2020-07-07 22:14:16 -04:00
Johann Fischer cfe0a688b2 boards: fix SPI GPIO CS, display and link_board_eth
Since commit 5963ebaf33
("drivers: spi: CS configuration through devicetree")
the SPI GPIO CS flags are obtained from DT,
but the patch series has missed the necessary changes
in the device trees for displays and link_board_eth.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2020-07-07 15:08:16 +02:00
Johann Fischer d261de8960 drivers: dw1000: fix SPI GPIO CS
Since commit 5963ebaf33
("drivers: spi: CS configuration through devicetree")
the SPI GPIO CS flags are obtained from DT,
but the patch series has missed the necessary changes
for the ieee802154_dw1000 driver and decawave_dwm1001_dev board.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2020-07-07 15:08:16 +02:00
Abhishek Shah 585d6d806c soc: arm: viper: Add PCIe highmem OB memory in MMU table
Add and mark PCIe highmem outbound memory as nGnRnE device memory
in Viper SoC MMU configuration.
Increase VA/PA bits to 36-bits to support the same.

Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com>
2020-07-07 15:07:51 +02:00
Parthiban Nallathambi 3e62d73368 drivers: wifi: eswifi: Add chip select flags
Adds the chip select devicetree flags to the spi_cs_control instance.
ISM43362 chip select is ACTIVE_LOW.

Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2020-07-06 08:24:18 -05:00
Andreas Sandberg d6f22e53eb boards: arm: b_l072z_lrwan1: Add flash support
The STM32L0 now has a working flash driver, enable the flash device on
the b_l072z_lrwan1.

Signed-off-by: Andreas Sandberg <andreas@sandberg.pp.se>
2020-07-06 08:18:35 -05:00
Ilya Tagunov 897b5bf60a boards: nucleo_f070rb/f303re: fix clock configuration
Fix PREDIV1 options in defconfigs.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2020-07-05 07:56:21 -04:00
Gerson Fernando Budke c001baafc8 boards: arm: atsamr21_xpro: Add PWM support
This enables PWM and connects it to the LED0.  Tested with blinky_pwm
and fade_led samples.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-07-04 15:13:28 -04:00
Gerson Fernando Budke c5d7679025 boards: arm: atsamr21_xpro: Fix yaml supported list order
Index supported list order by name.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-07-04 15:13:28 -04:00
Stephanos Ioannidis 17e8a20615 boards: atsame54_xpro: Support driving on-board LED with PWM
This commit adds the PWM LED definition in the board device tree for
the on-board LED connected to the pin PC18.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2020-07-04 07:09:28 -04:00
Anas Nashif 7d10b68baa boards: qemu_arc: disable as default test platform
Still unstable in CI and causing lots of failures. Disabling for now
while it is getting stablised.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-07-02 20:50:50 -04:00
Anas Nashif 2a82acc6d6 boards: waveshare_open103z: remove unused Kconfig
Remove CONFIG_CLOCK_STM32_PLL_XTPRE as it is not longer being defined or
used.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-07-02 10:55:07 -04:00
Erwan Gouriou 6b72fbae7c drivers/clock_control: Remove useless CLOCK_STM32_PLL_XTPRE config
CLOCK_STM32_PLL_XTPRE Kconfig symbols was made to differentiate
code between F1 soc variants with XTRE and others.
It appears that specific XTRE code handling is already in place in
LL_PLL_ConfigSystemClock_* functions that are called afterwards.
Since this piece of code is not required anymore, let's remove
the symbol.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-07-02 08:14:45 -05:00
Stephanos Ioannidis 0cb8c50238 boards: atsamd21_xpro: Support driving on-board LED with PWM
This commit adds the PWM LED definition in the board device tree for
the on-board LED connected to the pin PB30.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2020-07-02 08:39:33 -04:00
Stefano Manni 8d9942ddab board: arm: add support for waveshare_open103z
Add support for the board Waveshare Open103Z
based on a STM32F103Zx processor.

Signed-off-by: Stefano Manni <stefano.manni@gmail.com>
2020-07-02 08:35:48 -04:00
Michael Hope af8584feee boards: arm: remove the explicit --offset flag
The preceeding patches causes bossac to automatically pull the flash
address from DeviceTree, so drop the explicit flag.

Signed-off-by: Michael Hope <mlhx@google.com>
2020-07-02 08:23:03 -04:00
Grzegorz Szymaszek 285ffe9727 boards: stm32f030_demo: enable stm32flash in addition to OpenOCD
This commit makes it possible to use stm32flash for flashing (with west)
the STM32F030 Demo Board. OpenOCD is still the default, so in order to
use stm32flash, one must invoke ‘west flash’ with ‘-r stm32flash’.

Signed-off-by: Grzegorz Szymaszek <gszymaszek@short.pl>
2020-07-02 07:18:33 -05:00
Michael Hope 226f5169a8 boards: arm: enable PWM on the Trinket M0
Enable TCC0, define the PWM LED, document, and add to the peripheral
list.

Tested using samples/basic/fade_led/

Signed-off-by: Michael Hope <mlhx@google.com>
2020-07-02 08:16:24 -04:00
Michael Hope 6c3dcf9725 boards: arm: refresh the configuration for the Trinket M0
The common code now auto selects drivers.  Update the Trinket to match
the Arduino Zero including trimming the defconfig and listing the
supported peripherals.

Signed-off-by: Michael Hope <mlhx@google.com>
2020-07-02 08:16:24 -04:00
Saravanan Sekar a670c95452 board: arm: add support for nuvoton pfm m487
add support for nuvoton pfm m487 development board

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2020-07-01 21:09:25 +02:00
Henrik Brix Andersen e1b0bda5b5 boards: shields: mikroe_adc_click: add lpcxpresso55s16_ns support
Add devicetree overlay for connecting an Mikroe ADC click shield to an
NXP LPCXpresso55S16 development board.

The LPCXpresso55S16 uses SSEL1 (CS1) for mikroBUS SPI, whereas the
generic Mikroe ADC click board definition assumes SPI CS0.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2020-07-01 08:23:39 -05:00
Henrik Brix Andersen 1b8b65dba7 boards: shields: mikroe_adc_click: use mikrobus_spi bus as parent
Use the recently introduced mikrobus_spi devicetree node as parent node
instead of relying on mapping for arduino_spi.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2020-07-01 08:23:39 -05:00
Michael Hope 2e501d6f99 boards: arm: add an OpenOCD config for the seeduino_xiao
The XIAO exposes the SWD pins as pads on the bottom of the board.  Add
an OpenOCD config to match.

Signed-off-by: Michael Hope <mlhx@google.com>
2020-07-01 08:15:32 -05:00
Michael Hope 72eb883989 boards: arm: add the Seeeduino XIAO board
The Seeeduino XIAO is a tiny (20 mm x 17.5 mm) ARM development
board with onboard LEDs, USB port, and range of I/O broken out
onto 14 pins.

Signed-off-by: Michael Hope <mlhx@google.com>
2020-07-01 08:15:32 -05:00
Maureen Helm 992993cba1 boards: shields: Fix frdm_kw41z shield doc formatting
Fixes whitespace in the frdm_kw41z shield document to allow continuation
in the numbered list of Bluetooth controller instructions and to format
the jumper configuration sublist correctly.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2020-07-01 08:13:41 -05:00
Michael Hope 48c0bbcfbc boards: arm: enable PWM on the Arduino Zero
This enables PWM and connects it to the main LED.  Tested by running
samples/basic/blinky_pwm and /fade_led.

Signed-off-by: Michael Hope <mlhx@google.com>
2020-07-01 08:10:59 -05:00
Hans Wilmers d09a2df5b1 boards: disco_l475_iot1: fix corruption of storage partition
Fixes #26413.

The devicetree for disco_l475_iot1 declares the flash partitions
"storage" and "image-scratch" with overlapping address spaces.

As a result, when one of these partitions is used it can corrupt the
contents of the other one. This is the case when mcuboot performs an
image swap using the scratch partition.

To fix the bug, the size of the scratch partition is reduced.

Signed-off-by: Hans Wilmers <hans@wilmers.no>
2020-07-01 08:38:31 -04:00
Francois Ramu 97981155e8 boards: arm: b_l4s5i_iot01a overlapping flash partitions
In this board DT the "storage" and "image-scratch" are declared
with overlapping address spaces.
As a result, when one of these partitions is used it can corrupt the
contents of the other one. This is the case when mcuboot performs an
image swap using the scratch partition.

To fix the bug, the size of the scratch partition is reduced.


Signed-off-by: Francois Ramu <francois.ramu@st.com>
2020-07-01 08:07:36 -04:00