Commit Graph

3177 Commits

Author SHA1 Message Date
Sidhdharth Yadav
49c27317cd boards/arm: nucleo_f767zi: enabling dac for nucleo_f767zi in device tree
Enabling DAC support for STM32 nucleo_f767zi in device tree.
Documentation has been updated.

Signed-off-by: Sidhdharth Yadav <sidhdharth.yadav@hcl.com>
2021-03-18 10:21:12 +01:00
Yonatan Schachter
6ca6b22ac7 boards: Add support for Silicon Labs' BRD4255A Radio board
This commit adds support for Silicon Labs BRD4255A (a.k.a. SLWRB4255A)
Flex Gecko Radio Board.

Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
2021-03-17 19:33:35 -05:00
Jun Lin
2638f2ecc4 npcx: move scfg driver from pinctrl to soc/arm/nuvoton_npcx/common
In NPCX chips, System Configuration module can configure not only
pinctrl but also misc. functionality such as glue and flash write
protection. This change moves the scfg driver from the pinctrl folder
to soc/arm/nuvoton_npcx/common and renames it to avoid confusion.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2021-03-17 18:47:32 -04:00
Jeremy Wood
552e41ec0b boards: arm: Add nucleo_h753zi, based on nucleo_h743zi
* Added boards/arm/nucleo_h753zi, based on boards/arm/nucleo_h743zi.

Signed-off-by: Jeremy Wood <jeremy@bcdevices.com>
2021-03-17 11:34:20 +01:00
Thomas Stranger
8ee96a5a9f boards: stm32g0: add jlink and stm32cubeprogrammer runners.
Add jlink and stm32cubeprogrammer runners to nucleo_g071rb and
stm32g0316_disco boards.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-03-17 11:30:20 +01:00
Thomas Stranger
64a4328ca0 board: arm: add support for the nucleo_g0b1re board
Support for the nucleo_g0b1re.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-03-17 11:30:20 +01:00
Ioannis Glaropoulos
35f0ed23c9 boards: reel_board: introduce board-specific pyocd.yaml
Add a pyocd.yaml for reel_board, to pass board-specific
pyocd configuration.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-03-16 20:01:53 -04:00
Kumar Gala
c960aa4785 boards: bbc_microbit_v2: Fix docs
The board name wasn't updated to bbc_microbit_v2

Fixes #32969

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-03-16 19:34:04 -04:00
Jose Alberto Meza
5ad00ea8e4 boards: arm: mec15xxevb: Reduce SPI image size
Reduce SPI size to speed up flashing process.

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2021-03-16 10:02:57 +01:00
Maximilian Huber
5674d457c0 boards: adafruit_feather_stm32f405: Fix Feather Header pins
The mapping was taken from
https://learn.adafruit.com/adafruit-stm32f405-feather-express/pinouts

| Name / GPIO |  | current mapping | correction |
| ------------- | ------------- | ----- | --- |
| RX / GPIO 0  | PB11 | `&gpiob 11` |
| TX / GPIO 1 | PB10 | `&gpiob 10` |
| SDA / GPIO 14 | PB7 | `&gpiob 7` |
| SCL / GPIO 15 | PB6 | `&gpiob 6` |
| GPIO 5 | PC7 | `&gpioc 7` |
| GPIO 6 | PC6 | `&gpioc 6` |
| GPIO 9 | PB8 | `&gpioc 5`  | **`&gpiob 8`** |
| GPIO 10 | PB9 | `&gpioc 4`  | **`&gpiob 9`** |
| GPIO 11 | PC3 | `&gpioc 3` |
| GPIO 12 | PC2 | `&gpioc 2` |
| GPIO 13 | PC1 |  `&gpioc 1` |
| SCK / GPIO23 | PB13 | `&gpiob 13` |
| MISO / GPIO24 | PB14 | `&gpiob 14` |
| MOSI / GPIO25 | PB15 | `&gpiob 15` |
| A0 / GPIO 16 | PA4 | `&gpioa 4` |
| A1 / GPIO 17 | PA5 | `&gpioa 5` |
| A2 / GPIO18 | PA6 | `&gpioa 6` |
| A3 / GPIO19 | PA7 | `&gpioa 7` |
| A4 / GPIO20 | PC4 | `&gpioc 4` |
| A5 / GPIO21 | PC5 | `&gpioc 5` |

closes #33326

Signed-off-by: Maximilian Huber <gh@maxhbr.de>
2021-03-16 10:02:51 +01:00
Andrzej Głąbek
b8b8e8cd6b boards: nrf9160dk: Switch to sda-gpios, scl-gpios DT properties
This is a follow-up to commit 763e73d7da.

Switch to the new properties for specifying SDA and SCL pins,
as the old ones (sda-pin and scl-pin) are now deprecated.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2021-03-15 16:54:31 +01:00
Wojciech Tatarski
e3636114df boards: quick_feather: enable GPIO driver
Enable GPIO driver for Quick Feather board.

Co-authored-by: Jan Kowalewski <jkowalewski@antmicro.com>

Signed-off-by: Wojciech Tatarski <wtatarski@antmicro.com>
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
2021-03-11 08:58:20 -05:00
Bob Recny
29426d81ea boards: arm: ubx_bmd380eval_nrf52840 remove extra spaces
Removed spaces in SPDX lines in Kconfig and board.cmake

Signed-off-by: Bob Recny <bob.recny@u-blox.com>
2021-03-09 16:41:37 -06:00
Kumar Gala
b9ed2d33fd drivers: spi: Remove unused Kconfig symbols
Remove SPI_[0-8] and SPI_[0-8]_OP_MODES Kconfig symbols as no driver
uses them anymore.  We also cleanup board and sample code to remove
use of these symbols.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-03-09 04:53:46 -05:00
Raveendra Padasalagi
2acec93ba6 boards: arm: bcm958402m2_m7: Enable PAXDMA driver
Add DMA and DMA_IPROC_PAX_V2 config to enable PAXDMA driver.

Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
2021-03-08 20:24:04 -06:00
Raveendra Padasalagi
7169207f8e boards: arm: bcm958402m2_a72: Enable PAXDMA driver
Add DMA_IPROC_PAX_V2 config to enable PAXDMA driver.

Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
2021-03-08 20:24:04 -06:00
Mikkel Jakobsen
cd13b679ac boards: arm: ip_k66f: set clk dividers in device tree
Set kinetis SIM clock divider options in device tree
instead of in SoC's kconfig

Signed-off-by: Mikkel Jakobsen <mikkel.aunsbjerg@prevas.dk>
2021-03-08 12:18:33 -06:00
Andrzej Puzdrowski
81246de469 boards/arm: Add bootloader's led alias to Nordic's boards
MCUboot recently gives possibility to signal its state
using led.
For leverage this feature need to provide proper alias
for the led gpio pin.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2021-03-08 12:52:59 +01:00
Gustavo Romero
b5b4d0820c boards: arm: mps2-an521: Fix DT memory regions
Currently RAM region specified in the DT for board mps2-an512 to store
data (not to run code) is set to start at 0x3000_0000 and a 16M
contiguous space is assumed. However, at that address there is no such
contiguous space of 16M, rather only a 128K area is available. As a
consequence large applications linked with Zephyr might end up using
memory regions that are not valid, specially at runtime when the stack
grows, causing a BusFault.

Application Note 512 only specifies a 16M contiguous space available
starting at 0x8000_0000 (please see 'Table 3-4: SSRAM2 and SSRAM3
address mapping' and 'Table 3-6: External PSRAM mapping to Code Memory',
on pages 3-7 and 3-8, respectively), which resides in the PSRAM
(external RAM).

The AN521 also specifies a 4M contiguous space available starting at
0x3800_0000 which can be used as RAM for data storage and which is not
currently described in the DT.

The current DT also defines a 224M flash region (to run code) which
doesn't effectively exist, because most of it is reserved (~148M).

That commit fixes the incorrect definition of region 0x3000_0000 (16M)
and hence defines a new region called 'sram2_3' that maps to region
0x3800_0000 (4M) which is used as RAM to store data, and fixes the flash
region defining a new region 'sram1' (4M) from where code is executed
(starting at 0x1000_0000). The board has no real flash memory, rather an
auxilary HW populates the appropriate memory regions from images found
in a MicroSD card.

That commit also defines the missing PSRAM (16M) region ('psram') which
can be used by large programs as a general purpose RAM.

Finally, it also fixes the DT for the non-secure memory regions to
reflect the fixes described above for the secure memory regions.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
2021-03-06 09:05:23 -06:00
Kumar Gala
76092400fd boards: arm: mps2_an521: Enable TFM testing in CI
The mps2_an521_nonsecure exists for TFM and is also utilized as a config
for multicore samples.  We can enable just the TFM tests with only_tags
and get a bit of additional coverage in QEMU for the TFM integration.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-03-06 09:03:44 -06:00
Erwan Gouriou
b17530c986 boards: stm32: Remove redundant CORTEX_M_SYSTICK=y
CORTEX_M_SYSTICK is enabled by default on all STM32 based targets,
in common soc Kconfig files.
Forcing its definition in board files is redundant and prevents
to disable it when activating LPTIM as ticker.
Remove these definitions

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-06 09:03:29 -06:00
Peng Fan
842ed375dd boards: arm: add qemu_cortex_a53_smp
Support SMP and switch to booting from NS world

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2021-03-06 07:36:37 -05:00
Enjia Mai
e86b6b4a4f tests: coverage: fix test cases failed with code coverage in mps2_an385
This only fix several test cases failed while running code coverage
report inmps2_an385 platform. Enlarge the stack size for which failed
due to MPU fault of stack overflow.

Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
2021-03-06 07:35:34 -05:00
Alexander Kozhinov
a3cd169102 boards: arm: nucleo_f446re: doc: index.rst
add CAN description to doc

Signed-off-by: Alexander Kozhinov <AlexanderKozhinov@yandex.com>
2021-03-05 08:30:43 -06:00
Alexander Kozhinov
ca77139ea0 boards: arm: nucleo_f446re: dts / yaml
add can to yaml
add can1 to dts
disable i2c1 in dts due pinout conflicts

Signed-off-by: Alexander Kozhinov <AlexanderKozhinov@yandex.com>
2021-03-05 08:30:43 -06:00
Raveendra Padasalagi
93091436db boards: arm: Enable pl330 in bcm958402m2_a72
Enable pl330 dma driver in bcm958402m2_a72 defconfig.

Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
2021-03-04 12:59:46 +01:00
Raveendra Padasalagi
52ade89d2d boards: arm: Enable pl330 in bcm958402m2_m7
Enable pl330 dma driver in bcm958402m2_m7 defconfig.

Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
2021-03-04 12:59:46 +01:00
Carlo Caione
0f9406277d aarch64: pm_cpu_ops: Introduce pm_cpu_ops subsystem
AArch64 has support for PSCI. This is especially useful for SMP because
PSCI is used to power on the secordary cores.

When the PSCI driver was introduced in Zephyr it was designed to rely on
a very PSCI-centric subsystem / interface.

There are two kinds of problems with this choice:

1. PSCI is only defined for the non-secure world and it is designed to
   boot CPU cores into non-secure state (that means that PSCI is only
   supposed to work if Zephyr is running in non-secure state)

2. There can be other ways or standards used to start / stop a core
   different from PSCI

This patch is trying to fix the original wrong assumption by making the
interface / subsystem a generic one, called 'pm_cpu_ops', and using PSCI
only as an actual driver that is a user of this new interface /
subsystem.

For now the new subsystem is only exposing two methods: cpu_on and
cpu_off, others will probably follow according to the needs.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2021-03-04 06:53:19 -05:00
Ioannis Glaropoulos
c5ab25d740 boards: nrf5340: modify the hex file when flashing the merged binary
When instructed to flash the combined Secure and Non-Secure
binary, we need to modify the hex file used in west flash.
The combined binary is named tfm_merged.hex, regardless of
building with or without BL2.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-03-04 11:26:23 +03:00
Ioannis Glaropoulos
ae623d2ef0 boards: nrf5340: flash by default the combined TF-M + Zephyr binary
In nRF5340, instruct the build to flash, by default, the
combined Secure (TF-M) and Non-Secure (Zephyr) binaries
as a merged binary, using west flash, if we are building
in-tree tests.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-03-04 11:26:23 +03:00
Andrzej Głąbek
763e73d7da boards: nrf9160dk: Add DT node for I/O expander available in v0.14.0+
Add devicetree node representing the PCAL6408A I2C-based I/O expander
that is available in nRF9160 DK v0.14.0 or later.
Provide also .dtsi files that can be used in applications to simplify
switching to interfacing onboard LEDs and buttons through this expander
instead of SoC pins.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2021-03-04 11:25:22 +03:00
Andrzej Głąbek
75135e87d9 boards: nrf9160dk: Add support for newer revisions (0.14.0+) of the DK
Use the multiple board revisions feature to provide support for the new
hardware possibilities available in nRF9160 DK starting from v0.14.0.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2021-03-04 11:25:22 +03:00
Andrzej Głąbek
71223ad0d0 boards: nrf9160dk: Move board control configuration to devicetree
Use devicetree instead of Kconfig to configure the board control
switches in nRF9160 DK:
- add binding for the switches that provide optional signal routings
  on this board
- add binding for the GPIO interface that can be used for communication
  (e.g. UART based) between the nRF9160 and the nRF52840 on the DK,
  and add GPIO mapping for this interface so that its lines can be used
  without caring about of actual pin numbers on both sides
- add binding for one GPIO line chosen from the above interface that is
  to allow the nRF9160 to reset the nRF52840
- update accordingly dts files and board specific code for both board
  definitions associated with the DK
- introduce .dtsi files that can be included from dts overlays in order
  to facilitate the use of the above GPIO interface; modify the overlay
  in the hci_uart sample to provide an example of use of those files

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2021-03-04 11:25:22 +03:00
Ioannis Glaropoulos
d39aa58f10 boards: arduino due: add reset after load for Jlink flashing
Force the Arduino Due device to preform a reset after loading
the program using JLink, effectively allowing the program to
run after west flash.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-03-03 14:14:43 -06:00
Martí Bolívar
2a4ac9ac02 boards: nrf: fix deprecated I2C properties
Commit 821c03a14a ("i2c: nordic: switch
to phandle arrays for pinmux") deprecated some Nordic devicetree
properties.

When boards get merged with stale CI results (i.e. if CI results are
from a mainline commit earlier than 821c03a1), we will get deprecation
warnings, which twister treats as errors.

Play whack-a-mole with the ones that are in tree.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-03-03 12:04:15 -06:00
Ioannis Glaropoulos
1b22f6b8c8 arm: cortex_m: enable null-pointer exception detection in the tests
Enable the null-pointer dereferencing detection by default
throughout the test-suite. Explicitly disable this for the
gen_isr_table test which needs to perform vector table reads.
Disable null-pointer exception detection on qemu_cortex_m3
board, as DWT it is not emulated by QEMU on this platform.
Additionally, disable null-pointer exception detection on
mps2_an521 (QEMU target), as DWT is not present and the MPU
based solution won't work, since the target does not have
the area 0x0 - 0x400 mapped, but the QEMU still permits
read access.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-03-03 10:38:29 +01:00
Mikkel Jakobsen
9f45cb65f2 boards: frdm_k22f: enable DAC0
Enable DAC0 on the NXP FRDM-K22F development board.

Signed-off-by: Mikkel Jakobsen <mikkel.aunsbjerg@prevas.dk>
2021-03-02 16:27:47 -06:00
Raveendra Padasalagi
eefec6ff05 boards: arm: bcm958402m2_m7: Enable PCIE Ep driver
Enable PCIE EP driver.

Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
2021-03-02 10:03:34 -06:00
Kumar Gala
263ac3e9e5 drivers: pinmux: mcux_lpc: Convert to using devicetree
Convert driver and users of pinmux on mcux lpc platforms to getting
basic port info from devicetree (register address, label)

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-03-01 12:04:53 -06:00
Martí Bolívar
17a66304c4 boards: nrf: switch to sda-gpios, scl-gpios
Move the BOARD.dts files for Nordic-based boards to use the new I2C
devicetree properties for specifying the SDA and SCL pins.

This was done with a script.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-03-01 16:59:56 +01:00
Bob Recny
56541268f4 board: arm: add ubx_bmd380eval_nrf52840
Changed document images to smaller versions

Signed-off-by: Bob Recny <bob.recny@u-blox.com>
2021-03-01 14:35:03 +03:00
Kumar Gala
ff5b040f78 boards: Add i2s to supported list for testing
Add i2s as a supported feature on at least one board for each driver
that we have in tree to get CI coverage.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-26 14:21:59 -06:00
Kumar Gala
a61744d952 boards: mec15xxevb_assy6853/mec15xxevb_assy6853: Fix compile warning
If CONFIG_I2C=n is set we get a build warning:

pinmux.c:35:13: error: 'i2c_pinmux' defined but not used

Fix this by adding ifdef protection around i2c_pinmux.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-26 11:39:54 -06:00
Kumar Gala
b5a3fe1471 boards: mec15xxevb_assy6853: remove unused Kconfig settings
CONFIG_SPI_0 and CONFIG_SPI_0_OP_MODES aren't relevant for the
XEC QMSPI driver so remove setting them.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-25 10:37:51 -05:00
Helge Juul
30dbc40909 drivers/flash: stm32: Extend qspi-nor support to F7 series
Add quadspi node in stm32f7.dtsi and quadspi support to boards
stm32f746g_disco and stm32f769i_disco.
Note! Does not support DMA.

Signed-off-by: Helge Juul <helge@fastmail.com>
2021-02-24 18:12:40 -06:00
Kumar Gala
a6ffcdbac3 boards: bbc_microbit: Add pwm as supported peripherals
Add pwm to board yaml as supported peripherals on the bbc_microbit.
This is needed as the servo_motor sample requires it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-24 15:46:18 -06:00
Pavlo Hamov
6e1380cd3f doc: boards: cc32xx add watchdog info
Update yaml with supported watchdog driver

Signed-off-by: Pavlo Hamov <pasha.gamov@gmail.com>
2021-02-24 08:35:27 -06:00
Martí Bolívar
d2280197ac boards: bbc_microbit_v2: add missing i2c0 compatible
The board's main I2C bus controller doesn't have a compatible set, so
it's not detected as an I2C bus at all.

This breaks the build when trying to build the samples/sensor/lis2dh
application with the lis2dh sensor on that bus.

Fixes: #32420
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-02-24 08:30:33 -06:00
NavinSankar Velliangiri
a4ce7e3dea boards: arm: bmd_345_eval: Add BMD 345 EVAL Board Support.
Add support for BMD 345 EVAL BSP with PA/LNA support
Fixes: #31585

Signed-off-by: NavinSankar Velliangiri <navin@linumiz.com>
2021-02-23 16:31:41 -06:00
Pete Johanson
32a28f9876 boards: seeeduino_xiao: Output UF2 by default.
Default BOSSA bootloader supports UF2 OOTB, so enabling
UF2 output by default.

Signed-off-by: Pete Johanson <peter@peterjohanson.com>
2021-02-23 21:11:04 +01:00
Mahesh Mahadevan
d8283b63ec boards: lpc: Update pinmux setting to remove the const keyword
This would save some space by using a local variable

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-22 18:21:31 -06:00
Mulin Chao
7c9d3f44f0 driver: sensor: npcx: add tachometer sensor support.
In NPCX7 series, it contains two tachometer (TACH) modules that contains
two Independent timers (counter 1 and 2). They are used to capture a
counter value when an event is detected via the external pads (TA or
TB).

The CL also includes:
— Add npcx tachometer device tree declarations.
— Zephyr sensor api implementation for tachometer.
— Enable "tach1" device in npcx7m6fb.dts for testing.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2021-02-22 17:56:19 -05:00
Øyvind Rønningstad
5137135ead boards: Consolidate all TFM signing code
Place the new signing code in the TFM module CMakeLists.txt.
Make some small tweaks and add a sentence to the docs.

In the process, make a few changes to the signing code:
- Change some names of files created.
- Minimize the number of files created.
- Use hex files instead of bin files. This is so we don't need to know
  the offset when creating hex files from bin files.

Also add signing for MCUBOOT_IMAGE_NUMBER=1 based on the code from the
v2m_musca_b1 board, though, this board does not build with =1 now
because of (I assume) some flash aliasing which places the S and NS
images 0x10000000 apart, where the manual algorithm places them next to
each other. It builds with =2, though.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
2021-02-21 18:44:18 +03:00
Mulin Chao
1f731c6c02 driver: soc: power: npcx: Add power managerment support.
This CL introduces power management driver that improves the efficiency
of ec operation by adjusting the chip’s power consumption to the level
of activity required by the application in npcx series.

The following list summarizes the main properties of the various chip
power states. Please refer the power.c file for more detail.

Main power states in npcx series include:
- Active: Core, RAM and modules operate at the clocks generated by PLL.
- Idle: Enter this state when the Core executes WFI or WFE instruction.
- Sleep: clock is stopped for most of modules but PLL is enabled.
- Deep Sleep: As Sleep mode but PLL is disabled.
- Standby: All power rails are turned off besides standby and battery
  power rails.

And this CL implements one power state, PM_STATE_SUSPEND_TO_IDLE, with
two sub-states for Zephyr power management system.
Sub-state 0 - "Deep Sleep" mode with “Instant” wake-up if residency
              time is greater or equal to 1 ms
Sub-state 1 - "Deep Sleep" mode with "Standard" wake-up if residency
              time is greater or equal to 201 ms

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2021-02-19 22:39:53 -05:00
Mulin Chao
e5caae8e0a driver: timer: npcx: add system kernel timer support.
This CL introduces a kernel device driver implemented by the internal
64/32-bit timers in Nuvoton NPCX series. Via these two kinds of timer,
the driver provides an standard "system clock driver" interface.

It includes:
 - A system timer based on an ITIM64 (Internal 64-bit timer) instance,
   clocked by APB2 which freq is CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC.
 - Its prescaler is set to 1 and provide the kernel cycles reading
   without handling overflow mechanism.
 - A event timer based on an ITIM32 (Internal 32-bit timer) instance,
   clocked by LCLK which frequency is 32KHz and still activated when ec
   entered "idle/deep idle" power state for better power consumption.
 - Its prescaler is set to 1 and provide timeout event mechansim.
 - Compensate system timer which clock is gating for better power
   consumption after ec left"idle/deep idle" power state.

This CL passed starve, timer_api, and timer_monotonic test suites.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2021-02-19 22:39:53 -05:00
Alexandre Bourdiol
68f5626b64 boards/dts: add SPI support to nucleo_wl55jc board
Add SPI support to nucleo_wl55jc board

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-02-19 22:39:24 -05:00
Alexandre Bourdiol
d98ce0b9d4 boards/dts: add i2c support to nucleo_wl55jc
Add I2C support to nucleo_wl55jc

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-02-19 22:39:24 -05:00
Alexandre Bourdiol
6663982fde boards: arm: add nucleo_wl55jc board support
Add support of nucleo_wl55jc board

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-02-19 22:39:24 -05:00
Seppo Takalo
91869f3ba5 runners: jlink: Use specific target device for nrf9160DK
When proper target device is specified, instead of generic
Cortex-M33, JLinkGDBServer is able to flash the device on "load"
command.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2021-02-19 14:26:25 -06:00
Anas Nashif
ff24090527 tests: filter default platforms
Do not attempt to build/run all tests. Emulation platforms should
primarily build kernel and architecture related tests.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-02-19 14:41:01 -05:00
Pavlo Hamov
8bc2ef4538 boards: cc32xx: add ADC support
Enable ADC for cc32xxsf_launchxl boards

Signed-off-by: Pavlo Hamov <pasha.gamov@gmail.com>
2021-02-19 10:43:58 -06:00
Carlo Caione
1be06335fa qemu_cortex_a53: Unset QEMU icount to enable MTTCG
Quoting from the QEMU manual "MTTCG is not compatible with -icount and
enabling icount will force a single threaded run.". Given that for
Cortex-A53 we haven't seen any particular problem when disabling icount
try to disable it.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2021-02-19 16:26:38 +03:00
Erwan Gouriou
d31ae99025 boards: stm32f1: Remove useless CONFIG_CLOCK_STM32_PLL_XTPRE=n
CLOCK_STM32_PLL_XTPRE Kconfig symbol default value is n.
Then there is no need to explicitly set it to 'n' in stm32f1 boards



Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-02-19 05:22:36 -06:00
Erwan Gouriou
832a0ec049 drivers/clock_control: stm32f1: Reinstanciate CLOCK_STM32_PLL_XTPRE
This reverts commit "drivers/clock_control: Remove useless
CLOCK_STM32_PLL_XTPRE config" 9be1f7e22f3b3c42009eeba15061cad3c0988b22.

Fixes #32382

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-02-19 05:22:36 -06:00
Thomas LE ROUX
3fe33fe388 boards: arm:Added Arduino's nexus node on the board's devicetree.
Also added various joystick aliases.

Signed-off-by: Thomas LE ROUX <thomas.leroux@smile.fr>
2021-02-18 13:35:22 -06:00
Harry Jiang
e287fd7ab2 boards: nucleo_h743zi: Add the IWDG support
This patch enable the independent watchdog support for the
NUCLEO-H743ZI board.

Signed-off-by: Harry Jiang <explora26@gmail.com>
2021-02-17 16:19:21 -06:00
Øyvind Rønningstad
edfaa3998b tfm: Change TFM_BL2 config from a choice to a bool
The choice allowed for using TFM's own default. We now need full
knowledge over whether BL2 is enabled or not (e.g. to do signing),
so remove this option and simplify to a bool.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
2021-02-17 19:42:44 +03:00
Carlo Caione
a8b97075bf boards: qemu_cortex_a53_xip: Add Cortex-A53 XIP board
This is the copy of the QEMU Cortex-A53 board but with XIP support.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2021-02-17 14:13:10 +03:00
Carlo Caione
fadbe9d2f2 arch: aarch64: Add XIP support
Add the missing pieces to enable XIP for AArch64. Try to simulate the
XIP using QEMU using the '-bios' parameter.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2021-02-17 14:13:10 +03:00
Kumar Gala
942916e691 arm: nxp: kinetis: Rework device_get_binding for pinmux
Switch to use DEVICE_DT_GET instead of device_get_binding for pinmux
device.  As part of this change drop the "label" property from
the pinmux devicetree node and update the binding and dts files to
reflect that.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-16 16:45:02 -06:00
Ryan Holleran
b9fdab4474 boards: frdm_k22f: Add support for frdm_stbc_agm01
Provide the arduino_i2c node name from i2c_0.
Provide pinmux for frdm_stbc_agm01.

The frdm_stbc_agm01 supplies access to an FXOS8700 and FXAS21002.
when using frdm_stbc_agm01 with frdm_k22f, the FXAS21002 sample
sensor project can be utilized and the FXOS8700 sample sensor
project utilizes the shield's FXOS8700.

Signed-off-by: Ryan Holleran <rhollerar@gmail.com>
2021-02-16 16:24:18 -06:00
Jose Alberto Meza
1b611b0f9f boards: arm: mec15xxevb: Use internal pull-up for KSC input pins
Even though possible to use external pull-up and open drain buffer,
prefer internal pull-up to reduce power consumption.

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2021-02-16 15:45:56 +03:00
Torsten Rasmussen
dfa52a3ba7 module: moving TFM CMakeLists.txt into Zephyr repo
This commit moves TFM CMakeLists.txt into Zephyr and relocates the
Kconfig.tfm file under the modules/tfm folder.

Updates the manifest to point to related TFM changes.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-02-16 10:01:36 +01:00
Kumar Gala
464d82618f arm: Remove Musca-A SoC/board support
Remove support for the Musca-A board.  This board is rarely used, few
are available and superceded by Musca-B and Musca-S.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-15 21:04:23 +03:00
Kumar Gala
6e8eb53b51 arm: atmel: sam0: Rework device_get_binding for pinmux
Switch to use DEVICE_DT_GET instead of device_get_binding for pinmux
device.  As part of this change drop the "label" property from
the pinmux devicetree node and update the binding and dts files to
reflect that.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-15 08:31:29 -05:00
Kumar Gala
147bb6b9f3 arm: microchip: mec1501hsz: Rework device_get_binding for pinmux
Switch to use DEVICE_DT_GET instead of device_get_binding for pinmux
device.  As part of this change drop the "label" property from
the pinmux devicetree node and update the binding and dts files to
reflect that.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-15 08:29:34 -05:00
Guillaume Paquet
143a776657 boards: arm: nordic: Add BG96 to RAK5010 board
Add BG96 in board description
Add W Disable Pin in BG96 descriptor

Signed-off-by: Guillaume Paquet <guillaume.paquet@smile.fr>
2021-02-15 08:25:46 -05:00
Øyvind Rønningstad
2262cfeddc boards: Clean up TF-M signing code for nrf53 and nrf91
-Add byproducts
-Don't overwrite zephyr.hex
-Whitespace
-Use target property

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
2021-02-15 08:22:43 -05:00
Ryan Holleran
b81173f143 boards: frdm_k22f: Enable pwmleds control
The on-board RGB LED is connected to PWM channels on FTM_0.

Signed-off-by: Ryan Holleran <rhollerar@gmail.com>
2021-02-15 08:14:06 -05:00
Mulin Chao
5e5dc358d9 dts/arm: npcx: move def_lvol_io_list node from board dts to dtsi file.
This CL moves def_lvol_io_list device-tree node from npcx7m6fb_evb.dts
to npcx7m6fb.dtsi. The benefit of it is that we needn't add
def_lvol_io_list node for each board dts file if there are no 1.8V
io-pads on the platform. If so, add them in the specific board dts file
directly.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2021-02-15 08:10:46 -05:00
Nikos Oikonomou
a8c33ebf8a boards: arm: nucleo_l476rg arduino spi
- Updated arduino dtsi to map spi1 as arduino spi
- Made board's zephyr peripheral mapping more compact and added arduino
  and st-link labels.

Signed-off-by: Nikos Oikonomou <nikoikonomou92@gmail.com>
2021-02-15 08:09:51 -05:00
Flavio Ceolin
3f87c5a0f4 power: Rename constraint API
Replace pm_ctrl_* with pm_constraint.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2021-02-15 08:08:36 -05:00
Francois Ramu
8698f828c5 boards: arm: nucleo_l476rg: Add idle states in dts
Add information about this board idle states in its dts.
Stop 0, 1, 2 modes are supported.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-02-15 08:07:12 -05:00
Francois Ramu
659a8200c0 boards: arm: nucleo_wb55rg: Add idle states in dts
Add information about this board idle states in its dts.
Stop 0, 1, 2 modes are supported.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-02-15 08:07:12 -05:00
Gerard Marull-Paretas
3a786c6179 boards: arm: nucleo_h743zi: enable backup SRAM
Enable backup SRAM DT node and update documentation.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2021-02-15 08:04:24 -05:00
Gerard Marull-Paretas
988b61f2e8 boards: arm: nucleo_f746zg: enable backup SRAM
Enable backup SRAM DT node and update documentation.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2021-02-15 08:04:24 -05:00
Gerard Marull-Paretas
2a460e006f boards: arm: nucleo_f446re: enable backup SRAM
Enable backup SRAM DT node and update documentation.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2021-02-15 08:04:24 -05:00
Gerard Marull-Paretas
05f903f307 boards: arm: nucleo_f207zg: enable backup SRAM
Enable backup SRAM DT node and update documentation.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2021-02-15 08:04:24 -05:00
Joakim Andersson
2a64a3694a Kconfig: Default y on Zephyr VS HCI extension in host-only nRF boards
Set the Zephyr Vendor Specific HCI extensions as default y on nRF boards
that only support host only builds.
Correct this for nrf5340dk which had set the Kconfig for the feature
support instead of the feature itself.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-02-15 08:02:38 -05:00
Ioannis Glaropoulos
224489e298 boards: nrf5340: update web-page link for nRF5340 DK
Update the link to the external nRF5340 DK documentation.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-02-15 07:59:43 -05:00
Ioannis Glaropoulos
d92e4fb850 boards: nrf: remove support for deprecated board nRF5340 PDK
nRF5340 PDK board was deprecated in v2.5.0 release
and is removed now from the tree.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2021-02-15 07:59:43 -05:00
Erwan Gouriou
f45a4ce655 boards: stm32f7 disco: Update openocd target
Stm32f7 disco boards benefit from dedicated openocd board target.
Use these target as the generic stm32f7discovery one will be
eventually removed.
Additionally, replace now deprecated 'adapter_khz' by 'adapter speed'.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-02-14 18:39:01 -05:00
Martí Bolívar
b88bfde84b boards: nrf: fix incorrect debug docs
All of these boards can be debugged with west debug via settings in
board.cmake, but the docs say they can't be. This is being copy/pasted
around; fix it.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-02-10 10:14:59 -05:00
Laczen JMS
79a833ca31 boards: correct dts for bl654_dvk and bl652_dvk
i2c0 and spi0 cannot be enabled at the same time, corrects dts error.

Signed-off-by: Laczen JMS <laczenjms@gmail.com>
2021-02-09 13:45:46 -05:00
Maciej Perkowski
7880daf48e boards: Fix ram/flash values in nrf5340dk_nrf5340_cpuapp
Increase the size of ram/flash given in nrf5340dk_nrf5340_cpuapp.yaml
so they match the actual numbers which are available for default
tests and samples.

Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
2021-02-08 13:47:31 -05:00
Laczen JMS
f5a4780964 board: correct dts for 96b_stm32_sensor_mez
i2s2 and spi2 cannot be okay at the same time. This removes dts error.

Signed-off-by: Laczen JMS <laczenjms@gmail.com>
2021-02-05 06:37:57 -05:00
Erwan Gouriou
b389d1940e tests/drivers/dma: Enable tests on nucleo_f746zg and disco_l475_iot1
This will enable dma device testing on these platforms in ST CI.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-02-04 12:35:04 -05:00
Kumar Gala
17f1e4b14f dts: nrf/stm32: supress duplicate unit-address warning
A number of SoCs have overlapping devices at the same unit address.
Surpress the warning for those cases:

* NRF - kmu@39000 & flash-controller@39000
* NRF - clock@5000 & power@5000
* NRF - image@20000000 & image_s@20000000
* NRF - i2c@40003000 & spi@40003000
* STM - i2s@40003800 & spi@40003800

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-04 10:27:23 -05:00
Kumar Gala
c109e7691d dts: atmel/nxp: supress duplicate unit-address warning
A number of SoCs have overlapping devices at the same unit address.
Surpress the warning for those cases:

* Atmel - pinmux@41004400 & gpio@41004400
* Atmel - pinmux@41004480 & gpio@41004480
* Atmel - pinmux@41008000 & gpio@41008000
* NXP - flash@0 & gpio@0
* NXP - syscon@0 & gpio@0

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-04 10:05:47 -05:00
Kumar Gala
bb739b13ee dts: surpress node name for SPI buses should be 'spi' warning
On Atmel & Silabs SoCs the SPI controller is implemented on a shared
peripheral block (sercom for atmel, usart on silabs) so we can't have
the node name be "spi@...".  In these cases we disable the warning
via passing '-Wno-spi_bus_bridge' to dtc.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-02-04 10:05:47 -05:00