Commit graph

2381 commits

Author SHA1 Message Date
Erwan Gouriou
d3601f0d98 boards: nucleo_wb55rg: Configure HCI driver
Add requested configuration to enable HCI driver

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-06-03 09:38:19 -04:00
Mark Wang
b1558bba2b boards: frdm_k64f: button_1 has no callback when button is released
need set the internal pull-up for the button gpio.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2019-05-31 14:35:36 -05:00
Henrik Brix Andersen
0382f08f2a boards: arm: twr_ke18f: add SPI support
Add SPI support to the NXP TWR-KE18F development board. There are no
onboard SPI devices, but both SPI busses are available on the primary
Tower System elevator connector.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2019-05-31 09:54:03 -05:00
Brett Witherspoon
6cf806ac9a boards: cc1352r1_launchxl / cc26x2r1_launchxl: enable ROM bootloader
This enables the ROM bootloader on the CC13x2 / CC26x2 LaunchPad
development boards. The bootloader can be started by holding BTN-1
during reset. This can be useful during development to recover a board
if DAPs get disabled.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-30 17:15:53 -04:00
Peter A. Bigot
be4c6ddd9c boards: arm: particle_*: enable PCB antenna on startup
All three boards use a Skyworks SPDT switch to control whether the
antenna is connected to a PCB antenna or an external u.FL connector.
None of them power up in a state that properly enables an antenna.
Add startup code to configure for the PCB antenna.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/14123

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
[mike@foundries.io: adjusted code to use Zephyr GPIO APIs.  boron is
now also based on DTS.]
Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-30 09:46:55 -04:00
Peter A. Bigot
6fa058c994 boards: nrf52840_papyr: support nrfjprog flash runner
Add JLink via nrfjprog as an alternative to Black Magic.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-05-30 09:33:44 -04:00
Stefan Kraus
f27c8c00a2 96b_nitrogen: Increase size of boot partition.
MCUboot needs nearly all 8 pages, on some commits even more. This leads
to a overwrite of parts of mcuboot code when an application is flashed.
By improving the size of the boot partition to 10 pages (from 8) and
decrease both application slots by 1 page, MCUboot fits in the boot
loader partition. This is also fixable by an extra .dts, but having an
out of the box working configuration is preferable.

Signed-off-by: Stefan Kraus <stefan.kraus@fau.de>
2019-05-30 09:29:57 -04:00
Antony Pavlov
925183cbcc boards/arm/olimex_stm32_e407: enable USB
Tested with samples/subsys/usb/cdc_acm.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-30 06:52:33 -05:00
Mark Wang
906f3789f2 dts: nxp: nxp_rt: add usbd1 for rt1050 and works as default usb.
add usbd1 and use it as the default usb device.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2019-05-30 06:45:12 -05:00
Erwan Gouriou
eb97fea741 boards: nucleo_wb55rg: configure LPUART
Configure LPUART as btmon interface and
re-instantiate usart1 as console output (using ST-Link VCP)


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-05-29 10:58:36 -04:00
Jun Li
951a82d029 board: nucleo_f429zi: add partitions to support mcuboot
Add partition table to support MCUBoot. A paragraph of
usage comments was also added in the board documentation.

Signed-off-by: Jun Li <jun.r.li@intel.com>
2019-05-28 21:13:30 -04:00
Henrik Brix Andersen
58decac9bf boards: twr_ke18f: list hwinfo as supported feature
List hwinfo as a supported feature on the NXP TWR-KE18F development
board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2019-05-28 12:18:24 -05:00
Matthew Koch
2e2a2d2d55 boards: stm32f7: Remove DTCM from sram0
Adjust board memory sizes to exclude DTCM RAM.

Fixes: #15910

Signed-off-by: Matthew Koch <koch.matthew@gmail.com>
2019-05-28 11:02:29 -04:00
Francisco Munoz
bce16753af boards: mec15xxevb_assy6853: Use the pinmux api
Use the generic pinmux APIs provided by zephyr to select
alternate functions.

This also contains a fix for a formatting issue in the
documentation for this board. Additionally, the serial
console is now on UART2.

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
2019-05-27 09:24:08 -04:00
Antony Pavlov
2099658d09 boards/arm/*stm32*: fix USB pinmux
USB_DC_STM32 comes from Kconfig. We have to add the CONFIG_ prefix
to use USB_DC_STM32 in C code.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-27 09:22:55 -04:00
Brett Witherspoon
d82febd2a3 boards: cc1352r1_launchxl: enable support for SPI
Enable support for the SPI peripheral on the CC1352R LaunchPad.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-27 09:21:19 -04:00
Brett Witherspoon
b9cf58d90f boards: cc26x2r1_launchxl: enable support for SPI
Enable support for the SPI peripheral on the CC26x2R LaunchPad.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-27 09:21:19 -04:00
Erwan Gouriou
8feaa27ce9 boards: disco_l475_iot1: create .dtsi connector file
Create a dedicated connector file to hold arduino connector
information for disco_l475_iot board.
This should enhance board dts file readability.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-05-25 18:34:31 -04:00
Maureen Helm
4de99994f0 scripts: west: Add reset-after-load argument to jlink runner
Adds a new argument to the jlink runner to reset the device after
loading code to flash. This fixes a problem with the lpcxpresso54114
board where it was necessary to manually reset the board to get new code
to start running after the 'ninja flash' command. This new argument is
optional and false by default because there are some cases were we must
not reset after load, such as when we load the application into ITCM on
imx rt devices.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-05-25 10:01:30 -04:00
Henrik Brix Andersen
4770b1ebec boards: arm: twr_ke18f: add I2C support
Add I2C support to the NXP TWR-KE18F development board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2019-05-24 09:51:10 -05:00
Kumar Gala
18ab73d02c dts: nxp: nxp_rt: Fix unit-address for usb node
The first reg of the node is 0x402E0200 so the unit address should match
that.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-05-24 09:47:18 -05:00
Maureen Helm
e0d7378712 boards: mimxrt1060_evk: Enable mcux lpi2c driver and pins
Enables the mcux lpi2c shim driver and pin muxes on the mimxrt1060_evk
board. Updates the board documentation and yaml supported list
accordingly.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-05-23 06:27:55 -05:00
Andrzej Głąbek
7f9f39fe3d boards: nrf52840_pca10059: Configure NFC pins as GPIOs by default
Since there is no NFC antenna connector on the dongle and the pins
P0.09 and P0.10 that are dedicated to NFC functionality are in the
group of just a few ones available for external connections, it seems
more reasonable to configure these pins by default as regular GPIOs,
as users will most likely want to use them in this way.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-05-23 07:01:05 -04:00
Kumar Gala
e541b16c54 boards: atmel: Enable hwinfo as a supported feature
Update the various board YAML files to list hwinfo as a supported
hwinfo.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-05-22 15:50:39 -05:00
Michael Scott
c124cdbb37 boards: arm: particle_boron: fix SARA-R4 gpio definitions
These definitions were left incorrect after a gpio-map change was
added to the PR introducing the boron support for the SARA-R4 modem.

Correct the gpio defintions here so that the boron build doesn't
break.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/16289

Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-21 21:41:16 -04:00
Brett Witherspoon
4817f41399 boards: cc1352r1_launchxl: enable support for I2C
Enable I2C support on the CC1352R LaunchPad.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-21 15:37:22 -04:00
Brett Witherspoon
a828b2a503 boards: cc26x2r1_launchxl: enable support for I2C
Enable I2C support on the CC26x2R LaunchPad.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-21 15:37:22 -04:00
Erwan Gouriou
56e50cf43e boards: nucleo_wb55rg: Configure LPUART
Configure LPUART pin and set it as adruino_serial.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-05-21 07:49:14 -05:00
Johann Fischer
0b2a9b1bdd boards: reel_board: enable pull-up on UART TX pin
Enable pull-up on UART TX pin to reduce power consumption.
If the board is powered by battery the SoC consumes more
power than expected.
The consumption increases because TX pin is floating
(High-Impedance state of pin B from Dual-Supply Bus Transceiver).

Similar to commit b5b728495b
("boards: reel_board: enable pull-up on UART RX pin")

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-05-21 08:25:50 -04:00
Michael Scott
e2b45e6b1d boards: arm: particle_boron: enable SARA-R4 modem
The Particle.io Boron is an nRF52840-based board with a connected
u-blox SARA-R4 modem.  The main board was previously upstreamed
without modem support.

Now that we have a driver to support the SARA-R4 modem, let's enable
it for the Boron board.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-21 08:17:20 -04:00
Michael Scott
35590c6d70 boards: arm: frdm_k64f: add pinmux for SARA-R4 modem
Setup the SARA-R4 POWER and RESET pins as gpios.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-21 08:17:20 -04:00
Michael Scott
8611837ef5 boards: arm: frdm_k64f: don't use ETH if MODEM is enabled
Let's change the specific WNC-M14A2A check into a more generic
MODEM check for enabling ethernet.  Many of these pins are used
on the Arduino headers.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-21 08:17:20 -04:00
Michael Scott
9ab20bfd85 board: disco_l475_iot1: add Arduino header definition to DTS
Let's expose the Arduino R3-compatible pin definition as DTS
for the disco_l475_iot1 board.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-21 08:17:20 -04:00
Michael Scott
8548517b88 boards: nrf52840_pca10056: add Arduino header definition to DTS
Let's expose the Arduino R3-compatible pin definition as DTS
for the nrf542840_pca10056 board.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-21 08:17:20 -04:00
Michael Scott
ce1e990c30 boards: arm: frdm_k64f: add Arduino header definition to DTS
Let's expose the Arduino R3-compatible pin definition as DTS
for the frdm_k64f board.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-21 08:17:20 -04:00
Ioannis Glaropoulos
4b15873c13 soc: arm: add ARM MPU node info and fixup for ARMv8-M SoCs
This commit adds a DTS node for the ARM MPU peripheral in the
device tree of ARMv8-M SoCs (for the secure and the non-secure
DTS descriptions) and updates the fixup files. SoCs:
- nrf9160
- musca_a
- musca_b1

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-05-20 14:06:10 -05:00
Henrik Brix Andersen
7e85700ad6 boards: arm: twr_ke18f: add RTC to list of supported peripherals
Add RTC to the list of supported peripherals on the NXP TWR-KE18F
development board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2019-05-20 08:00:00 -05:00
Marti Bolivar
5b400fbeea doc: trivial fix for lpcxpresso54114 doc
There's some duplicated information here.

Signed-off-by: Marti Bolivar <marti.bolivar@nordicsemi.no>
2019-05-20 07:36:26 -05:00
Antony Pavlov
a7a625098e boards/arm/olimexino_stm32: register led1
Make it possible to run basic/disco sample on olimexino_stm32.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-15 20:51:17 -05:00
Karl Zhang
2a7824a8b0 drivers: ipm: mhu: Add MHU driver for V2M Musca
MHU (Message Handling Unit) enables software to raise interrupts to
the processor cores. It is enabled in SSE 200 subsystems.

This patch aims to implement inter processor communication.

Signed-off-by: Karl Zhang <karl.zhang@linaro.org>
2019-05-15 15:37:50 -05:00
Henrik Brix Andersen
105aef98bf boards: twr-ke18f: add support for the NXP TWR-KE18F board
Add support for the NXP TWR-KE18F development board. This board
feautures an NXP MKE18F16 MCU, a selection of user LEDs and
push-buttons, potentiometer, thermistor, CAN interface, and FlexIO
header.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2019-05-14 15:00:11 -05:00
Ryan QIAN
180df6dc69 boards: arm: mimxrt1015_evk: update the ram size
- use ram size with default size of dtcm

Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
2019-05-14 12:23:42 -05:00
Ryan QIAN
d7efa1db77 boards: arm: mimxrt1020_evk: update board dts
- update board dts file to refer to nxp_rt1020.dtsi to include sram size
fix

Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
2019-05-14 12:23:42 -05:00
Ryan QIAN
2dc141ea31 boards: arm: mimxrt1015_evk: update board dts
- update board dts file to refer to nxp_rt1015.dtsi to include sram size
fix.

Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
2019-05-14 12:23:42 -05:00
Brett Witherspoon
2d4ec5f119 boards: cc1352r1_launchxl: enable TRNG entropy source support
Enable support for the TRNG entropy source on the CC1352R LaunchPad.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-14 06:10:52 -05:00
Brett Witherspoon
a016feb4a7 boards: cc26x2r1_launchxl: enable TRNG entropy source support
Enable support for the TRNG entropy source on the CC26x2R LaunchPad.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-14 06:10:52 -05:00
Antony Pavlov
3bcd188068 treewide: fix typos
Fix trivial typos.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-14 06:07:40 -05:00
Antony Pavlov
62a8e49f4d boards/arm/mikroe_mini_m4_for_stm32: fix model&compatible dt properties
The mikroe_mini_m4_for_stm32 board is developed by Mikroelektronika
not by STMicroelectronics.
Also use more appropriate "mini-m4-for-stm32" board name for
compatible dt property.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-14 06:07:40 -05:00
Antony Pavlov
b6c84a9472 boards/arm/olimexino_stm32: fix compatible dt property
The olimexino_stm32 board is developed by Olimex
not by STMicroelectronics.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-14 06:07:40 -05:00
Antony Pavlov
3f9a792065 boards/arm/*/*dts: fix double whitespace in model property
There is no reason to use double whitespaces in the dt
model property.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-14 06:07:40 -05:00
Carles Cufi
52ab40cb0d tests: counter: Enable nRF52810 testing
Enable the counter capability in the board and add a .conf file for the
nRF52810 running on the PCA10040 board.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-05-14 10:45:12 +02:00
Carles Cufi
e0d96866d9 boards: holyiot_yj16019: Remove counter from supported
The supported field is used by sanitycheck to select which tests will be
run on a particular board. The issue with the counter drivers, and in
particular on nRF ICs, is that the timer peripherals are disabled by
default and need to be enabled on a per-board basis inside a .conf file.
Since this board doesn't have a .conf file in
tests/drivers/counter/counter_basic_api/boards/ the test cannot be run
on this board.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-05-14 09:52:57 +02:00
Jakub Rzeszutko
d9c18ff05e boards: arm: Add Nordic nRF52811 board
This commit adds support for board: nrf52811_PCA10056.

The nRF52840 DK: PCA10056 is the recommend development kit, it emulates
the nRF52811, and can be used as a starting point for development
before moving over to a custom board.

Please note that this development kit does not support Bluetooth
Direction Finding. What is more it cannot be used with most of Arduino
shields because of PCA10056 PIN layout.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-05-14 09:52:57 +02:00
Antony Pavlov
c7e66ff9bc boards/arm/olimexino_stm32: enable watchdog
Zephyr already has STM32 watchdog support.
Just enable it.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-12 15:13:21 -04:00
Piotr Mienkowski
7cf318b449 boards: add jlink runner for efr32_slwstk6061a board
This commit adds J-Link runner for efr32_slwstk6061a board. To use it
it is necessary to install J-Link Software and Documentation Pack.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-05-12 12:48:55 -04:00
Pushpal Sidhu
d52ca25550 boards: adafruit_trinket_m0: Force program flash to 0x2000
Apparently zephyr,code-partition doesn't work unless you define
BOOTLOADER_MCUBOOT.

Signed-off-by: Pushpal Sidhu <psidhu.devel@gmail.com>
2019-05-12 12:38:11 -04:00
Pushpal Sidhu
de873903c5 boards: adafruit_trinket_m0: Set flash address
With the adafruit trinket m0, you must flash at 0x2000 due to a locked
UF2 bootloader.

Signed-off-by: Pushpal Sidhu <psidhu.devel@gmail.com>
2019-05-12 12:38:11 -04:00
Mark Wang
a93fcb10fd boards: mimxrt1050_evk: configure USB device EHCI driver for rt1050
set usbd1 status as OK in mimxrt1050_evk.dts
add usb_device supported information in rt1050 yaml file.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2019-05-09 13:37:02 -05:00
Piotr Mienkowski
c53c32e17d board: efr32_slwstk6061a enable SoC DC-DC converter
This commit enables internal SoC DC-DC converter on efr32_slwstk6061a
board.

RF components on efr32_slwstk6061a board are connected to the internal
SoC DC-DC converter. Upon startup the DC-DC converter is configured in
the bypass mode. Such configuration provides enough power for the SoC to
boot and perform basic operation. It is not enough however to operate
the radio subsystem. Without this patch enabling radio in Rx or Tx mode
causes voltage drop and triggers brown out detector reset.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-05-09 06:46:14 -05:00
Francisco Munoz
3667d0b761 boards: microchip_mec: Introduce gpio to the eval board
Enables GPIO driver in the board defconfig

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
2019-05-08 16:39:54 -07:00
Jose Alberto Meza
35d529b6ec boards : arm : Add I2C support for MEC15xx EVB
Expose 3 I2C instances with default SoC-Phy mappings for use with EVB

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2019-05-08 15:02:26 -07:00
Benjamin Valentin
13453b9105 boards: enable i2c on the SAM R21 Xplained Pro board
Hook up SERCOM1 to I2C, it is connected to the EXT3 header and
the EDBG embedded debugging interface.

Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
2019-05-08 14:49:53 -04:00
Song Qiang
d96ffc1962 doc: boards: arm: nucleo: add ADC support to the boards doc
The ADC driver in this PR has been tested working on these nucleo
boards, so ADC support is added to the boards doc.

Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
2019-05-07 23:15:58 -04:00
Song Qiang
8bda26bd13 test: driver: adc: add some nucleo boards support for adc test cases
Some configuration for the boards have to be added into test_adc.c file
so user can test driver with the test cases. Several nucleo boards are
added including F091RC/F103RB/F207ZG/F302R8/F401RE/F746ZG/L073RZ/L476RG.

And also ADC dts and pinmux configuration are added into boards own
pinmux.c and dts file.

Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
2019-05-07 23:15:58 -04:00
Aurelien Jarno
68a4bc541a boards: support the SAME70Q21B on the SAM E70 Xplained Board
Let allow users to select the revision B of the chip on the SAM E70
Xplained Board. The same board exists with SoC revision A or B.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2019-05-07 23:10:21 -04:00
Antony Pavlov
dffd779ff3 boards: arm: unify Nucleo-64 boards connectors image
At the moment there are two images for Nucleo-64 STM32 family board
connectors (img/nucleo_xxxxxx_connectors.png).

The images have the same canvas size (800x619) but different file
size in bytes and different color coding.

The first one (192K, 8-bit colormap) is used for

  * nucleo_f070rb
  * nucleo_f091rc
  * nucleo_f103rb
  * nucleo_l053r8
  * nucleo_l073rz

The second one (464K, 8-bit/color RGBA) is used for

  * nucleo_f030r8
  * nucleo_f302r8
  * nucleo_f334r8

Applying simultaneous black/white threshold to the images and
comparing them with imagemagick tools shows that the images
have no significant difference. Therefore we can use
nucleo_l073rz_connectors.png for nucleo_f030r8, nucleo_f302r8
and nucleo_f334r8.

Please see https://github.com/zephyrproject-rtos/zephyr/pull/15926
for details.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
2019-05-07 22:33:45 -04:00
Henrik Brix Andersen
8b1a50b64c boards: holyiot_yj16019: add support for the Holyiot YJ-16019 board
The Holyiot YJ-16019 board is a small, coin cell driven board based on
the Nordic Semiconductors nRF52832. It provides one LED and one push
button.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2019-05-07 08:37:44 -04:00
David B. Kinder
c5112327a7 doc: fix mentions of Wi-Fi trademark name
The approved trademark name is Wi-Fi so update references to WiFi and
other spellings to Wi-Fi in documentation and Kconfig help strings.
(Note that use of spelling variatios of "wifi" in module names, CONFIG
names, link names and such are untouched.)

https://www.wi-fi.org/

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-05-06 20:10:59 -04:00
Harry Jiang
aeb7fcefb8 board: stm32_min_dev: add the missing usb node
The stm32_min_dev board blue/black variant support USB device,
but the usb node removed by merge PR #15245, so add it back.

Signed-off-by: Harry Jiang <explora26@gmail.com>
2019-05-06 08:47:28 -05:00
Brett Witherspoon
f0dc2e433d boards: cc1352r1_launchxl: add support for TI CC1352R LaunchPad
The TI CC1352R LaunchPad (LAUNCHXL-CC1352R1) is a development kit that
features the CC1352R SoC.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-04 09:13:43 -05:00
Brett Witherspoon
39855a9c90 boards: cc26x2r1_launchpad: add support for TI CC26x2R LaunchPad
The TI CC26x2R LaunchPad (LAUNCHXL-CC26X2R1) is a development kit that
features the CC2652R SoC.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
2019-05-04 09:13:43 -05:00
Aaron Tsui
fbd6a7521d samples: shields: x_nucleo_iks01a1
Fix "arduino_i2c not found" issue, similar to #13708
Add arduino interfaces in dts to board nrf52_10040

Signed-off-by: Aaron Tsui <aaron.tsui@outlook.com>
2019-05-03 14:33:42 -04:00
Tavish Naruka
28ee240f61 boards: nrf52840_papyr: misc. board config fixes
Enables BT_CTLR if BT is enabled, connects shell-uart to uart0,
and enabled NRFX uart driver by default.

Signed-off-by: Tavish Naruka <tavishnaruka@gmail.com>
2019-05-03 14:26:07 -04:00
Tavish Naruka
6ee55fc145 boards: nrf52840_blip: enable default instances of peripherals
Enables the default instances for I2C, SPI, PWM.

Signed-off-by: Tavish Naruka <tavishnaruka@gmail.com>
2019-05-03 14:26:07 -04:00
Yaël Boutreux
eba3f49240 pinmux: Add stm32mp157c_dk2 board support
Implementation of pinmux for the stm32mp157c_dk2 board.
Some UART pin mux definition has been added (mainly for
UART console and UART/SPI Arduino shield support).
This can be completed with pin mux for other stm32mp157c
UART.

Signed-off-by: Yaël Boutreux <yael.boutreux@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
2019-05-03 14:22:02 -04:00
Yaël Boutreux
6f225ab690 uart: Add support for stm31mp157c_dk2 board
Add support for stm32mp1 basic UART API with Zephyr.
UART Console and UART shell are also supported.
Async UART API and USART support is to be done.

Signed-off-by: Yaël Boutreux <yael.boutreux@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
2019-05-03 14:22:02 -04:00
Derek Hageman
4709816a69 soc: sam0: Remove SERCOM defines from dts_fixup.h
Move SERCOM peripherals to use the raw defines generated from DTS
parsing.  This adds aliases to the DTS so that the SERCOM number
can still be used for clocking and pinmux.

Signed-off-by: Derek Hageman <hageman@inthat.cloud>
2019-05-03 08:46:57 -05:00
Derek Hageman
6324c8a27a drivers: pinmux: sam0: Remove defines from dts_fixup.h
Move SAM0 pinmux to use the raw defines generated from the DTS
parsing.

Signed-off-by: Derek Hageman <hageman@inthat.cloud>
2019-05-03 08:46:57 -05:00
Armando Visconti
a28b65e6f1 boards: 96b_argonkey: upgrade documentation using official info
The 96Boards Argonkey mezzanine board has been officially
published on ST website:

  https://www.st.com/en/evaluation-tools/steval-mki187v1.html

Update documentation with official picture and website info.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-05-01 15:27:50 -05:00
Maureen Helm
f940237057 boards: mimxrt1015_evk: Fix board image
The mimxrt1015_evk board image was corrupted and did not display
properly in the board documentation. Fix it.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-05-01 10:28:50 -04:00
Scott Worley
4b2a181a4a boards : arm : Add support for Microchip MEC15xx EVB ASSY 6853
This was tested with the hello world application. UART 0 was used
as console for displaying "Hello World! mec15xxevb_assy6853" to
the serial terminal.

Signed-off-by: Scott Worley <scott.worley@microchip.com>

soc : arm : microchip_mec Use rename fault clear function

The Cortex-M core function to clear faults was rename by
upstream. Update to use new name.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2019-04-30 14:08:23 -07:00
Benjamin Valentin
9f69878633 soc: sam0: enable RTC for samd21, samr21
The Atmel SAMD21 (and therefore also the SAMR21) comes with the same
RTC peripheral as the Atmel SAMD20.

Enable it in dts_fixup.h and enable it in the dts for samr21_xpro.

Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
2019-04-28 13:25:35 -04:00
Benjamin Valentin
360fe70ee7 boards: atsamr21_xpro: Add SAM R21 Xplained Pro Evaluation Kit
Add the Atmel SAM R21 Xplained Pro Evaluation Kit to zephyr.

So far, UART, SPI, I2C (depends on #14128), debug LED and user button
have been tested.

Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
2019-04-28 13:25:35 -04:00
Loic Poulain
e5609997e0 soc: nxp_imx: mimxrt1064_evk: Add I2C support
I2C1 is routed to J24 Arduino interface (D14/I2C_SDA, D15/I2C_SCL).

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2019-04-26 03:48:07 -07:00
Manivannan Sadhasivam
a0ba654622 boards: arm: 96b_stm32_sensor_mez: Add DTS node for on-board MIC
Add devicetree node for on-board Microphone (MP34DT01) connected to
STM32F446 via I2S2.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2019-04-26 03:44:46 -07:00
Manivannan Sadhasivam
e2baac2d78 boards: arm: 96b_stm32_sensor_mez: Enable I2S2 peripheral
Enable I2S2 peripheral for the 96b_stm32_sensor_mez board along
with DMA.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2019-04-26 03:44:46 -07:00
Manivannan Sadhasivam
5274c38200 pinmux: stm32f4: Add STM32_OSPEEDR_VERY_HIGH_SPEED to pinmux header
Since STM32_OSPEEDR_VERY_HIGH_SPEED flag is required for all I2S_CK
pins, lets add this to the STM32F4 pinmux header and remove the
duplicates in board files. While we are at it, let's add the missing
pinmux definitions for I2S_2 also.

Fixes: #9028

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2019-04-26 03:44:46 -07:00
Yong Jin
8515b841a1 driver: watchdog: stm32: rename the independent watchdog name
rename the name idwg to iwdg.

Signed-off-by: Yong Jin <jinyong.iot@foxmail.com>
2019-04-26 03:35:09 -07:00
Siddharth Chandrasekaran
35b10fbdcd doc: stm32_min_dev: Update for blue/black variant support
Replace image and reword some sections to indicate the presence of two
board variants: stm32_min_dev_(blue|black)

Signed-off-by: Siddharth Chandrasekaran <siddharth@embedjournal.com>
2019-04-26 03:34:45 -07:00
Siddharth Chandrasekaran
bb72df5bb2 board: stm32_min_dev: Add support for blue/black variant
Add support for blue pill and black pill variants of the STM32
minimum development board by splitting board configuration into
stm32_min_dev_blue and stm32_min_dev_black.

CODEOWNERS: Add myself (@cbsiddharth) as codeowner for stm32_min_dev

Signed-off-by: Siddharth Chandrasekaran <siddharth@embedjournal.com>
2019-04-26 03:34:45 -07:00
Kwon Tae-young
0efc039415 boards: stm32f4_disco: Fix yaml ram size
Total RAM is 192, including 64K CCM.

Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
2019-04-26 03:22:35 -07:00
Yaël Boutreux
b4b7020b03 gpio: Add stm32mp157c_dk2 board support
Add support for stm32mp1x GPIO with Zephyr GPIO driver

Signed-off-by: Yaël Boutreux <yael.boutreux@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
2019-04-26 02:56:20 -07:00
Yaël Boutreux
aca4b075f1 clock_control: Add stm32mp157c_dk2 board support
Add support for stm32mp1x RCC with Zephyr clock_control driver

Signed-off-by: Yaël Boutreux <yael.boutreux@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
2019-04-26 02:56:20 -07:00
Yaël Boutreux
2a47f41e1e stm32mp1: disable cmsis_rtos_v2 test
cmsis_rtos_v2 test currently failing, temp disabling

Signed-off-by: Yaël Boutreux <yael.boutreux@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
2019-04-26 02:56:20 -07:00
Ioannis Glaropoulos
236c5ac28f soc: arm: remove default selection of system timer for ARM platforms
We shall not enable by default a system timer in ARM
platforms, namely the SysTick, the Nordic, or the SAM0
RTC timer, simply by assessing the hardware capabilities
(e.g. by conditioning on CPU_CORTEX_M_HAS_SYSTICK).
Instead, now, all ARM platforms needs to explicitly set
their system timer module. Note that this has already
been the case for ca 80% of the ARM platforms.

This clean-up allows us to decouple HW capabilities from
system configuration (for example, Nordic platforms may
enable option CPU_CORTEX_M_HAS_SYSTICK, and still use
the platform-specific RTC timer for system timing).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-04-25 23:09:23 -07:00
Karl Zhang
a4607fd7db Revert "boards: v2m_musca_b1_nonsecure: disable sanitycheck [REVERT ME]"
This reverts commit d6d7a80057.

Signed-off-by: Karl Zhang <karl.zhang@linaro.org>
2019-04-25 08:43:17 -05:00
Karl Zhang
cfd5d8f15e boards: v2m_musca_b1_nonsecure: Increase flash size
The sanity check for v2m_musca_b1_nonsecure failed because of small
flash size.

Signed-off-by: Karl Zhang <karl.zhang@linaro.org>
2019-04-25 08:43:17 -05:00
Manivannan Sadhasivam
5d835fa1f4 boards: arm: Add 96Boards WisTrio LoRa Tracker board
Add board support for 96Boards WisTrio LoRa Tracker board from
RAK Wireless. This board is one of the 96Boards IoT Edition platform.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2019-04-22 08:54:18 -05:00
Erwan Gouriou
378ef0bbdd boards: Add support for nulceo_wb55rg
Basic support for nucleo_wb55rg board.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-04-19 14:19:44 -05:00
Georgij Cernysiov
27b9c6a69f boards: arm: disco l475 iot: correct documentation
Discovery board B-L475E-IOT01A uses STM32L475VG µC, not
previously described STM32L475RG.

Signed-off-by: Georgij Cernysiov <g.cernysiov@elco-automation.de>
2019-04-19 13:56:28 -05:00
Georgij Cernysiov
125c0300aa boards: arm: st, stm32: add jlink runner args
Adds device and speed args for jlink runner,
and sets default runners to openocd.

Signed-off-by: Georgij Cernysiov <g.cernysiov@elco-automation.de>
2019-04-19 13:56:28 -05:00
Arnaud Pouliquen
18dc73c1bf boards: arm: Add support for STM32MP157 Discovery board
Add configuration, pinmux, dts and documentation for the STM32MP157
Discovery board based on the STM32MP157 SoC.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
2019-04-19 12:05:27 -05:00
Anas Nashif
d6d7a80057 boards: v2m_musca_b1_nonsecure: disable sanitycheck [REVERT ME]
Disable sanitycheck on this board for now and while fix issues that were
not detected earlier.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-04-19 08:55:58 -05:00
Marti Bolivar
4f23741a93 doc: nrf52840_pca10059: re-work programming notes
Mark the three distinct choices for how to program the board as
separate options, and add some clarifications on each. For the MCUboot
route, use smp_svr instead of blinky, to give the user a hint about
how to keep their devices up to date from application land.

Signed-off-by: Marti Bolivar <marti.bolivar@nordicsemi.no>
2019-04-19 09:02:31 -04:00
Anas Nashif
6ad19d2436 boards: v2m_musca_b1_nonsecure: add flash to yaml
Specify flash size to help filtering with sanitycheck.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-04-19 07:32:28 -04:00
Emanuele Di Santo
0db7dda09d Bluetooth: hci: h4: use GPIO reset for nrf52840_pca10090 controllers
This patch adds support to the nRF9160 for using a dedicated
GPIO pin to reset controllers running on nrf52840_pca10090.

It resets the controller before opening the H4 device, and it
delays the controller from booting until all bytes traveling
to the host have been received and drained from the UART,
thus ensuring that communication can begin from a clean state.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-04-19 12:21:21 +02:00
Emanuele Di Santo
3dc71c8d34 boards: arm: nrf52840_pca10090: add a GPIO reset line
Let one of the MCU interface pins be configured to act
as a reset line. This mitigates the lack of a connection
between the nRF9160 and nRF52840 PINRESET.
Minor refactoring and updated comments.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-04-19 12:21:21 +02:00
Emanuele Di Santo
0604e21de6 boards: arm: nrf52840_pca10090: update log settings
Add a board-specific log level setting and change log levels.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-04-19 12:21:21 +02:00
Ioannis Glaropoulos
bd7f4fc613 boards: arduino due: default to building with MPU support
Builds for Arduino Due shall have MPU support by default.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-04-18 17:43:26 -04:00
Ryan QIAN
4097a5bf63 boards: arm: add board support for mimxrt1015_evk
Add board support files for mimxrt1015_evk, the development board for
i.mxrt1015 (CM7) SoC.

- Add pinmux, dts, and doc.
- Tested samples: hello_world, philosophers, synchronization,
basic/blinky, basic/button.

Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
2019-04-18 16:11:34 -05:00
Karl Zhang
13dfeba5bd arm: V2M Musca B1: Add Musca B1 SoC and board support
Musca B1 is a Cortex-M33 based SoC.

Signed-off-by: Karl Zhang <karl.zhang@linaro.org>
2019-04-18 13:25:50 -05:00
Jan Sturm
6e7f99a985 boards: stm32f4_disco: added missing LED aliases
added three missing LEDS for stm32f4_disco, in order to run the
samples/basic/disco application on the stm32f4_disco

Signed-off-by: Jan Sturm <jansturm92@googlemail.com>
2019-04-18 13:25:17 -05:00
Maureen Helm
ab712b2d67 mimxrt1060_evk: mimxrt1064_evk: Enable pyocd runner
Enables the pyocd runner on mimxrt1060_evk and mimxrt1064_evk boards
using the generic cortex_m target. Note that this target is not capable
of programming flash, therefore can only load an application to internal
SRAM (set CONFIG_CODE_ITCM=y and CONFIG_DATA_DTCM=y) or attach to an
application already programmed to flash by other means (e.g., DAPLink
drag-and-drop).

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-04-18 12:23:34 -04:00
Ulf Magnusson
7fdb525754 kconfig: Use 'default' instead of 'def_bool' in Kconfig.defconfig files
Same deal as in commit 4638652214 ("Kconfig: Use 'default' instead of
'def_bool' in Kconfig.defconfig files"), fixing new stuff that got
introduced since then.

Some symbols, like ALTERA_AVALON_PIO, are only defined in
Kconfig.defconfig files, and so need the def_bool.

Motivation (from the note at the end of
guides/kconfig/index.html#common-shorthands):

For a symbol defined in multiple locations (e.g., in a Kconfig.defconfig
file in Zephyr), it is best to only give the symbol type for the "base"
definition of the symbol, and to use 'default' (instead of 'def_<type>'
value) for the remaining definitions. That way, if the base definition
of the symbol is removed, the symbol ends up without a type, which
generates a warning that points to the other definitions. That makes the
extra definitions easier to discover and remove.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-04-18 12:20:49 -04:00
Kwon Tae-young
689d71b291 arm: Add support for MINI-M4 for STM32 Board
Add configuration, dts and documentation for the MINI-M4 for
STM32 board based on the STM32F415RG SoC.
See https://www.mikroe.com/mini-stm32f4 for more details.

Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
2019-04-18 11:12:16 -05:00
Alexander Wachter
78714b4ff4 boards: arm: nucleo_f746zg: Activate CAN on nucleo F746zg
This commit adds CAN support for nucleo F746zg.
Furtermore CAN was added in stm32f7.dtsi and pinmuc_stm32f7.h
CAN_RX: PD0, CAN_TX: PD1

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2019-04-18 09:23:20 -04:00
Erwan Gouriou
08d41ecff5 dts: stm32f412Xg: Factorize package definitions
2 identical packages were defined for stm32f412 SoC, invariant "g".
Merge them in new sinclge stm32f412Xg.dtsi.
Update matching boards accordinlgy.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-04-18 09:22:21 -04:00
Harry Jiang
39d4babf00 board: stm32_min_dev: Add USB support
Add support USB to stm32_min_dev board

Signed-off-by: Harry Jiang <explora26@gmail.com>
2019-04-17 15:53:07 -05:00
Peter A. Bigot
db365c43c0 boards: arm: particle_*: default-enable SPI_2 when SPI enabled
SPI is not normally enabled, but some tests assume that there's a device
available.  Conditionally enable SPI_2 which is associated with the
on-board flash.

Closes #15374

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-04-16 12:37:44 -05:00
Kumar Gala
5307858e4e boards: arm: drop counter from board yaml
Remove 'counter' as a supported feature on several NRF boards as these
boards fail to build tests/drivers/counter/counter_basic_api.  This is
due to the fact that we either need explicit board conf files for the
test or have the counter driver enabled via Kconfig.

Fixes #15460

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-04-15 20:53:17 -04:00
Wentong Wu
22c9646b97 tests: adjust stack size for mps2_an385's coverage test
for SDK 0.10.0, it consumes more stack size when coverage
enabled, so adjust stack size to fix stack overflow issue.

Fixes: #15206.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
2019-04-11 17:59:39 -04:00
Andrzej Głąbek
112baf1721 boards: nrf9160_pca10090: Fix polarity of pwm0/ch0
This is a follow up to commit 436c4262da.
By default the channel 0 of pwm0 is set to the pin that drives led0.
Since the LED is active high, the inversion of polarity is incorrect.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-04-10 13:55:10 -04:00
Anas Nashif
3ae52624ff license: cleanup: add SPDX Apache-2.0 license identifier
Update the files which contain no license information with the
'Apache-2.0' SPDX license identifier.  Many source files in the tree are
missing licensing information, which makes it harder for compliance
tools to determine the correct license.

By default all files without license information are under the default
license of Zephyr, which is Apache version 2.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-04-07 08:45:22 -04:00
Wentong Wu
b991962a2e tests: adjust stack size for qemu_x86 and mps2_an385's coverage test
for SDK 0.10.0, it consumes more stack size when coverage enabled
on qemu_x86 and mps2_an385 platform, adjust stack size for most of
the test cases, otherwise there will be stack overflow.

Fixes: #14500.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
2019-04-04 08:23:13 -04:00
Maureen Helm
3854f23acf doc: boards: Edit nxp board and debug probe docs
Incorporates minor documentation edits recommended by David Kinder after
PR #14000 was merged.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-04-02 05:36:45 +08:00
Maureen Helm
8ab7782703 boards: 96b_nitrogen: Update link to pyocd host tools
Updates the 96b_nitrogen board document to link to the new debugging
guide instead of the opensda page.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Maureen Helm
3d17b72993 boards: usb_kw24d512: Rework programming and debugging doc
Reworks the programming and debugging section in the usb_kw24d512 board
document to leverage the new debugging guide covering debug probes and
host tools.

This board does not have an OpenSDA microcontroller, therefore the only
debug probe currently supported is the external J-Link.

Updates the flashing section to reflect that the ``flash`` build system
target is now supported.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Maureen Helm
80059fc6c4 boards: lpcxpresso54114: Rework programming and debugging doc
Reworks the programming and debugging section in the lpcxpresso54114
board document to leverage the new debugging guide covering debug probes
and host tools.

This board supports the LPC-Link2 J-Link onboard debug probe.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Maureen Helm
3468fd91b9 boards: hexiwear_{k64, kw40z}: Rework programming and debugging doc
Reworks the programming and debugging section in the hexiwear board
documents to leverage the new debugging guide covering debug probes and
host tools.

Recommends the OpenSDA J-Link debug probe because the k64 and kw40z
share the same OpenSDA microcontroller, and the kw40z requires Segger
RTT for a console. It is possible to use daplink firmware for the k64,
however it is not recommended because it requires switching the firmware
back to jlink to access the kw40z.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Maureen Helm
703d067c1e boards: hexiwear_k64f: Default to jlink firmware and jlink runner
The hexiwear_k64f and hexiwear_kw40z share the same OpenSDA
microcontroller on the hexiwear docking station, so make the jlink the
default firmware on both for consistency. We use jlink instead of
daplink by default because hexiwear_kw40z can only use Segger RTT for
the console (there is no UART available).

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Maureen Helm
64f96bcf75 boards: frdm_kw41z: Default to daplink firmware and pyocd runner
The frdm_kw41z board was originally configured in zephyr to use the
jlink runner by default because pyocd didn't yet support the kw41z soc.
Support for kw41z was added in pyocd v0.9.0, so we can now default to
daplink firmware and pyocd.

Now all freedom boards in zephyr consistently use daplink and pyocd.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Maureen Helm
201a5a27e3 boards: frdm_{kl25z, k64f, kw41z}: Rework programming and debugging doc
Reworks the programming and debugging section in the freedom board
documents to leverage the new debugging guide covering debug probes and
host tools.

These boards support OpenSDA DAPLink and OpenSDA J-Link onboard debug
probes. They can also support an external J-Link probe, but this
requires board modifications (cutting traces) and is therefore not
documented.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Maureen Helm
c4c31fcdb1 boards: mimxrt10{60,64}_evk: Rework programming and debugging doc
Reworks the programming and debugging section in the mimxrt1060_evk and
mimxrt1064_evk board documents to leverage the new debugging guide
covering debug probes and host tools.

Neither of these boards have OpenSDA J-Link board-specific firmware,
therefore the only debug probe currently supported is the external
J-Link.

Updates the flashing section to reflect that the ``flash`` build system
target is now supported.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Maureen Helm
09e5acbe54 boards: mimxrt10{20,50}_evk: Rework programming and debugging doc
Reworks the programming and debugging section in the mimxrt1020_evk and
mimxrt1050_evk board documents to leverage the new debugging guide
covering debug probes and host tools.

These boards support both the OpenSDA J-Link onboard debug probe and the
J-Link external debug probe.

Corrects an error linking to the wrong OpenSDA J-Link firmware.

Updates the flashing section to reflect that the ``flash`` build system
target is now supported.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-29 22:50:44 -04:00
Patrik Flykt
21358baa72 all: Update unsigend 'U' suffix due to multiplication
As the multiplication rule is updated, new unsigned suffixes
are added in the code.

Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
2019-03-28 17:15:58 -05:00
Andrzej Głąbek
ebfd8533d8 boards: nrf52840_pca10090: Force GPIO to be always enabled
The GPIO driver is required by this board's initialization code, hence
it is forced to be enabled always, not only enabled by default like on
other boards equipped with an nRF SoC.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-03-28 16:46:39 -05:00
Andrzej Głąbek
32223bd2ae boards: Enable GPIO by default on boards with nRF SoCs
This patch enables the GPIO driver by default on all boards equipped
with an nRF SoC (all boards having `CONFIG_SOC_FAMILY_NRF=y` in their
`_defconfig` file).
In vast majority of cases the driver is needed, so it is more
convenient to enable it at board level than in particular
applications.
And if the driver is undesired for some reason, it can be still
disabled in the application config.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-03-28 16:46:39 -05:00
Emanuele Di Santo
500fa722fb boards: arm: nrf52840_pca10059: correctly set FLASH_LOAD_OFFSET
Set FLASH_LOAD_OFFSET correctly (accounting for Nordic MBR) when
BOARD_HAS_NRF5_BOOTLOADER is defined and we're not compiling MCUboot.
MCUboot will select USE_CODE_PARTITION, which will make it link
correctly regardless of which board DTS is used (stock/debugger).

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-03-28 17:54:25 +01:00
Krzysztof Chruscinski
46936416ee boards: Remove enabling RTT by default on pca10040 and pca10056
nrf52840_pca10056 and nrf52_pca10040 was enabling RTT by default
for all samples. It has some implications like forwarding printk
to logger and that, as a default behavior, may not be welcomed.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2019-03-28 08:41:28 -05:00
Andrzej Głąbek
436c4262da boards: nrf9160_pca10090: Fix LEDs active state
The nRF91 DK User Guide clearly says "the LEDs are active high,
meaning that writing a logical one ('1') to the output pin will
illuminate the LED".

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-03-28 08:32:23 -05:00
Mieszko Mierunski
7a0f921517 boards: nrf: Enable TIMER1 by default in nrf9160_pca10090
Enable TIMER1 by default in nrf9160_pca10090 so it can be selected
by user for hardware byte counting in UARTE or other purpose.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2019-03-28 09:30:57 -04:00
Aaron Tsui
51fafa7302 boards: nucleo_f746zg: Remove repetitive yaml line
repetitive line

Signed-off-by: Aaron Tsui <aaron.tsui@outlook.com>
2019-03-28 09:09:28 -04:00
David B. Kinder
5d8e367efe doc: fix misspelling in docs and API comments
Fix misspellings missed during regular reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-03-27 15:59:09 -04:00
Jun Li
48ee3ee837 board: nucleo_f429zi: fix wrong comment
the clock is 168MHz instead of 180MHz.

Signed-off-by: Jun Li <jun.r.li@intel.com>
2019-03-26 07:51:20 -05:00
Erwan Gouriou
87cd5e7050 boards: stm32: Enable CCM and update yaml
Following fix SRAM size to take into account CCM,
enable CCM and update yaml files in boards including fixed soc
dtsi definitions.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-03-25 22:31:08 -04:00
Erwan Gouriou
2a605ea226 boards: stm32f4_disco: Update openocd config
When using V0.10.0 SDK, flashing is not working anymore on
stm32f4_disco.
Using st_nucleo_f4.cfg instead of stm32f4discovery.cfg solves
the issue.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-03-22 07:19:32 -05:00
Carles Cufi
c616f215b0 boards: nrf: Add bt-mon-uart to all nRF-based boards
Add the bt-mon-uart chosen node to all the nRF-based boards so that they
can all use CONFIG_BT_DEBUG_MONITOR without additional changes.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-03-21 17:23:08 +02:00
Vincent Wan
3a8767c1f2 doc: boards: cc3220sf_launchxl: Document limitations
Adding a section on some features that have yet to be implemented in
the SimpleLink WiFi driver.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
2019-03-18 20:17:47 -05:00
Benjamin Valentin
896e084d7b boards: arm: atsamd21: enable button in dts
The SAM D21 Xplained Pro has a button connected to PA15, so enable it
in the dts.

Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2019-03-15 10:31:09 -05:00
Maureen Helm
cfab3273aa boards: reel_board: Fix apds9960 i2c address
Fixes the apds9960 i2c address on the reel_board. Found while converting
the apds9960 driver to use the i2c address from device tree rather than
a hardcoded value in apds9960.h.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-15 10:30:53 -05:00
Michael Scott
83aa7cecd4 boards: arm: nrf52840-based: Free up flash room for sample apps
The current flash configurations for all nRF52840's in Zephyr is
VERY constrained when it comes to allowing samples any space for
storage or custom areas.  It only leaves the last 4 pages of flash
for "storage".

The nRF52840 is also capable of using OpenThread which defaults
to using the last 4 pages of flash for storing OpenThread-related
network data.

This means that while using OpenThread under any configuration
designed to use mcuboot partition slots, there is no space left
over for storage of any kind.

Let's adjust the partition table to set storage at 8 pages of
flash (32k).  This fixes the conflict with OpenThread and leaves
room for future use cases that may arise.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-03-15 08:52:06 -05:00
Benjamin Valentin
4f42b11c3c boards: arm: atsamd21: enable USB in dts
USB is already being configured in pinmux.c, but for it to be
availiable it also needs to be enabled in the device tree.

Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2019-03-15 07:10:37 -05:00
Kumar Gala
317d1c9d06 boards: mec2016evb_assy6797: Remove unneeded board.h
This is a vestiage of how board ports use to work, we have since removed
the need for board.h to exist on all board ports.  Remove the file since
its not needed and doesn't do anything useful.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-03-15 06:42:58 -05:00
Loic Poulain
b8c1a0f29f dts: arm: nxp: rt: Create dedicated rt1064 dtsi
The i.MXRT1064 inheriting from i.MXRT1060, has additional embedded
4-MB QSPI flash (via flexspi1).

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2019-03-15 06:40:23 -05:00
Loic Poulain
99ae556fb6 dts: arm: nxp: rt: Create dedicated rt1060 dtsi
i.MX-RT1060 has 512KB additional on-chip RAM mapped at 0x20280000.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2019-03-15 06:40:23 -05:00
David B. Kinder
6000a6205a doc: prepare for improving doc API linking
Linking to API material requires knowing the pecularities of how
doxygen, sphinx, and breathe work. In an attempt to hide some of this
we're preparing the current docs to allow use of configuration defaults
that will let us more simply use a default role that will hunt for a
reference target in the various domains that are available by using a
default "role" of "all".  This will let us use the simple notation
`functionname` or `typename` without fully specifying the reference as
:c:func:`functionname`.

This patch cleans up exising docs that were (incorrectly) using single
backtics where double backtics should have been used, and also found
some typos (such as a space between the role name and the reference,
such as :file: `filename`, and a missing colon such as
c:func:`functionname`)

This is a start to address issue #14313

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-03-15 05:47:19 +01:00
Suryansh Sharma
fa3af77f83 doc: arm: Update stm32_min_dev doc
Updates the documentation to show PC13 instead
of PB12 as deafult LED Pin. Also adds note
about the default LED based on version of board.
Includes the change that needs to be made to
the dts file for changing default LED pin

Signed-off-by: Suryansh Sharma <suryansh@evilscientist.cc>
2019-03-14 19:19:11 -05:00
Kumar Gala
e509cdc5c4 boards: arm: Fix setting of xtools
efm32pg_stk3402a and lpcxpresso54114_m0 board yaml files didn't set
xtools under the toolchain category, fix that.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-03-14 06:48:37 -05:00
Anthony Kreft
075e130843 boards: nucleo_l053r8: add clock ticks
Add CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000 to nucleo_l053r8_defconfig.
All STM32 boards seem to have this defined.
Makes samples with ksleep work properly.

Signed-off-by: Anthony Kreft <anthony.kreft@gmail.com>
2019-03-13 11:59:09 -05:00
Carles Cufi
55e12c4233 boards: 96b_carbon: Require BT for NET_L2_BT
Since NET_L2_BT no longer "select"s BT and the rest of required BT
features, enable them within the defconfig file.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-03-13 14:26:11 +01:00
Ulf Magnusson
53376394b7 kconfig: Remove blank lines at the beginning/end of files
Maybe this is some "just in case" thing that got copied around. There's
no need to have a blank line at the beginning or end of Kconfig files.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-13 07:29:42 -05:00
Maureen Helm
54ae600cde boards: mimxrt1064_evk: Enable mcux elcdif driver and pins
Enables the mcux elcdif shim driver and pin muxes on the mimxrt1064_evk
board. Configures lvgl defaults accordingly.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-13 06:02:42 -05:00
Maureen Helm
f8c4808d96 boards: mimxrt10{50,60}_evk: Set lvgl defaults in board defconfigs
Configure lvgl defaults for imx rt boards in their respective board
defconfigs rather than the lvgl sample application.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-13 06:02:42 -05:00
Yong Jin
4ce6b69093 boards: stm32f769i_disco: supports ethernet
add support ethernet for the stm32f769i_disco borad.

Signed-off-by: Yong Jin <jinyong.iot@foxmail.com>
2019-03-13 06:01:48 -05:00
Kumar Gala
af4eceaa17 boards: arm: Enable building with Zephyr toolchain
Now that we have SDK 0.10.0 we can enable building this board with the
Zephyr toolchain.  SDK 0.10.0 introduced support for the ARM v8m based
cores which these boards utilize.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-03-11 13:31:43 -05:00
Emanuele Di Santo
ac908b8fcf doc: boards: arm: nrf52840_pca10059: fix instructions for flashing
The instructions for flashing the board using nrfutil were incorrect.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-03-11 14:51:42 +01:00
David B. Kinder
505cc2bb0e doc: use :zephyr_file: where appropriate
A new role :zephyr_file: is available that renders to a link to the file
or folder in GitHub.  Find appropriate references using :file: and
convert to :zephyr_file: to take advantage of its linking capability.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-03-09 09:50:27 -05:00
Michael Scott
dd70c6bb92 boards: arm: particle_*: remove SPI default enablement
The nRF52840-based Particle.io boards have an external flash
module that is connected via SPI interface.  Originally,
the goal was to place the flash part into deep power down
mode and save 9 uA in sleep mode, but this was never
implemented in a board initialization file.

Let's remove the default y behavior for SPI as each sample
will turn it on if needed, and it can cause certain out of
tree samples to behave badly (where CONFIG_MULTITHREADING=n).

Long term: we need a better solution for handling samples
that don't fit the requirements for certain drivers, but
for now this will clean up some board usability issues.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-03-07 20:30:27 -05:00
Maureen Helm
7e720a6052 boards: mimxrt1064_evk: Default to internal flash and external sdram
JLink V6.44 (2019-03-01) added support for the imx rt1064 soc, including
programming the internal flash on flexspi2. Updates the mimxrt1064_evk
board to use the internal flash and external sdram memories by default,
now that the debug tools support them.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-06 11:18:45 -06:00
Andrzej Głąbek
2d91e5cc11 boards: nrf: Correct I2C and SPI instances enabled by default in dts
Do not enable by default both I2C and SPI nodes for the peripherals
with the same instance number, since they use the same MMIO base
address and DTC will issue a warning in such situation.
This patch corrects dts files for the following boards:
- nrf51_pca10028
- nrf52_pca10040
- nrf52840_blip
- nrf52840_pca10056
- nrf52840_pca10059

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-03-06 07:17:21 -06:00
Andrzej Głąbek
da917bc569 boards: 96b_nitrogen: Enable by default SPI_1 instead of SPI_0
SPI_0 cannot be used simultaneously with I2C_0, since in nRF52832 SoC
these instances share certain hardware resources.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-03-06 07:17:21 -06:00
Michael Scott
cb874235fd boards: arm: particle_*: add code-partition fix for mcuboot apps
To build apps for mcuboot, a zephyr,code-partition needs to be
identified in the DTS chosen block.  Without this entry, the
following configs will always be 0:
CONFIG_FLASH_LOAD_OFFSET
CONFIG_FLASH_LOAD_SIZE

Signed-off-by: Michael Scott <mike@foundries.io>
2019-03-06 05:54:46 -06:00
David B. Kinder
739d0b43d6 doc: reduce size of large pictures
Reduce unnecessarily large images of boards (> 1MB)
Also fixed typo in doc title for mec2016evb_assy6797

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-03-04 19:47:47 -05:00
Geoffroy Van Cutsem
1fc5d94f91 doc: update udev rule instructions for the reel board
The creation of the udev rule requires the user to be root else
it will fail. Update the text of the documentation to make it clearer
and change the shell prompt of the command to '#'

Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
2019-03-04 16:10:35 -08:00
Ruth Fuchss
340fabedbf doc: boards: fix board target
Board target was changed but not updated in documentation.

Signed-off-by: Ruth Fuchss <ruth.fuchss@nordicsemi.no>
2019-02-28 18:19:03 +01:00
Kumar Gala
34a2630141 drivers: gpio: sx1509b: convert to DT_<COMPAT>_<INSTANCE> defines
Convert sx1509b sensor driver to use new defines.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-27 10:19:30 -06:00
Andrzej Głąbek
cd65ed857c boards: nrf52810_pca10040: Override delay loop cycles
On nrf52810_pca10040 board, the nRF52810 SoC is emulated on nRF52832.
This patch overrides for this board the number of cycles consumed by
one iteration of the internal loop in `nrfx_coredep_delay_us()` (used
by `k_busy_wait()`), so that the value adequate for nRF52832 is used.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-02-26 11:53:20 -06:00
Andrzej Głąbek
e2dd85472a soc: nrf52810: Allow the use of SPI0, TWI0, and UART0
In the recent MDK brought by nrfx 1.6.2, these legacy peripherals have
been revealed as available also in nRF52810. This patch allows their
use in Zephyr drivers.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-02-26 11:53:20 -06:00
Loic Poulain
cf856183d1 soc: nxp_imx: mimxrt1064_evk: Enable ethernet support
The i.MX RT1064 evk has one ethernet (10/100M) connector via KSZ8081RNB
phy. Enable related dts nodes and config flags

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2019-02-26 08:04:40 -06:00
Tavish Naruka
df500c164c boards: arm: add Electronut labs papyr (nrf52840_papyr)
Added config for https://docs.electronut.in/papyr/

Signed-off-by: Tavish Naruka <tavishnaruka@gmail.com>
2019-02-25 13:01:46 +01:00
Anas Nashif
fbe15ca7ab boards: udoo_neo_full_m4: not a default testing platform
This should not be run as a default platform in sanitycheck.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-22 11:07:25 -06:00
Ioannis Glaropoulos
0122bacd2c boards: arm: nrf: explicitly set Load size for strictly Secure builds
This commit adds a patch in the Kconfig.defconfig file of
nRF9160_pca10090 board, that instructs the linker to restrict
the Secure image to the size of its code partition, if the
image is to be combined with a Non-Secure image. Secure images
without accompanying Non-Secure firmware (i.e. with symbol
TRUSTED_EXECUTION_SECURE not set) can use the entire flash.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-02-22 08:57:23 -06:00
Ioannis Glaropoulos
8506e8f912 boards: arm: nrf: do not overwrite flash0 reg property in nRF91 board
We do not need to overwrite the reg property of flash0
in nrf9160_pca10090 default partitioning. The property
reflects the flash resources of the SOC, and is passed
in the .dtsi file of nRF9160 SOC definition.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-02-22 08:57:23 -06:00
Michael Scott
7f4eb00f47 boards: 96b_nitrogen: standardize scratch and storage partitions
Most of the other nRF52832 boards have the following settings for
scratch and storage partitions:

scratch_partition: partition@70000 {
        label = "image-scratch";
        reg = <0x00070000 0xa000>;
};

storage_partition: partition@7a000 {
        label = "storage";
        reg = <0x0007a000 0x00006000>;
};

Let's adjust the scratch size to align with the others and add the
storage partition so that settings and FS samples will work.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-02-22 08:46:13 -05:00
Kumar Gala
ee3f7d629b boards: arm: mimxrt10*_evk: Enable MPU
The MPU should have been enabled on all these boards since they have
Cortex-M7 and need mpu for caching support.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-21 15:37:01 -06:00
Michael Scott
1350de9a00 boards: nrf52_blenano2: standardize scratch and storage partitions
Most of the other nRF52832 boards have the following settings for
scratch and storage partitions:

scratch_partition: partition@70000 {
	label = "image-scratch";
	reg = <0x00070000 0xa000>;
};

storage_partition: partition@7a000 {
	label = "storage";
	reg = <0x0007a000 0x00006000>;
};

Let's remove the snowflake settings in BLENano2 which coincidentally
are incorrect: storage overruns the flash area by 0x1000 and causes
a crash when enabling FCB storage.

Signed-off-by: Michael Scott <mike@foundries.io>
2019-02-21 11:54:35 +01:00
Carles Cufi
997ef85ea9 doc: Clean up build instructions and use of variables
Remove most unnecessary instances of `export` and `cmake` use that can
instead be replaced with `zephyr-app-commands` or similar. This is to
avoid documentation using different mechanisms to describe the same
actions and in preparation for documenting `west build` everywhere.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-02-21 11:46:45 +01:00
Jukka Rissanen
41d17433f0 doc: net: Add more info for network connectivity with host
Added more detailed information how to connect Zephyr instance
to host system like Linux desktop.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2019-02-20 07:32:42 -05:00
David B. Kinder
882702e688 doc: fix misspellings in docs
Fix misspelling in boards, samples, and doc missed during regular
reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-02-19 21:35:45 -05:00
Maureen Helm
9063c95f3a boards: mimxrt1060_evk: Add hwinfo to the supported list
The mimxrt1060_evk was missing hwinfo in the supported list. All other
imx rt boards already have it.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-19 17:10:31 -06:00
Maureen Helm
d9a3fe65ef boards: Add hwinfo to supported list for kinetis boards
All in-tree kinetis boards select HAS_MCUX_SIM and can use the
same kinetis hwinfo driver.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-19 17:10:31 -06:00
Maureen Helm
20828d5b3a boards: Fix Segger RTT on hexiwear_kw40z and usb_kw24d512 boards
Fixes Segger RTT on the hexiwear_kw40z and usb_kw24d512 boards by
setting CONFIG_RTT_CONSOLE=y and CONFIG_USE_SEGGER_RTT=y.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-19 17:10:31 -06:00
Erwan Gouriou
910b8b32fc boards: nucleo_f334r8: Provide flash storage partition
Add 6kb storage partition and declare nvs is supported.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-19 07:45:50 -06:00
Erwan Gouriou
b3252a8a71 boards: stm32f3_disco: Add a storage partition
Add a 6kb "storage" partition to enable nvs samples test.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-19 07:45:50 -06:00
Erwan Gouriou
f0cac35a58 boards: nucleo_l432kc: Fix comment on partition description
Comment for storage partition could be misleading.
Clarify this is a partition used for file system.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-19 07:45:50 -06:00
Erwan Gouriou
5629f61b40 boards: nucleo_f091rc: Increase storage partition size
Storage partition minimum size is 6kb for successful test of
nvs sample.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-19 07:45:50 -06:00
Maureen Helm
cf94d6811a soc: nxp_imx: Default to on-chip memories at soc level
Refactor the imx rt code/data location config defaults such that we
default to on-chip memories at the soc level and override to external
memories at the board level. This means that we frequently override soc
defaults for evk boards, but it removes the assumption that all imx rt
boards (particularly non-evk boards) will have the same external
memories as evk boards.

The end result is that imx rt evk boards still have the same defaults as
before, but the way we get there is different.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-18 15:14:18 -05:00
Johann Fischer
853710993d boards: reel_board: remove cts,rts pins from uart node
Remove cts,rts pins from uart node.
The pins are used for expansion connector.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-02-18 15:08:22 -05:00
Johann Fischer
b5b728495b boards: reel_board: enable pull-up on UART RX pin
Enable pull-up on UART RX pin to reduce power consumption.
If the board is powered by battery and the debugger is
not connected via USB to the host, the SoC consumes up
to 2mA more than expected.
The consumption increases because RX pin is floating
(High-Impedance state of pin B from Dual-Supply Bus Transceiver).

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-02-18 15:08:22 -05:00
Andrzej Głąbek
41e09725bb boards: nrf: Enable HW PWMs on nrf52832_mdk and nrf52840_mdk
This is a follow-up to commit e2b38e02bf.
Default PWM instances are enabled in Kconfig and DTS (with channel 0
set to LED0 pin) for these boards so that it is possible to build basic
samples blink_led and fade_led for them without extra modifications.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-02-14 18:50:00 -06:00
Erwan Gouriou
516899c82b boards: nucleo_l4r5zi: Add flash & debug support
Following introduction of zephyr sdk0.10 and openocd branch
from from 20190130, stm32l4+ SoC support is now available and
flash and debug operations are available on nucleo_l4r5zi board.

Fixes 12094

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-13 22:05:49 -06:00
Maureen Helm
0540b1a699 soc: nxp_imx: Move code/data location configs to soc level
The imx rt family of socs has several options for linking code and data
into internal or external memories, and up until now we have handled
these options at the board level. This has resulted in several Kconfig
symbols being defined in multiple places and triggering warnings in
documentation builds:

warning: the default selection CODE_ITCM (defined at boards/arm/mimxrt1050_evk/Kconfig:13, boards/arm/mimxrt1060_evk/Kconfig:13) of <choice> (defined at boards/arm/mimxrt1050_evk/Kconfig:9) is not contained in the choice
warning: the choice symbol CODE_ITCM (defined at boards/arm/mimxrt1050_evk/Kconfig:13, boards/arm/mimxrt1060_evk/Kconfig:13) is defined with a prompt outside the choice
warning: the choice symbol CODE_HYPERFLASH (defined at boards/arm/mimxrt1050_evk/Kconfig:16, boards/arm/mimxrt1060_evk/Kconfig:16) is defined with a prompt outside the choice
warning: the choice symbol CODE_QSPI (defined at boards/arm/mimxrt1050_evk/Kconfig:19, boards/arm/mimxrt1060_evk/Kconfig:19) is defined with a prompt outside the choice
warning: the choice symbol CODE_ITCM (defined at boards/arm/mimxrt1050_evk/Kconfig:13, boards/arm/mimxrt1060_evk/Kconfig:13) is defined with a prompt outside the choice
warning: the choice symbol CODE_HYPERFLASH (defined at boards/arm/mimxrt1050_evk/Kconfig:16, boards/arm/mimxrt1060_evk/Kconfig:16) is defined with a prompt outside the choice
warning: the choice symbol CODE_QSPI (defined at boards/arm/mimxrt1050_evk/Kconfig:19, boards/arm/mimxrt1060_evk/Kconfig:19) is defined with a prompt outside the choice

The number of warnings increased as we added more imx rt boards. Fix the
warnings by moving code and data location configs from the board level
to the soc level.

The default memories for all imx rt boards are unchanged. The
mimxrt10{20,50,60}_evk boards still default to hyperflash/qspi for code
and sdram for data. The mimxrt1064_evk board still defaults to ITCM for
code and DTCM for data because jlink does not yet support programming
internal flash.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-13 17:52:20 -05:00
Ryan Erickson
847500dd43 boards: bl654_dvk: Add BL654 DVK board
Add the Laird Connectivity BL654 DVK board to zephyr.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdtech.com>
2019-02-13 11:02:56 -06:00
Ryan Erickson
21b4f77b1c boards: bl652_dvk: Add BL652 DVK board
Add the Laird Connectivity BL652 DVK board to zephyr.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdtech.com>
2019-02-12 21:16:26 -05:00
Ole Sæther
6ad1d617c9 boards: arm: nrf: added uart-mcumgr to nrf9160_pca10090
This adds uart support for mcumgr on nrf9160_pca10090.

Signed-off-by: Ole Sæther <ole.saether@nordicsemi.no>
2019-02-12 20:19:26 -05:00
Erwan Gouriou
2987ba5a38 boards: nucleo_f091rc: Add nvs support
Add nvs support to nucleo_f091rc board. This requires to
add erase-block-size property to stm32f0.dtsi.
Storage partition is set to 4kb at the end of the flash.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-12 20:16:22 -05:00
Erwan Gouriou
1f49c48f3c board: disco_l475_iot1: add storage partition
Add storage partition to the board in order to enable testing on
nvs sample.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-12 20:16:22 -05:00
David B. Kinder
8edcbb76bc doc: tweak board doc titles
Add a space in some long doc titles to allow for wrapping in the title
display.  Also fixed a table in the mec2016evb board doc.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-02-12 01:29:40 +01:00
Anas Nashif
1b0c33f1e6 docs: nrf52_blenano2: remove outdated info from docs
Remove info about kickstarter and an old website that does not work.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-11 07:45:21 -05:00
Anas Nashif
762f4f26ad boards: qemu: add image to qemu boards
Add Qemu logo to qemu boards and expand intro.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-11 07:45:21 -05:00
Anas Nashif
9fe4a94a12 doc: boards: split paragraph into multiple
Split the intro paragraph into multiple paragraphs.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-11 07:45:21 -05:00
Anas Nashif
ce4e165f21 boards: 96b_carbon_nrf51: move note below overview
The first note should be under overview and not at the same level as the
title.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-11 07:45:21 -05:00
Anas Nashif
acaae579cc doc: boards: make board images consistent with board name
Having the image use the same name will help us script listing the
boards.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-10 17:48:08 -05:00
Anas Nashif
0e4ff809d7 doc: boards: move all board docs to be index.rst
Be consistent in how board docs are named and move all to index.rst.
This will make the URL to the board documentation predictable and easier
to remember.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-09 17:22:08 -06:00
Anas Nashif
28b2f32967 boards: fix intro text for many boards
The phrase "Zephyr applications use the ..." in many boards and
inconsistently. This is just to say what is the board identify is.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-09 17:22:08 -06:00
Francisco Munoz
11e5f7db6c boards : Add supoport for Microchip MEC2016 EVB ASSY 6797
This was tested with a the hello world application. UART 0 was used
as console for displaying "Hello World! mec2016evb_assy6797" to the
a serial terminal.

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
2019-02-08 21:38:54 -05:00
Kumar Gala
4c8f82177a boards: hexiwear_k64: Convert to use DT_ prefixed defines
The board pinmux code has been using non DT_ prefixed defines for DT
generated defines.  Switch to use DT_ prefixed ones as we want to
deprecated the non DT_ prefixed defines.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-08 16:03:17 -06:00
Johann Fischer
c2fe802479 drivers: ssd1673: use compatible property to identify display
Use compatible property to identify display and select
proper LUT for display controller.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-02-08 14:57:36 -05:00
Johann Fischer
f7495ef8eb drivers: ssd1673: add DT properties for configuration registers
The values for the registers like GDV, SDV and Boarder Waveform
depend on the panel and display controller. Add DT properties
and obtain such values from DT.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-02-08 14:57:36 -05:00
Andrei Laperie
552a03b48f doc: Documenting enablement of UART1 support for nrf52840_pca10056
Adding a set of BKMs on how to enable and configure UART1
for the nrf52840_pca10056 board. This instructions are likely valid
to most other nrf52840- family of boards.

Signed-off-by: Andrei Laperie <andrei.laperie@intel.com>
2019-02-08 14:48:48 -05:00
Aurelien Jarno
2aaf68aceb boards: enable PWM devices on Atmel SMART SAM E70 Xplained Board
This commit enables the PWM0 device on the Atmel SMART SAM E70 Xplained
Board, by adding the entries to the DTS and configuring the PWM pins
from the EXT1 connector (channel 0, inverted) and EXT2 connector
(channel 2, inverted and non-inverted) with the corresponding peripheral
functions. It also updates the documentation and mark pwm as supported
for the tests.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2019-02-08 06:55:14 -06:00
David B. Kinder
c1dce2f799 doc: fix misspellings in docs
Fix misspellings missed in regular reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-02-07 22:06:14 -05:00
Carles Cufi
9f1acfe2fd boards: arm: nrf: Make Bluetooth optional
Instead of enabling Bluetooth by default on nRF5x boards, only enable
the controller if Bluetooth has been enabled by the applicaiton.

Fixes #5454
Fixes #12215

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-02-07 16:17:27 -05:00
Erwan Gouriou
193c7c066e boards: Update yaml for boards supporting rtc/counter (3/3)
Few boards supporting RTC were missing rtc as supported rtc feature
in yaml files. Fix this.
Add counter to all boards supporting rtc as RTC IP now support
both rtc and counter API.
Change split in 3 parts in order to lower CI load and get shippable
happy.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-07 16:14:00 -05:00
Erwan Gouriou
e7cc297f5a boards: Update yaml for boards supporting rtc/counter (2/3)
Few boards supporting RTC were missing rtc as supported rtc feature
in yaml files. Fix this.
Add counter to all boards supporting rtc as RTC IP now support
both rtc and counter API.
Change split in 3 parts in order to lower CI load and get shippable
happy.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-07 16:14:00 -05:00
Erwan Gouriou
f65f63c454 boards: Update yaml for boards supporting rtc/counter (1/3)
Few boards supporting RTC were missing rtc as supported rtc feature
in yaml files. Fix this.
Add counter to all boards supporting rtc as RTC IP now support
both rtc and counter API.
Change split in 3 parts in order to lower CI load and get shippable
happy.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-07 16:14:00 -05:00
Erwan Gouriou
27cbd21793 boards: nucleo_f746zg: Configure and document counter RTC
Configure RTC on nucleo_f746zg.
It is supported through counter RTC API.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-07 16:14:00 -05:00
Kumar Gala
7809970c8a drivers: counter: cmsdk: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert cmsdk driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-07 16:14:00 -05:00
Kumar Gala
c2a04890d9 tests: counter_basic_api: Enable tests for ARM CMSDK drivers
Enable testing of counter (COUNTER_{D}TMR_CMSDK) on mps2_an385 and
enable timers on v2m_beetle (TIMER_{D}TMR_CMSDK).

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-07 16:14:00 -05:00
Kumar Gala
36427f8bbb drivers: timer: Move Dual Timer API to unified interface
The CMSDK Dual Timer can be used as a timer or as a counter.
The unified interface proposed in #8340 unifies counter.h and rtc.h to
provide a common interface.

This patch modifies the timer implementation of the dual timer to
make it compliant with the new proposed interface.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-07 16:14:00 -05:00
Kumar Gala
6fca18de60 drivers: timer: Move Timer API to unified interface
The CMSDK Timer can be used as a timer or as a counter.
The unified interface proposed in #8340 unifies counter.h and rtc.h to
provide a common interface.

This patch modifies the timer implementation of the single timer to
make it compliant with the new proposed interface.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-07 16:14:00 -05:00
Kumar Gala
3edafc2517 dts: arm_cmsdk_(d)timer: Add label property to (d)timer
Add a label property so we can use that in drivers rather than getting
from Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-07 16:14:00 -05:00
Maureen Helm
d57f18f9ac boards: frdm_kw41z: Document counter driver is supported
Documents that the counter driver is supported in the frdm_kw41z board.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-07 16:14:00 -05:00
Stanislav Poboril
34a4e072f5 imx: Enabled EPIT in Udoo Neo Full board
Enabled EPIT (Enhanced Periodic Interrupt Timer) in Cortex-M4 core
of Udoo Neo Full board so the counter API could be used there.

Origin: Original

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
2019-02-07 16:14:00 -05:00
Krzysztof Chruscinski
cbf7796504 boards: Add counter capability to nordic boards
Added counter capability to pca10028, pca10040 and pca10056

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2019-02-07 16:14:00 -05:00
Alexander Wachter
ad92d5bfe9 drivers: hwinfo: add driver support for NXP i.mx RT device ID
Add driver support for NXP i.mx RT ID device.
This device has an ID of 8 bytes.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2019-02-07 15:08:18 -06:00
Alexander Wachter
50156e0ea9 drivers: hwinfo: add driver support for kinetis device ID
Add driver support for kinetis ID device.
The length depends on the SoC.
`SIM_GetUniqueId` was not used because the struct would reorder
the ID and makes the driver more complicated because the length
of the struct depends on the SoC.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2019-02-07 15:08:18 -06:00
Maureen Helm
54047dc59a dts: boards: Add bindings and nodes for the rocktech lcd module
Adds device tree bindings and nodes for the rocktech lcd module used on
imx rt boards. The use of port, endpoint, and remote-endpoint properties
follow what is currently done in linux, but they are not yet used in
zephyr because some additional plumbing is needed in the
extract_dts_includes.py script.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-07 14:28:55 -06:00
Maureen Helm
8ce2954e25 boards: mimxrt1060_evk: Enable mcux elcdif driver and pins
Enables the mcux elcdif shim driver and pin muxes on the mimxrt1060_evk
board.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-07 14:28:55 -06:00
Maureen Helm
769aa51dc8 boards: mimxrt1050_evk: Enable mcux elcdif driver and pins
Enables the mcux elcdif shim driver and pin muxes on the mimxrt1050_evk
board.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-07 14:28:55 -06:00
Emanuele Di Santo
0f7456c3a0 boards: arm: nrf9160_pca10090: link into code-partition if non-secure
Always link firmware built for nrf9160_pca10090ns into the
code-partition defined in DT, regardless.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-02-07 13:29:19 -06:00
Emanuele Di Santo
8a9b470d1d boards: arm: nrf9160_pca10090: define BOARD_NRF9160_PCA10090NS
Introduce BOARD_NRF9160_PCA10090NS to differentiate between
secure and non-secure board variants.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-02-07 13:29:19 -06:00
Emanuele Di Santo
95d6ddbb56 boards: arm: nrf9160_pca10090: choose code-partition in secure variant
Choose a code partition in the secure board variant
for consistency with other boards.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-02-07 13:29:19 -06:00
Michael Scott
54d323948b boards: particle: fix BT selection
When selecting BT we need to select BT_CTRL for most bluetooth
samples to work correctly.

Let's fix that in the board files.

Fixes the following error when CONFIG_BT is selected:
zephyr/drivers/bluetooth/hci/h4.c:463:30:
error: ‘CONFIG_BT_UART_ON_DEV_NAME’ undeclared (first use in
this function)
  h4_dev = device_get_binding(CONFIG_BT_UART_ON_DEV_NAME);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Michael Scott <mike@foundries.io>
2019-02-07 18:06:13 +01:00
Erwan Gouriou
a1750473b5 boards: nucleo_l4r5zi: Clean up Kconfig symbol.
Rename CONFIG_USB_DC_STM symbol.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-06 18:59:00 -06:00
Johann Fischer
2d073e16d5 board: reel_board: remove board.h
Remove board.h, CONFIG_GPIO_NRF5_P1_DEV_NAME
was not used and is not defined anywhere.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-02-06 18:58:46 -06:00
Andrzej Głąbek
df901f4d9c boards: nrf: Indicate pwm as supported on Nordic DK boards
Indicate that PWM is supported on several Nordic DK boards so that
the pwm_nrf5_sw and pwm_nrfx drivers are covered by CI builds.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-02-06 07:19:07 -05:00
Andrzej Głąbek
e2b38e02bf drivers: pwm: nrf: Use HW PWM by default when available
Enable HW PWM driver instead of the SW one on nRF SoCs where the PWM
peripheral is present.
Default PWM instances are also enabled on Nordic DK boards so that it
is possible to build the basic fade_led sample for them without extra
adjustments.

After the above changes are applied, some configuration alterations
in basic samples blink_led and fade_led become no longer needed.
These are removed. And the blink_led sample is corrected so that it
works with the nRF HW PWM driver as well.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-02-06 07:19:07 -05:00
Alexander Wachter
a2ddfe9863 dts: Fix varying baudrate settings for CAN
This commit fixes the varying baudrate settings for the STM32L4
and STM32F072.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2019-02-05 18:47:47 -06:00
Andrzej Głąbek
44a08ab557 boards: nrf: Indicate watchdog as supported on Nordic DK boards
Indicate that watchdog is supported on several Nordic DK boards
so that the wdt_nrfx driver is covered by CI builds.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-02-05 15:23:24 -06:00
Jakub Rzeszutko
c00de204be boards: add rtt console to nrf52 boards
Added RTT Console to following boards:
- nrf52_pca10040
- nrf52840_pca10056

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
2019-02-05 16:23:33 +01:00
Anas Nashif
58632f8da7 doc: change board dts documentation with new URLs
flash-partitions page has moved...

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-05 07:04:40 -05:00
David B. Kinder
b10f3be072 doc: fix broken link in board doc
Link was missing a protocol (https://) so was picked up as a relative
link.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-02-04 20:48:47 -05:00
Maureen Helm
e1f5a2e5df boards: mimxrt1060_evk: Use external memories by default
Changes the default code location from internal itcm to external qspi or
hyperflash. Changes the default data location from internal dtcm to
external sdram.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-04 18:16:14 -05:00
Maureen Helm
f72bbf5c16 boards: mimxrt1020_evk: Use external memories by default
Changes the default code location from internal itcm to external qspi.
Changes the default data location from internal dtcm to external sdram.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-04 18:16:14 -05:00
Maureen Helm
75cb3553f4 boards: Add config to mimxrt10{20,60,64}_evk boards to link into sdram
Adds a new configuration option to mimxrt10{20,60,64}_evk boards to link
data into external sdram. The default remains to link data into internal
data tightly coupled memory (DTCM).

Note that mimxrt1050_evk is not included because it already has support
for linking data into sdram.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-04 18:16:14 -05:00
Erwan Gouriou
19155c3e1a boards: stm32f4_disco: Fix console documentation
Unlinke nucleo or disco boards, ST-Link Tx/Rx pins used for Virtual
Com Port is not connected to the chip.
Then, console is not available by default and one should use a serial
cable to enjoy console. Adding mention of this fact to the board
documentation and replacing default hello_world example by blinky,
since blinky sample works without any additional hardware.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-04 16:52:06 -05:00
Kumar Gala
dee63e200c disk: sdhc: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert disk_access_sdhc  driver to use new defines so we can remove
the dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-04 00:52:32 -05:00
Erwan Gouriou
57889c6dab boards: disco_l475_iot1: Remove PA9 setting for USB
PA9 was set as OTG_5V_VBUS. This definition is not available
and not required so removing it.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-02 10:29:22 -05:00
Kumar Gala
06f5175760 boards: stm32: Cleanup/Fix USB Kconfig option
The disco_l475_iot1 board should be using CONFIG_USB_DC_STM32 as the
Kconfig sybmol.

Also fix a minor typo in a comment in nucleo_f207zg with regards to
CONFIG_USB_DC_STM32

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-02 10:29:22 -05:00
Aurelien Jarno
0b7e790250 display: ssd1673: add support for ssd16xx monochrome controllers
From the driver point of view, monochrome controllers from the ssd16xx
family mostly differ by the amount of row and columns that are
supported. If they support more than 256 rows and/or columns the
corresponding size or position is sent using 2 bytes instead of 1 byte.

This patch therefore adds the width-bits and height-bits DT properties
to make this configurable.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2019-02-02 10:28:11 -05:00
Erwan Gouriou
f3e5b6f5c8 boards: stm32: watchdog enable watchdog support with dt
Now that stm32 watchdog should be configured by device tree,
update dts file of boards declaring watchdog support.
Additionally update doc and yaml files.
Add support on some boards that were used to validate the driver
update:
- disco_l475_iot1
- nucleo_f207zg
- nucleo_f429zi
- nucleo_f746zg
- nucleo_f073rz


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-01 19:16:59 -05:00
Maureen Helm
7801221868 boards: Add missing sdram dts compatible to mimxrt10{20,60,64} boards
The sdram memory node was missing a dts compatible on several imx rt
boards.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-02-01 19:16:04 -05:00
Andrzej Głąbek
1dbcd0affa samples: bluetooth: hci_spi: Use DT instead of Kconfig to get HW params
Convert the hci_spi sample to get the SPI and GPIO settings from Device
Tree instead of Kconfig.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-02-01 19:12:57 -05:00
Andrzej Głąbek
c047e8e469 drivers: bluetooth: hci_spi: Use DT instead of Kconfig to get HW params
Convert the HCI SPI driver to get the SPI and GPIO settings from Device
Tree instead of Kconfig. The "zephyr,bt-hci-spi" binding is used as
a common one for this purpose ("st,spbtle-rf" is removed), to take
advantage of the new DT_<COMPAT>_<INSTANCE> generated macros and get
rid of related fixups and aliases.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-02-01 19:12:57 -05:00
Piotr Mienkowski
bca692ee8c drivers: i2c_gecko: use DT_<COMPAT>_<INSTANCE>_<PROP> defines
Use the new DT_<COMPAT>_<INSTANCE>_<PROP> defines to instantiate
devices. This commit adds also ability to define individual pin
locations on SoC series that support the feature. Definitions of GPIO
pins assigned to a given location have been moved from soc_pinmap.h file
to board DTS file.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-02-01 19:09:06 -05:00
Kumar Gala
c3ba7335d9 boards: mimxrt{1020,1050,1060,1064}_evk remove CONFIG_ from dts files
The dts files on these boards had some CONFIG_ defines related to which
memory should be used to hold code.  We move this choice out of DTS and
back into Kconfig.

As such, we removed the default setting of 'zephyr,flash' and just
map

CONFIG_CODE_ITCM to:
	DT_NXP_IMX_RT_ITCM_0_SIZE
	DT_NXP_IMX_RT_ITCM_0_BASE_ADDRESS

CONFIG_CODE_{QSPI,HYPERFLASH} to:
	DT_NXP_IMX_FLEXSPI_402A8000_SIZE_1
	DT_NXP_IMX_FLEXSPI_402A8000_BASE_ADDDRESS_1

for the mimxrt1050_evk, we remove the default setting of 'zephyr,sram'
and just map:

CONFIG_DATA_DTCM to:
	DT_NXP_IMX_DTCM_0_SIZE
	DT_NXP_IMX_DTCM_0_BASE_ADDRESS

CONFIG_DATA_SDRAM to:
	DT_MMIO_SRAM_80000000_SIZE
	DT_MMIO_SRAM_80000000_BASE_ADDRESS

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-01 10:16:06 -06:00
Kumar Gala
d1e55eb842 boards: colibri_imx7d_m4/warp7_m4: Remove CONFIG_XIP for dts
Move the how enabling of CONFIG_XIP impacts CONFIG_FLASH_SIZE and
CONFIG_FLASH_BASE_ADDRESS to Kconfig instead of dts.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-01 10:16:06 -06:00
Kumar Gala
5977b3db2f dts: Remove mcuboot.overlay
As we want to remove dts dependency on Kconfig, we had a case based on
CONFIG_BOOTLOADER_MCUBOOT.  From a DTS point of view that was just
getting the chosen property 'zephyr,code-partition' set.  We can easily
move this to the actual dts files and remove the mcuboot.overlay.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-01 10:16:06 -06:00
Peter A. Bigot
e7303cb09a boards: nrf52840_pca10056: add bindings for on-board serial flash
This board has an on-board 64 Mibit serial flash from Macronix.  Add
bindings to access it.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-02-01 04:21:40 -06:00
Peter A. Bigot
d383656d83 boards: particle: add bindings for on-board flash
All Particle mesh devices have an on-board 32 Mibit JEDEC-compatible
flash from GigaDevice.  Add bindings to access it.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-02-01 04:21:40 -06:00
Piotr Mienkowski
91786e96aa drivers: leuart_gecko: use DT_<COMPAT>_<INSTANCE>_<PROP> defines
Use the new DT_<COMPAT>_<INSTANCE>_<PROP> defines to instantiate
devices. This commit adds also ability to define individual pin
locations on SoC series that support the feature. Definitions of GPIO
pins assigned to a given location have been moved from soc_pinmap.h file
to board DTS file.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-02-01 04:18:50 -06:00
Gil Pitney
187762a14a boards: cc3220sf_launchxl: Provide dts aliases for leds 1 and 2
Previously, only led0 was enabled.

This allows the samples/basic/disco sample to build/run for
this board.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2019-02-01 04:16:17 -06:00
Kumar Gala
9e4016d8dc usb: usb_dc_stm32: Convert to DT instance defines to remove dts_fixup.h
Convert usb_dc_stm32 driver GPIO disconnect to use new defines so we
can remove the dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-01 04:12:15 -06:00
Andrei Gansari
0787936d15 mimxrt1050_evk: eth_mcux: driver fixup
Boot PHY initialization timeout, caching mechanism fixes and networking
buffer descriptors moved to no cache section. Enabled cache management
in networking driver and manual barriers.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2019-01-31 13:22:58 -06:00
Andrei Gansari
933a062ab6 mimxrt1050_evk: default external flash and sdram
Moved from ITCM and DTCM to HyperFlash and SDRAM.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2019-01-31 13:22:58 -06:00
Kumar Gala
75d84ffd7a led: lp3943: Remove dts_fixup.h
Since the lp3943 led driver still supports both DTS and non-DTS
configuration, we update the code to use DT_<COMPAT>_<INSTANCE>
defines for the CONFIG_HAS_DTS_I2C case.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-31 09:09:36 -06:00
Kumar Gala
c58835e0b4 boards: nrf52840_pca10090: Fix typo in Kconfig
BOARD_PCA10090_INTERFACE_2_MCU should be BOARD_PCA10090_INTERFACE2_MCU.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-31 09:09:03 -06:00
Kumar Gala
a3682f67d4 audio: mpxxdtyy: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert mpxxdtyy driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-31 03:46:04 -06:00
Piotr Mienkowski
a148e11e2a drivers: uart_gecko: use DT_<COMPAT>_<INSTANCE>_<PROP> defines
Use the new DT_<COMPAT>_<INSTANCE>_<PROP> defines to instantiate
devices. This commit adds also ability to define individual pin
locations on SoC series that support the feature. Definitions of GPIO
pins assigned to a given location have been moved from soc_pinmap.h file
to board DTS file.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-01-31 03:14:51 -06:00
Kumar Gala
0610044209 boards: arm: nrf52_pca10040: Add SPI & I2C as supported devices
Update the board yaml to have SPI & I2C as supported devices.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-30 17:51:25 -06:00
Kumar Gala
62704a52ed pinmux: remove pinmux dev
pinmux dev isn't really used or supported.  We only have one driver that
is implmeneted, and that driver isn't ever enabled.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-30 16:29:40 -06:00
Kumar Gala
cdc1b1f103 sensor: ccs811: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert ccs811 sensor driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-30 02:53:35 -06:00
Kumar Gala
d7b7dbd910 sensor: apds9960: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert apds9960 sensor driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-29 16:03:21 -06:00
Kumar Gala
3b42943fe7 display: ssd1673: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert ssd1673 display driver to use new defines so we can remove
the dts_fixup.h code for it.  Also dropped "-spi" from compatible.

Fix up references in reel_board dts and sample.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-29 14:21:06 -06:00
Martin Benda
9653e15139 drivers: timer: Add RTC-based system timer for Atmel SAM0 series MCU
Add sam0_rtc_driver that implements system timer API on top of the RTC
and can be used as a replacement for the default systick timer.

Signed-off-by: Martin Benda <martin.benda@omsquare.com>
2019-01-29 17:58:05 +01:00
Peter A. Bigot
492787268b boards: nrf52_pca20020: add hts221 drdy-gpios
Enables asynchronous sampling on Thingy:52.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-01-29 17:50:02 +01:00
Tavish Naruka
9e63aead54 boards: arm: nrf52840_blip dts fixup for SDHC
Add dts_fixup.h for using SDHC driver for microsd
card slot connected to "SPI_1".

Signed-off-by: Tavish Naruka <docuser@docs.electronut.in>
2019-01-29 17:41:24 +01:00
Tavish Naruka
d816e3aed5 boards: arm: nrf52840_blip: fix LED documenation
Fix LED colors to martch actual colors.

Signed-off-by: Tavish Naruka <docuser@docs.electronut.in>
2019-01-29 17:41:24 +01:00
Tavish Naruka
fe70af4f77 boards: arm: nrf52840_blip: switch spi0 with spi1
The pins connected to the sensors and microsd card on board
were mapped to SPI_0 and I2C_0, but for nrf52 chips they
cannot both be used together.

Blip is yet unreleased, so change will not affect anyone really.

Signed-off-by: Tavish Naruka <tavishnaruka@gmail.com>
2019-01-29 17:41:24 +01:00
Kumar Gala
dfa350e7fd boards: arm: mps2_an385: Fix dtc warning
Fix dtc warning related to ethernet node name not matching the reg
property.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-29 08:51:54 -06:00
Francesco Franchina
2433956500 doc: Removed doc reference to non-existing HW PWM
From the documentation of the SoC and the DevKit it turns out that
there's no hardware PWM controller.

Signed-off-by: Francesco Franchina <cescus92@gmail.com>
2019-01-28 21:23:08 -05:00
Armando Visconti
c4b3583afd board/argonkey: Add MP34DT05 microphone in DTS
Add MP34DT05 pdm microphone in DTS under i2s_5 node.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-01-28 11:57:25 -06:00
Armando Visconti
42c7e8873c driver/sensor: lis3mdl: align driver to auto-generated dts macros
Use auto-generated device tree macros in LIS3MDL driver to avoid
usage of dts.fixup code for it.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-01-28 10:01:19 -06:00
Armando Visconti
c81efe25d5 driver/sensor: lsm6dsl: align driver to auto-generated dts macros
Use auto-generated device tree macros in LSM6DSL driver to avoid
usage of dts.fixup code for it.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-01-28 10:01:19 -06:00
Georgij Cernysiov
26ab183ede drivers: pinmux: stm32: st: add L4 UART4 AF on PC10 and PC11
Added UART4 alternate pin function for L4 µC for PC10 and PC11.
Corrected naming of previously defined UART4 TX and RX defines.

Signed-off-by: Georgij Cernysiov <g.cernysiov@elco-automation.de>
2019-01-28 09:54:00 -06:00
Johann Fischer
6caf4e9144 boards: reel_board: use appropriate labels for HDC1010 and MMA8652FC
Use appropriate labels for HDC1010 and MMA8652FC.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-01-26 12:08:52 -05:00
Johann Fischer
f36fe23e65 sensor: hdc1008: convert to DT_<COMPAT>_<INSTANCE> defines
Convert hdc1008 sensor driver to use new defines.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2019-01-26 12:08:52 -05:00
Emanuele Di Santo
e521ee651f boards: arm: add nrf52840_pca10090
Add support for nrf52840_pca10090, i.e. the nRF52840 SoC on the
pca10090 development kit. The SoC is tasked to route some of the
nRF9160 pins to different components on the development kit.
Additionally, it can be used as a Bluetooth HCI device.

The routing options appear under "Board config" in Kconfig.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-01-25 22:26:17 +01:00
Ioannis Glaropoulos
cad94f0f77 boards: nrf: add initial documentation for nrf9160_pca10090
This commit adds the initial documentation information
for board nrf9160_pca10090.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-01-25 22:16:49 +01:00
Ioannis Glaropoulos
7d5ab373cc boards: arm: nrf: board definition for nrf9160_pca10090 (non-secure)
This commit contributes the Kconfig and DTS board definition
files for nrf9160_pca10090ns board. This Zephyr board shall be
used to build Non-Secure Zephyr applications on nrf9160_pca10090
Dev Kit.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-01-25 22:16:49 +01:00
Ioannis Glaropoulos
c3d7bb1511 boards: arm: nrf: board definition for nrf9160_pca10090
This commit contributes the Kconfig and DTS files for the
nrf9160_pca10090 board definition. The nrf9160_pca10090 board
shall be used to build Zephyr applications, running in Secure
mode, on nRF9160_PCA10090 Dev Kit.

Additionally, the commit introduces a default Secure and
Non-Secure flash partition configuration for the
nRF9160_PCA10090 board, allowing to use Zephyr for building
both the Secure and Non-Secure firmware images.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-01-25 22:16:49 +01:00
Kumar Gala
61cb8b6c4f drivers: wdog: cmsdk: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert cmsdk driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-25 08:55:06 -06:00
Kumar Gala
4b6cec44ff drivers: uart: cmsdk_apb: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert cmsdk_apb driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-25 08:55:06 -06:00
Kumar Gala
da474efe80 drivers: i2c: i2c_sbcon: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert i2c_sbcon driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-25 08:55:06 -06:00
Anas Nashif
1878765972 sanitycheck: adapt default boards
- nucleo_l496zg was added by mistake

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-01-25 07:30:01 -06:00
David B. Kinder
58e52f1aff doc: fix ordered list numbering in board doc
Step numbering went 1,2,3,5

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2019-01-24 18:27:15 -05:00
Kumar Gala
d27ec68d0f boards: arm: mimxrt10{20,50,60,64}_evk: Enable BOOT HEADER in Kconfig
If we are setting the code to be in HyperFlash (CONFIG_CODE_HYPERFLASH)
or QSPI (CONFIG_CODE_QSPI) we should enable
CONFIG_NXP_IMX_RT_BOOT_HEADER.

Update mimxrt1064_evk to use select like other boards.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-24 12:21:47 -06:00
Kumar Gala
22f3a58bec boards: arm: mimxrt1064_evk: Always have QSPI flash enabled
There's no reason not to have the QSPI flash available even if we aren't
booting from it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-24 12:21:47 -06:00
Dave Marples
75e7bd4e66 nucleo_f429zi: Add JLink support for flash, as per nucleo_f070rb
Signed-off-by: Dave Marples <dave@marples.net>

Added ability to use JLink in addition to OpenOCD for flashing.
2019-01-24 08:15:34 -06:00
Ryan QIAN
ee13fb6bff boards: mimxrt1064_evk: add configurations for XIP
To enable boot header and device configuration data if
CONFIG_INTERNAL_QSPI is defined.

Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
2019-01-24 07:59:52 -06:00
Ryan QIAN
7a861d5769 boards: arm: Add board support for mimxrt1064_evk
Add board support files for mimxrt1064_evk, the development board for
i.MXRT1064 (CM7) SoC.

- Add pinmux, dts, doc.
- Code can be loaded to SRAM.
- Tested samples: hello_world, philosophers, synchronization,
basic/blinky, and basic/button.

Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
2019-01-24 07:59:52 -06:00
Armando Visconti
aca8ae3fd4 driver/sensor: use lis2dh as common driver among multiple sensors
Share lis2dh driver among few accelerometer sensors that has
same register interface: LIS2DH, LIS3DH, LSM303DLHC, LIS2DH12,
LSM303AGR.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-01-24 07:26:16 -06:00
Kumar Gala
eaafdc85fc wifi: eswifi: Use generated SPI CS define
Move to using the generated DT_INVENTEK_ESWIFI_ESWIFI0_CS_GPIO_pin and
DT_INVENTEK_ESWIFI_ESWIFI0_CS_GPIO_CONTROLLER defines and drop the
DT_ESWIFI0_CS_GPIOS_PIN & DT_INVENTEK_ESWIFI_ESWIFI0_CS_GPIO_PIN from
dts_fixup.hl

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-23 18:12:24 -06:00
Ioannis Konstantelias
677bae5980 boards: nucleo_l496zg: Use shell-uart
Added shell-uart for this board.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
2019-01-23 09:18:35 -06:00
Ioannis Konstantelias
d5d10bcec0 boards: nucleo_l496zg: Add SPI, I2C
Added Aduino SPI and I2C mappings.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
2019-01-23 09:18:35 -06:00
Ioannis Konstantelias
5151e8a094 boards: nucleo_l496zg: Add pwm mapping and RTC
Supported PWM at pins A0, D3, D5 and D6 which are also Arduino
compatible. Also the onboard red LED can be used with PWM.

The basic/{fade_led, blink_led} samples to apply to this board
seemlessly and operate on the onboard red LED.

Also supported RTC.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
2019-01-23 09:18:35 -06:00
Ioannis Konstantelias
8fc9748a4a boards: nucleo_l496zg: Add docs & flashing support
Added documentation and openocd support.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
2019-01-23 09:18:35 -06:00
Ioannis Konstantelias
68147a9b83 boards: nucleo_l496zg: Add UART for console
Used LPUART 1 for console subsys. Also, added USART2 and USART3.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
2019-01-23 09:18:35 -06:00
Ioannis Konstantelias
3a002da53e boards: arm: Add initial support for NUCLEO-L496ZG
This commit adds the simplest configuration for this Nucleo-144 board
stripped down to the parts that are currently tested.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
2019-01-23 09:18:35 -06:00
Armando Visconti
1195dd07aa boards/arm: 96b_argonkey: add supported sensors to yaml file
Add supported sensor to yaml file.
The ArgonKey board supports following sensors:
	- HTS221 (humidity)
	- LPS22HB (pressure)
	- LSM6DSL (imu)
	- VL53L0X (proximity)

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-01-23 04:07:16 -06:00
Armando Visconti
45b6efbaec boards/arm: disco_l475_iot1: add supported sensors to yaml file
Add LPS22HB and LSM6DSL sensors to yaml file.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-01-23 04:07:16 -06:00
Armando Visconti
07be92eef8 boards/arm: disco_l475_iot1: Add lsm6dsl int gpio info in dts
Provide through the dts the gpio on which the lsm6dsl INT1 is
connected. Enable also the lsm6dsl trigger mode.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-01-23 04:07:16 -06:00
Aurelien Jarno
14e7be3e34 boards: mimxrt1020_evk: Enable mcux lpi2c driver and pins
Enables the mcux lpi2c shim driver and pin muxes on the mimxrt1020_evk
board for LPI2C1 and LPI2C4. LPI2C1 is shared between the Arduino
connector J18 and the WM8960 codec. LPI2C4 is shared between the Arduino
connector J19 and the FXOS8700CQ sensor (non-populated by default).

Updates the board documentation and yaml supported list accordingly.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2019-01-23 04:04:39 -06:00
Aurelien Jarno
0e7a6ec9ab boards: mimxrt1020_evk: Enable mcux ethernet driver and pins
Enables the mcux ethernet driver and pin muxes on the mimxrt1020_evk
board, the same way it is done on the mimxrt1050_evk board. Updates the
board documentation and yaml supported list accordingly.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2019-01-22 08:37:39 -06:00
Paul Sokolovsky
c8db3850a0 boards: mps2_an385: Enable SLIP networking
mps2_an385 is enabled for networking -> default networking is SLIP ->
SLIP selects UART_PIPE -> UART_PIPE requires UART_PIPE_ON_DEV defined
-> undefined leads to error on building some samples.

Fix all of these issues.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2019-01-19 11:59:29 -05:00
Paul Sokolovsky
c9f5c0f55b boards: mps2_an385: Select QEMU_TARGET
Board can be emulated in QEMU, so select QEMU_TARGET as required for
various bits of "make run" magic to work.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2019-01-19 11:59:29 -05:00
Paul Sokolovsky
5548b25863 boards: arm: mps2_an385: Add DTS node for Ethernet controller
The board has SMSC LAN9220 (actually as an "IP core" in an
FPGA-emulated SoC). The patch includes DTS bindings for this device.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2019-01-19 11:59:29 -05:00
Erwan Gouriou
2ce11443db boards: nucleo_l476rg: Fix arduino_i2c
On nucleo_l476rg, arduino I2C is actually i2c1 using PB8/PB9
and not I2C3. Fix this.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-19 07:18:23 -05:00
David Kinder
d5f8c5d286 doc: reduce image size of board pics
Some board images were unnecessarily large and slowing down the browser

Signed-off-by: David Kinder <david.b.kinder@intel.com>
2019-01-19 07:08:22 -05:00
Ioannis Glaropoulos
3df50604e5 boards: nrf: correct the source of LED and Button definitions
board.h does not exist for any of the (official) Nordic nRF
boards. This commit corrects the information about the source
ofthe button and LED definitions.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-01-18 18:27:48 -05:00
Endre Karlson
5965c0e7e0 boards: efr32mg_sltb004a: Fix device name typos
Chose the wrong device name here.

Signed-off-by: Endre Karlson <endre.karlson@gmail.com>
2019-01-18 18:26:01 -05:00
Kumar Gala
31dad5b411 sensor: vl53l0x: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert vl53l0x sensor driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-18 12:52:14 -06:00
Kumar Gala
62e1ed928c samples: sensor: vl53l0x: Fixup sample to build all boards with it
Updated the sample.yaml to use depends_on and update the board yaml that
have the vl53l0x sensor.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-18 12:52:14 -06:00
Kumar Gala
957c3009a6 sensor: max30101: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert max30101 sensor driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-18 12:50:12 -06:00
Kumar Gala
7b9bf08dce sensor: lps22hb: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert lps22hb sensor driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-18 09:38:31 -06:00
Kumar Gala
717b647c30 ieee802154: mcr20a: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert mcr20a driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-18 09:06:10 -06:00
Kumar Gala
8f04f81e97 sensor: fxas21002: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert fxas21002 sensor driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-18 08:54:31 -06:00
Maureen Helm
ad52bce1d0 boards: mimxrt1050_evk: Add fxos8700 dts node
Adds an fxos8700 device tree node to the mimxrt1050_evk. The sensor
interrupt gpios require a board modification to be used and conflict
with Ethernet and LCD signals, therefore their pinmuxes are not
configured.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-01-18 06:49:35 -05:00
Maureen Helm
b7b238e021 boards: mimxrt1050_evk: Enable mcux lpi2c driver and pins
Enables the mcux lpi2c shim driver and pin muxes on the mimxrt1050_evk
board. Updates the board documentation and yaml supported list
accordingly.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-01-18 06:49:35 -05:00
Kumar Gala
5431762769 sensor: fxos8700: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert fxos8700 sensor driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-17 13:29:46 -06:00
Kumar Gala
61b71962a8 boards: reel_board: Fix dts for MMA8652FC/FXO8700 interrupt lines
The schematic shows that both INT1 & INT2 from the MMA8652FC are wired
up, update the dts to reflect this.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-17 13:29:46 -06:00
Kumar Gala
689ad43b62 sensor: hts221: Move GPIO to device tree
Move how we configure the DRDY gpio line to device tree from Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-17 11:06:38 -06:00
Kumar Gala
a5e8921de9 sensors: hts221: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert hts221 sensor driver to use new defines so we can remove the
dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-17 11:06:38 -06:00
Kumar Gala
efd31af624 sensors: lsm303dlhc: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert lsm303dlhc_accel & lsm303dlhc_magn sensor driver to use new
defines so we can remove the dts_fixup.h code for it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-16 21:33:16 -05:00
Erwan Gouriou
0dc0c9d83a boards: Add arduino_i2c in yaml when supported
Update boards yaml file with arduino_i2c supported option

We exclude disco_l475_iot1 from the x_nucleo_iks01a1 sample since there
are duplicated sensors between the disco_l475_iot1 and shield.  Until
Zephyr drivers can handle multiple sensors we need to have this exclude.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-16 16:14:56 -06:00
Mark Wang
296ac67d0d boards: lpcxpresso54114: Add SW for lpcxpresso54114
Update dts files for SW, Update pinmux.c for pin mux settings of the SW.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2019-01-16 14:15:48 -06:00
Maureen Helm
9a165c9460 boards: mimxrt1060_evk: Enable lpuart3 for bluetooth hci
Enables instance 3 of the lpuart driver and configures pinmuxes to use
bluetooth hci on the mimxrt1060_evk board. Updates board documentation
accordingly.

Tested with samples/bluetooth/peripheral_hr, with frdm_kw41z attached as
an arduino shield running the nxp hci controller application.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-01-16 12:32:16 -06:00
Maureen Helm
2ec2ac16d5 boards: mimxrt1020_evk: Enable lpuart2 for bluetooth hci
Enables instance 2 of the lpuart driver and configures pinmuxes to use
bluetooth hci on the mimxrt1020_evk board. Updates board documentation
accordingly.

Tested with samples/bluetooth/peripheral_hr, with frdm_kw41z attached as
an arduino shield running the nxp hci controller application.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-01-16 12:32:16 -06:00
Kumar Gala
a93921529d boards: nrf52_pca20020: Add hts221 sensor to supported list
Add hts221 sensor to nrf52_pca20020.yaml so we build and samples/tests
associated with the hts221.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-16 12:16:36 -06:00
Kumar Gala
c5157c6f4e boards: 96b_argonkey: Add hts221 sensor to supported list
Add hts221 sensor to 96b_argonkey.yaml so we build and samples/tests
associated with the hts221.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-16 12:13:32 -06:00
Peter A. Bigot
bc703377d2 boards: arm: nrf51_ble400: add I2C and SPI configuration
This board has headers for these buses so they should be made available
without requiring special overlays.

Also take advantage of the new Nordic auto-enable for peripherals,
which eliminates the need for special configuration.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-01-16 12:12:54 -05:00
Adithya Baglody
777407b9ea gcov: Add coverage supported boards.
Not all boards can get the coverage reports. The report generation
needs minimum of 64KB SRAM. This patch added support for mps2_an385,
qemu_cortex_m3, qemu_x86. This is just a subset. Also the previously
supported board native_posix is included in this patch.

If a board has 64KB RAM, it can generate reports by just
adding HAS_COVERAGE_SUPPORT in Kconfig.board.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2019-01-16 06:12:33 -05:00
Karl Zhang
80a9fc3fa1 arm: v2m musca: Add support for v2m musca SoC and board
Support musca board as a variant, it is a Cortex-M33 based SoC.

Signed-off-by: Karl Zhang <karl.zhang@linaro.org>
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-15 15:40:37 -06:00
Ioannis Glaropoulos
302a746bd6 drivers: clock control: nrf: rename CLOCK_CONTROL_NRF5 Kconfig symbol
This commit renames the CLOCK_CONTROL_NRF5 Kconfig symbol to
CLOCK_CONTROL_NRF. The change is required to aleviates confusion
when selecting the symbol in nRF9160 SOC definition.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-01-15 18:03:24 +01:00
Kumar Gala
1c7d8cad5c boards: bbc_microbit: Add i2c/gpio as supported peripherals
Add i2c/gpio to board yaml as supported peripherals on the bbc_microbit

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-15 10:56:42 -06:00
Kumar Gala
6bd9dd2bef boards: warp7_m4: Add i2c/gpio as supported peripherals
Add i2c/gpio to board yaml as supported peripherals on the warp7_m4.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-15 10:54:14 -06:00
Erwan Gouriou
21d287650d boards: nucleo_l476rg: Update to default configuration guidelines
Update nucleo_l476rg to fit with default configuration guidelines:
- update yaml

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
106a74031b boards: nucleo_l073rz: Update to default configuration guidelines
Update nucleo_l073rz to fit with default configuration guidelines:
- configure I2C1 as arduino i2c and spi1 as arduino spi
- update doc
- update yaml

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
b85794bc03 boards: nucleo_l053r8: Update to default configuration guidelines
Update nucleo_l053r8 to fit with default configuration guidelines:
- configure I2C1 as arduino i2c and spi1 as arduino spi
- update doc

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
a38bb31df5 boards: nucleo_f446re: Update to default configuration guidelines
Update nucleo_f446re to fit with default configuration guidelines:
- add spi support
- configure I2C1 as arduino i2c and spi1 as arduino spi
- update yaml
- disable I2C by default
- update doc

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
c060012705 boards: nucleo_f411re: Update to default configuration guidelines
Update nucleo_f411re to fit with default configuration guidelines:
- add spi support
- configure I2C1 as arduino i2c and spi1 as arduino spi
- update yaml
- update doc

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
a92863e1fc boards: nucleo_f401re: Update to default configuration guidelines
Update nucleo_f401re to fit with default configuration guidelines:
- configure I2C1 as arduino i2c and spi1 as arduino spi
- disable I2C and PWM by default
- update yaml
- update doc

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
f3a42185e0 boards: nucleo_f334r8: Update to default configuration guidelines
Update nucleo_f334r8 to fit with default configuration guidelines:
- configure I2C1 as arduino i2c and spi1 as arduino spi
- reorder pinmux defintion entries to ease reading
- update yaml
- update doc

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
dcdda1cf34 boards: nucleo_f302r8: Update to default configuration guidelines
Update nucleo_f302r8 to fit with default configuration guidelines:
- remove reference to arduino_serial as Ardiuno D1/D0 are actually
mapped on PA2/PA3 which are already used for ST_Link com port,
hence not available by default for arduino serial

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
0bc9473614 boards: nucleo_f103rb: Update to default configuration guidelines
Update nucleo_f103rb to fit with default configuration guidelines:
-configure arduino spi
-update doc
-update yaml

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
7a353e31fa boards: nucleo_f091rc: Update to default configuration guidelines
Update nucleo_f091rc to fit with default configuration guidelines:
-configure arduino spi and i2c
-fix SPI1 pinmux to enable arduino spi
-update doc
-update yaml

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
37b1e19548 boards: nucleo_f070rb: Update to default configuration guidelines
Update nucleo_f070rb to fit with default configuration guidelines:
-configure arduino spi and i2c
-update doc

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Erwan Gouriou
dd580e6fca boards: nucleo_f030r8: Update to default configuration guidelines
Update nucleo_f030r8 to fit with default configuration guidelines:
-configure arduino spi and i2c
-update yaml
-update doc

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-14 13:35:44 -06:00
Andrei Laperie
f072a83391 doc: Updated CAN part of stm32f072b_disco documentation
Added CAN pins and provided link for a working CAN transceiver.

Signed-off-by: Andrei Laperie <andrei.laperie@intel.com>
2019-01-14 10:09:44 -05:00
Andrei Laperie
f8275da755 dts: Reduced CAN bitrate for stm32f072b_disco
For normal (over-the-wire) mode of CAN sample lowering bitrate to
125000 to ensure reliable transfer on stm32f072b_disco boards

Signed-off-by: Andrei Laperie <andrei.laperie@intel.com>
2019-01-14 07:03:15 -06:00
Emanuele Di Santo
a72f113bae boards: arm: nrf52840_pca10059: update fstab-debugger.dts
Increase the size of the MCUBoot flash partition in the fstab-debugger
partition table, to accommodate for the RTT console and logs.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-01-14 09:56:55 +01:00
Emanuele Di Santo
9661cbf9e5 boards: arm: nrf52840_pca10059: update comment in fstab-stock.dts
The MCUBoot partition in the default partition table (fstab-stock)
is not meant to accommodate an RTT console, since the board does
not have a SEGGER chip.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-01-14 09:56:55 +01:00
Emanuele Di Santo
32d5247aef boards: arm: nrf52840_pca10059: remove RTT_CONSOLE from defaults
The board does not have a SEGGER chip.
Remove RTT_CONSOLE from board defaults.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-01-14 09:56:55 +01:00
Kumar Gala
728ca62d0b boards: arm: Cleanup xtools toolchain support
Add 'xtools' as supported toolchain for new boards and remove duplicate
entry from mps2_an385

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-13 09:35:59 -05:00
Tavish Naruka
19b968a0c7 boards: add new board Electronut-labs Blip
Added config for https://github.com/electronut/ElectronutLabs-blip/

Signed-off-by: Tavish Naruka <tavishnaruka@gmail.com>
2019-01-12 09:15:26 -05:00
Peter A. Bigot
e0e9beee04 boards: arm: particle: refactor for commonalities
Provide a dtsi file that sets up common capabilities for all
Feather-based Particle Mesh devices.  Provide additional dtsi files for
some obvious peripheral options.

Remove the xtensa esp32 image: it didn't build, and there's no
indication of how the ESP32 firmware can be updated on the Argon board.
Use particle_argon as the nRF52840 side of the board.

Add Particle Boron support.

Note that dtsi files must be replicated in each board directory until
tooling supports DTS includes from a shared area.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-01-12 09:10:43 -05:00
Matthias Boesl
a600b138c4 boards: particle: add board support for particle argon
initial support for particle argon nrf52 and esp32

Signed-off-by: Matthias Boesl <matthias.boesl@gmail.com>
2019-01-12 09:10:43 -05:00
Endre Karlson
714ffe623c boards: particle_xenon: Add support Xenon
This patch adds support for the Particle Xenon dev board that
has a nrf52840 mcu.

Signed-off-by: Endre Karlson <endre.karlson@gmail.com>
2019-01-12 09:10:43 -05:00
Kumar Gala
d3e27f518f boards: arm: nxp: imxrt: Fix SPI nodes on flexspi controller
Fix the QSPI and hyperflash nodes to be proper SPI children and expose
the address range for direct access as part of the controller's reg
region.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-11 13:12:18 -06:00
Sean Nyekjaer
3d880dd155 boards: arm: frdm_k64f: remove default n configs
Bool configs are default n, unless explicitly set otherwise.

Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
2019-01-11 08:58:50 -06:00
Maureen Helm
161fa14138 boards: mimxrt1020_evk: Enable pyocd runner
Adds support for debugging and flashing the mimxrt1020_evk board via
pyocd.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-01-09 16:07:09 -06:00
Maureen Helm
9554ae9265 boards: Fix jlink device name on rt1020 and rt1060 boards
The mimxrt1020_evk and mimxrt1060_evk boards had invalid jlink device
names. Debugging via 'ninja debug' now works on these boards.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-01-09 16:07:09 -06:00
Maureen Helm
37379478bf boards: mimxrt1060_evk: Fix a Kconfig typo
Fixes a Kconfig typo in the mimxrt1060_evk board that was introduced
when the board was split into separate hyperflash and qspi
configurations.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-01-09 16:01:25 -06:00
Maureen Helm
b5551d0690 soc: boards: Reserve space for the imx boot header at the soc level
Moves the default TEXT_SECTION_OFFSET from the board level to the soc
level for the imx rt series. This offset is used to reserve space for
the imx boot header for external xip flash images.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-01-09 16:01:25 -06:00
Kumar Gala
67af71e01d boards: arm: Add xtools as a supported toolchain
Update all ARM boards to have xtools as a supported toolchain.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-09 14:18:58 -05:00
Ryan QIAN
d5e56036f2 board: arm: Add board support for mimxrt1020_evk
Add board support files for mimxrt1020_evk, the development board for
i.MXRT1021 (CM7) SoC.

- Add pinmux, dts, doc.
- Code can be loaded to SRAM.
- Tested samples: hello_world, philosophers, synchronization,
basic/blinky, and basic/button.

Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
2019-01-09 11:39:31 -06:00
Christian Taedcke
e6d5c4e3da soc: silabs_exx32: Add SWO logger support to EFM32PG12B
By default, after reset SWO signal is not connected to GPIO pin.

Signed-off-by: Christian Taedcke <hacking@taedcke.com>
Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-01-09 15:30:59 +01:00
Piotr Mienkowski
8bed2d5e27 soc: silabs_exx32: Add SWO logger support
By default, after reset SWO signal is not connected to GPIO pin. This
commit adds required initialization code to enable support for SWO
logger. Not all SoC series support the feature.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-01-09 15:30:59 +01:00
Erwan Gouriou
e1db8a39af boards: nucleo_l4r5zi: set lpuart1 as VPC port
lpuart1 is the default port used by ST-Link VPC.
Update board description to match out of box board configuration.

Fixes #12092

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-09 08:05:24 -06:00
Erwan Gouriou
4a25ae1694 drivers/serial: stm32: rename symbol UART_LPUART_1 to LPUART_1
Following recent renaming of STM32 UART Kconfig UART symbols,
LPUART was named as UART_LPUART_1.
Rename to LPUART_1.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-01-09 08:05:24 -06:00
Martin Gysel
4e23d6c875 doc: boards: arm: nrf52840_pca10059: fix name of dts file to include
dts file to include is named 'fstab-debugger' not 'fstab-segger'

Signed-off-by: Martin Gysel <me@bearsh.org>
2019-01-09 10:28:42 +01:00
Ashokkumar B
3c00d955f3 drivers: gpio: Add DTS support for Stellaris gpio driver.
* Add DTS support for gpio controller driver

Signed-off-by: Ashokkumar B <ashokkumar@zilogic.com>
Signed-off-by: Subash G <subash@zilogic.com>
Signed-off-by: Vishnu K <vishnu@zilogic.com>
Signed-off-by: Vaishnavi D <vaishnavi.d@zilogic.com>
2019-01-08 13:30:26 -06:00
Piotr Mienkowski
973af2c8d7 dts: silabs: use 'aliases' to remove dts_fixup defines
By adding 'aliases' node in SoC .dtsi file it is possible to generate
DT_ defines which specify a logical name rather than relay on module
location on APB bus. E.g. DT_SILABS_GECKO_USART_40010000_LABEL becomes
DT_SILABS_GECKO_USART_USART_0_LABEL. Thus it is possible to remove
dts_fixup.h defines.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-01-08 11:56:02 -06:00
Piotr Mienkowski
1bfc52b81b drivers: i2c: remove deprecated i2c_atmel_sam3 driver
The i2c_atmel_sam3 driver was deprecated at release 1.9, this commit
removes it. Also pinmux_dev_atmel_sam3x driver is removed.
i2c_atmel_sam3 was the last one which depended on it.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2019-01-08 09:23:17 -06:00
Armando Visconti
f300dedcc1 drivers/sensor/lsm6dsl: Use DT defines to select I2C/SPI bus
Remove configuration parameter CONFIG_BUS_TYPE. Now we may
make use of DT_ST_LSM6DSL_BUS_I2C and DT_ST_LSM6DSL_BUS_SPI
definition to select the bus.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2019-01-08 09:15:51 -06:00
Manivannan Sadhasivam
31e89b20a7 boards: arm: 96b_stm32_sensor_mez: Enable on-board PWM
Enable PWM channels exposed on 96b_stm32_sensor_mez board via
Arduino connector.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2019-01-07 14:30:12 -06:00
Emanuele Di Santo
23998f9b17 doc: boards: arm: nrf52840_pca10059: add bootloader section
Add documentation on how to program the board using nrfutil
or an external debugger.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-01-07 14:51:09 +01:00
Emanuele Di Santo
b8d3ee8afb boards: arm: nrf52840_pca10059: update dts and overlay
Updated flash partitions to extend supported boot scenarios.

Add support for using Nordic nRF5 bootloader to:
- flash a Zephyr application
- flash a MCUboot image as an application

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2019-01-07 14:50:54 +01:00
Daniel Leung
f542825558 boards: arm: nucleo_f746zg: fix empty image
The en.high-perf_nucleo-144_mbed.jpg is an empty file.
This causes error when generating PDF documentation
as the tool cannot deal with empty image files.
So replace it with the image with same filename from
nucleo_f765zg, as the images are identical from
the online product description pages.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2019-01-03 12:36:48 -05:00
Vasili Slapik
b29a79402f boards: arm: stm32: Fix openocd warning
interface/stlink-v2-1.cfg and interface/stlink-v2.cfg are wrappers
around interface/stlink.cfg, their inclusion trigger warning which
this change addresses. Besides the warning there is nothing there
except sourcing iterface/stlink.cfg directly.

Signed-off-by: Vasili Slapik <vslapik@gmail.com>
2019-01-03 10:24:49 -06:00
Loic Poulain
1782e383a6 boards: disco_l475_iot1: Enable MSI PLL-Mode config
This mode allows the USB driver to use MSI clock as source clock.
MSI PLL-Mode permits +/-0,25% accuracy.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2019-01-02 09:33:21 -05:00
Loic Poulain
131a61d80b boards: disco_l475_iot1: Add USB OTGFS to DTS
Add USB OTG FS node.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2019-01-02 09:33:21 -05:00
Loic Poulain
b59eaf69b6 Revert "boards: disco_l475_iot1: Remove used pinmux configuration"
This reverts commit 9c1a2b515c.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2019-01-02 09:33:21 -05:00
Peter A. Bigot
2705901460 boards: nucleo_l476rg: add corrected I2C pin assignments
The L476RG does not use the same I2C instance as the other L4 boards.
Correct the pinmux and add the peripheral.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-01-02 13:02:38 +01:00
Yannis Damigos
10cf2457b9 boards/arm/olimexino_stm32: Add SDHC support
Add SDHC support over SPI2 port.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-12-30 16:24:10 -05:00
Vincent Wan
8bbe325868 doc: boards: cc3220sf_launchxl: update link to XDS110 firmware update
The link was changed by TI, so we are updating the Zephyr
documentation.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
2018-12-29 09:22:33 -05:00
Erwan Gouriou
a4605ebaad boards: nucleo_l432kc: Document CAN support
Document CAN support for board nucleo_l432kc and
add can to board yaml "support" section.

Fixes #12052

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-12-27 19:41:27 -05:00
Erwan Gouriou
be5444d0f3 boards: stm32072b_disco: Document CAN support
Document CAN support for board stm32072b_disco.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-12-27 19:41:27 -05:00
David B. Kinder
06d78354ae doc: regular misspelling scan
Fix misspellings in documentation (.rst, Kconfig help text, and .h
doxygen API comments), missed during regular reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-12-26 13:27:14 -05:00
Erwan Gouriou
bb92c54884 boards: stm32f3_disco: Add LD7 as led1
stm32f3_disco has multiple leds.
Use LD7 has Zephyr led1.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-12-26 09:43:36 -05:00
Erwan Gouriou
52ddd99db5 boards: stm32f3_disco: LD7 GPIO port is E
Fix LED7 gpio port to E instead of D.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-12-26 09:43:36 -05:00
Andrzej Głąbek
9d44cad921 boards: nrf: Enable ADC, I2C, and SPI instances by default
Enable by default the following hardware instances in Kconfig:
- ADC_0
- I2C_0
- SPI_1 (SPI_0 for nRF52810)
for all nRF development kit boards having the corresponding DT nodes
enabled. This way there is no need to enable these instances in
particular applications, like samples for sensors or tests for drivers.

I2C_0 and SPI_0 cannot be used simultaneously in most of nRF SoCs,
nRF52810 is the only exception so far (and in this SoC SPI_1 is not
present, hence SPI_0 is enabled for it).

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-12-21 21:01:37 +01:00
Andrzej Głąbek
326be98f74 boards: nrf: Remove redundant Kconfig adjustments
The options selecting nRF drivers are now enabled by default when
an nRF SoC is selected as the build target.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-12-21 21:01:37 +01:00
Andrei Gansari
574014146d mimix1050rt: ethernet initialization corrected
Fixes board PHY initialization.
ENET_RST and ENET_INT pins are also used as USER_LED/JTAG_TDI and
INT1_COMBO/JTAG_TDO. Initialization needs to set these pins to power and
interrupt for the PHY Transciver. PHY reset works without busy waiting.
Moved pin initialization back to PRE_KERNEL_1 to fix UART bug and busy
wait not required.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2018-12-18 12:49:24 +01:00
AJ Palmer
a8ce329cc9 boards: arm: nucleo_f756zg: Added SPI support
Added support for SPI 1 available from the arduino connector (plus an
extra gpio). Tested against samples/sensor/bme280.

Added warnings in documentation, pinmux and dts highlighting a potential
conflict if using SPI_1 and on-board ethernet at the same time.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-12-17 11:35:27 -06:00
AJ Palmer
98d551039e boards: arm: nucleo_f756zg: Added PWM support
Added PWM support for one of the gpios connected to the arduino uno v3
connector.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-12-17 11:35:27 -06:00
AJ Palmer
e7cb2d65f9 boards: arm: nucleo_f756zg: Added I2C support
Added I2C support to the I2C bus connected to the arduino uno v3
connector.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-12-17 11:35:27 -06:00
AJ Palmer
0efd0ece95 boards: arm: nucleo_f756zg: Added USB support
Added pinmux and device tree information required to use the on-board
usb otg port.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-12-17 11:35:27 -06:00
AJ Palmer
de3a2c65fc boards: arm: nucleo_f756zg: Added ethernet support
Added pinmux and defconfig information required to use the on-board
ethernet.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-12-17 11:35:27 -06:00
AJ Palmer
2f04dc69c0 boards: arm: nucleo_f756zg: Created new board and soc definition
Added board definitions for nucleo_f756zg. Features include gpio,
pinmux, uart (ST Zio, ST-Link and Arduino Uno v3 interfaces).

Added basic documentation and some soc definitions for the
stm32 f756XX soc.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-12-17 11:35:27 -06:00
AJ Palmer
e841d42eca boards: arm: nucleo_f746zg: Highlight possible pin conflict
Updated .dts and pinmux.c to highlight pin conflict on PA7 if ETH and
SPI_1 are selected together without modification.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-12-17 08:27:11 -06:00
Florian Gärtner
eb5211aaec boards: arm: Fix and update nordic board doc links
Fixes old and some broken links to nordic documentation.

Signed-off-by: Florian Gärtner <florian.gaertner@ledcity.ch>
2018-12-14 21:19:21 +01:00
Erwan Gouriou
b1008ccb02 drivers/serial: stm32: Modify Kconfig instance flags
STM32 uart Kconfig instance flags were not following
same naming scheme than other drivers (i2c, spi, ..)

Update driver to use UART_X instead of UART_STM32_PORT_X

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-12-14 09:59:37 -06:00
Vincenzo Frascino
bd34448a75 dts: arm: Code Cleanup in mps2_an385
This patch cleans up the code in the recently added dts_fixup.h,
restoring the original alignment of the file.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
2018-12-14 07:24:48 -06:00
Vincenzo Frascino
48721fb42a dts: arm: Fix Dual Timer IRQ config for mps2_an385
The dts.fixup for mps2_an385 contains a wrong setting for the IRQ fixup
for the Dual Timer IRQ.

This patch fixes the symbol included in the generated header.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
2018-12-14 07:24:48 -06:00
Vincenzo Frascino
ca502e1a60 dts: arm: Fix Dual Timer base address in mps2_an385
This patch fixes the Dual Timer base address in mps2_an385 device tree.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
2018-12-14 07:24:48 -06:00
Vincenzo Frascino
043fa115ec dts: arm: Fix Dual Timer base address in v2m_beetle
This patch fixes the Dual Timer base address in v2m_beetle device tree.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
2018-12-14 07:24:48 -06:00
Kumar Gala
1870d99790 boards: mimxrt1060_evk: Split hyperflash config as a separate board
To enable the Hyperflash you have to physically modify the board and
this disables the QSPI.  Since we plan on removing Kconfig from device
trees, its easier to treat the hyperflash as a separate board config
and thus it will get a dts to match.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-13 08:56:33 -06:00
Vasili Slapik
f1224c8f0a boards: stm32_min_dev: Add SPI support
Add SPI support to stm32_min_dev board

Signed-off-by: Vasili Slapik <vslapik@gmail.com>
2018-12-13 08:34:29 -06:00
Johann Fischer
80aec783e5 boards: frdm_kw41z: set VREF to alternate source
Since Voltage Reference block is not supported, the ADC does not work
properly on FRDM-KW41Z. Set voltage reference to alternate source
in frdm_kw41z_defconfig.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-12-13 08:32:18 -06:00
Kumar Gala
da32727891 boards: hexiwear_kw40z: Enable SEGGER support by default
We had SEGGER support enabled by default previously, but the new
Kconfig option CONFIG_USE_SEGGER_RTT needs to be set as well now.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-13 08:25:58 -06:00
Kumar Gala
c0ce73ee55 boards: lpcxpresso54114: Enable SEGGER support by default for M0
The lpcxpresso54114_m0 tends to be the secondary core so doesn't
typically have a UART setup for it.  We had SEGGER support enabled by
default previously, but the new Kconfig option CONFIG_USE_SEGGER_RTT
needs to be set as well now.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-13 08:25:58 -06:00
Manivannan Sadhasivam
dd0b5193ae boards: Add 96Boards STM32 Sensor Mezzanine board support
Add board support for 96Boards STM32 Sensor Mezzanine board. This board
is one of the 96Boards Mezzanine board which can work standalone or on
top of the 96Boards Consumer Edition boards.

Below are some of the key features of this board:

1. STM32F446VE MCU
2. 96Boards high/low-speed connectivity
3. Arduino™ Uno revision 3 and Grove connectivity
4. Integrated MEMS sensors:
   1. LSM6DS3H
   2. LIS3MDL
   3. LPS22HB
   4. MP34DT01-M
5. On-board ST-LINK/V2-1 debugger/programmer

More information about this board can be found in the 96Boards product
page: https://www.96boards.org/documentation/mezzanine/stm32/

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-12-13 08:07:28 -06:00
Kumar Gala
6b3531b783 boards: cy8ckit_062_wifi_bt_m{0,4}: Add OpenOCD support for flashing
The 0.9.5 SDK has support for the Cypress PSoC6 family.  Add ablilty to
flash with openocd.  I've only tested flashing hello_world on the m0.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-12 20:29:38 -06:00
Kumar Gala
f13be5ebe3 boards: mimxrt1050_evk: Split QSPI flash config as a seperate board
To enable the QSPI you have to physically modify the board and this
disables the hyperflash.  Since we plan on removing Kconfig from device
trees, its easier to treat the QSPI flash as a seperate board config and
thus it will get a dts to match.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-11 09:23:21 -06:00
Johann Fischer
fa4c07120c boards: usb_kw24d512: add support for DAPLink based adapters
Add support for using DAPLink based adapters through pyOCD.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-12-10 10:57:16 -06:00
Johann Fischer
ba43101ffb boards: frdm_k64f: remove gpio cs property from mcr20a node
Remove gpio cs property from mcr20a node.
The driver and board use PCS0 from SPI controller.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-12-10 10:41:22 -06:00
Piotr Mienkowski
2d2a0452b9 doc: efr32_slwstk6061a: update paragraph 'Flashing'
Zephyr SDK 0.9.4 added OpenOCD support for SiLabs EFR32FG1P SoC. This
commit updates 'Flashing' paragraph of the board documentation to
reflect this change.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2018-12-07 19:32:49 -05:00
Maureen Helm
2167ae07ba boards: Fix and update nxp board doc links
Fixes broken user guide and schematics links in nxp board documentation.
Updates remaining nxp.com links from http to https.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-12-07 16:41:29 -05:00
Endre Karlson
91c4d20214 arm: silabs: Enable DCDC before setting up clk
This enables DCDC for Silabs devices before initializing the
clock.

Signed-off-by: Endre Karlson <endre.karslon@gmail.com>
2018-12-07 13:55:31 -06:00
Erwan Gouriou
aab5be5c64 boards: nucleo_f413zh: Update board images
Connectors imaages for nucleo_f413zh were actually a reuse of
similar board nucleo_f412zg.
Add dedicated images for nucleo_f413zh.

Fixes #5198

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-12-07 12:53:57 -05:00
Kumar Gala
a24770bd12 sensor: lsm6dsl: Update DTS support
Now that we can support the same compatible but different bus types,
update the LSM6DSL support to utilize the same compatible for either I2C
or SPI.  We rename the i2c binding file to st,lsm6dsl-i2c.yaml just to
be a bit more clear.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-07 09:08:04 -06:00
Jakub Rzeszutko
f8178dcb05 shell: remove Console dependencies
Removed Console dependencies from shell uart backend.
Generated define: CONFIG_UART_SHELL_ON_DEV_NAME for each board.

Fixes #10191

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
2018-12-07 12:11:11 +01:00
Patrik Flykt
25e8e4d4e7 boards: Add 'U' to unsigned variable assignments
Add 'U' to a value when assigning it to an unsigned variable.
MISRA-C rule 7.2

Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
2018-12-04 22:51:56 -05:00
Vijay Kumar B
392be3a8b3 drivers: ethernet: Add DTS support for Stellaris Ethernet controller.
* Add DTS support for Stellaris ethernet controller.
  * Add base DTS binding definition for Ethernet.
  * Add DTS binding definition for Stellaris ethernet controller.

Signed-off-by: Fadhel Habeeb <fadhel@zilogic.com>
Signed-off-by: Nirav Parmar <niravparmar@zilogic.com>
Signed-off-by: Vijay Kumar B <vijaykumar@zilogic.com>
2018-12-04 09:36:51 -06:00
Diego Sueiro
f7f31b1e13 boards: enable UART_INTERRUPT_DRIVEN for i.MX7 and i.MX6 boards
This patch enables the UART_INTERRUPT_DRIVEN by default for
colibri_imx7d_m4, udoo_neo_full_m4 and warp7_m4 boards.

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-12-03 15:15:36 -05:00
Michael Scott
2291be6668 boards: arm: reel_board: select BT_CTLR if BT is enabled
Reel Board doesn't enable BT by default like many of the nRF52
boards do.  So let's make enabling BT a bit easier, by selecting
the BT_CTLR config when BT is enabled.  This allows a sample
overlay to merely set:
CONFIG_BT=y

And the end result should be close to correct.

Signed-off-by: Michael Scott <mike@foundries.io>
2018-12-02 09:26:27 -05:00
Stig Bjørlykke
ece520c6ff boards: doc: Remove 802.15.4 support
The nRF51822 and nRF52832 does not support 802.15.4, so remove this
statement from documentation.

Signed-off-by: Stig Bjørlykke <stig.bjorlykke@nordicsemi.no>
2018-12-02 09:24:05 -05:00
Stig Bjørlykke
9c955b3719 boards: doc: Remove empty table rows
Remove the initial empty row in the supported features table.

Signed-off-by: Stig Bjørlykke <stig.bjorlykke@nordicsemi.no>
2018-12-02 09:23:17 -05:00
Stephen Yi
c50a883d1d boards stm32_min_dev: modify board led pin assignment
Modify board stm32_min_dev aka "blue pill" led pin assignment in dts
from PB12 to PC13.
This board has a user led connected to PC13.
Sample blinky and similar would run out-of-box without additional
circuit to readout PB12 level.
Tested blinky on corresponding board.

Signed-off-by: Stephen Yi <stephen.jin.yee@gmail.com>
2018-11-29 09:22:24 -06:00
Gil Pitney
0d222025d6 doc: boards: cc3220sf_launchxl: Add notes on secure socket offload
Reference working sockets example http_get, and add reference
to SimpleLink Certificate Handling.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-11-23 09:16:21 -05:00
Andrei Emeltchenko
76beaf6c1c reel_board: Do not include Bluetooth to every project
Including Bluetooth to every project unnecessary increase size of the
project, for example hello world sizes:

Memory region         Used Size  Region Size  %age Used
           FLASH:       48492 B         1 MB      4.62%
            SRAM:       11236 B       256 KB      4.29%
        IDT_LIST:         136 B         2 KB      6.64%

after the patch:

Memory region         Used Size  Region Size  %age Used
           FLASH:       13344 B         1 MB      1.27%
            SRAM:        4004 B       256 KB      1.53%
        IDT_LIST:          72 B         2 KB      3.52%

3+ times difference.
PS: It also crashes when 802.15.4 enabled.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2018-11-23 09:10:01 -05:00
Johann Fischer
aee6764c32 drivers: ssd1673: fix SPI GPIO CS configuration
Use DT_SSD1673_SPI_GPIO_CS_DRV_NAME for CS configuration.

Resolves: #10720

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-11-23 08:39:20 -05:00
Oleg Kapshii
133f9c4885 boards: arm: Updated Cypress PSoC6 cy8ckit_062_wifi_bt_m0 doc
Added description how to build, programm and see console output of
hello_world example on cy8ckit_062_wifi_bt_m0 board.

Signed-off-by: Oleg Kapshii <oleg.kapshii@cypress.com>
2018-11-21 20:03:16 -05:00
Gil Benkö
28580ab2e8 boards: arm: Add support for Silicon Labs EFM32PG-STK3402A
The EFM32 Pearl Gecko Starter Kit contains sensors and
peripherals demonstrating the usage of the EFM32PG MCU
family. This patch adds basic support for this board
and is copied from EFM32WG-STK3800.

Signed-off-by: Gil Benkö <gil.benkoe@pm.me>
Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-11-21 13:42:26 -06:00
Maureen Helm
bfd98954b2 boards: mimxrt1050_evk: Enable pyocd runner
Adds support for debugging and flashing the mimxrt1050_evk board via
pyocd. Support for this board has not yet been merged in upstream pyocd,
therefore the default in zephyr is left as jlink.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-11-21 05:10:04 -06:00
Diego Sueiro
5f7564bffb boards: Enable IPM driver on colibri_imx7d_m4 board
This board enables the IPM driver on on colibri_imx7d_m4 board.

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-11-21 04:03:59 -06:00
Diego Sueiro
bde7c75cc0 boards: Enable IPM driver on warp7_m4 board
This board enables the IPM driver on on warp7_m4 board.

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-11-21 04:03:59 -06:00
Andrei Gansari
bf988dc3af boards: mimxrt1050_evk: networking added to documentation
Board documentation updated with Networking related infomation.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2018-11-20 09:54:25 -06:00
Andrei Gansari
a5174be648 mimxrt1050_evk: enabling networking hardware
Enables Networking hardware on i.MX-RT 1050-EVKB board.
Pinout enabled board specific etherenet connection, also pin
initialization was moved later to PRE_KERNEL_2 in order to have
sysclock initialized before.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2018-11-20 09:54:25 -06:00
Stanislav Poboril
15eace97c9 imx: Enabled Messaging Unit in Udoo Neo Full board
Enabled Messaging Unit B in Cortex-M4 core of Udoo Neo Full board
so it can use IMX IPM.

Origin: Original

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
2018-11-19 08:38:38 -06:00
Sean Nyekjaer
5501e0d7bd boards: atsamd20_xpro: fix tx pin number for sercom3
Not pretty to change the PAD name from 2 to 1 as the correct
is PAD2 but for the SAMD20 the register value is 1.

Fixes: 6d08958ad5 ("drivers: uart_sam0: move sercom pad info to dts")
Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
2018-11-19 08:34:48 -06:00
Kumar Gala
ea198e3e4b ieee802154: mcr20a: Cleanup Kconfig and DT support
Now that all SPI controllers support DTS we can remove the Kconfig
support for non-DTS options.  We also cleanup some defines that should
have be DT_MCR20A_ instead of CONFIG_MCR20A_.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-16 14:02:00 -05:00
Kumar Gala
e743104ad4 dts: Fix warning related to invalid alias name
Aliases are not suppose to use '_', so replace with '-'.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-16 13:57:45 -05:00
Kumar Gala
90823520e2 dts: Remove ifdef CONFIG_FS_FLASH_STORAGE_PARTITION from dts files
Remove the ifdef related to CONFIG_FS_FLASH_STORAGE_PARTITION.  There
shouldn't be any harm in always having the partition around as we'll
just generate the defines related to and most applications will ignore
them.

Helps get one step closer to have DTS not depend on Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-15 17:37:59 -05:00
Kumar Gala
edefd7dc7d boards: nrf52840_pca10056: move modem configurtion to overlay
The wncm14a2a modem is an add-on/shield and not part of the
nrf52840_pca10056 board and should be maintained and configured
outside of the board.

This needs to be moved to a shield, see #10965.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-15 16:31:35 -05:00
Kumar Gala
94bf29561e boards: nrf52840_mdk: move modem configurtion to overlay
The wncm14a2a modem is an add-on/shield and not part of the nrf52840_mdk
board and should be maintained and configured outside of the board.

This needs to be moved to a shield, see #10965.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-15 16:31:35 -05:00
Kumar Gala
71c3dd11c5 spi: sam: Specify pinmux for chipselect via Kconfig
Move to using Kconfig (like other Atmel SAM drivers do) to specify the
pinmux setting for SAMe70 SoCs.  Updated the sam_e70_xplained board to
set the default in Kconfig.defconfig instead of via board.h

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-15 07:29:44 -06:00
Armando Visconti
36a1a7c254 board/argonkey/dts: Configure i2c3 at 400KHz
As explained in issue #8915 the STM32F4xx SoC family I2C
does not work well in Standard mode (100KHz). So let's
configure i2c3 in Fast mode (400KHz).

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-11-14 16:28:04 -05:00
Ioannis Konstantelias
a933297ef7 boards: stm32l496g_disco: fix sublist identation
Fix identation so that the sublists appear as expected.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
2018-11-14 12:07:47 -05:00
Ioannis Konstantelias
5a3ed5b09d boards: stm32l496g_disco: fix copy-paste typo
Change LPUART 1 pin mapping to match the User Manual's.

Signed-off-by: Ioannis Konstantelias <ikonstadel@gmail.com>
2018-11-14 12:07:47 -05:00
Kumar Gala
f210d11970 boards: Remove including soc.h in board.h
We should let drivers or board code include soc.h directly so we can keep
board.h to local info for board specific code.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-14 06:44:02 -06:00
Kumar Gala
758d5b14a9 boards: Remove board.h from boards that don't need it
These boards don't need board.h to work so remove it.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-14 06:44:02 -06:00
Andy Ross
c0a184c067 drivers/timer: Select tickless via driver kconfig flag
Add a TICKLESS_CAPABLE kconfig variable which is used by the kernel to
select tickless mode's default automatically on drivers that support
it (rather than having to set the default per-board).  Select it from
the ARM SysTick and Intel HPET drivers.

Also remove the old qemu_cortex_m3 default settings which this
replaces.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-11-13 17:10:07 -05:00
Andy Ross
69ed8e4b46 boards/arm/qemu_cortex_m3: Make it tickless by default
The SysTick driver is working with tickless now.  Make this our first
guinea pig.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-11-13 17:10:07 -05:00
Ulf Magnusson
4638652214 Kconfig: Use 'default' instead of 'def_bool' in Kconfig.defconfig files
This can help find unused symbols. Those end up without a type if
'default' is used instead of 'def_bool', which generates a warning.

Search for "Kconfig.defconfig" in
https://docs.zephyrproject.org/latest/application/kconfig-tips.html for
a longer explanation.

Keep the 'def_bool' for the following symbols, which seem to be
deliberately defined only in Kconfig.defconfig files:

 - ALTERA_AVALON_I2C
 - ALTERA_AVALON_MSGDMA
 - ALTERA_AVALON_PIO
 - ALTERA_AVALON_QSPI
 - ALTERA_AVALON_SYSID
 - CLOCK_CONTROL_IMX_CCM
 - CPU_EM4_DMIPS
 - CPU_EM4_FPUDA
 - CPU_EM4_FPUS
 - FP_FPU_DA
 - I2C_GECKO

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-11-13 16:04:01 -05:00
Ulf Magnusson
fc210ab505 Kconfig: Remove unused symbols defined only in Kconfig.defconfig files
Turning 'def_bool' in Kconfig.defconfig files into 'default' revealed
three unused symbols (confirmed with 'git grep'). Remove them.

Search for "Kconfig.defconfig" in
https://docs.zephyrproject.org/latest/application/kconfig-tips.html for
an explanation of how def_bool->default can reveal undefined symbols.

Removed unused symbols:

 - SPI_DW_CLOCK_GATE

 - PINMUX_MPS2

 - BOARD_XTENSA

Also remove an assignment to the promptless symbol ALTERA_AVALON_SYSID,
in tests/boards/altera_max10/sysid/prj.conf. Assignments to promptless
symbols have no effect.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-11-13 16:04:01 -05:00
Andrzej Głąbek
20202902f2 dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig
These changes were obtained by running a script  created by
Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> for the following
specification:

1. Read the contents of all dts_fixup.h files in Zephyr
2. Check the left-hand side of the #define macros (i.e. the X in
   #define X Y)
3. Check if that name is also the name of a Kconfig option
   3.a If it is, then do nothing
   3.b If it is not, then replace CONFIG_ with DT_ or add DT_ if it
       has neither of these two prefixes
4. Replace the use of the changed #define in the code itself
   (.c, .h, .ld)

Additionally, some tweaks had to be added to this script to catch some
of the macros used in the code in a parameterized form, e.g.:
- CONFIG_GPIO_STM32_GPIO##__SUFFIX##_BASE_ADDRESS
- CONFIG_UART_##idx##_TX_PIN
- I2C_SBCON_##_num##_BASE_ADDR
and to prevent adding DT_ prefix to the following symbols:
- FLASH_START
- FLASH_SIZE
- SRAM_START
- SRAM_SIZE
- _ROM_ADDR
- _ROM_SIZE
- _RAM_ADDR
- _RAM_SIZE
which are surprisingly also defined in some dts_fixup.h files.

Finally, some manual corrections had to be done as well:
- name##_IRQ -> DT_##name##_IRQ in uart_stm32.c

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-11-13 10:44:42 -06:00
Andrzej Głąbek
f39ba7230d dts_fixups: Update labels generated from DTS with DT_ prefix
All labels containing "_<8-hex-digits>_" or "16550_<3or6-hex-digits>_"
in their names, assumed to be generated by the extracting script,
are updated with the DT_ prefix, to reflect the recent changes made
to the script.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-11-13 10:44:42 -06:00
Aleksandr Makarov
a45212ae5f boards: arm: Add support for ST B-L072Z-LRWAN1 board
Added support for ST B-L072Z-LRWAN1 board configuration.
This board uses the same MCU as Dragino-LSN50.

Signed-off-by: Aleksandr Makarov <seems.deviant@gmail.com>
2018-11-13 07:05:24 -06:00
Filip Kubicz
5fcae977d3 boards: nrf52840_pca10056: Fix SPI pin assignment conflicts
Removed pin 20 which by default is connected to QSPI memory.
Removed conflict with default pin assignment for UART 1.

Signed-off-by: Filip Kubicz <filip.kubicz@nordicsemi.no>
2018-11-13 12:39:51 +01:00
Yannis Damigos
704a64fea4 boards: olimexino_stm32: Conform to default configuration guidelines
Update olimexino_stm32 configuration to match with default
configuration guidelines:

- Configure available UEXT connector which is available
  on olimex boards.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-11-12 08:26:08 -05:00
Krzysztof Chruscinski
fa95089b3d net: l2: Fix NET_L2_BT dependency in KConfig
Added NET_IPV6 dependency to NET_L2_BT.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2018-11-10 12:38:29 -05:00
Piotr Mienkowski
bde26fbb83 boards: efr32_slwstk6061a: add mcuboot flash partitions
This commit adds mcuboot flash partitions for SiLabs
efr32_slwstk6061a evaluation board.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2018-11-08 17:56:44 -05:00
Piotr Mienkowski
d9e2171aa9 drivers: flash_gecko: Add flash driver for SiLabs Gecko SoCs
Tested with SLWSTK6061A / BRD4250B wireless starter kit.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2018-11-08 17:56:44 -05:00
Erwan Gouriou
3a1f4650f1 boards: stm32f469i_disco: Conform to default configuration guidelines
Update stm32f469i_disco configuration to match with
default configuration guidelines:
-Configure available connectors
-Update yaml file

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-11-08 17:16:21 -05:00
Erwan Gouriou
5aafa1e787 boards: stm32l476g_disco: update yaml file
Update stm32l476g_disco yaml file

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-11-08 17:16:21 -05:00
Erwan Gouriou
deee15553e boards: stm32f723e_disco: Conform to default configuration guidelines
Update stm32f723e_disco configuration to match with
default configuration guidelines:
-Configure available connectors

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-11-08 17:16:21 -05:00
Erwan Gouriou
b89317d14c boards: stm32f769i_disco: Conform to default configuration guidelines
Update stm32f769i_disco configuration to match with
default configuration guidelines:
-Configure available connectors

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-11-08 17:16:21 -05:00
Erwan Gouriou
b3645eb62b boards: stm32l496g_disco: Conform to default configuration guidelines
Update stm32l496g_disco configuration to match with
default configuration guidelines:
-Deactivate features by default
-Configure available connectors

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-11-08 17:16:21 -05:00
Erwan Gouriou
01a0b50c94 boards: disco_l475_iot1: Conform to default configuration guidelines
Update disco_l475_iot1 configuration to match with
default configuration guidelines:
-Deactivate features by default
-Configure available connectors

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-11-08 17:16:21 -05:00
Endre Karlson
0757b61c4a boards: efr32mg_sltb004a: Add debug capability to Silabs TB2
This makes it possible to "ninja debug" to start debugging
towards the onboard debugger of the TB2 board.

Signed-off-by: Endre Karlson <endre.karslon@gmail.com>
2018-11-08 15:55:19 -06:00
Benoit Leforestier
270ec15482 board: Add support of STM32F143xG SOC
The only difference between the F413xH and F413xG is flash memory size.
STMF413xH: 1536 Kbytes
STMF413xG: 1024 Kbytes

Signed-off-by: Benoit Leforestier <benoit.leforestier@gmail.com>
2018-11-08 07:05:04 -06:00
Harry Jiang
f78a996df8 board: stm32_min_dev: Add PWM support
Add support PWM 1 to stm32_min_dev board

Signed-off-by: Harry Jiang <explora26@gmail.com>
2018-11-07 13:54:51 -06:00
Harry Jiang
59b772575f board: stm32_min_dev: Add I2C support
Add support I2C 1 to stm32_min_dev board

Signed-off-by: Harry Jiang <explora26@gmail.com>
2018-11-07 06:55:36 -06:00
Aurelien Jarno
db94cef75d boards: enable USB device on Atmel SMART SAM E70 Xplained Board
This enables the USBHS interface on the Atmel SMART SAM E70 Xplained
Board, by adding an entry to the DTS. It also updates the documentation
and mark usb_device as supported for the tests.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2018-11-06 16:32:35 -05:00
Kiril Zyapkov
f45996ef74 boards: arm: fix openocd.cfg for nucleo_l476rg
Other ST boards have their openocd.cfg support file updated,
but Nucleo L476RG was still looking for board/st_nucleo_l476rg.cfg
and fails with Zephyr SDK 0.9.5.

Signed-off-by: Kiril Zyapkov <k.zyapkov@allterco.com>
2018-11-06 16:17:21 -05:00
Kumar Gala
7b0d27313e boards: hexiwear_k64: Remove PWM defines
Now that the samples use DT generated defines we can remove the
hexiwear_k64 specific ones in board.h

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-05 14:01:21 -06:00
Kumar Gala
780605aac0 boards: hexiwear_k64: Add PWM LED to device tree
Add the Red, Green, & Blue PWM LED info to the device tree.  We will use
this in the future for any samples that utilize PWM on these LEDs.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-05 14:01:21 -06:00
Anas Nashif
c3d75488d4 boards: dts: remove CONFIG_BT checking
No need to check for BT being enabled. The UART entries will be
available for use if BT is enabled and will do nothing if not.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-05 12:07:30 -06:00
Anas Nashif
bb313d1e71 boards: frdm_k64f: move modem configurtion to overlay
The wncm14a2a modem is an add-on/shield and not part of the frdm_k64f
board and should be maintained and configured outside of the board.

This needs to be moved to a shield, see #10965.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-05 12:07:30 -06:00
Kumar Gala
2d7825976a boards: cc3220sf_launchxl: Add dts support for led/buttons
Move LED/Button info from board.h to dts.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-05 11:08:35 -06:00
Anas Nashif
8ee4b0f378 sanitycheck: make mps2_an385 default qemu for ARM
mps2_an385 does support MPU and Userspace.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-05 11:00:38 -05:00
Kumar Gala
ddc2a3d9df drivers: spi_sam0: move sercom pad info to dts
Move the setting of the SERCOM PAD for dipo/dopo for the spi driver
into device tree out of board.h

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-05 10:05:47 -05:00
Kumar Gala
6d08958ad5 drivers: uart_sam0: move sercom pad info to dts
Move the setting of the SERCOM PAD for rxpo/txpo for the uart driver
into device tree out of board.h

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-05 10:05:47 -05:00
David B. Kinder
babc199545 doc: fix misspellings in docs
Scan and fix for misspellings missed during regular
reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-11-02 20:10:20 -04:00
Subramanian Meenakshi Sundaram
4e1179bba5 drivers: watchdog: Adding watchdog support for sam SOC
Adding watchdog driver for sam SoC. The current implemntation just
diables the watchdog on device boot.
This PR adds the following support for SAM3X, SAM4S and SAME70
1. Activate processor reset
2. Activate all reset
3. Generate interrupt on watchdog timer expiration.

Signed-off-by: Subramanian Meenakshi Sundaram <subbu147@gmail.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-02 15:09:22 -05:00
Anas Nashif
79b9b51307 sanitycheck: make nrf51_pca10028 the default for cortex-m0
This board has more coverage and more ram, so lets make it the default
for testing cortex-m0.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-01 22:50:12 -04:00
Kumar Gala
95776d945c drivers/display: mb_display: Move gpio defines to driver
Since the mb_display driver is specific to the microbit we can move
the GPIO pin defines from board.h into the driver.  This lets us remove
one of the few remaining drivers that is including board.h

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-01 15:58:51 -05:00
Kumar Gala
a8f1431a53 boards: bbc_microbit: Move button data into dts from board.h
Move the GPIO info for the buttons into the dts, this lets us match what
all other boards are doing.  Update some sample & test code to use the
dts generated SW0_GPIO_CONTROLLER define instead of SW0_GPIO_NAME.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-01 15:58:51 -05:00
Kumar Gala
aacdd64584 boards: Cleanup include of board.h
Remove some references <board.h> that aren't need or replace them with
<soc.h> where that is the proper include to pull in.  Also use "board.h"
instead of <board.h> for how we include the file when its local to the
board code itself.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-11-01 13:15:18 +01:00
Maureen Helm
8a1de3e9dd boards: Convert frdm_k64f and mimxrt1050_evk to use ble controller shield
The frdm_k64f and mimxrt1050_evk boards do not have native bluetooth
support, but rather require an arduino shield to supply a ble controller
over serial hci. Convert the dts to use the newly introduced frdm_kw41z
ble controller shield.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-11-01 07:22:10 -04:00
Diego Sueiro
5540016965 boards: Add Silabs EFR32MG-SLTB004A (Thunderboard Sense 2) support
The EFR32™ Mighty Gecko Starter Kit EFR32MG-SLTB004A (a.k.a
Thunderboard Sense 2) contains a MCU from the EFR32MG12P family built
on ARM® Cortex®-M4F processor with low power capabilities.

There is an On-Board J-Link Debugger that presents a virtual COM port
for general purpose application serial data transfer with this
interface and a Mass Storage for firmware flashing.

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-10-31 09:00:38 -05:00
Maureen Helm
f3da1d510c boards: lpcxpresso54114: Combine m4/m0 boards into one directory
Combines the lpcxpresso54114_m4 and lpcxpresso54114_m0 boards into one
directory containing both board configurations. This eliminates some
duplicate code and documentation, and better represents the actual
hardware.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-10-30 15:14:35 -05:00
Kumar Gala
aafc5d51de boards: arm: Remove CONFIG_MCUMGR_SMP_UART from dts files
In an effort to reduce the number of CONFIG_ defines in dts files, we
can remove CONFIG_MCUMGR_SMP_UART and just always set
'zephyr,uart-mcumgr' as there is no harm to always having this set for
those board dts files that define the property.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-30 14:38:59 -05:00
Loic Poulain
25120f3cc2 boards: disco_l475_iot1: Enable es-WiFi driver
Automatically enable es-WiFI driver when WIFI is enabled.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2018-10-29 16:38:02 +02:00
Loic Poulain
6801d1de3a boards: disco_l475_iot1: Add es-WiFi module
ISM43362 is an Inventek es-WiFi compatible module.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2018-10-29 16:38:02 +02:00
Martin Benda
f119ffedd5 boards: atsamd20_xpro: Add led/button info to DTS
Add on-board yellow LED and user button to the device tree.

Signed-off-by: Martin Benda <martin.benda@omsquare.com>
2018-10-26 14:52:06 +01:00
Kumar Gala
1becbfcb8b drivers: display: ssd1673: Fixup dts support
There were several issues in the dts binding for the ssd1673 display:
* binding file mixed description & generation up together
* Use of BASE_LABEL
* orientation-flipped should have been of type boolean

Update the binding file to reflect these changes, and made associated
changes to dts_fixup.h and driver as needed.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-26 08:13:04 +01:00
Johann Fischer
dd964ad38a boards: reel_board: add link to the board schematic
Add link to the board schematic.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-10-25 23:49:16 +01:00
Johannes Hutter
3fb56467bd boards: reel_board: add documentation for udev rules
Flashing the board as described in the docs does not work without having
proper udev rules set. Add documentation for setting those.

Signed-off-by: Johannes Hutter <johannes@proglove.de>
2018-10-25 12:00:24 +01:00
Henrik Brix Andersen
1ee2e69232 boards: reel_board: fix DTS compatible string
Fix the compatible string for the PHYTEC reel_board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-10-25 10:59:44 +01:00
Henrik Brix Andersen
4d77db575e boards: reel_board: add links to the PHYTEC reel board procuct page
Add a link to the reel board product page at PHYTEC to help people in
locating schematics, etc.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-10-25 10:58:44 +01:00
AJ Palmer
94099df5c8 boards: arm: nucleo_f746zg: Added SPI support
Added support for SPI 1 available from the arduino connector (plus an
extra gpio). Tested against samples/sensor/bme280.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-10-25 07:33:30 +01:00
AJ Palmer
6335f0fa64 boards: arm: nucleo_f746zg: Added PWM support
Added support for PWM 1 on channel 3 (arduino pin D3).

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-10-25 07:33:30 +01:00
AJ Palmer
91065023ca boards: arm: nucleo_f746zg: Added I2C support
Added DT entry, Kconfig.defconfig options, updated .yaml and
documentation, added pinmux for required pins.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-10-25 07:33:30 +01:00
AJ Palmer
c28fd8a670 boards: arm: nucleo_f746zg: Added USB support
Added Kconfig.defconfig options, updated .yaml and documentation, added
pinmux for required pins.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-10-25 07:33:30 +01:00
AJ Palmer
36a19b43bc boards: arm: nucleo_f746zg: Added ethernet support
Added Kconfig.defconfig options, updated .yaml and documentation, added
pinmux for required pins.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-10-25 07:33:30 +01:00
AJ Palmer
2ba13008b6 boards: arm: nucleo_f746zg: Created new board
Basic board with support for UART, 3 user LEDs and 1 user push-button
switch.

Signed-off-by: AJ Palmer <ajpcode@hotmail.com>
2018-10-25 07:33:30 +01:00
Henrik Brix Andersen
48c83fb286 boards: nrf52_adafruit_feather: remove RTS/CTS pin definitions from dts
The Adafruit Feather nRF52 does not have any RTS/CTS signal
connections between the nRF52832 and the on-board CP2104 USB/UART
bridge. Pins 5 and 7 are regular GPIOs.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-10-24 05:55:21 +01:00
Johann Fischer
66e5adeb86 boards: reel_board: update docu for the first board release
Update images and connection tables for the first board release.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-10-23 09:19:39 +01:00
Christian Taedcke
cd6386dfb0 boards: stm32f746g_disco: Enable a few peripherals
This enables I2C, SPI, PWM, RTC and USB.

RTC tested on samples/drivers/rtc
USB tested on samples/subsys/usb/cdc_acm

Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-10-23 09:19:15 +01:00
Christian Taedcke
938d6edf14 boards: nucleo_f429zi: Fix typo in code comments
Fix minor typo in code comments of pinmux.c

Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-10-23 09:19:15 +01:00
qianfan Zhao
61c3bff495 boards: sam_e70_xplained: Delete drivers select in defconfig
SoC drivers are configured in Kconfig.defconfig.series, so it doesn't
need in board's defconfig.

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
2018-10-19 16:19:16 -04:00
Andrei Gansari
02e217df50 drivers: eth_mcux: kinetis networking device Tree
Partially replaces Kinetis MCUX driver configuration from Kconfig to
Device Tree. Interrputs moved from defines configuration to DT.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2018-10-19 07:57:20 -05:00
Johann Fischer
4bab5940e0 boards: bbc_microbit: use fxos8700 driver for MMA8653
Use fxos8700 driver for MMA8653 accelerometer.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-10-17 14:16:02 -05:00
Johann Fischer
8a16fa400c boards: frdm_kl25z: use fxos8700 driver for MMA8451
Use fxos8700 driver for MMA8451 accelerometer.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-10-17 14:16:02 -05:00
Johann Fischer
5b522ef055 boards: reel_board: use MMA8652FC label
Revise accelorometer node and use MMA8652FC label.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-10-17 14:16:02 -05:00
Zelin Cai
c6acdd4b3e boards: nrf52840_mdk: add board support for nRF52840-MDK
Add support for nRF52840-MDK board.

Signed-off-by: Zelin Cai <zelin@makerdiary.com>
Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
2018-10-17 12:51:22 -05:00
Zelin Cai
db653404b0 boards: nrf52832_mdk: add board support for nRF52832-MDK
Add support for nRF52832-MDK board.

Signed-off-by: Zelin Cai <zelin@makerdiary.com>
Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
2018-10-17 12:51:22 -05:00
Galen Seitz
4566ace345 boards: arm: Add support for nucleo_f302r8
Add support for ST Micro Nucleo-64 board with the STM32F302R8
processor.  nucleo_f429zi and nucleo_f334r8 were used as
references.

Signed-off-by: Galen Seitz <galens@seitzassoc.com>
2018-10-16 22:52:07 -04:00
Diego Sueiro
0c7a28c4cc drivers: serial: Rework Silabs Gecko UART Driver
Introduces the location property and adds the ability to use values
generated by the device tree configuration.

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-16 15:59:37 -05:00
qianfan Zhao
10bdfcfdbe boards: same70: Enable SPI0 on dts
Enable the SPI interface on Arduino Shield(J505 Header) default

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
2018-10-16 14:01:29 -05:00
Johann Fischer
d10e624907 boards: reel_board: add ssd1673 node and fixup
Add ssd1673 node and fixup

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-10-16 14:54:47 -04:00
Mathieu Audat
66a259a22a boards: correct config for openocd for stm32373c
The config file sourced in openocd.cfg is the nuclean_f3 one instead of the one for
the stm32373c.

This makes it impossible to flash the stm32373c evaluation board rev.B:
	Error: open failed
	in procedure 'init'
	in procedure 'ocd_bouncer'

	error: command exited with status 1:
	/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/openocd -s
	/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts
	-f
	/home/maudat/repo_upstream/zephyr/boards/arm/stm32373c_eval/support/openocd.cfg
	-c init -c targets -c 'reset halt' -c 'flash write_image erase
	/home/maudat/repo_upstream/zephyr/samples/basic/blinky/build/zephyr/zephyr.bin
	0x8000000' -c 'reset halt' -c 'verify_image
	/home/maudat/repo_upstream/zephyr/samples/basic/blinky/build/zephyr/zephyr.bin
	0x8000000' -c 'reset run' -c shutdown

Replace the file sourced by stm32f3discovery.cfg to flash successfully.

Signed-off-by: Mathieu Audat <mathieu.audat@savoirfairelinux.com>
Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
2018-10-16 10:27:23 -04:00
Yannis Damigos
017a3515e8 samples/sensor/lsm303dlhc: Add LSM303DLHC sample
Add sample application for LSM303DLHC, ST MEMS
system-in-package featuring a 3D digital linear
acceleration sensor and a 3D digital magnetic
sensor.

Enable sample to build on stm32f3_disco board
during sanitycheck.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-10-15 12:47:13 -05:00
Yannis Damigos
93e049a67a boards/arm/stm32f3_disco: Enable LSM303DLHC MEMS sensors
Enable LSM303DLHC, ST MEMS system-in-package featuring
a 3D digital linear acceleration sensor and a 3D digital
magnetic sensor, on stm32f3_disco board.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-10-15 12:47:13 -05:00
Christian Taedcke
9b2475e175 boards: stm32f746g_disco: Update peripheral mapping doc
Sync peripheral mapping documentation with the Nucleo F429ZI board doc
and add missing information about Ethernet and the button.

Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-10-15 12:01:22 -05:00
Christian Taedcke
1cb31b1373 boards: stm32f746g_disco: Enable Ethernet
This adds Ethernet support for the ST STM32F746G Discovery board.

Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-10-15 12:01:22 -05:00
Christian Taedcke
6e50c39b31 boards: stm32f746g_disco: Update board yaml
This adds the following information:
- sram size
- flash size
- gpio support

Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-10-15 12:01:22 -05:00
Andrei Gansari
3d72216bce boards: mimxrt1050_evk: EVKB documentation update
EVKB (rev A1) board was added to the documentation.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
2018-10-12 13:54:32 -05:00
Sebastian Bøe
4e5ae8e582 boards: yaml: Use corrrect toolchain name
Use the name 'gnuarmemb' instead of 'gccarmemb' when declaring
toolchain compatibility.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-10-12 11:04:38 -04:00
Armando Visconti
770197925b board: 96b_argonkey: Add on-board MP34DT05 microphone support in BSP
This commit is taking care of following stuff:

1. pinmux: STM32F4 micro is using I2S5_CK and I2S_SD to interface with
   on-board microphone.

2. default configuration:
     - enable I2S5 and configure PLLI2S properly to generate
       I2SxCLK = 128MHz.
     - enable DMA

Note:
 As stated in issue #9028 we needed to take care of a known SPI/I2S bug
 implementing the following two actions:

 A. APB2 clock has been slowed down to 42MHz.
 B. The SPI/I2S clock gpio speed has been set to very_high_speed.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-10-11 14:46:56 -04:00
Gil Pitney
ab09674e4c samples: net: include sockets echo sample build in cc3220sf sanitycheck
Previously, wifi-enabled samples were not built by sanitycheck for the
cc3220sf_launchxl.

This patch gets the sockets echo sample to build.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-10-11 15:51:57 +03:00
Kumar Gala
0acc0fdd4b soc: silabs: efm32hg: Move USART fixups from board to SoC
The USART fixup in the board dir really are SoC level fixup's.  So move
them there and remove the board fixup file since there isn't anything in
it now.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-10 13:04:09 -05:00
Kumar Gala
a3e7ca40f1 boards: arm: stm32_mini_a15: Remove deprecated board
The board was scheduled to be removed during the 1.11 release.  Remove
it now.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-10 12:16:38 -05:00
Marcio Montenegro
873821c273 boards: arm: Add support for Silabs EFM32HG-SLSTK3400A
The EFM32 Happy Gecko USB-enabled kit contains sensors and
peripherals demonstrating some of the EFM32HG MCU capabilities.
This patch add basic support for this board.

Signed-off-by: Marcio Montenegro <mtuxpe@gmail.com>
Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-10-10 12:00:06 -05:00
Kumar Gala
ed5139a5e5 boards: silabs: Convert boards to use device tree for LEDs & Buttons
Convert over SiLabs based boards to use device tree instead of board.h
to describe buttons & LEDs.  There are a few boards that the button
gpio flags need validation.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-09 22:34:56 -04:00
Kumar Gala
8a830bfba2 boards: atmel: Convert boards to use device tree for LEDs
Convert over Atmel based boards to use device tree instead of board.h to
describe LEDs.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-09 11:32:04 -04:00
Manivannan Sadhasivam
887c74a365 boards: 96b_nitrogen: adapt to the board configuration guidelines
As per default board configuration guidelines, this commit updates
96Boards Nitrogen board.

Following changes are done:

- Enable I2C0 and SPI0 in board dts
- Add exposed peripherals in board Kconfig
- Update board yaml
- Remove config option to select board
- Update documentation for UART, I2C and SPI

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-10-08 12:57:43 -04:00
Manivannan Sadhasivam
5c2d2a812c boards: 96b_neonkey: adapt to the board configuration guidelines
As per default board configuration guidelines, this commit updates
96Boards Neonkey board.

Following changes are done:

- Enable I2C2 in board dts
- Add exposed peripherals in board Kconfig
- Update board yaml
- Remove config option to select board
- Update documentation for SPI

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-10-08 12:57:43 -04:00
Manivannan Sadhasivam
154b68d3e5 boards: 96b_carbon_nrf51: adapt to the board configuration guidelines
As per default board configuration guidelines, this commit updates
96Boards Carbon nRF51 board.

Following changes are done:

- Enable I2C0 in board dts
- Update board yaml
- Remove config option to select board
- Update documentation for SPI

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-10-08 12:57:43 -04:00
Manivannan Sadhasivam
82cddbbf43 boards: 96b_carbon: adapt to the board configuration guidelines
As per default board configuration guidelines, this commit updates
96Boards Carbon board.

Following changes are done:

- Enable exposed I2C2 in dts
- Only enable basic peripherals in board defconfig
- Add exposed peripherals in board Kconfig
- Update documentation for SPI

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-10-08 12:57:43 -04:00
Manivannan Sadhasivam
11f3ddfc28 boards: 96b_argonkey: adapt to the board configuration guidelines
As per default board configuration guidelines, this commit updates
96Boards Argonkey board.

Following changes are done:

- Enable exposed SPI1
- Update yaml file
- Only enable basic peripherals in board defconfig
- Add exposed peripherals in board Kconfig

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-10-08 12:57:43 -04:00
Christian Taedcke
9a71c837ab boards: efm32wg_stk3800: Fix wrong doc for button pins
Buttons are on PB9 and PB10.
Also add credit for the board image.

Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-10-08 12:55:34 -04:00
Kumar Gala
1fc79a0d04 boards: nrf: Convert boards to use device tree for LEDs & Buttons
Convert over NRF based boards to use device tree instead of board.h to
describe buttons & LEDs.  There are a few boards that the button gpio
flags need validation.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-08 12:53:18 -04:00
Kumar Gala
db74c62398 gpio: sx1509b: Add device tree support for GPIO generation
Add the missing bits to the yaml & dts to enable GPIO pin generation
based on device tree.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-08 12:53:18 -04:00
Pushpal Sidhu
433f76ff8b boards: arm: Add nucleo_l4r5zi board support
This board features a STM32L4R5ZI processor.

Signed-off-by: Pushpal Sidhu <psidhu.devel@gmail.com>
2018-10-08 12:52:00 -04:00
Vincenzo Frascino
3efd451c9d arm: beetle: Fix UART1 IRQ number
The commit de78ecd "arm: beetle: Use device tree for IRQs" introduces
a regression related to UART1 IRQ.

On arm beetle the UART1 has IRQ number 2.

This patch restores the functionality modifying the arm beetle device
tree file.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
2018-10-08 12:26:01 -04:00
Sebastian Bøe
8eb734cd82 DT: Rename from dts.fixup to dts_fixup.h
The Zephyr configuration system uses many different files in many
different formats. It makes it a lot easier for users to understand
what these files do if when we use the correct file extensions.

To this end we rename the dts.fixup files to the correct file
extension '.h'.

This is a breaking change for out-of-tree fixup files. Such files will
be detected and given an appropriate error message.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-10-08 11:38:56 -04:00
Kumar Gala
3687103fff boards: lpcxpresso54114_m0: fix pinmux.c
Some of the headers referenced in the pinmux.c file don't exist.  Match
the includes that the lpcxpresso54114_m4 pinmux.c file uses.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-04 18:59:45 -05:00
Kumar Gala
f387f26a1f boards: sam_e70_xplained: Move led/button info to DTS
Move the details about LEDs and Buttons from board.h into device tree.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-04 07:49:03 -05:00
Kumar Gala
3bc13842f9 boards: sam4s_xplained: Move led/button info to DTS
Move the details about LEDs and Buttons from board.h into device tree.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-04 07:49:03 -05:00
Kumar Gala
0da9c7b2c6 boards: atmel: Enable gpio in board.yaml
List gpio as a support feature of the sam4s_xplained & sam_e70_xplained
boards.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-03 12:26:12 -05:00
Armando Visconti
17145c15b9 boards: arm: 96b_argonkey.yaml: Add i2c/spi/gpio to the supported list
Add i2c/spi/gpio to the supported list to enable the CI to correctly
run the 96b_argonkey board sample.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-10-03 10:23:22 -05:00
Kumar Gala
de78ecd79c arm: beetle: Use device tree for IRQs
Get the IRQs for the devices we define in the device tree from the dts
file.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-03 09:47:25 -05:00
Sebastian Bøe
25e7316ea7 boards: dts: Fix dtc warning in board dts files
This patch is equivalent to 7b0ce85242,
but applied to buttons. As stated in the previous commit message:

This change aims at fixing 'unit_address_vs_reg' warning in arm based
boards. This warning pops up when a node name is made up with an
address (node_name@xx) but does not contain a reg property. This case
was encountered for led nodes for instance, where a reg property has
no meaning.  Fix this by changing node_name@xx to node_name_xx which
removes the guilty '@XX' syntax but preserves node_name uniqueness.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-10-03 08:22:44 -05:00
Maureen Helm
3f5a4f1df5 boards: 96b_argonkey: Add missing dts fixup for lsm6dsl sensor
The device name was missing for the lsm6dsl sensor in the 96b_argonkey
dts fixup, causing build warnings in tests/drivers/build_all.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-10-03 08:20:59 -05:00
Vincent van der Locht
b941561e74 soc: sam4s: added missing devices in sam4s range
added sam4s16b, sam4s8c, sam4s8b, sam4s4c, sam4s4b,
sam4s4a, sam4s2c, sam4s2b and sam4s2a.
Used the same order as in the data sheet and code structure
equal to same70. Updated the sam4s_xplained board to match
the altered .dtsi location of the specific SoC.

Signed-off-by: Vincent van der Locht <vincent@vlotech.nl>
2018-10-02 16:17:54 -05:00
Sebastian Bøe
fdae117b45 boards: dts: Fix dtc warning in board dts files
This patch is equivalent to 7b0ce85242,
but applied to more boards. As stated in the previous commit message:

This change aims at fixing 'unit_address_vs_reg' warning in arm based
boards. This warning pops up when a node name is made up with an
address (node_name@xx) but does not contain a reg property. This case
was encountered for led nodes for instance, where a reg property has
no meaning.  Fix this by changing node_name@xx to node_name_xx which
removes the guilty '@XX' syntax but preserves node_name uniqueness.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-10-02 11:03:30 -05:00
Maureen Helm
ad32e3b543 drivers: boards: Merge HAS_DTS_SPI_PINS with HAS_DTS_SPI
Every board that uses dts-enabled spi drivers has a board-level dts, so
there is no need to have separate configs HAS_DTS_SPI_PINS and
HAS_DTS_SPI.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-10-01 21:15:06 -05:00
Maureen Helm
eeb4411de7 drivers: boards: Merge HAS_DTS_GPIO_DEVICE with HAS_DTS_GPIO
Every board that uses dts-enabled gpio drivers has a board-level dts, so
there is no need to have separate configs HAS_DTS_GPIO_DEVICE and
HAS_DTS_GPIO.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-10-01 21:15:06 -05:00
Maureen Helm
89ccead382 drivers: boards: Merge HAS_DTS_SPI_DEVICE with HAS_DTS_SPI
Every board that uses dts-enabled spi drivers has a board-level dts, so
there is no need to have separate configs HAS_DTS_SPI_DEVICE and
HAS_DTS_SPI.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-10-01 21:15:06 -05:00
Maureen Helm
75bc6ba454 drivers: boards: Merge HAS_DTS_I2C_DEVICE with HAS_DTS_I2C
Every board that uses dts-enabled i2c drivers has a board-level dts, so
there is no need to have separate configs HAS_DTS_I2C_DEVICE and
HAS_DTS_I2C.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-10-01 21:15:06 -05:00
Kumar Gala
619049a74c boards: nrf51_ble400: Convert to using dts for led/button
Move the led & button info from board.h into dts file.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-01 21:09:58 -05:00
Armando Visconti
6cb20ab4c1 boards: 96b_argonkey: Kconfig.board: Fix ArgonKey board building
Argonkey board building has been recently broken by a LSM6DSL sensor
driver fix (see commit: a013ce3bf0).

The board configuration file must now enable HAS_DTS_GPIO_DEVICE macro
instead of HAS_DTS_SPI_DEVICE.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-10-01 10:36:46 -05:00
Kumar Gala
b9ee9bba2c dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F7 dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the F7 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-28 11:46:03 -05:00
Kumar Gala
52646287fd dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F4 dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the F4 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-28 11:46:03 -05:00
Kumar Gala
6ab22d4c56 dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F3 dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the F3 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-28 11:46:03 -05:00
Kumar Gala
fe86919cca dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F2 dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the F2 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-28 11:46:03 -05:00
Kumar Gala
46592e6398 dts: arm: st: Remove use of CONFIG_SOC_* from STM32 L4 dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the L4 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-27 10:58:56 -05:00
Kumar Gala
223d426663 dts: arm: st: Remove use of CONFIG_SOC_* from STM32 L0 dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the L0 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-27 10:58:56 -05:00
Kumar Gala
aecc4c5d2c dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F1 dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the F1 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-27 10:58:34 -05:00
Kumar Gala
ebd0ff9f28 dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F0 dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the F0 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-27 08:09:42 -05:00
Erwan Gouriou
c0d58d1a60 boards: nucleo_f207zg: Fix default config
According to GH7151: boards: Move existing boards to
"default configuration guidelines"
Add USART6 Arduino compatible config

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-27 06:36:18 -05:00
Erwan Gouriou
37e5a9dc8d boards: nucleo_f413zh: Fix default config
According to GH7151: boards: Move existing boards to
"default configuration guidelines"
Add SPI1 Arduino compatible config
Add I2C1 Arduino compatible config
Add USART6 Arduino compatible config
Disable Features by default.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-27 06:36:18 -05:00
Erwan Gouriou
96ddb42f6c boards: nucleo_f412zg: Fix default config
According to GH7151: boards: Move existing boards to
"default configuration guidelines"
Add SPI1 Arduino compatible config
Add I2C1 Arduino compatible config
Add USART6 Arduino compatible config
Disable Features by default.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-27 06:36:18 -05:00
Erwan Gouriou
228b148b18 boards: nucleo_f429zi: fix PWM instance
Fix desynch between dts and Kconfig settings

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-27 06:36:18 -05:00
Erwan Gouriou
78935f938b boards: nucleo_f429zi: Enable USB
Enable USB on nucleo_f249zi.
Update clock to allow precise USB clock.
Tested on samples/subsys/usb/cdc_acm

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-27 06:36:18 -05:00
Maureen Helm
c73d5c7880 boards: mimxrt1050_evk: Enable lpuart3 for bluetooth hci
Enables instance 3 of the lpuart driver, adds dts fixups, and configures
pinmuxes to use bluetooth hci on the mimxrt1050_evk board. Updates board
documentation accordingly.

Tested with samples/bluetooth/peripheral_hr, with frdm_kw41z attached as
an arduino shield running the nxp hci controller application.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-09-27 05:55:55 +05:30
Maureen Helm
8d89815084 boards: Remove redundant "select HAS_DTS_I2C"
The i2c drivers now consistently select HAS_DTS_I2C, so we no longer
need to select it at the board level.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-09-27 05:54:54 +05:30
Ryan QIAN
6585fe45b1 boards: arm: Add board support for mimxrt1060_evk
Add board support files for mimxrt1060_evk, the development board for
i.MXRT1062 (CM7) SoC.

- Add pinmux, dts, doc.
- External QSPI flash hasn't been configured yet. So code can be loaded
to SRAM for now.
- Tested samples: hello_world, philosophers, synchronization,
basic/blinky, and basic/button.

Signed-off-by: Ryan QIAN <jianghao.qian@nxp.com>
2018-09-26 18:14:22 -05:00
Maureen Helm
c62815a3b0 boards: nucleo_f091rc: Add i2c to list of supported features
The i2c_slave_api test was not getting executed on the nucleo_f091rc
board due to a missing supported features list.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-09-26 08:06:11 +05:30
Erwan Gouriou
b47067b768 boards/shields: Clean-up connectors Kconfig options
Cleanup unused leftover from shield development.
These flags are not actually useful, nor used as dts connectors
are sufficient to control board to shield binding is
operational and dtc provides meaningful error message
when this is not the case.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-25 14:28:15 -05:00
Erwan Gouriou
7b0ce85242 boards: dts: Fix dtc warning in stm32 board dts files
This change aims at fixing 'unit_address_vs_reg' warning in
STM32 based boards.
This warning pops up when a node name is made up with an address
(node_name@xx) but does not contain a reg property.
This case was encountered for led nodes for instance,
where a reg property has no meaning.
Fix this by changing node_name@xx to node_name_xx which removes the
 guilty '@xx' syntax but preserves node_name uniqueness.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-26 00:34:46 +05:30
Reto Schneider
80b8da69f2 boards: arm: nrf52840_pca10056: Fix typo
The nrf52840_pca10056 defconfig apparently started off as a copy of the
one for nrf52840_pca10040 and one comment was forgotten to be adapted
accordingly.

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
2018-09-24 07:55:51 -05:00
Bryan O'Donoghue
674ccd3698 boards: arm: atsamd21: Add SAMD21 XPlained board
This patch adds support of the SAMD21 XPlained board. The board has a
similar pinout to the SAMD20 XPlained with a different pin-mapping.

Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
2018-09-21 17:52:32 -07:00
Nazar Chornenkyy
3591c85290 boards: arm: Add Cypress PSoC6 cy8ckit_062_wifi_bt_m4 board support
Added cy8ckit_062_wifi_bt_m4 board configuration to build FW for CM4
core.
CM4 core does not start itself, it have to be started by CM0+ FW.

Signed-off-by: Nazar Chornenkyy <nazar.chornenkyy@cypress.com>
Signed-off-by: Oleg Kapshii <oleg.kapshii@cypress.com>
2018-09-21 18:50:59 -04:00
Nazar Chornenkyy
b9b2e58db4 boards: arm: Add Cypress PSoC6 cy8ckit_062_wifi_bt_m0 board support
Added cy8ckit_062_wifi_bt_m0 board configuration to build FW for CM0+
core.

Signed-off-by: Nazar Chornenkyy <nazar.chornenkyy@cypress.com>
Signed-off-by: Oleg Kapshii <oleg.kapshii@cypress.com>
2018-09-21 18:50:59 -04:00
Erwan Gouriou
1ac3517c6a dts: Add missing 'compatible' property in flash base nodes
'compatible' property was missing in flash base nodes for
some .dtsi files. Fix this.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-21 07:23:49 -07:00
Johann Fischer
963f97d035 drivers: apds9960: use interrupt output for sample
This patch changes the behavior of the sensor. The sensor
will remain in sleep mode after initialization and will only
run the measurements once when sample_fetch is called.
This optimizes the power consumption of the sensor as it
stays in sleep mode most of the time.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-09-21 09:02:00 -05:00
Erwan Gouriou
de24cd69de boards/arm: Fix button dts syntax for stm32 based boards
This change aims at fixing 'unit_address_vs_reg' warning in
STM32 based boards.
This warning pops up when a node name is made up with an address
(node_name@xx) but does not contain a reg property.
This case was encountered for button nodes for instance,
where a reg property has no meaning.
Fix this by changing node_name@xx to node_name_xx which removes the
guilty '@XX' syntax but preserves node_name uniqueness.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-09-20 22:51:30 -07:00
Adithya Baglody
d547c9b26c boards: mps2_an385: Enable userspace for MPS2_AN385.
This patch will enable the userspace.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2018-09-20 20:35:25 -04:00
Johann Fischer
b64b9e7846 boards: arm: dts: remove unnecessary interrupt flag
Remove unnecessary GPIO_INT_ACTIVE_LOW flag from led node.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-09-20 16:15:24 -07:00
Piotr Zięcik
1c16cfcc30 arch: arm: Make ARM_MPU the sole option controlling MPU usage
This commit removes all MPU-related (ARM_CORE_MPU and NXP_MPU)
options exept ARM_MPU, which becomes master switch controlling
MPU support on ARM.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2018-09-20 14:16:50 +02:00
Piotr Zięcik
d9cc147c60 arch: nxp_kinetis: Remove HAS_SYSMPU option.
The HAS_SYSMPU option is just selecting NXP_MPU option,
which could be also controlled through menuconfig.

This commit removes the HAS_SYSMPU option and replaces
its usage by NXP_MPU option.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2018-09-20 14:16:50 +02:00
Piotr Zięcik
edfcab428b arch: nxp_imx: Remove ARM_MPU_IMX_RT option.
The ARM_MPU_IMX_RT option is just selecting ARM_MPU option,
which could be also controlled through menuconfig.

This commit removes the ARM_MPU_IMX_RT option and replaces
its usage by ARM_MPU option.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2018-09-20 14:16:50 +02:00
Piotr Zięcik
9331064ff9 arch: nrf52: Remove ARM_MPU_NRF52X option.
The ARM_MPU_NRF52X option is just selecting ARM_MPU option,
which could be also controlled through menuconfig.

This commit removes the ARM_MPU_NRF52X option and replaces
its usage by ARM_MPU option.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2018-09-20 14:16:50 +02:00
Piotr Zięcik
c4cd4cfe7f arch: beetle: Remove ARM_MPU_ENABLE option.
The ARM_MPU_ENABLE option is just selecting ARM_MPU option,
which could be also controlled through menuconfig.

This commit removes the ARM_MPU_ENABLE option and replaces
its usage by ARM_MPU option.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2018-09-20 14:16:50 +02:00
Piotr Zięcik
eb1ee5f1ee arch: stm32: Remove STM32_ARM_MPU_ENABLE option.
The STM32_ARM_MPU_ENABLE option is just selecting ARM_MPU option,
which could be also controlled through menuconfig.

This commit removes the STM32_ARM_MPU_ENABLE option and replaces
its usage by ARM_MPU option.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2018-09-20 14:16:50 +02:00
Maureen Helm
ca6a232ed4 mimxrt1050_evk: Configure an lpspi instance and pins
Enables an instance of the lpspi peripheral, configures the pinmuxes,
and updates the board documentation accordingly.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-09-19 09:15:29 -04:00
Kumar Gala
271f8421af boards: arm: nrf: Fix dts avoid_unnecessary_addr_size warn
We get the following warning when building nrf52810_pca10040:

	Warning (avoid_unnecessary_addr_size): unnecessary
	#address-cells/#size-cells without "ranges" or child
	"reg" property in /buttons

Remove #address-cells/#size-cells since they aren't needed for gpio_keys

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-18 18:24:25 -07:00
Kumar Gala
def322fe6d dts: Cleanup warnings associated with cpu node
When we fixed the missing reg property in the cpu node, we forgot to
add #address-cells & #size-cells for the node.

This fix the following warnings we get:
	Warning (reg_format): "reg" property in /cpus/cpu@0 has invalid
	length (4 bytes) (#address-cells == 2, #size-cells == 1)

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-18 16:13:21 -07:00
Kumar Gala
8acf21d557 boards: arm: nrf52810_pca10040: Fix dts avoid_unnecessary_addr_size warn
We get the following warning when building nrf52810_pca10040:

	Warning (avoid_unnecessary_addr_size): unnecessary
	#address-cells/#size-cells without "ranges" or child
	"reg" property in /gpio_keys

Remove #address-cells/#size-cells since they aren't needed for gpio_keys

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-18 16:12:38 -07:00
Kumar Gala
6856ad1423 dts: Cleanup warnings associated with flash and memory nodes
We get several warnings of the form:

	Warning (unit_address_vs_reg): /flash: node has a reg or ranges
	property, but no unit name

or

	Warning (unit_address_vs_reg): /memory: node has a reg or ranges
	property, but no unit name

Fix by adding unit address that is missing to flash & memory nodes.
Additionally the Silabs memory nodes didn't have a compatiable or
device_type, so add those properties as well.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-18 12:19:05 -07:00
Kumar Gala
716047f3b1 dts: Cleanup warnings associated with unit_address_vs_reg and cpu node
We get several warnings of the form:

	Warning (unit_address_vs_reg): /cpus/cpu@0: node has a
	unit name, but no reg property

Fix by adding reg property to missing cpu nodes.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-18 12:18:49 -07:00
Kumar Gala
16fa966f14 dts: Cleanup warnings associated with gpio_keys that aren't buttons
We get several warnings of the form:

 	Warning (unit_address_vs_reg): /gpio_keys/joystick@0:
	node has a unit name, but no reg property

Fix by dropping the unit address and renaming the node names to include
more information about the gpio_key.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-18 10:44:28 -07:00
Carles Cufi
62d7a7a5a5 boards: arm: nrf: Update supported features
Update all supported features and peripherals in the official set of
boards from Nordic Semiconductor.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-09-17 20:53:31 -04:00
Kumar Gala
236a2d6f13 dts: arm: nrf: Remove use of CONFIG_SOC_* from Nordic dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  This lets us
remove:

CONFIG_SOC_NRF51822_QFAA
CONFIG_SOC_NRF51822_QFAB
CONFIG_SOC_NRF51822_QFAC
CONFIG_SOC_NRF52810_QFAA
CONFIG_SOC_NRF52832_QFAA
CONFIG_SOC_NRF52832_CIAA
CONFIG_SOC_NRF52832_QFAB
CONFIG_SOC_NRF52840_QIAA

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-15 15:33:43 -05:00
Kumar Gala
846121761f dts: arm: atmel_same70: Remove use of CONFIG_SOC_* from Atmel dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  This lets us
remove:

CONFIG_SOC_PART_NUMBER_SAME70*

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-15 15:33:43 -05:00
Kumar Gala
6e240da26f dts: Use new DT_SIZE_{K,M} macros
Now that we have a common DT_SIZE_K macro use it instead of defining
__SIZE_K eveywhere.  We also have DT_SIZE_M, so use that in a few
places as well.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-15 09:23:07 -05:00
Yannis Damigos
d3c515ecce boards/arm: Enable RTC on STM32F3 based boards
Enable RTC on STM32F3 based boards.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-14 22:48:54 -05:00
Yannis Damigos
e688d5c6ce boards/arm: Enable RTC on STM32F4 based boards
Enable RTC on STM32F4 based boards.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-14 22:48:54 -05:00
Kumar Gala
912b4a276c dts: arm: silabs: Remove use of CONFIG_SOC_* from Silabs SoC dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  This lets us
remove:

CONFIG_SOC_PART_NUMBER_EFM32WG990F256
CONFIG_SOC_PART_NUMBER_EFR32FG1P133F256GM48

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-14 10:43:47 -05:00
Kumar Gala
52ebc02cf2 dts: arm: ti: Remove use of CONFIG_SOC_* from TI SoC dts files
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  This lets us
remove:

CONFIG_SOC_CC3220SF
CONFIG_SOC_MSP432P401R

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-14 10:43:47 -05:00
Anas Nashif
70d819b405 arm: soc: move arm SoCs to top-dir
Move the SoC outside of the architecture tree and put them at the same
level as boards and architectures allowing both SoCs and boards to be
maintained outside the tree.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-09-13 00:56:48 -04:00
Anas Nashif
81b272119a docs: fixed documenation pointers
Fixed URL to documentation, now latest docs are under /latest/..
Fixes #9932

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-09-12 12:03:18 -04:00
Kumar Gala
0329ec7e6d boards: nucleo_f429zi: Fix typo in the docs
Docs had one case of calling the board nucleo_f249zi instead of
nucleo_f429zi

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-12 00:09:52 -05:00
Paweł Zadrożniak
7c2197f2d8 boards: nrf: uart: Moved UART pin configuration to DTS (nRF boards)
UART pins (TX, RX, RTS, CTS) are now configured in DTS files.
RTS and CTS definitions are optional. If flow control is enabled
and RTS/CTS pins are not defined, then compiler will issue
an error message.

Signed-off-by: Paweł Zadrożniak <pawel.zadrozniak@nordicsemi.no>
2018-09-11 23:29:50 -05:00
Emanuele Di Santo
6ca042d3bd boards: arm: nrf52840_pca10056: use dts for LED and button config
The LEDs, buttons and necessary aliases are now configured via dts.
This commit breaks the samples under boards/nrf52/mesh:
- onoff-app
- onoff_level_lighting_vnd_app

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2018-09-11 11:42:20 -05:00
Emanuele Di Santo
50e05a544e boards: arm: nrf52832_pca10040: use dts for LED and button config
The LEDs, buttons and necessary aliases are now configured via dts.
This commit breaks the sample under samples/boards/nrf52/power_mgr.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2018-09-11 11:42:20 -05:00
Emanuele Di Santo
7eb26dc236 boards: arm: nrf52840_pca10059: use dts for LED and button config
The LEDs, buttons and necessary aliases are now configured via dts.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2018-09-11 11:42:20 -05:00
Emanuele Di Santo
24c6407c3b boards: arm: nrf52810_pca10040: use dts for LED and button config
The LEDs, buttons and necessary aliases are now configured via dts.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2018-09-11 11:42:20 -05:00
Emanuele Di Santo
e84709e169 boards: arm: nrf51_pca10028: use dts for LED and button configuration
The LEDs, buttons and necessary aliases are now configured via dts.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2018-09-11 11:42:20 -05:00
Alexander Polleti
dc60f86d89 boards: add usb to stm32f4_disco
This patch adds USB capabilities to the stm32f4 discovery board.
As the board has a MicroUSB port that I would like to use as stdout I
just added USB. The needed entry within pinmux.c is already there but
USB was missing in the dts file and documentation.

I tested it with the upcomming commit.

Signed-off-by: Alexander Polleti <metapsycholo@gmail.com>
2018-09-11 11:41:14 -05:00
Filip Kubicz
990a0e8c71 dts: add SPI bindings for nRF family
This change adds DTS definition of SPI device for nRF chips.
It also removes SPI pin configuration from Kconfig and moves it to
chip DTS.

Signed-off-by: Filip Kubicz <filip.kubicz@nordicsemi.no>
2018-09-11 11:41:37 +02:00
Filip Kubicz
5c3992f34f dts: update I2C bindings for nRF chips
Change 'nRF5' family names to 'nRF' in I2C DTS.

Signed-off-by: Filip Kubicz <filip.kubicz@nordicsemi.no>
2018-09-11 11:41:37 +02:00
Marti Bolivar
d4ac7cb948 boards: fix up reel_board Kconfig warnings
When I2C and SPI are not used (such as when building a simple
bootloader for this target), the current Kconfig is generating a fair
bit of warning spew. Clean it up by moving some explicit _defconfig
settings into defaults.

Signed-off-by: Marti Bolivar <marti@foundries.io>
2018-09-06 09:58:38 -04:00
Piotr Mienkowski
b68cf999d6 board: efr32_slwstk6061a: add support for flashing via OpenOCD
The version of OpenOCD provided by Zephyr SDK is too old and does not
contain support for EFR32FG1P chip. This patch assumes that user
compiles and installs the newest version of OpenOCD.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2018-09-03 12:47:26 -04:00
Maureen Helm
4f0f8ddeaf boards: Remove CONFIG_OSC_EXTERNAL defconfigs from non-kinetis boards
This config is only valid for kinetis boards. Fixes the Kconfig warning:

warning: the choice symbol OSC_EXTERNAL (defined at
arch/arm/soc/nxp_kinetis/Kconfig:53) was selected (set =y), but no
symbol ended up as the choice selection.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-08-30 10:51:57 -04:00
Stanislav Poboril
7c08fdac6e doc: fix wrong board name in NXP LPCXpresso54114 doc
The LPCXpresso54114 command line example was using a wrong board
name which has been renamed after adding the support for the
Cortex-M0+ core.

Fixes #9649

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
2018-08-30 09:23:15 -04:00
Justin Watson
4e551aabb6 sam: adc: Updated SAM ADC driver.
Updated to work with new ADC API.

Signed-off-by: Justin Watson <jwatson5@gmail.com>
2018-08-29 13:46:57 -04:00
Andrzej Głąbek
9e161a5a01 tests: adc_api: Add configurations for nRF5 boards
This adds to the adc_api test board-specific configurations
for the following boards:
- nrf51_pca10028
- nrf52_pca10040
- nrf52840_pca10056

"adc" is indicated as supported in the yaml files for these boards
so that they are included in sanitycheck.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-08-29 13:46:57 -04:00
Andrzej Głąbek
5a1ef7b18b boards: nrf: Enable ADC nodes in DTS for nRF boards
ADC nodes are enabled in DTS for the following nRF development kits:
- nrf51_pca10028
- nrf52_pca10040
- nrf52_pca20020
- nrf52810_pca10040
- nrf52840_pca10056

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-08-29 13:46:57 -04:00
Erwan Gouriou
18b8a633b6 sensors: introduce kconfig named choices
Use Kconfig specific object "named choices".
Aim is to allow to define config choices selection in Kconfig.*
files instead of _defconfig and hence allow to keep flags
activation conditional.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-08-29 09:05:51 -04:00
Anas Nashif
6a01c69f9b nrf52_pca10040: get the erase block size from dts
Sample expect that to come from DTS, previously it was hardcoded in the
sample.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-08-28 20:06:58 -04:00
Aurelien Jarno
4f59c62441 boards: nucleo_l432kc: mark nvs sample as supported
Now that the corresponding flash definitions have been added to the DTS,
it's possible to enable the nvs sample in the NUCLEO-L432KC board.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2018-08-28 13:11:45 -05:00
Aurelien Jarno
c73f15a44d boards: nucleo_l432kc: add a storage flash partition
This patch adds DT description of generic storage flash partition using
the last 16kB of flash when CONFIG_FS_FLASH_STORAGE_PARTITION is
defined. This can be used for FCB or NVS filesystems.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2018-08-28 13:11:45 -05:00
David B. Kinder
1d1a4b321b doc: fix misspellings in reST files
Fix misspellings missed during regular reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-08-28 13:59:38 -04:00
Henrik Brix Andersen
9a5fdefa81 boards: nrf52840_pca10059: Fix pyOCD configuration
Use the correct pyOCD target type for the NRF52840.
This fixes b92436a13f.

Tested with: Atmel ICE Debugger

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-08-27 11:14:52 -05:00
Maureen Helm
9039d6fd6e samples: nvs: Use depends_on to select platforms
Removes the platform whitelist, leaving just the depends_on/supported
pattern to select which platforms the sample can run on.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-08-25 07:13:56 -07:00
Henrik Brix Andersen
b92436a13f boards: nrf52840_pca10059: Add pyOCD configuration
Add support for using non-jlink programmers through pyOCD.

Tested with: Atmel ICE Debugger

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-08-24 14:27:37 -05:00
Henrik Brix Andersen
12a77e5092 boards: nrf52_adafruit_feather: Add pyOCD configuration
Add support for using non-jlink programmers through pyOCD.

Tested with: Atmel ICE Debugger

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-08-24 13:15:02 -05:00
Diego Sueiro
c17fcf53cd boards: Add support for WaRP7 board
This patch is to add support for the WaRP7 board which has an i.MX7
Solo SoC.
The Zephyr is running on the Cortex M4 core and the following features
were validated on this board:

* GPIO: User Switch detection and sensors interrupt
* UART: Zephyr console
* I2C: Communication with fxos8700 and fxas21002 sensors

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-08-21 18:54:41 -05:00
Carles Cufi
950c3466a2 boards: reel_board: Remove old reference to GPIO_NRF5
PR #8729 removed the old GPIO_NRF5 driver in favor of an
nrfx-based one. The reel_board still references the old one,
causing CI failures.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-08-17 18:57:11 -07:00
Johann Fischer
bff5f470af boards: add basis support for the reel board
Add basic support for the reel board

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-08-17 13:19:20 -07:00
Sebastian Bøe
9e18b4f03f kconfig: BT: Default to using BT_CTLR when BT
As reported in issue #9494, BT samples are using the off-chip
UART-based BT controller on 52810. But the on-chip BT controller is
supported on 52810, so this is the reasonable default when BT is
enabled.

This patch enables BT_CTLR by default when BT is enabled.

This resolves #9494.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-08-17 09:47:05 -07:00
Mieszko Mierunski
4f6aac1a67 dts: nrf5: Changed GPIO and GPIOTE define names
Changed names using nrf5 to nrf for consistency with other drivers.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2018-08-17 07:29:14 -07:00
Mieszko Mierunski
15813d343c boards: nrf: Changed GPIO default driver to NRFX shim
I removed GPIO configuration from board files and enabled them
as default in driver Kconfig file. All boards had GPIO ports
enabled that is why I decided to enable it by default.

Power management example was changed to use new driver.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2018-08-17 07:29:14 -07:00
Mieszko Mierunski
e99e363cc0 dts: nrf: Added DTS support for nRF51
DTS for nRF51 was missing, I updated soc and board files to
support DTS properly.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2018-08-17 07:29:14 -07:00
Kiril Zyapkov
78a9daaafd boards/arm: Enable RTC on STM32L4 boards
All supported boards from the STM32L4 series have RTC enabled
in dts.

Signed-off-by: Kiril Zyapkov <k.zyapkov@allterco.com>
2018-08-16 13:38:43 -07:00
Istvan Bisz
107efdf226 boards: nucleo_f207zg: enable usb
Enable usb on Nucleo-F207ZG board.

Signed-off-by: Istvan Bisz <istvan.bisz@t-online.hu>
2018-08-16 06:19:19 -07:00
Daniel Egger
eb737280c0 drivers: pinmux: stm32: STM32F2 added ETH support to pinmux and use it
This patch adds support for Ethernet in the STM32F2 family of
microcontrollers and enables it for the the Nucleo-F207ZG.

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
2018-08-15 08:17:48 -05:00
Olivier Gay
3ffac9981d doc: fix wrong board name in Nordic doc
The nRF52-PCA10040 command line example with cmake was using a wrong
Nordic board name.

Signed-off-by: Olivier Gay <ogay@logitech.com>
2018-08-15 13:03:58 +02:00
Carles Cufi
957262e37d build: Replace GCC ARM Embedded with GNU Arm Embedded
The old GCC ARM Embedded website on launchpad
(https://launchpad.net/gcc-arm-embedded) has been superseeded by the new
GNU Arm Embedded one
(https://developer.arm.com/open-source/gnu-toolchain/gnu-rm).

This also means a change of name from "GCC" to "GNU". Reflect this in
the enviroment variables so that the proper term is used henceforth.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-08-09 13:57:55 +02:00
Maureen Helm
7433f75e1a mimxrt1050_evk: Update jlink device name
A bug in the jlink application made it impossible to use OpenSDA
firmware with the mimxrt1052 device name, so we used the generic
Cortex-M7 device name as a workaround. This bug was fixed in jlink
V6.32h (2018-07-05), so now we can use the more specific device name.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-08-08 10:12:00 +02:00
David B. Kinder
6750b8d2e8 doc: fix misspellings in docs
Occasional scan for misspellings missed during normal doc reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-08-08 01:49:14 -05:00
Maureen Helm
5fda25af06 Revert "mimxrt1050_evk: disable sanitycheck on this board [REVERT ME]"
This reverts commit d147cc8dd4.

The board was fixed in commit 4b22ba7e4b.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-08-06 09:39:52 -05:00
Michael Scott
65af15bcc2 boards: arm: nrf52840_pca10056: add settings for WNC-M14A2A modem
These settings enable use of the WNC-M14A2A LTE-M modem as the default
network interface for the nRF52840-DK board (nrf52840_pca10056).

They include the following settings when MODEM_WNCM14A2A is selected:
- UARTE1 pin setup
- DTS / DTS fixup additions for WNC-M14A2A
- Kconfig settings for modem driver

Signed-off-by: Michael Scott <mike@foundries.io>
2018-08-06 10:43:46 +03:00
Michael Scott
01745c3844 boards: arm: frdm_k64f: add settings to use WNC-M14A2A LTE-M modem
These settings enable use of the WNC-M14A2A LTE-M modem as the default
network interface instead of ethernet.

They include the following settings when MODEM_WNCM14A2A is selected:
- UART 2 setup
- Avoid ETH_0 setup due to pin conflicts
- DTS addition for WNC-M14A2A
- Kconfig settings for modem driver

Signed-off-by: Michael Scott <mike@foundries.io>
2018-08-06 10:43:46 +03:00
Michael Scott
d917f23959 boards: arm: k64f: add settings for UART_2
UART_2 can be used with an LTE-M modem shield for FRDM_K64F.

Let's add settings for it.

Signed-off-by: Michael Scott <mike@foundries.io>
2018-08-06 10:43:46 +03:00
Erwan Gouriou
b9bbebca6c boards: 96b_argonkey, fix lsm6dsl label name
Replace LSM6DSL-SPI by LSM6DSL_SPI

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-08-01 08:41:31 -05:00
Lars Knudsen
ee7f834e00 boards: frdm_kl25z: Add mma8451q to i2c in dts
Adding MMA8451Q to i2c0 on FRDM-KL25Z

Signed-off-by: Lars Knudsen <larsgk@gmail.com>
2018-07-31 09:07:54 -05:00
Gil Pitney
e189f59031 drivers: wifi: simplelink: enable Fast Connect policy
This enables the cc3220sf_launchxl to automatically
reconnect to the last good known access point (AP).

This method avoids the need to:
- perform a wifi scan for access points on bootup (saving power);
- include hard-coded SSID/passwords in the wifi application.
- include the wifi shell in the wifi application.
- rely on more complex provisioning methods;

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-07-26 13:57:34 +03:00
Aurelien Jarno
6b039a2b5d boards: arm: stm32f723e_disco: enable I2C support
Enable the support for the 3 I2C buses of the STM32F723E-DISCO board,
connected respectively to the WM8994, the Arduino V3/STMOD+ and the
touch panel.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2018-07-25 07:19:12 -04:00
Anas Nashif
d147cc8dd4 mimxrt1050_evk: disable sanitycheck on this board [REVERT ME]
Due to bug #9054 this boards is being disable from sanitycheck
temporarily.

Revert when the board is fixed.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-07-24 09:58:18 -04:00
Emanuele Di Santo
ef935898d0 boards: arm: add nrf52840_pca10059
This commit adds support for the nrf52840_pca10059 board.
The flash partitions are configured to allow migrating from
the stock bootloader to MCUBoot.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2018-07-20 12:00:35 +02:00
Diego Sueiro
10af6c34b4 board: Add PWM support for colibri_imx7d_m4
Adds configurations and pinmux to support PWM on colibri_imx7d_m4

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-07-17 16:08:22 -05:00
Diego Sueiro
ecc891b296 drivers: Fix asserts in i.MX UART Driver
After running some tests which enable assert macro I found some issues
with the i.MX UART configuration.

This patch configures the Tx Fifo Watermark and Modem Mode accordingly.

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-07-16 11:04:18 -05:00
Arjun Warty
f5569a9dd3 frdm_k64f: dts: Addition of a Flash Partion
Addition of a Flash partition to the 'frdm_k64f.dts' file in the
currently existing 'Application Area' (Partition Location: 0x0001e000
Partition Size:0x00002000). This partitioned area can be used as a FCB
for Bluetooth and other applications.

Signed-off-by: Arjun Warty <arjun.warty@nxp.com>
2018-07-16 09:56:24 -05:00
Ioannis Glaropoulos
2663147783 boards: arm: nrf: enable UARTE on nrf52810_pca10040
This commit enables the use of UARTE on Nordic nrf52810_pca10040
development kit. It also instruct console to use UARTE (instead
of RTT).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2018-07-12 00:41:50 +02:00
Aurelien Jarno
a32b66289a boards: arm: stm32f723e_disco: enable USB FS OTG
Enable the USB FS OTG at the DTS and pinmux level. Update the
documentation accordingly.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2018-07-11 16:28:10 -05:00
Florian Gärtner
793c254ecc boards: Add support for nRF52 Adafruit Feather
The Adafruit Feather nRF52 is based on an Nordic Semidconductor nRF52832
based development board with UART, SPI, LED and onboard lithium polymer
battery charger.

Signed-off-by: Florian Gärtner <florian.gaertner@ledcity.ch>
2018-07-11 16:51:10 +02:00
Sean Nyekjaer
4d3e13d1e0 boards: add board and DTS definitions for the SAMD20 Xplained Pro Board
Complete board specifications for the SAMD20 Xplained Board.

Signed-off-by: Sean Nyekjaer <sean@nyekjaer.dk>
2018-07-10 12:56:44 -05:00
Christian Taedcke
899bdb1371 boards: arm: Add support for Silabs EFR32 SLWSTK6061A board
The EFR32 Flex Gecko Wireless Starter Kit contains sensors and
peripherals demonstarting the usage of the EFR32FG1P SoC
family. This patch add basic support for this board.

Signed-off-by: Christian Taedcke <hacking@taedcke.com>
2018-07-10 12:53:50 -05:00
Anas Nashif
ae5105c08b boards: more boards with xtools support
Add first set of boards which can be built with xtools, this will
include all boards at some point, so we might need a better way to
whitelist toolchains that does not include changing every single board
definition file. For now enabling those needed for testing the new
toolchain.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-07-08 15:39:35 -04:00
Diego Sueiro
618209af0a board: add i2c support for colibri_imx7d_m4 board
Adds definitions, configurations and device tree entries for
colibri_imx7d_m4 board.

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-07-06 15:55:57 -05:00
Yong Jin
cc5ae49133 boards: arm: stm32: basic support for STM32F769I-DISCO board
This patch adds basic support and for the STM32F769I-DISCO board
with GPIO, USART support. Two USARTs are enabled.The GPIOs are
configured for the 4 LEDs and one button on the board.

Signed-off-by: Yong Jin <jinyong.iot@foxmail.com>
2018-07-06 09:56:25 -05:00
Erwan Gouriou
ff0c5a2afd boards: nucleo_f429zi: state compatibility with Arduino connectors
Set HAS_ARDUINO_XXX flag to state boards is compatible with this
connector. It will enable use of shields that requires these flags.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-07-05 11:28:53 -05:00
Erwan Gouriou
2a490fd030 boards: Set nucleo_f429zi compatible with configuration guidelines
According to Default Configuration Guidelines, update nucleo_f429zi
- Add SPI_1, pinmux compatible with arduino spi
- Change PWM from PA0 to PE13 (Arduino D3)
- Disable I2C by default
- Update board dts with arduino connectors
- update board yaml file
- update board documentation

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-07-05 11:28:53 -05:00
qianfan Zhao
157b3dcb3a boards: arm: add st nucleo-f207zg
tested example: blinky, hello_world

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
2018-07-05 11:26:07 -05:00
Johann Fischer
fe018a8716 boards: curie_ble: add board.cmake
Add board.cmake for curie_ble board and allow to flash
image using dfu-util.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-07-05 10:35:08 -04:00
Kumar Gala
44e5b05fb1 drivers: gpio: nrfx: Move device tree selection to driver Kconfig
Move HAS_DTS_GPIO from board to the driver Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-07-03 18:46:41 -04:00
Andy Ross
57dcb53a94 boards/qemu_cortex_m3: Use SCHED_MULTIQ by default
Have qemu_cortex_m3 use the traditional multiqueue scheduler by
default, to be sure it gets test coverage.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-07-03 17:09:15 -04:00
Aurelien Jarno
e07a1ad254 boards: arm: stm32: basic support for STM32F723E-DISCO board
This patch adds basic support and documentation for the STM32F723E-DISCO
board, with GPIO, USART, I2C and USB support. Two USARTs are enabled,
the VCP one for the console and the Arduino one. The GPIOs are
configured for the 3 LEDs and the button available on the board.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2018-07-03 13:53:36 -05:00
Erwan Gouriou
3ed763aabe boards: disco_l475_iot1: Move BT_SPI_BLUENRG selection to avoid warning
Unconditional CONFIG_BT_SPI_BLUENRG flag activation was generating
a systematic warning.
Move it in Kconfig.defconfig file to avoid the warning

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-07-03 12:24:16 -05:00
Armando Visconti
ef33b79d58 boards: stm32: argonkey: Add support to led controller
The ArgonKey board has 12 leds controlled by TI LP3943 led
controller. Add the support in the BSP.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-07-03 12:20:51 -05:00
Carles Cufi
8d2df57797 boards: arm: nrf52840_pca10056: Align DC/DC option
Align the name and description of the DC/DC option with the other 2
boards that use it.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-07-03 11:36:26 +02:00
Carles Cufi
d499629344 boards: arm: nrf52810_pca10040: Enable DC/DC by default
Since the PCA10040 contains the required DC/DC circuitry, enable it by
default while keeping it configurable. This reduces power consumption
during radio activity.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-07-03 11:36:26 +02:00
Carles Cufi
093b7e9cf1 boards: arm: nrf52_pca10040: Enable DC/DC by default
Since the PCA10040 contains the required DC/DC circuitry, enable it by
default while keeping it configurable. This reduces power consumption
during radio activity.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-07-03 11:36:26 +02:00
Kumar Gala
1ce259d149 drivers: i2c: nrfx: Move device tree selection to driver Kconfig
Move HAS_DTS_I2C from board to the driver Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-07-02 09:46:22 -05:00
Christophe Priouzeau
a603e7071e boards: disco_l475_iot1: update BT configuration
- update BT configuration
- adapt configuration of SPI3 for BT usage

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
2018-06-29 10:40:25 +02:00
Krzysztof Chruściński
bbeef4155c logging: subsystem major redesign
Adding new implementation of logging subsystem. New features
includes: support for multiple backends, improving performance
by deferring log processing to the known context, adding
timestamps and logs filtering options (compile time, runtime,
module level, instance level). Console backend added as the
example backend.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2018-06-29 10:16:45 +02:00
Yurii Hamann
e69c058958 boards: arm: stm32: Basic support for STM32F746G-DISCO board
The patch contains basic code support, documentation, dts
file and openocd configuration for STM32F746G discovery board.
This patch related to the issue #6982.

Signed-off-by: Yurii Hamann <yurii@hamann.site>
2018-06-28 08:29:32 -05:00
Ulf Magnusson
fb0366b339 boards: Kconfig: Remove redundant 'default n' properties
Bool symbols implicitly default to 'n'.

A 'default n' can make sense e.g. in a Kconfig.defconfig file, if you
want to override a 'default y' on the base definition of the symbol. It
isn't used like that for any of the removed properties though.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-06-27 17:15:31 -05:00
qianfan Zhao
d1054f78f0 nucleo_f070rb: Add JLink tools for debug and download support
Segger provide a firmware makes the ST-LINK on-board compatible with
J-Link OB, allowing users to take advantage of most J-Link features
such as RTT(Real Time Transfer).

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
2018-06-27 15:48:38 -05:00
Vinayak Kariappa Chettimada
cea4b31866 Bluetooth: controller: Add support for the nRF52810
The nRF52810 is a low-cost variant of the nRF52832, with a reduced set
of peripherals and memory. This commit adds Bluetooth controller support
for it.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-06-27 16:09:58 +02:00
qianfan Zhao
086d839ea5 nucleo_f070rb: Enable USART1 ports on nucleo_f070rb
default pinmaps for usart1 is PA9(tx) and PA10(rx)

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
2018-06-26 11:19:09 -05:00
Mandar Chandrakant Thorat
24047dea23 boards: arm: bbc_microbit: select HAS_DTS_I2C for bbc_microbit
This commit selects HAS_DTS_I2C in bbc_microbit board definition.
It fixes issues similar to issue #8511 for bbc_microbit board

Signed-off-by: Mandar Chandrakant Thorat <mandar.chandrakant.thorat@intel.com>
2018-06-26 04:17:53 -04:00
Mandar Chandrakant Thorat
66986c698f boards: arm: nrf: select HAS_DTS_I2C for nrf52_blenano2
Fixes #8511
This commit selects HAS_DTS_I2C in nrf52_blenano2 board definition.

Signed-off-by: Mandar Chandrakant Thorat <mandar.chandrakant.thorat@intel.com>
2018-06-26 04:17:53 -04:00
Ioannis Glaropoulos
fb4befb0d4 boards: arm: nrf: select HAS_DTS_I2C for nrf52_pca10040
This commit selects HAS_DTS_I2C in nRF8232 DK board definition.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2018-06-25 19:34:33 +02:00
Ioannis Glaropoulos
237aef1868 boards: arm: nrf: update I2C-related defines for nrf52810
The commit modifies the I2C-related defines in nrfx
configuration to comply with the updates in (57e3644).
It also modifies the i2c configuration in DTS for board
nrf52810_pca10040 to reflect the nRF52810 capabilities.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2018-06-25 19:34:33 +02:00
Ioannis Glaropoulos
2b7c854a65 boards: arm: nrf: move LED and Button definitions in DTS
This commit moves the definitions for the LED and Buttons
supported in nrf52810_pca10040 DK in DTS from board.h. Aliases
are kept in board.h to make basic examples pass.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2018-06-25 19:34:33 +02:00
Ioannis Glaropoulos
21826a5a7d boards: arm: nrf: add directive for nrf52810_pca10040 initialization
This commit adds a compile-time directive for the
nrf52810_pca10040 board that instruct nRFx to perform
certain board initialization. The directive is needed
as nrf52810_pca10040 mirrors the nrf52832 DK hardware.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2018-06-25 19:34:33 +02:00
Carles Cufi
0f6bd5c891 arch: arm: nrf: Add support for the nRF52810
The nRF52810 is a low-cost variant of the nRF52832, with a reduced set
of peripherals and memory. This commit adds basic support for it in the
arch SoC and dts folders.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Signed-off-by: Ioannis Glaropoulos <ioannis.glaropoulos@nordicsemi.no>
2018-06-25 19:34:33 +02:00
Carles Cufi
5029760c53 boards: arm: Add Nordic nRF52810 board
Since Nordic does not offer an nRF52810 Development Kit and instead
recommends using the nRF52 DK (nRF52832 based), add a board that
enforces the limitations of the nRF52810 but is designed to be flashed
onto the actual nRF52 DK hardware.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Signed-off-by: Ioannis Glaropoulos <ioannisg.glaropoulos@nordicsemi.no>
2018-06-25 19:34:33 +02:00
Carles Cufi
0cac36303b boards: 96_nitrogen: Specify the IC
In order to avoid auto-selection by Kconfig, the board needs to define
the specific IC that it contains, in this case an nRF52832.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-06-25 19:34:33 +02:00
Subramanian Meenakshi Sundaram
63ef746544 doc: boards: arm: Update datasheet link
Update the link to SAM3X8E datasheet and
update the minicom command to use sudo as
accessing the serial port requires root permission

Signed-off-by: Subramanian Meenakshi Sundaram <subbu147@gmail.com>
2018-06-25 11:44:16 -05:00
Mandar Chandrakant Thorat
f5ddc99c4f boards: nrf52_blenano2: Add i2c's to nrf52_blenano2 board dts.
Fixes #8391

Enables the i2c drivers for these boards.
Required to enable i2c with these boards.
Tested samples/sensor/tmp112 for nrf52_blenano2
with i2c enabled.

Signed-off-by: Mandar Chandrakant Thorat <mandar.chandrakant.thorat@intel.com>
2018-06-21 07:15:07 -04:00
Mieszko Mierunski
546d19a7cf boards: nrf: Fix nrf52_pca20020 board for benchmark test.
Currently tests/benchmark/footprint build is failing for
nrf52_pca20020 board. In minimal configuration, all modules are
disabled, including GPIO, because of that defines related to GPIO
are missing in board.c file and compilation fails.

To solve it, I selected GPIO to be always turned on for
nrf52_pca20020 board.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2018-06-20 13:38:18 +02:00
Mieszko Mierunski
dc1c2742b6 boards: nrf: Moved SDA and SCL pin configuration to DTS for nRF boards
SDA and SCL pins can now be configured through DTS.
Pins on development kits have been assigned according to arduino
headers.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2018-06-20 13:38:18 +02:00
Mieszko Mierunski
9c619d77e2 boards: nrf: Use i2c drivers from nrfx
Changed board definitions to use TWI and TWIM drivers provided by nrfx.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2018-06-20 13:38:18 +02:00
Stanislav Poboril
52e120ed91 boards/arm: add support for udoo_neo_full_m4 board
The UDOO Neo Full single board computer configuration supports
the following hardware features on the Cortex M4 Core:

+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component                    |
+===========+============+=====================================+
| NVIC      | on-chip    | nested vector interrupt controller  |
+-----------+------------+-------------------------------------+
| SYSTICK   | on-chip    | systick                             |
+-----------+------------+-------------------------------------+
| UART      | on-chip    | serial port-polling;                |
|           |            | serial port-interrupt               |
+-----------+------------+-------------------------------------+
| GPIO      | on-chip    | general purpose input/output        |
+-----------+------------+-------------------------------------+

The default configuration can be found in the defconfig file:
boards/arm/udoo_neo_full_m4/udoo_neo_full_m4_defconfig

Other hardware features are not currently supported by the port.

Connections and IOs:

The UDOO Neo Full board was tested with the following pinmux
controller configuration.

+---------------+-----------------+---------------------------+
| Board Name    | SoC Name        | Usage                     |
+===============+=================+===========================+
| J4 RX         | UART5_RX_DATA   | UART Console              |
+---------------+-----------------+---------------------------+
| J4 TX         | UART5_TX_DATA   | UART Console              |
+---------------+-----------------+---------------------------+

The board has been tested with the following samples.
 - samples/hello_world
 - samples/basic/blinky

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
2018-06-19 17:08:51 -05:00
Alex Tereschenko
3c1a78ea0d cmake: replace PROJECT_SOURCE_DIR with ZEPHYR_BASE
Both variables were used (with the same value) interchangeably
throughout CMake files and per the discussion in GH issue,
ZEPHYR_BASE is preferred.

Also add a comment with explanation of one vs. the other.

Tested by building hello_world for several boards ensuring no errors.

Fixes #7173.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
2018-06-18 15:25:55 -04:00
Alexander Wachter
c601f3be67 can: Add can support for STM32L432
This commit enables CAN on the STM32L432.
Tested on nucleo l432ck with external transceiver and loopback mode.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2018-06-18 15:23:29 -04:00
Marc Reilly
6c60abb03b drivers: gpio: add dts support for nrf52 gpio
This adds basic support for declaring gpio nodes in dts for nrf52.
The dts.fixup provides mapping for the generated defines to the config
defines currently used by the nrf gpio driver.

Existing boards that use nrf52 are updated.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2018-06-14 15:56:39 +02:00
Vinayak Kariappa Chettimada
070c1ae041 soc: nRF52x: Add Kconfig options to enable DC/DC converter
Added a hidden Kconfig option in arch/arm/soc/nordic_nrf
which is selected by selecting DC/DC circuitry being present
in the board.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2018-06-13 18:56:54 +02:00
Jakub Rzeszutko
3f99eefe5a drivers: uart: Rename nrf5 namings to nrfx
UART driver renamed to keep the same convention as SPI and TWI drivers.
All substrings: "UART_NRF5" in defines renamed to  "UART_NRFX_UART".

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
2018-06-12 13:21:18 +02:00
Michael Scott
74c44b2984 boards: arm: nrf52840: default IEEE802154_NRF5 if IEEE802154 enabled
As the nRF52840 supports 802.15.4 natively, we should default y
for IEEE802154_NRF5 if IEEE802154 is enabled.

Signed-off-by: Michael Scott <michael@opensourcefoundries.com>
2018-06-12 10:23:44 +02:00
Johann Fischer
2055b84f79 boards: frdm_kl25z: add USB support
Add USB support to FRDM_KL25Z board.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-06-12 04:09:50 -04:00
Kumar Gala
558eac2f98 boards: arm: stm32: Added pwm to supported list
Update various stm32 board yaml files to add pwm as a supported feature
of the board.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-06-12 03:54:26 -04:00
Florian Vaussard
5c6ccf4acc dts: stm32: Enable PWM nodes on selected boards
Enable the PWM nodes for the board already using them in their pinmux.

Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>
2018-06-12 03:54:26 -04:00
Gil Pitney
a58043e187 boards: cc3220sf_launchxl: Restore removal of CONFIG_XIP setting
commit 53a924b390
clobbered parts of
commit 9d2f370ddb
which included changes to make cc3220sf_launchxl XIP by default.

This patch reverses the clobber.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-06-12 03:52:48 -04:00
Anas Nashif
57f6790335 samples: can: move CAN sample under drivers
Move CAN driver sample under samples/drivers and add a sample.yaml.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-06-11 17:11:18 -04:00
Anas Nashif
fb3aeddebb boards: lpcxpresso54114_m0: do not set as default
We already have the BBC microbit for Cortex-M0 coverage.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-06-11 17:11:18 -04:00
Johann Fischer
55494c3f0a boards: usb_kw24d512: add USB comment to documentation
Add USB comment to documentation.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-05-30 11:23:39 -05:00
Johann Fischer
547128e328 boards: frdm_k64f: add USB comment to documentation
Add USB comment to documentation.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-05-30 11:23:39 -05:00
Ulf Magnusson
10d54e2b22 boards: arm: argonkey: Properly set choice default
The choice symbol LSM6DSL_EXT0_LIS2MDL was given a 'default' in
Kboards/arm/96b_argonkey/Kconfig.defconfig, but 'default' has no effect
on choice symbols, triggering a warning from Kconfiglib.

Instead of adding a default to the choice symbol, change the default of
the 'choice' itself by giving it name and adding the default in
Kconfig.defconfig.

This requires that we remove the default on the "base" definition of the
'choice', due to some messiness related to the Zephyr-specific
prefer-later-defaults behavior (see the 'Zephyr-specific Kconfig
behavior for defaults' section in the Board Porting Guide). Choices were
overlooked when that patch was added to the C tools, meaning choices
still prefer earlier defaults. The crux is that Kconfig.defconfig files
are included last.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-05-29 16:19:51 -04:00
Ulf Magnusson
6350de3ae2 boards: arm: Remove CONFIG_{FLASH,SRAM}_BASE_ADDRESS assignments
These symbols were removed in commit 311e6b9e3e ("arch: arc: Use DTS
for all ARC SoCs"). The settings should come from DTS now.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-05-29 07:42:05 -07:00
Adithya Baglody
c2b2add1d0 boards: arm: msp_exp432p401r: Remove CONFIG_FLASH from defconfig.
Fixed the incorrect usage of CONFIG_FLASH in the defconfig.
This CONFIG_FLASH is used to enable the flash driver only.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2018-05-28 13:23:13 -04:00
Adithya Baglody
53a924b390 boards: arm: cc3220sf: Remove CONFIG_FLASH from defconfig.
Fixed the incorrect usage of CONFIG_FLASH in the defconfig.
This CONFIG_FLASH is used to enable the flash driver only.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2018-05-28 13:23:13 -04:00
Adithya Baglody
41826fdcbd boards: arm: cc2650: Remove CONFIG_FLASH from defconfig.
Fixed the incorrect usage of CONFIG_FLASH in the defconfig.
This CONFIG_FLASH is used to enable the flash driver only.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2018-05-28 13:23:13 -04:00
Ulf Magnusson
a3128e6a2c boards: defconfig: Consistently quote string defaults
In preparation for introducing a warning.

Unquoted string defaults work through a quirk of Kconfig (undefined
symbols get their name as their string value), but look confusing. It's
done inconsistently now too.

Suggested by Kumar Gala.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-05-26 19:17:48 -04:00
Yannis Damigos
2568e83905 boards: stm32f3_disco: Add usb_device to supported features
Add usb_device in board's metadata yaml file.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-05-25 13:36:44 -05:00
Anthony Kreft
2ef42b7abe boards: arm: add support for NUCLEO-L053R8
Support for the NUCLEO-L053R8 with STM32L053R8 SoC.

Signed-off-by: Anthony Kreft <anthony.kreft@gmail.com>
2018-05-25 13:06:18 -05:00
Aurelien Jarno
fa153a0003 boards: nucleo_l432kc: fix GPIO definitions
The ST Nucleo L432KC board only has a reset switch and not user switch.
It has a single user LED connected to PB3, and called LD3 in the ST
documentation.

This patch fixes the corresponding device tree definition. At the same
time also it also fixes the documentation, where the name of the power
and user LEDs are swapped.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2018-05-25 11:59:30 -05:00
Gil Pitney
1d7bd5665f boards: cc3220sf_launchxl: Fix documentation links
TI literature site has links which are automatically updated to point
to the latest versions of pdf documents.

Use those instead of the hardcoded URLs.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-05-25 11:59:00 -05:00
Gil Pitney
5fe0f7df44 boards: cc3220sf_launchxl: Update board documentation for flash/debug
Update board docs to reflect simpler method of flash/debug as
cc3220sf is now by default an XIP platform.

Include installation instructions for TI OpenOCD as a pre-requisite.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-05-25 11:59:00 -05:00
Gil Pitney
e0d02d9420 boards: cc3220sf_launchxl: Enable standard flash/debug build targets
Previously, the cc3220sf platform could only be flashed using
TI UniFlash (or CCS) tools, requiring unique instructions.
Also, these procedures were not integrated with the standard Zephyr
build targets: 'flash', 'debug', 'debugserver'.

After installation of a TI OpenOCD v1.10 release, and other
one-time board setup, flashing and debugging can now be done
via OpenOCD/gdb, using the standard Zephyr build targets per
the Zephyr Application Development primer.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-05-25 11:59:00 -05:00
Gil Pitney
9d2f370ddb boards: cc3220sf_launchxl: Make cc3220sf XIP by default
Previously, there was no easy command-line solution for loading
a Zephyr program to (internal) flash.
So, the default development method was to load via gdb/openocd
to SRAM and debug from there, thus making the cc3220sf platform
non-XIP (CONFIG_XIP=n) by default.

With new openocd v 1.10 updates from TI (git.ti.com/sdo-emu),
the image can now be flashed and debugged via gdb/openocd,
so the default will be changed to XIP (CONFIG_XIP=y).

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-05-25 11:59:00 -05:00
Ulf Magnusson
b028a51542 boards: cc2650_sensortag: Remove TRNG and PINMUX prio Kconfig settings
As mentioned in
https://github.com/zephyrproject-rtos/zephyr/issues/7873, these Kconfig
symbols never existed. Remove the assignments to them.

Keep the dead code that's guarded by them for a while. I don't know if
this board is used.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-05-25 10:54:48 -05:00
Ulf Magnusson
65e79fd5c2 boards: exp432p401r_launchxl: Remove Flash base address Kconfig setting
Supposed to come from DTS. The Kconfig symbol was removed in commit
311e6b9e3e ("arch: arc: Use DTS for all ARC SoCs").

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-05-25 09:45:18 -05:00
Kumar Gala
e09484f793 boards: arm: lpcxpresso54114: Remove sample specific defconfig setting
Setting of CONFIG_HEAP_MEM_POOL_SIZE was done in the board defconfig
because open-amp was doing recursive builds and setting it the
defconfig made sure all builds were consistent.  However, now that we
don't do recursive builds this will get properly picked by from the
sample specific conf file.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-24 10:17:56 -05:00
Ulf Magnusson
7213ceb378 boards: cc2650_sensortag: Remove Kconfig FLASH/SRAM address assignments
The {FLASH,SRAM}_BASE_ADDRESS Kconfig symbols were removed in commit
311e6b9e3e ("arch: arc: Use DTS for all ARC SoCs"). These settings are
supposed to come from DTS now.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-05-24 08:19:14 -05:00
Erwan Gouriou
9c1a2b515c boards: disco_l475_iot1: Remove used pinmux configuration
USB IP is not directly available on disco_l475_iot1 and requires
some HW modifications to get it enabled.
Remove this USB pinmux configuration.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-05-24 08:04:00 -04:00
Erwan Gouriou
3b83ccdb8c boards: stm32_mini_a15: fix PLL source selection
During transition from native to ll based clock_control
driver, a typo was introduced in PPL source selection flag.
Fix this.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-05-24 08:04:00 -04:00
Kumar Gala
3689359fec board: frdm_kl25z: Remove undefined Kconfig symbol from defconfig
The defconfig has CONFIG_SOC_MKL25Z=y, however CONFIG_SOC_MKL25Z doesn't
exist and should have been CONFIG_SOC_MKL25Z4,  However its not
necessary to define this at all since it implied by the board.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-23 17:57:06 -04:00
Kumar Gala
c1908c3d0b boards: arm: Fixup comment related to CONFIG_USB_DC_STM
We had a comment related to the #endif for CONFIG_USB_DC_STM32 however
the comment said CONFIG_USB_DC_STM, so fix it to match the ifdef.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-23 17:57:06 -04:00
Kumar Gala
df9e95e500 boards: arm: Remove nonexistent Kconfig symbols
CONFIG_BOARD_STM32_NUCLEO_{L432KC,L476RG} where set in the respective
board defconfig files, however these symbols don't exist.  We can just
remove them from the defconfig as we'll get the board Kconfig symbol
defined by default when selecting that board.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-23 17:57:06 -04:00
Maureen Helm
4e90bd36bb dts/nxp: Fix dtc v1.4.6 warning: Aliases property name is not valid
Replaces underscores with dashes in alias names on the colibri_imx7d_m4
board.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-23 15:16:44 -05:00
Maureen Helm
b5db62ca94 frdm_kl25z: Remove incorrect references to spi
The kl25z does not have the same spi hardware as the k64f and therefore
cannot use the same spi driver. Remove all references to spi for the
kl25z soc and frdm_kl25z board until we have a valid spi driver.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-21 13:26:10 -05:00
Alexander Wachter
e73637af24 boards: stm: Add CAN support for stm32f072b micro controller
This commit adds the can device to the stm32f072b device tree and pinmux

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2018-05-19 20:19:30 +02:00
Kristian Klomsten Skordal
5eb882980d sample: add OpenAMP sample application
This commit adds a sample application using OpenAMP for remote procedure
calls on the LPCXpresso54114. It is adapted from the RPMsg-Lite sample
application added in PR #5960, and uses the IPM driver to provide
interprocessor interrupts.

Signed-off-by: Kristian Klomsten Skordal <kristian.skordal@nordicsemi.no>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-19 12:56:36 -05:00
Marti Bolivar
59dc82e0d2 boards: adjust openocd runner arg syntax
The current method of setting the openocd runner arguments works for
direct invocation from the command line, but the values that are
written to the CMake cache are not properly separated and are
difficult to parse, due to the fact that in several cases, option
values contain spaces.

Adjust these runner arguments so that the options and their values are
separate list items. This makes it possible to parse them accurately
from the CMake cache.

No functional changes.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2018-05-19 07:01:39 +03:00
Armando Visconti
c9262bb47f board: argonkey: add LSM6DSL configuration in Kconfig.defconfig
Use the named choices feature introduced by PR #6966
and configure LSM6DSL on ArgonKey board.
The two named choices introduced in LSM6DSL are:

    - LSM6DSL_BUS_TYPE (default LSM6DSL_I2C)
    - LSM6DSL_TRIGGER_MODE (default LSM6DSL_TRIGGER_NONE)

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-05-18 13:10:33 -05:00
Armando Visconti
17c15ff182 boards: stm32: argonkey: Add dts support to sensors
This patch adds dts support to lps22hb/hts221/vl53l0x
I2C sensors as well as lsm6dsl SPI sensor.

Since some info, like gpio for irq triggering or SPI bus
characteristics, may be provided through dts, they need
to be made optional in the LSM6DSL driver by usage of
macros like HAS_DTS_SPI_PINS or HAS_DTS_SPI_DEVICE.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-05-18 13:10:33 -05:00
Armando Visconti
ce13fc8eeb boards: stm32: argonkey: Enable STM32 I2C interrupt support
Enable STM32 I2C interrupt support for faster response

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-05-18 13:10:33 -05:00
Stanislav Poboril
37b7caa6bb sample: Add MCUX IPM sample application
Add MCUX IPM sample application. It can be run on lpcxpresso54114
board at the moment.

We first build the slave core image out of the remote/ dir than the
primary core image is build which includes the slave core image.

Origin: Original

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-17 15:07:48 -05:00
Stanislav Poboril
5477ee4531 mcux: Add MCUX IPM driver for lpc and kinetis socs
Add driver for MCUX mailbox which can be used for lpcxpresso54114
and other lpc and kinetis socs.

Origin: Original

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
2018-05-17 15:07:48 -05:00
Stanislav Poboril
c3ce923fd9 arm: lpcxpresso54114_m0: Add board support for slave core
Add a board port to allow creation of "firmware" code that will run on
the slave core (Cortex-M0+).

Origin: Original

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-17 15:07:48 -05:00
Maureen Helm
c976dbb233 boards: Document watchdog driver support on k64, kw2xd boards
Updates documentation for the frdm_k64f, hexiwear_k64, and usb_kw24d512
boards to reflect that they now support a watchdog driver. Updates the
board yamls similarly for sanitycheck.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-17 15:00:55 -05:00
Andy Gross
7b92d3fb1c rtc: nxp: Add RTC driver for NXP Kinetis
This patch adds the configuration, driver, and HAL changes required
to implement a MCUX based RTC driver for the NXP Kinetis KW41Z.

Signed-off-by: Andy Gross <agross@kernel.org>
2018-05-17 13:45:08 -05:00
Andy Gross
1fe586f678 dts: nxp: kw41z: Fixup NXP Kinetis RTCs on KW41Z
This patch adds some DTS information to flesh out the NXP Kinetis
based RTC blocks.  DTS fixups were added as well to match up the driver
usage to the DTS output.

Signed-off-by: Andy Gross <agross@kernel.org>
2018-05-17 13:45:08 -05:00
Johann Fischer
45156f6e71 samples: cdc_acm: enable sanitycheck for Kinetis boards
Enable sanitycheck for FRDM-K64F and USB-KW24D512 boards

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-05-17 07:00:49 -05:00
Johann Fischer
d8cd119562 dts: arm: nxp: use DT to configure USBD on Kinetis SoC
Add DT and fixup files to configure USB device driver on
Kinetis SoC K64F and KW24D512.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-05-17 07:00:49 -05:00
Andrzej Puzdrowski
11c68a10f4 boards/arm/nrf52xx_boards: makes GPIO_AS_PINRESET common
Kconfig keyword GPIO_AS_PINRESET is common for whole nrf52 series.
This patch move it to the series Kconfig.soc file.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2018-05-16 11:10:52 -05:00
Yannis Damigos
d8983e6d11 dts/st,stm32-usb: Add use-prop-name to disconnect-gpios
Add use-prop-name to disconnect-gpios property in st,stm32-usb
yaml, in order to generate friendly name for the definitions.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-05-16 10:27:04 -05:00
Carles Cufi
5b6fde144d boards: arm: nrf: Enable mcumgr UART
In order to run the Simple Management Protocol (SMP) over UART, a DTS
symbol named uart-mcumgr needs to be defined on the board. Enable this
for all Nordic Development Kits.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-05-16 17:01:52 +02:00
Kumar Gala
0f4a2b75ff board: lpcxpresso54114: Rename to lpcxpresso54114_m4
As part of the prep to support the M0+ core on lpcxpresso54114, we
rename the lpcxpresso54114 board port to lpcxpresso54114_m4 to be
explicit.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-15 15:49:15 -05:00
Stanislav Poboril
fd4759b5d7 arch: nxp: lpc54xxx: Rename SoC bits from LPC54114 to LPC54114_M4
Rename various SoC related defines and files from just being LPC54114
to LPC54114_M4.  This is in prep for supporting a build for the second
core on the LPC54114 (the Cortex-M0+).

* Renamed Kconfig SOC_LPC54114 to SOC_LPC54114_M4
* Renamed Kconfig.defconfig.lpc54114 to Kconfig.defconfig.lpc54114_m4
* Introduced nxp_lpc54xxx_m4.dtsi based on nxp_lpc54xxx.dtsi
* Moved some pinmux related defines into SoC code.

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-15 15:49:15 -05:00
Stanislav Poboril
45cfea6f4a board: lpcxpresso54114: Move led and button definitions to dts
Moves the led and button definitions for the lpcxpresso54114 board from
board.h to dts.

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
2018-05-15 15:49:15 -05:00
Yannis Damigos
d3ea910293 boards/96b_carbon: Update doc with USB support
Add USB support in rst file.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-05-15 15:12:09 -05:00
Yannis Damigos
5ec02d141e boards: 96b_carbon: add gpios in bt controller node
Use DT to generate defines for irq and reset gpios in bluetooth
controller node.

Define a bt alias to allow generation of defines with friendly
names.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-05-15 15:11:12 -05:00
Johann Fischer
ef19b90a34 boards: nucleo_f413zh: enable usb
Enable usb on Nucleo-F413ZH board.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-05-15 11:39:49 +03:00
Maureen Helm
2368edd8e7 mimxrt1050_evk: Move led and button definitions to dts
Moves the led and button definitions for the mimxrt1050_evk board from
board.h to dts.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-14 14:36:15 -05:00
Loic Poulain
5ce10f1d1c boards: arm: nrf52_blenano2: Add I2C default config
Add default pin configuration for I2C0.
Documentation indicates pin 2 for SCL0 and 28 for SDA0.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2018-05-11 21:08:44 -04:00
Yannis Damigos
4edae07757 boards/arm/olimexino_stm32: Add disconnect gpio in usb node
Add disconnect gpio in usb node.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-05-11 16:53:12 -04:00
Yannis Damigos
f47b9c2fca drivers/usb/device: Remove USB DISCONNECT gpio options
Remove USB DISCONNECT gpio options from Kconfig.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-05-11 16:53:12 -04:00
Maureen Helm
0d1beb2f9e boards: dts: Add mcr20a bindings and fix networking samples
Adds dts bindings for the mcr20a wireless transceiver. The frdm_k64f
board supports the mcr20a via an Arduino shield, therefore the dts node
is added to the board dts. The kw2xd is a SiP and thus the mcr20a dts
node is added to the soc dts.

The networking samples using prj_frdm_k64f_mcr20a.conf have been broken
since the refactoring of the mcux gpio driver to dts in commit
4e8f29f319. The sample is now fixed.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-10 15:43:42 -05:00
Maureen Helm
ae2a9b0f3e boards: Select HAS_DTS_SPI_DEVICE on kinetis boards
Selects the config HAS_DTS_SPI_DEVICE on all kinetis boards that support
the mcux dspi driver.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-10 15:43:42 -05:00
Maureen Helm
ed1ab61e18 frdm_kw41z: Configure spi0 pinmuxes and update board doc accordingly
Configures the frdm_kw41z board to mux spi signals on pins PTC16-19.
Updates the board document to reflect that spi is supported on these
pins.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-10 15:43:42 -05:00
Maureen Helm
cae9074492 spi: Refactor mcux dspi driver to use dts
Get the driver name, base address, irq number, and irq priority from
dts.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-10 15:43:42 -05:00
Maureen Helm
87b9518496 hexiwear_k64: Fix whitespace in dts.fixup
Fixes whitespace for better code alignment.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-10 15:43:42 -05:00
Maureen Helm
9cd36c7bd2 boards: dts: Add fxas21002 interrupt bindings and fix sensor sample
Adds dts bindings for the fxas21002 interrupt pins to all boards that
have this sensor.

The fxas21002 driver is currently only aware of one sensor interrupt
pin, therefore the routing of INT1 or INT2 to the driver is handled in
each board's dts.fixup.

The fxas21002 sample application has been broken since the refactoring
of the mcux gpio driver to dts in commit
4e8f29f319. The sample is now fixed.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-10 15:43:42 -05:00
Maureen Helm
90ac25f736 boards: dts: Add fxos8700 interrupt bindings and fix sensor sample
Adds dts bindings for the fxos8700 interrupt pins to all boards that
have this sensor. The frdm_k64f and hexiwear_k64 connect both sensor
interrupt pins to the mcu, but the frdm_kw41z connects only one.

The fxos8700 driver is currently only aware of one sensor interrupt pin,
therefore the routing of INT1 or INT2 to the driver is handled in each
board's dts.fixup.

The fxos8700 sample application has been broken since the refactoring of
the mcux gpio driver to dts in commit
4e8f29f319. The sample is now fixed.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-10 15:43:42 -05:00
Erwan Gouriou
2acb128791 boards: disco_l475_iot1/dts: add gpios in bt controller node
Add cs, irq and reset gpios description in spbtle controller
node and use generated defines instead of Kconfig symbols.
Define a bt alias to allow generation of defines with friendly
names.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-05-10 14:21:16 -05:00
Erwan Gouriou
081c9c3bec scripts: extract_dts_includes: Generate'_0' defines only when needed
Indexed defines were systematically generated even when there
was only one element to generate.
So we ended up generated a lot of _0 defines.
Then we needed to generate aliases to these _0 indexed defines,
in order to get useful defines.
For instance:
 #define GPIO_LEDS_0_GPIO_FLAGS_0	4
 #define GPIO_LEDS_0_GPIO_PIN_0		5
 #define GPIO_LEDS_0_GPIO_FLAGS		GPIO_LEDS_0_GPIO_FLAGS_0
 #define GPIO_LEDS_0_GPIO_PIN		GPIO_LEDS_0_GPIO_PIN_0

This commit allows to generate _0 indexed define only if a
property has more than one elements to define.
Aliases generation to _0 indexed defines are also removed.

Note: IRQ are left untouched since this is frequent to handle
multiple IRQs in a driver

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-05-10 10:38:23 -05:00
Yannis Damigos
80d69ea47f boards: stm32f3_disco: Add USB support
Add USB support to STM32F3DISCOVERY board

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-05-10 07:47:13 -05:00
Yannis Damigos
38d2567e08 boards: olimexino_stm32: Add USB support
Add USB support to OLIMEXINO-STM32 board

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-05-10 07:47:13 -05:00
David B. Kinder
3e136b4d23 doc: fix misspellings in doc and Kconfig files
Fix misspellings missed during regular PR reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-05-09 15:06:43 -05:00
Armando Visconti
65e96eefea boards: disco_l475_iot1: enable XSHUT master control
The disco_l475_iot1 board uses the vl53l0x sensor in XSHUT pin
master control configuration mode. So, it has to explicitly
enable it now.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-05-09 13:18:58 -04:00
Maureen Helm
77e9e27d76 mimxrt1050_evk: Add config to select code linking location
Adds a board-level config option to select whether the code gets linked
into internal instruction tightly coupled memory (ITCM), external
hyperflash, or external qspi flash. The default is ITCM.

Note that we are not yet building an image vector table (IVT) into the
image, therefore the zephyr binary is not bootable by the SoC ROM as-is.
However, the DAPLink firmware prepends an IVT to the image when you use
its drag-and-drop feature to program flash, and this results in a
bootable zephyr application.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-08 17:39:28 -05:00
Maureen Helm
16399a6479 dts: mimxrt1050_evk: Add external memory nodes
Adds flexspi and semc memory controllers to the i.MX RT SoC. Adds
hyperflash, qspi, and sdram external memories to the mimxrt1050_evk
board.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-08 17:39:28 -05:00
Gil Pitney
6be824d036 cc3220sf: Fix linker map and dtsi to ensure full 256K SRAM size
Previously, when !CONFI_XIP, BOOTLOADER_SRAM_SIZE was defaulted
to 16 (K), reducing the size of SRAM available for the program.

Also, though it has no effect, the value for SRAM start in the
dtsi file was incorrect.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-05-08 17:35:25 -05:00
Maureen Helm
f64657e881 frdm_k64f: Fix pin name typos in the board doc
The frdm_k64f board document incorrectly listed spi signals on PTCD
pins, which don't exist. They should be on PTD pins.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-05-08 14:44:01 -05:00
Diego Sueiro
5443d065ca doc: fix colibri_imx7d_m4 board documentation
Fix a typo and update u-boot command

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-05-08 06:56:56 -05:00
Diego Sueiro
31a2ac8764 board: add gpio support for colibri_imx7d_m4 board
Adds definitions, configurations and device tree entries for
colibri_imx7d_m4 board.

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-05-08 06:56:56 -05:00
Andrzej Puzdrowski
4388f6f314 boards/arm/nrf52_blenano2: add storage flash partition
This patch adds DT description of generic storage flash
partition. This fixes issue #7227.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2018-05-04 15:37:46 -05:00
Andrzej Puzdrowski
4954fe06f2 subsys: fs: fix generic storage partition selection
FS_FLASH_MAP_STORAGE keyword enables the storage partition,
but it was depend on flash_map module which is unused by
NFFS. This patch makes it independent thanks
to it is possible to enable the storage partition
without flash_map module.

FS_FLASH_MAP_STORAGE was renamed to
CONFIG_FS_FLASH_STORAGE_PARTITION
as it is independent for flash_map.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2018-05-04 10:14:01 -04:00
Manivannan Sadhasivam
034a11b7cd boards: arm: 96b_neonkey: Fix I2C_3 for LP3943 LED driver
Following changes are necessary to use LP3943 LED driver present
in 96Boards Neonkey board

1. Enable I2C_3 interface
2. Reduce the speed of I2C_3 bus on 96Boards Neonkey. Due to some
design quirks, on board LP3943 LED driver connected to I2C_3
operates only at Standard speed of 100KHz.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-04-27 10:46:53 -05:00
Manivannan Sadhasivam
bb394bbafb drivers: led: Add LED driver support for TI LP3943
Add support for Texas Instruments LP3943 - 16 channel LED driver.
Supported blinking period: 0 to 1600ms
Supported brightness value: 0 to 100%

This driver supports the following APIs:

1. led_blink
2. led_set_brightness
3. led_on
4. led_off

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-04-27 10:46:53 -05:00
Johan Hedberg
992070f12d boards: microbit: Add flash partition definitions to dts
These are a direct copy from the nrf51_pca10028 board, since it's also
an nRF51 and has the same size flash.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-04-27 17:37:30 +05:30
Yannis Damigos
f496fd2a04 boards/arm/stm32_min_dev: Fix APB2 prescaler value
The allowed values for APB2 prescaler are: 1, 2, 4, 8, 16.
Set APB2 prescaler value to 1 in boards defconfig.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-04-26 12:51:46 -05:00
Johan Hedberg
9968cda453 fs: Convert NFFS partition to a generic one
The NFFS partition at the end of flash is also useful for any other
file system or even the Flash Circular Buffer (FCB). Rename the
partition from 'nffs_partition' to 'storage_partition' and make it
depend on a new hidden Kconfig entry which the relevant users will
select (such as NFFS and FCB).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-04-26 16:06:55 +05:30
Erwan Gouriou
a27c0ede12 dts/st: dtc v1.4.6 warnings: #address-cells/#size-cells without "ranges"
To prepare to upcoming dtc v1.4.6, fix warnings in dts files.

This commit addresses the following warning:
"unnecessary #address-cells/#size-cells without "ranges" or child
"reg" property in /gpio_keys".

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-04-24 14:46:48 -05:00
Erwan Gouriou
513488c937 boards: disco_l475_iot1: define 2 default clock configurations
In some BLE use cases, using MSI driven SYSCLK is required.
Rework board Kconfig.defconfig in order to enable use of 2
alternate default clock configurations.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-04-24 08:55:02 -05:00
Maureen Helm
57e80e5345 ext: mcux: Reorganize imported drivers into soc family subfolders
We have been combining imported mcux drivers into a flattened directory
structure to maximize driver reuse, but the introduction of additional
nxp soc families (lpc and imx) to zephyr has introduced driver naming
conflicts. This caused us to rename and modify imported files, such as
fsl_gpio.c/h, to make them unique across all three nxp soc families.
This makes updating the the mcux drivers complicated, especially for the
lpc family.

Reoganize the mcux drivers into soc family subfolders, so we can just
copy all the drivers from an mcux distribution (which is done on an
soc-basis) into the appropriate soc family folder. Undo all of the
naming changes that occurred when lpc and imx drivers were originally
imported. Undo the accidental squashing of the kinetis watchdog and dcdc
drivers that occurred when the imx drivers were introduced.

The drawback to this approach is that we have duplicate files when the
same hw ip modules exist in multiple soc families, however there are
only few cases where this occurs, such as fsl_lpuart and fsl_trng.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-04-24 07:55:48 -05:00
Håkon Øye Amundsen
597517c79f boards: dts: Add i2c to nrf5X_pcaX board dts.
Fixes #7137

Enables the i2c drivers for these boards.
Required to enable i2c with these boards.
Tested samples/bluetooth/beacon for nrf52_pca10040
with i2c enabled.

Parameters used for enabling i2c:
CONFIG_I2C=y
CONFIG_I2C_0=y
CONFIG_I2C_NRF5=y
CONFIG_I2C_NRF5_0_GPIO_SCL_PIN=6
CONFIG_I2C_NRF5_0_GPIO_SDA_PIN=7

Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.com>
2018-04-23 09:07:07 -05:00
Maureen Helm
4e8f29f319 gpio: Refactor the mcux gpio driver to use dts
Get the driver name, base address, irq number, and irq priority from
dts.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-04-20 08:54:11 -05:00
Maureen Helm
c627de1f87 boards: Move led and button definitions to dts for kinetis boards
Adds led and button dts nodes to all kinetis boards and removes the
now unused preprocessor macros from board.h.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-04-20 08:54:11 -05:00
Erwan Gouriou
678a6e02f9 boards: stm32 remove led and button definitions from board.h
Since they are now generated from dts, remove these definitions

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-04-19 09:32:39 -05:00
Erwan Gouriou
7c6cf201e0 boards: stm32: add button and leds gpio definitions
Provide led and button nodes to stm32 based boards.
Provide matching zephyr aliases.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-04-13 13:36:45 -05:00
Andrzej Głąbek
1d27d27a06 boards: 96_carbon_nrf51: Update SPI driver default configuration
Update names of the configuration entries so that the new nRF SPIS
driver can be used on this board.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-04-13 17:04:16 +02:00
Erwan Gouriou
1aa123d05d arm: nucleo_f103rb: Do not enable PWM by default
The test "net/utils" fails to build on nucleo_f103rb
due to "region `SRAM' overflowed by 8 bytes.

Disabling PWM at the board level to build the test.

Moreover, according to issue #6858, we will only configure
board valuable HW and connectors on board level and the
user should enable what is needed on application level.

Reported-by: Yannis Damigos <giannis.damigos@gmail.com>
Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-04-13 09:01:04 -05:00
Kumar Gala
c542c0e33e boards: dts: Cleanup aliases
Underscore ('_') isn't a valid char for alias names based on the device
tree spec.  Newer dtc compilers flag this as a warning so lets clean it
up.  Replaced '_' with '-' to keep things simple.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-04-12 04:03:46 -05:00
Paul Sokolovsky
5319e0099f boards: arduino_due, nrf52_pca20020: Add "ram" and "flash" properties
Based on large mbedTLS tests failing due to running out of RAM.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2018-04-12 04:03:21 -05:00
David Leach
c563e33102 drivers: entropy: Change KW41Z to use XOROSHIRO for RNG source
The TRNG IP block in the KW41Z is really an entropy source and not
intended to be used as a general purpose random number generator
source. The block has 15 slots to read from and when the last slot
is read it has to regenerate the 15 numbers. This process takes
3-5 seconds and is blocking. The change here is to use the TRNG as
an entropy source to the XOROSHIRO pseudo random number function
and then have the KW41Z use XOROSHIRO for random number generation.

Signed-off-by: David Leach <david.leach@nxp.com>
2018-04-11 16:57:12 +03:00
Diego Sueiro
85e8eaa9a6 boards/arm: add support for colibri_imx7d_m4 board
The Colibri iMX7D Computer on Module with Colibri Evaluation Board
configuration supports the following hardware features on the Cortex M4
Core:

+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component                    |
+===========+============+=====================================+
| NVIC      | on-chip    | nested vector interrupt controller  |
+-----------+------------+-------------------------------------+
| SYSTICK   | on-chip    | systick                             |
+-----------+------------+-------------------------------------+
| UART      | on-chip    | serial port-polling;                |
|           |            | serial port-interrupt               |
+-----------+------------+-------------------------------------+

The default configuration can be found in the defconfig file:
boards/arm/colibri_imx7d_m4/colibri_imx7d_m4_defconfig

Other hardware features are not currently supported by the port.

Connections and IOs:

The Colibri iMX7D Computer on Module with Colibri Evaluation Board
was tested with the following pinmux controller configuration.

+---------------+-----------------+---------------------------+
| Board Name    | SoC Name        | Usage                     |
+===============+=================+===========================+
| UART_B RXD    | UART2_TXD       | UART Console              |
+---------------+-----------------+---------------------------+
| UART_B TXD    | UART2_RXD       | UART Console              |
+---------------+-----------------+---------------------------+

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-04-11 08:27:05 +02:00
Erwan Gouriou
6c2047fcd0 arch/arm: stm32: All SoCs have dts for I2C and SPI
All boards based on STM32 should use dts for I2C and SPI.
Move CONFIG flags selection from boards to arch and select them
for all STM32 SoCs.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-04-10 08:27:50 -05:00
Anas Nashif
de8d755c54 boards: test networking only in one qemu type
We run the same tests over and over again in different qemu
environemnt. Optimize the list to reduce redundant testing of the same
protocols. Picked qemu_x86 because it has userspace enabled.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-04-09 22:55:20 -04:00
Anas Nashif
2ee6dff77b boards: fix yaml syntax and reduce indentation
Minor indentation fix

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-04-09 22:55:20 -04:00
Aapo Vienamo
8e1cf7b619 gpio: nrf5: Make the init priority configurable
A Kconfig option is added for setting the initialization priority.

This is done to make the initialization priority requirements in
nrf52_pca20020 board power up sequence clearer.

Signed-off-by: Aapo Vienamo <aapo.vienamo@iki.fi>
2018-04-09 17:09:06 -05:00
Aapo Vienamo
a068f29dcc boards: arm: nrf52_pca20020: Add board documentation
A documentanion file is added for Thingy:52. This document only
discusses the currently supported features of the board. The omissions
include the audio features and sensors which don't have a working driver
in tree.

Signed-off-by: Aapo Vienamo <aapo.vienamo@iki.fi>
2018-04-09 17:09:06 -05:00
Aapo Vienamo
439a63daac boards: Add support for nRF52 Thingy:52 (PCA20020)
A new board configuration is added for Thingy:52, also known as
PCA20020. This includes support for some of the on-board sensors, and
other peripherals such as the on-board GPIO expander.

The board power rail sequencing is also implemented, as the rails need
to be powered up in a correct order and before certain device driver
init calls are made.

Signed-off-by: Aapo Vienamo <aapo.vienamo@iki.fi>
2018-04-09 17:09:06 -05:00
Yannis Damigos
9287a9bf68 boards/arm/olimexino_stm32: Don't enable I2C and SPI
The test "net/utils" fails to build on olimexino_stm32
due to "region `SRAM' overflowed by 192 bytes".

Disabling I2C and SPI on board level the test build fine.

Moreover, according to issue #6858, we will only configure
board valuable HW and connectors on board level and the
user should enable what is needed on application level.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-04-05 09:38:02 -05:00
Jukka Rissanen
3e54d3914c boards: sam_e70_xplained: Enable L2 ethernet layer
As we have E70 ethernet driver enabled, we need to enable the
generic ethernet L2 driver too so that the ethernet is actually
useful.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-04-05 08:25:49 -04:00
Tomasz Bursztyka
324265420b api/spi: Disable legacy API by default
Let's start deprecation work of the SPI legacy API.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2018-04-04 19:02:35 +02:00
Anas Nashif
66d60d2941 boards: delete arduino_101_ble board
This board is the same as curie_ble, so remove duplication and have only
one board definition.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-03-23 16:21:16 -04:00
Vinayak Kariappa Chettimada
22d31ece2b boards: nRF5x DK: Fix missing pull up for switches
Fixed missing GPIO_PUD_PULL_UP configuration setting for
push button switches in the nRF51_pca10028, nRF52_pca10040
and nRF52840_pca10056 DK boards.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2018-03-23 16:40:58 +01:00
Henrik Brix Andersen
be52e3c456 doc: Fix SAM0 SPI controller device names
The SAM0 SoC was switched to use DTS for SPI configuration. Update
documentation for the SAM0 based boards to use the correct SPI
controller device names.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-03-21 20:42:45 -04:00
Jukka Rissanen
9643fd2bd4 boards: sam_e70_explained: Enable ethernet by default
As the board has ethernet chip it makes sense to enable the
ethernet support by default.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-03-20 10:37:34 -04:00
Carles Cufi
f49150cab6 arch: arm: nrf: Rename nrf5 SoC Family to nrf
Upcoming Nordic ICs that share many of the peripherals and architecture
with the currently supported nRF5x ones are no longer part of the nRF5
family. In order to accomodate that, rename the SoC family from nrf5 to
nrf, so that it can contain all of the members of the wider Nordic
family.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-03-20 11:57:14 +01:00
Reto Schneider
6320dce434 boards: sensortag: Update links to reference manual
New revision (SWCU117H) got published and the old one (supposedly
SWCU117G) is no longer available.

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
2018-03-20 05:19:36 +08:00
Paul Sokolovsky
69957a3d0f boards: Add "ram" and "flash" properties for a number of boards
Currently, it seems that only boards with smaller amount of RAM
get a value for "ram" property, and very few boards have "flash"
defined. However, to test bigger sample applications, it's helpful
to have these properties universally defined.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2018-03-16 13:44:06 -07:00
Roman Tataurov
fb0cee8e78 boards: Add support for Waveshare BLE400 board.
Added support for Waveshare BLE400 board.

Tested it with the following samples and confirm it work.

 - samples/basic/blinky
 - samples/basic/button
 - samples/basic/fade_led
 - samples/basic/threads

Signed-off-by: Roman Tataurov <diytronic@yandex.ru>
2018-03-16 18:29:21 +01:00
qianfan Zhao
ccab4e2813 boards: nucleo_f070rb: add new board
tested example: hello_world, blinky, button

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
2018-03-16 09:18:08 -05:00
Armando Visconti
3289fbe1b6 boards: arm: argonkey: Add flashing section to documentation
Describe in documentation few methods that can be used by
users to flash the ArgonKey with a binary image.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-03-16 08:52:20 -05:00
Erwan Gouriou
242c583c96 boards: nucleo_l432kc: provide flash support
Unlike documented, openocd support was not implemented
for this board. Fix this


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-03-15 11:21:02 -05:00
Ilya Tagunov
11c5eb754e boards: arm: nucleo_l073rz: add SPI support
Enable SPI1 port according to silkscreen markings on Arduino header.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-03-15 10:53:26 -05:00
Sundar Subramaniyan
4a90d97588 tests: samples: Add nrf52840_pca10056 board to USB test cases
Add nrf52840_pca10056 to platform whitelist for hci_usb and cdc_acm
samples.

Signed-off-by: Sundar Subramaniyan <sundar.subramaniyan@gmail.com>
2018-03-15 12:39:53 +01:00
Sundar Subramaniyan
d5de47735c boards: arm: nrf: Make USB default for nrf52840_pca10056 board
Make USB as default for the nrf52840_pca10056 board.

Signed-off-by: Sundar Subramaniyan <sundar.subramaniyan@gmail.com>
2018-03-15 12:39:53 +01:00
Sundar Subramaniyan
037dddbe8f dts: arm: nrf52840_pca10056: Use DT to configure USB
Configure USB using DT for nrf52840_pca10056

Signed-off-by: Sundar Subramaniyan <sundar.subramaniyan@gmail.com>
2018-03-15 12:39:53 +01:00
Reto Schneider
f7bf47010f boards: olimex stm32-h407: Add initial support
Olimex STM32-E407 is very similar and got used as template.

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
2018-03-14 10:20:51 -05:00
Ilya Tagunov
d6e3f22fdd boards: arm: improve Nucleo boards documentation formatting
Improve ReST formatting for copy-pasted Nucleo boards documentation.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-03-14 09:03:47 -05:00
Ilya Tagunov
ec72a71e2e boards: arm: nucleo_l073rz: add I2C support
Enable I2C1 port according to silkscreen markings on Arduino header.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-03-14 09:02:25 -05:00
Kumar Gala
570be1b625 boards: mps2_an385: cleanup pinmux comments
Several of the pinmux comments where wrong.  Update them to match the
docs.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-03-13 15:29:21 -05:00
Kumar Gala
c9b0208552 arm: mps2_an385: Move dts.fixup to board dir
Move the dts.fixup back to board dir in prep for support mps2_an521.
The memory maps between the two mps2_an385 and mps2_an521 differ greatly
so its easier to just keep the fixup files with the board.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-03-13 15:29:21 -05:00
Ilya Tagunov
92c7bd036a boards: arm: add NUCLEO-L073RZ board
Add initial support for NUCLEO-L073RZ board.
This is a typical Nucleo-64 board, so most files are reused
from already supported Nucleo boards with small changes.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-03-13 10:23:23 -05:00
Aapo Vienamo
422bc240b4 soc: nrf5: Use i2c configure options generated from dts
SoC dts fixups are added and the i2c_nrf5 driver is modified to use
the values generated from the device tree.

The I2C_*_DEFAULT_CFG and I2C_*_IRQ_PRI options are removed from board
defconfigs. Bitrate and IRQ priority are configured using using the
device tree instead.

HAS_DTS_I2C is selected on all nrf5 boards to prevent generation of
conflicting defines from Kconfig.

Signed-off-by: Aapo Vienamo <aapo.vienamo@iki.fi>
2018-03-13 14:14:13 +01:00
Aapo Vienamo
71bda84bc5 boards: arm: nrf5: Enable i2c dts nodes for boards
The i2c controller nodes are enabled in the board specific dts files
on boards where the controller was enabled in the board Kconfig.

Signed-off-by: Aapo Vienamo <aapo.vienamo@iki.fi>
2018-03-13 14:14:13 +01:00
Henrik Brix Andersen
f3077da379 boards: arduino_zero: Fix SPI pinmux configuration.
This commit changes the Arduino Zero pinmux configuration to use PA12
as MISO.

According to the schematic, the Arduino Zero provides a SPI bus on
SERCOM4 with the following pads/pins:
 - MISO: PA12/pad0 (pin 21)
 - MOSI: PB10/pad2 (pin 19)
 - SCK:  PB11/pad3 (pin 20)

The MISO signal is incorrectly labeled as PB12_S4_SPI_MISO on the
schematic. It should be labeled PA12_S4_SPI_MISO.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-03-12 21:40:24 -05:00
Maureen Helm
a6b55edb63 adafruit_feather_m0_basic_proto: Enable usb controller in board dts
This was missing from commit 34a38816f6,
causing CI failures.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-03-12 20:04:17 -05:00
Henrik Brix Andersen
34a38816f6 boards: adafruit_feather_m0_basic_proto: Add USB device support.
USB device support was tested with the cdc_acm sample.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-03-12 10:13:24 -05:00
Ilya Tagunov
0f3286f932 boards: arm: enable CLOCK_STM32_HSE_BYPASS in Nucleo F0/F3 defconfigs
Nucleo-64 boards do not have X3 crystal by default, so HSE is clocked
from MCO output of ST-LINK, and CONFIG_CLOCK_STM32_HSE_BYPASS should be
enabled. STM32F0 HSE somehow magically works even without that, but
to do so is the right thing.

Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-03-12 10:12:21 -05:00
Kumar Gala
3b78d937e5 usb: ateml: samd21: enable usb controller in board dts not soc
Since not all boards enable all devices, we typically have the SoC dtsi
file have a device marked with status = "disabled" and have the
board.dts explicitly enable with status = "ok".  Update it so USB on
Atmel SAMD21 work this way.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-03-11 21:53:20 -05:00
Kumar Gala
97331d1e98 arch: arm: mps2: Remove soc_irq.h
Move IRQ numbers into device tree so we can remove soc_irq.h.  We are
already using IRQ defines generated form the DTS so no point in having
soc_irq.h

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-03-10 11:42:25 -06:00
Kumar Gala
40b7be5197 drivers: i2c: Add DTS support to ARM SBCon I2C controller
Added device tree support to the ARM SBCon I2C controller.  We utilize
the compatiable "arm,versatile-i2c" the binding from Linux for the some
peripheral block.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-03-10 11:42:25 -06:00
Henrik Brix Andersen
679f401fa0 boards: adafruit_feather_m0_basic_proto: Disable legacy SPI API.
The legacy SPI API was turned back on for the Adafruit Feather M0
Basic Proto when the SAM0 SoC was switched to using DTS for SPI. This
commit turns it back off.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-03-10 11:42:25 -06:00
Justin Watson
b9c65e1882 drivers: GPIO Added GPIO for SAM family.
Added GPIO driver for SAM family of SoCs.

Signed-off-by: Justin Watson <jwatson5@gmail.com>
2018-03-10 11:42:25 -06:00
Philémon Jaermann
74db6bfa73 boards: arm: Add nucleo-f446re board
Add nucleo-f446re board support and documentation

Signed-off-by: Philémon Jaermann <p.jaermann@gmail.com>
2018-03-10 11:42:25 -06:00
Endre Karlson
cc1a0f72de boards: arm: Add Dragino LSN50 LoRA node
Add dts, kconfig and other necessary code for LSN50 board from Dragino
to work with Zephyr.

Signed-off-by: Endre Karlson <endre.karlson@gmail.com>
2018-03-10 11:42:25 -06:00
Armando Visconti
2bf1fe2035 boards: arm: Add support for 96Boards Argonkey Board
ArgonKey board is a 96boards sensor hub platform for all 96Boards
compliant family products. The ArgonKey packs a Cortex-M4 chip
together with a set of motion, environmental and ambiental sensors
and can be used as a development platform for many different
applications.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-03-10 11:42:25 -06:00
a8a36a23fc spi: sam0: use Device Tree for configuration.
Switch the SoC device tree to define a single entry per SERCOM instead
of one per mode.

Define a Device Tree binding for the SAM0 SPI and use it instead of
Kconfig for enabling / disabaling instances

Switch the Arduino Zero, Adafruit Feather M0 Basic Proto, and
Trinket M0 to use the new defintion.

Add the APA102 LED that's on the Trinket as a test.

Signed-off-by: Michael Hope <mlhx@google.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-03-10 11:42:25 -06:00
Justin Watson
ff7fd44a57 boards: sam4s_xplained: Changed the sample to use USB on debug port
Changed the default UART used for the console. You used to have to
use wires on the J4 header. Now you can use the UART provided by the
Segger USB composite device.

Signed-off-by: Justin Watson <jwatson5@gmail.com>
2018-03-10 11:42:25 -06:00
Yannis Damigos
a1e5dc1b93 boards/arm/olimexino_stm32: Enable SPI2 port
Enable SPI2 port on olimexino_stm32

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-03-10 11:42:25 -06:00
Justin Watson
d8b6f54ff4 cmake: 'ninja flash' support for sam4s_xplained
Added support for the command `ninja flash` and `ninja debug`
for the Atmel SAM4S Xplained board.

Signed-off-by: Justin Watson <jwatson5@gmail.com>
2018-03-10 11:42:25 -06:00
Justin Watson
1be0c956c7 doc: boards: Fixed doc. output with hello_world sample
Fixed the output string in the documentation for
the SAM E70 Xplained. The output for the hello_world
sample wasn't correct.

Signed-off-by: Justin Watson <jwatson5@gmail.com>
2018-03-10 11:42:25 -06:00
Nathan Tsoi
32ef59a4d1 boards: arm: add support for STM32F0DISCOVERY
Support the ST STM32F0DISCOVERY board with STM32F051R8T6 SoC

Tested with:
  - `samples/basic/blinky`
  - `samples/basic/button`

Includes flash config in `stm32f0_disco.rst` for use with mcuboot

Signed-off-by: Nathan Tsoi <nathan@vertile.com>
2018-03-10 11:42:25 -06:00
Henrik Brix Andersen
7973860c7f boards: Add support for the Adafruit Feather M0 Basic Proto.
The Feather M0 Basic Proto is an Atmel SAMD21 based development board
with USB, UART, SPI, LED and onboard lithium polymer battery charger.

Use of the Adafruit stock photo (adafruit_feather_m0_basic_proto.jpg)
for the board documentation was approved by Adafruit Industries.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-03-10 11:42:25 -06:00
490e427476 boards: document and enable USB on the Arduino Zero and Trinket M0.
Tested on the cdc_acm and netusb samples.

Signed-off-by: Michael Hope <mlhx@google.com>
2018-03-10 08:41:39 -05:00
Reto Schneider
b7de2af1f6 boards: olimex stm32-e407: Fix comment
Get #endif comment in line with the matching #ifdef.

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
2018-03-09 21:29:43 -05:00
Erwan Gouriou
0ee0752bec boards: nucleo_f412zg: Enable eth over USB as default net i/f
As USB port is present on the board, and pinmux configured,
add USB support in board dts file.
Configure Ethernet oer USB as default net i/f

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-03-09 20:27:18 -05:00
Sahaj Sarup
069fce7289 boards: uart: Add UART6 for 96b_carbon
Enabled UART 6 on pin PC6 and PC7 for 96b_carbon

Signed-off-by: Sahaj Sarup <sahaj.sarup@linaro.org>
2018-03-08 13:58:28 -06:00
Reto Schneider
dfcf11f64b boards: olimex stm32-e407: Fix pin number of RESET
According to STM32-E407.pdf (Revision I, June 2017), CON1 RST is
connected to processor pin #25, not #23.

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
2018-03-06 17:57:45 -06:00
Kumar Gala
5ac590a316 arch: arm: Add one hardware platform to default testing
The arm qemu platform has limitiations as we get into more complicated
features like userspace support.  Add one hardware platform to catch
issues in sanitycheck for development of such features.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-03-05 12:35:27 -05:00
Kumar Gala
83fa6c9554 dts: arm: Refactor SoC dts.fixup into arch/arm/soc
Move common SoC dts.fixup defines into arch/arm/soc/<SOC>/dts.fixup so
we remove duplication in the boards and only have board specific
defines in boards/arm/<FOO>/dts.fixup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-02-26 10:55:36 -06:00
Yannis Damigos
c0985fa0cd boards/arm/nucleo_l476rg: Fix usart1 node
Fix usart1 node in boards dts file

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-02-24 08:10:21 -06:00
Jonas Pfaff
f208a59c5e boards: arm: same70: Add mcuboot flash partitions to dts
Extend same70 dts with mcuboot compatible flash partitions

Signed-off-by: Jonas Pfaff <jonas.pfaff@gmail.com>
2018-02-23 08:52:48 -06:00
Marti Bolivar
94d7afd73f boards: delete misleading comments in flash partitions
The space referred to in these comments was once truly reserved for
the application: no zephyr partition would ever use it.

Now, though, that's not the case, since NFFS will use these sectors
when enabled.

Just delete the comments.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2018-02-22 18:52:42 +01:00
Marti Bolivar
527e5dabe7 boards: dts: replace comments with links to documentation
Let's point users at the latest documentation on flash
partitions from each of the board files, rather than duplicating some
of the information in it.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2018-02-22 18:52:42 +01:00
4f9864b15b boards: add the Adafruit Trinket M0.
The Trinket M0 is a tiny SAMD21 based board with USB, UART, SPI, and
an on-board RGB LED.

Signed-off-by: Michael Hope <mlhx@google.com>
2018-02-22 08:25:39 -06:00
2e7146b7a6 arch: refactor the SAM0 SoC fixups into a SoC-level file.
This prepares the way for the Trinket M0.

Signed-off-by: Michael Hope <mlhx@google.com>
2018-02-21 16:03:10 -06:00
Kumar Gala
87a8d199d8 dts: atmel_sam: Refactor SoC dts.fixup into arch/arm/soc/atmel_sam
Move common SoC dts.fixup defines into
arch/arm/soc/atmel_sam/<BAR>/dts.fixup so we remove duplication in the
boards and only have board specific defines in
boards/arm/<FOO>/dts.fixup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-02-21 16:02:12 -06:00
Kumar Gala
a73e8fa083 dts: nxp: Refactor imx/rt dts.fixup into arch/arm/soc
Move common SoC dts.fixup defines into arch/arm/soc/nxp_imx/rt/dts.fixup
so we remove duplication in the boards and only have board specific
defines in boards/arm/<FOO>/dts.fixup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-02-21 11:38:36 -06:00
Kumar Gala
4c50b1f199 dts: nxp: Refactor kwx dts.fixup into arch/arm/soc
Move common SoC dts.fixup defines into
arch/arm/soc/nxp_kinetis/kwx/dts.fixup so we remove duplication in
the boards and only have board specific defines in
boards/arm/<FOO>/dts.fixup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-02-21 11:38:36 -06:00
Kumar Gala
8760edd6a5 dts: nxp: Refactor kl2x dts.fixup into arch/arm/soc
Move common SoC dts.fixup defines into
arch/arm/soc/nxp_kinetis/kl2x/dts.fixup so we remove duplication in
the boards and only have board specific defines in
boards/arm/<FOO>/dts.fixup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-02-21 11:38:36 -06:00
Kumar Gala
29d4ea327f dts: nxp: Refactor lpc54xxx dts.fixup into arch/arm/soc
Move common SoC dts.fixup defines into
arch/arm/soc/nxp_lpc/lpc54xxx/dts.fixup so we remove duplication in
the boards and only have board specific defines in
boards/arm/<FOO>/dts.fixup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-02-21 11:38:36 -06:00
Kumar Gala
340bc66f24 dts: nxp: Refactor k64 dts.fixup into arch/arm/soc
Move common SoC dts.fixup defines into
arch/arm/soc/nxp_kinetis/k6x/dts.fixup so we remove duplication in the
boards and only have board specific defines in
boards/arm/<FOO>/dts.fixup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-02-21 11:38:36 -06:00
Erwan Gouriou
336e088d52 boards: nucleo_f429zi: fixup space character issue
A space character has been introduced after 'F249ZI' string
in various files. Fix this.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-02-21 11:36:48 -06:00
Justin Watson
c1ce290d45 serial: sam: add support for interrupt driven serial
Implements interrupt driven UART for the serial driver.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Signed-off-by: Justin Watson <jwatson5@gmail.com>
2018-02-21 11:26:20 -06:00
Kumar Gala
5a5e352899 dts: ti: Refactor TI SoC dts.fixup into arch/arm/soc/ti_simplelink
Move common SoC dts.fixup defines into
arch/arm/soc/ti_simplelink/<BAR>/dts.fixup so we remove duplication in
the boards and only have board specific defines in
boards/arm/<FOO>/dts.fixup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-02-21 10:57:23 -06:00
Erwan Gouriou
a8da9a65ac board: nucleo_f412zg: Configure I2C and USB
Configure I2C and USB on nulceo_f412zg
It allows to run Sensor Dashboard demo on Micropython

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-02-21 10:04:39 -06:00
Yannis Damigos
22c1018bfb dts: arm: 96b_carbon use DT to configure USB
Configure USB using DT for 96b_carbon

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-02-21 09:17:12 -06:00
Tomasz Bursztyka
82e832f836 boards/arm: Enabling SPI ports on nucleo_f103rb
Current configuration was choosen to avoid colliding with existing ones
for i2c and uart, but others can be used.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2018-02-20 12:26:12 -06:00
Tomasz Bursztyka
561161dc0e boards/arm: Enabling SPI ports on nucleo_f030r8
Current configuration was choosen to avoid colliding with existing ones
for i2c and uart, but others can be used (see
drivers/pinmux/stm32/stm32_f0.h)

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2018-02-20 12:26:12 -06:00
Daniel Wagenknecht
1f43e7b684 boards: arm: STM32 boards use DT to configure SPI
Configure SPI using DT for the following STM32 boards:

96b_neonkey
nucleo_f091rc
nucleo_f334r8
nucleo_f401re
nucleo_l432kc
nucleo_l476rg

SPI nodes in <board>.dts file are populated matching boards existing
pinmux default configuration and enabled in Kconfig.defconfig if
SPI is enabled.

For nucleo_l476rg board SPI2 and SPI3 nodes are not yet added, because
of missing pinmux defines.

Fixes #5836

Signed-off-by: Daniel Wagenknecht <wagenknecht.daniel@gmail.com>
2018-02-20 09:47:43 -05:00
Henrik Brix Andersen
dd0d07c825 sam0: Enable pinmux in arduino_zero_defconfig.
Commit 247782a7b3 moved the sam0 UART
and SPI configuration into pinmux. Using these drivers without pinmux
causes the kernel to skip the pin configuration.

Tested on arduino_zero.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-02-14 09:05:12 -06:00
Erwin Rol
3f3466af8d dts: add ccm config to olimex stm32 boards
Add ccm config to the Olimex STM32 boards DTS files.

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
2018-02-13 12:36:22 -06:00
Daniel Wagenknecht
5361963224 boards: stm32f072b_disco: add supported features
Add gpio, i2c and spi as supported feaures.

Signed-off-by: Daniel Wagenknecht <wagenknecht.daniel@gmail.com>
2018-02-10 22:42:38 -05:00
Henrik Brix Andersen
bc5b39551c doc: remove spurious console code block from arduino_zero doc.
Remove spurious console code block to fix formatting of the following
zephyr-app-commands directive. While I am here, fix the indentation of
the two zephyr-app-commands directives.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2018-02-10 18:21:34 -05:00
Anas Nashif
b3b31ade11 doc: add initial microbit documentation
Add a basic description of the platform and some placeholders, this will
need to be refined.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-02-10 15:27:36 -05:00
Sean Nyekjaer
a09b6f538a arch: atmel_sam0: rename samd SoC series to samd21
Atmel SAMD21 series was classified too broadly as SAMD.
This patch names it correctly to make room,
for other members of SAMD series

Signed-off-by: Sean Nyekjaer <sean@nyekjaer.dk>
2018-02-09 08:34:55 -06:00
Yannis Damigos
41db766bba boards: arm: olimexino_stm32: Fix board name in comments
File pinmux.c mentions wrong board in comments.
Update it with the correct board name.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-02-08 12:10:05 -06:00
Yannis Damigos
4e276e25c0 board: arm: olimexino_stm32: Add PWM1
Add PWM1 on olimexino_stm32

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-02-08 12:10:05 -06:00
247782a7b3 sam0: move the UART and SPI configuration into pinmux.
Also pull out the SERCOM pads configuration to defines.  Note that the
SAM0 has a two level configuration - a signal (like TX) is mapped to a
pad, and then a pad is mapped to a function on a pin.

Signed-off-by: Michael Hope <mlhx@google.com>
2018-02-08 12:09:46 -06:00
Erwan Gouriou
edbce1c14c boards: nucleo_f429zi: Update doc
Unlike documented, openocd is available on nucleo_f429zi.
Fix the doc.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-02-08 12:00:06 -06:00
Erwan Gouriou
668d6116a8 boards: nucleo_f413zh: Enable flash and debug with openocd
nucleo_f413zh was missing some files to support flash with
openocd. Fix this lack and update doc.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-02-08 12:00:06 -06:00
Erwan Gouriou
f7419bc98d boards: nucleo_f412zg: Enable flash and debug with openocd
nucleo_f412zg was missing some files to support flash with
openocd. Fix this lack and update doc.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-02-08 12:00:06 -06:00
Aapo Vienamo
f09bab9662 drivers: i2c: nrf5: Make pins for Port 1 configurable
CONFIG_I2C_NRF5_GPIO_SDA_PIN and CONFIG_I2C_NRF5_GPIO_SCL_PIN are
replaced with port specific versions. Board defconfigs relying on the
original names are updated. The driver is also modified to pass the
configure values to registers.

Signed-off-by: Aapo Vienamo <aapo.vienamo@iki.fi>
2018-02-05 16:12:48 -05:00
Aapo Vienamo
22e5b07e52 drivers: i2c: nrf5: Fix SDA pin naming
The instances of where SDA has been typoed SCA are fixed.

Signed-off-by: Aapo Vienamo <aapo.vienamo@iki.fi>
2018-02-05 16:12:48 -05:00
Yannis Damigos
9561c68e0c boards: arm: stm32f3_disco: add supported features
Add gpio, i2c and spi as supported features

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-02-05 09:21:33 -06:00
Yannis Damigos
5d3016aa65 boards: arm: stm32f3_disco: Enable SPI_1, SPI_2 ports
Enable SPI1 and SPI2 ports on stm32f3_disco.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-02-05 09:21:33 -06:00
0a5725e858 pinmux: sam0: add a pinmux driver for the SAM0 series.
Pin multiplexing is a function of the PORT peripheral.  This change
defines a separate pinmux device at the same address as the PORTs
themselves.

Signed-off-by: Michael Hope <mlhx@google.com>
2018-02-05 06:31:35 -08:00
Yannis Damigos
1c08d4fd03 boards: olimexino_stm32: add supported features
Add gpio, i2c and spi as supported feaures.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-02-01 13:14:53 -06:00
Yannis Damigos
6a6a4294c2 boards: arm: olimexino_stm32: Enable SPI1 port
Enable SPI1 port on olimexino_stm32.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-02-01 08:19:49 -06:00
Maureen Helm
a9c2dc011c hexiwear_k64: Add sensor dts nodes and fixups
Adds dts nodes and fixups for the fxos8700, fxas21002, and max30101
sensors to the hexiwear_k64 board. Tested with:
- samples/sensor/fxos8700
- samples/sensor/fxas21002
- samples/sensor/max30101

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-01-31 10:17:58 -06:00
Maureen Helm
d60c184c8f frdm_kw41z: Add sensor dts nodes and fixups
Adds dts nodes and fixups for the fxos8700 sensor to the frdm_kw41z
board. Tested with samples/sensor/fxos8700

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-01-31 10:17:58 -06:00
Maureen Helm
e27673a2f4 frdm_k64f: Add sensor dts nodes and fixups
Adds dts nodes and fixups for the fxos8700 sensor to the frdm_k64f
board. Tested with samples/sensor/fxos8700

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-01-31 10:17:58 -06:00
Maureen Helm
e92df9c01d samples: Build hts221 sensor sample only on supported boards
The hts221 sensor driver was implicitly made dependent upon the
disco_l475_iot1 board when it was converted to dts, so build the
associated sample only for this board. This issue was encountered when
adding sensor dts support to nxp boards, which don't have hts221.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-01-31 10:17:58 -06:00
David B. Kinder
701bb2afba doc: fix misspellings in boards and samples docs
Fix misspellings found in board and sample docs missed during regular
reviews.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-01-30 20:27:43 -05:00
Yannis Damigos
a8a320c066 boards: disco_l475_iot1: Remove POLL dependency
We should enable CONFIG_POLL on application level when
we want to use SPI transceive_async() function.
This patch removes it from disco_l475_iot1 default
configuration.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-30 16:01:14 -05:00
Anas Nashif
1fbc41b1e9 boards: 96b_carbon: add supported features
add i2c, spi and usb_device as supported feaures.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-01-30 09:01:18 -06:00
Maureen Helm
4b69e6120f usb_kw24d512: Set jlink speed explicitly
The jlink commander failed to program flash with auto speed on the
usb_kw24d512 board, so set the speed explicitly on this board.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-01-29 23:15:16 -05:00
Maureen Helm
d41fe91e65 boards: arm: Configure jlink flash runner on nxp boards
Now that the jlink runner supports the flash command, set
BOARD_FLASH_RUNNER when the OpenSDA or LPCLink debug adapter is
programmed with jlink firmware.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-01-29 23:15:16 -05:00
Erwan Gouriou
504a115ded boards: nucleo_f429zi: Configure I2C1
Enable and configure I2C1.
This configuration enables ready to use compatibility
with expansion shields based on Arduino type connectors

Additionally, fix comment on clock speed in board _defconfig

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-01-29 15:37:49 -06:00
Anders Pitman
dbba22397c samples: button: Fix button sample GPIO for nRF52
Applies to #4008 and #5159 for this board. Problem is that the
button interrupt callback was only firing once. Solution is to
set the pin pull up flag to GPIO_PUD_PULL_UP.

Signed-off-by: Anders Pitman <tapitman11@gmail.com>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-01-29 10:23:36 +01:00
Daniel Wagenknecht
3f2b376cd6 dts: stm32l4: move dts.fixup to soc family level
This moves and merges the existing board-level dts.fixup files
for STM32 L4 SOC family into one soc family level dts.fixup file.
No new fixup blocks have been added, only fixup blocks, that were
part of at least one board level dts.fixup file are present in
soc family level dts.fixup file.

disco_l475_iot1 boards fixup blocks for devices connected via SPI
and I2C stay in board level dts.fixup file, because they are board
specific.

Contributes to #5707

Signed-off-by: Daniel Wagenknecht <wagenknecht.daniel@gmail.com>
2018-01-28 10:35:30 -06:00
Daniel Wagenknecht
080fe4d4cf dts: stm32f3: move dts.fixup to soc family level
This moves and merges the existing board-level dts.fixup files
for STM32 F3 SOC family into one soc family level dts.fixup file.
No new fixup blocks have been added, only fixup blocks, that were
part of at least one board level dts.fixup file are present in
soc family level dts.fixup file.

Contributes to #5707

Signed-off-by: Daniel Wagenknecht <wagenknecht.daniel@gmail.com>
2018-01-28 10:35:30 -06:00
Daniel Wagenknecht
285c9506d5 dts: stm32f1: move dts.fixup to soc family level
This moves and merges the existing board-level dts.fixup files
for STM32 F1 SOC family into one soc family level dts.fixup file.
No new fixup blocks have been added, only fixup blocks, that were
part of at least one board level dts.fixup file are present in
soc family level dts.fixup file.

Contributes to #5707

Signed-off-by: Daniel Wagenknecht <wagenknecht.daniel@gmail.com>
2018-01-28 10:35:30 -06:00
Daniel Wagenknecht
d76858f6ae dts: stm32f4: move dts.fixup to soc family level
This moves and merges the existing board-level dts.fixup files
for STM32 F4 SOC family into one soc family level dts.fixup file.
No new fixup blocks have been added, only fixup blocks, that were
part of at least one board level dts.fixup file are present in
soc family level dts.fixup file.

96b_carbon boards fixup block for Bluetooth HCI device via SPI
stays in board level dts.fixup file, because it is board specific.

Contributes to #5707

Signed-off-by: Daniel Wagenknecht <wagenknecht.daniel@gmail.com>
2018-01-28 10:35:30 -06:00
Daniel Wagenknecht
be430a05cb dts: stm32f0: move dts.fixup to soc family level
This moves and merges the existing board-level dts.fixup files
for STM32 F0 SOC family into one soc family level dts.fixup file.
No new fixup blocks have been added, only fixup blocks, that were
part of at least one board level dts.fixup file are present in
soc family level dts.fixup file.

Contributes to #5707

Signed-off-by: Daniel Wagenknecht <wagenknecht.daniel@gmail.com>
2018-01-28 10:35:30 -06:00
Daniel Wagenknecht
d6bedd7c55 boards: arm: add support for STM32F072B-DISCO
Support the ST STM32F072B-DISCO discovery board with
STM32F072RB SoC

Signed-off-by: Daniel Wagenknecht <wagenknecht@clage.de>
2018-01-26 09:57:44 -06:00
Richard Osterloh
da87e159af boards: arm: Add I2C support to nucleo_f411re
Add the required changes to support i2c on the Nucleo F411RE

Signed-off-by: Richard Osterloh <richard.osterloh@gmail.com>
2018-01-26 09:30:29 -06:00
Kumar Gala
44141f6939 arm: nordic: Refactor dts.fixup files to SoC vs board
Refactor common dts.fixup for the SoC into the SOC_SERIES dts.fixup
file.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-01-25 15:23:00 -06:00
Neil Armstrong
7474ad6286 boards: arm: Add stm32f072-eval board support
Add the STM32F072-EVAL Board minimal support.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2018-01-25 15:13:53 -06:00
Kumar Gala
1502092802 boards: 96b_nitrogen: Fix building of bluetooth/init/test_controller
When we updated the Nordic SoCs for getting flash controller label/name
from dts, we missed updating the 96b_nitrogen/dts.fixup file.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-01-25 01:52:42 -06:00
Andrzej Puzdrowski
ff7dfc4fb4 dts: bindings: add support for the flash driver name
So far, DT did not support the flash driver name.
Any flash-controller should have the appropriate
flash driver that should be identified by its name.

This path adds generic support for extract the description
from the flash-controller node,
adds implementation of this property for all nrf5x targets.


Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2018-01-23 12:29:50 -06:00
Vincent Veron
73c52d74c3 boards: disco_l475_iot1: Enable vl53l0x sensor
Add all files related to the board and sensor.

Signed-off-by: Vincent Veron <vincent.veron@st.com>
2018-01-23 10:14:49 -06:00
Shiksha Patel
a69d4604be lpc: Add lpcxpresso54114 board based on its architecture
Add default drivers, pinmux configurations, and other board level
configuration parameters in respective Kconfigs.

Add board dts, fixup, and docs.

Samples tested include:
- hello_world
- sychronization
- basic/blinky
- basic/threads

Signed-off-by: Shiksha Patel <shiksha.patel@nxp.com>
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-01-23 09:18:32 -06:00
Yannis Damigos
d0fc8b5ace boards: 96b_carbon, disco_l475_iot1 use dts for SPI BT modules
Move bluetooth module SPI port related configuration
to dts and generate dts based defines on 96b_carbon
and disco_l475_iot1.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-22 18:08:51 -06:00
Yannis Damigos
94a63155a7 boards: efm32wg_stk3800: Fix boards dts file copyright
Christian Taedcke is the author of this file according to
PR #271.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-22 09:04:03 -06:00
David B. Kinder
6f88c28487 doc: fix broken links in nucleo board docs
references to pdf files (e.g.,
www.st.com/resource/en/reference_manual/dm00091010.pdf)
were missing the http:// prefix so looked like a relative reference.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-01-19 15:02:40 -06:00
Erwan Gouriou
ebcd8ec483 board: disco_l475_iot1: fix POLL dependency
Adding 'config POLL' in Kconfig.defconfig creates a dependency
between CONFIG_POLL and board BOARD_DISCO_L475_IOT1 & SPI.
Remove this definition from the file and set CONFIG_POLL
in board _defconfig file.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-01-19 12:16:00 -06:00
Anas Nashif
812e2eaad2 boards: mps2-an385: this platform is supported by qemu
In Qemu 2.10 we can run this board configuration in Qemu directly. Make
this possible by setting the board configuration to allow emulation.

Until we have the latest QEMU in the SDK this can be used with a recent
QEMU like this:

$ mkdir build; cd build
$ cmake -DQEMU=/usr/bin/qemu-system-arm -DBOARD=mps2_an385 ..
$ make run

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-01-18 21:37:48 -05:00
Anas Nashif
8acdbd796e sanitycheck: support new simulation keyword
Some boards are supported natively by qemu. This option will allow us to
run tests using those platforms directly without having to go via a
dedicated qemu board definition.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-01-18 21:37:48 -05:00
Carles Cufi
72046a8abc doc: getting_started: Support multi-OS instructions
In order to be able to document the build on Windows and UNIX
systems, slight variations are required on the app commands
that are used throughout the documentation system.

This includes getting rid of the prompt symbol and providing commands
for both UNIX and Windows operating systems.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-01-18 16:53:31 -05:00
Maureen Helm
dfdf5e37e1 boards: Move default pinmux enable to <board>_defconfig
Most boards enable the pinmux by default by setting CONFIG_PINMUX=y in
<board>_defconfig, but several boards did it in Kconfig.defconfig
instead. Several code reviews, such as #5043, have suggested using a
select in Kconfig.board to enable the pinmux, however this caused
warnings:

warning: (BOARD_LPCXPRESSO54114) selects PINMUX which has unmet direct
dependencies (BOARD_FRDM_K64F || BOARD_FRDM_KL25Z || BOARD_FRDM_KW41Z ||
BOARD_HEXIWEAR_K64 || BOARD_USB_KW24D512 || BOARD_GALILEO)

Fix how these boards enable the pinmux so they are more consistent with
other boards.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2018-01-18 11:40:56 -06:00
Yannis Damigos
bc3ce491f4 boards: arm: STM32 boards use DT to configure SPI
Configure SPI using DT for the following STM32 boards:

96b_carbon
disco_l475_iot1

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-17 11:51:48 -06:00
Shawn Nock
5d32b5ca55 boards: arm: Adds Sparkfun nRF52832 breakout board support
Signed-off-by: Shawn Nock <shawn@monadnock.ca>
2018-01-15 11:28:25 +01:00
Erwan Gouriou
4ebbaa2bb0 boards: disco_l475_iot1: fix method to configure sensor triggers
Defining TRIGGER_MODE choices in board Kconfig.defconfig files
brings unwanted dependency and warning messages when using sensors
on other boards.
Change sensor configuration by enabling wanted trigger choice rather
than redefining choice.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-01-13 09:06:58 -08:00
32a55e3fa3 boards: enable and document the SPI driver on the Arduino Zero.
Adds fixups, enables in the config, and enables the SPI4 port.

Signed-off-by: Michael Hope <mlhx@google.com>
2018-01-13 07:39:05 -05:00
Gil Pitney
41cd1435c8 boards: arm: cc3220sf_launchxl: doc: Fixed links, clarifications.
Updated previously broken links to emulation setup install, instructions
and Getting Started Guide.

Also added a few clarifications for the prerequisites setup.

Fixes #5601

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-01-11 21:23:09 -05:00
b97e08c2b7 boards: arduino_zero: enable and document the flash driver.
Signed-off-by: Michael Hope <mlhx@google.com>
2018-01-11 19:03:52 -05:00
Neil Armstrong
5ac18047c1 boards: nucleo_f091rc: add spi to documentation
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2018-01-11 19:00:19 -05:00
Neil Armstrong
8359e46d48 boards: nucleo_f091rc: add SPI1 and SPI2 pinmux
Add the SPI1 and SPI2 pinmux for the nucleo_f091rc board

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2018-01-11 19:00:19 -05:00
Yannis Damigos
4d2dbab036 boards: stm32f1: Clean up driver generic flags
Clean up driver generic flags from boards' _defconfig files

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-11 14:35:45 -06:00
Yannis Damigos
c868ac0238 boards: stm32f0: Clean up driver generic flags
Clean up driver generic flags from boards' _defconfig files

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-11 14:35:45 -06:00
Yannis Damigos
2cb692e7de boards: stm32f3: Clean up driver generic flags
Clean up driver generic flags from boards' _defconfig files

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-11 14:35:45 -06:00
Yannis Damigos
96740a0570 boards: stm32l4: Clean up driver generic flags
Clean up driver generic flags from boards' _defconfig files

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-11 14:35:45 -06:00
Yannis Damigos
d60dc69ee7 boards: stm32f4: Clean up driver generic flags
Clean up driver generic flags from boards' _defconfig files

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2018-01-11 14:35:45 -06:00
Carles Cufi
7d764b35f3 cmake: Use path-corrected version of ZEPHYR_BASE
Instead of accessing the environment variable ZEPHYR_BASE every time we
require accessing the source code root, use an intermediate variable
that has OS path separators correctly set to '/' to avoid issues on
Windows.

Note: This removes the ZEPHYR_SOURCE_DIR CMake variable. External
applications using that will need to change to use the new ZEPHYR_BASE
variable.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-01-11 14:59:03 -05:00
Anas Nashif
73220b79ab boards: arduino_zero: document build using cmake
Use built-in macro for build instructions.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-01-11 12:50:14 -05:00
Tomasz Bursztyka
671514fc59 boards/usb_kw24d512: Cleaning up defconfig
Old reference on driver's specific raw mode was still lurking around.
Removing those.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2018-01-10 21:53:01 -05:00
Erwan Gouriou
96333b741f board: nucleo_f429zi provide eth driver config
If NETWORKING is activated, enable L2 ethernet and stm32 ethernet driver

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2018-01-09 08:44:03 -06:00
Gil Pitney
e5cef70abd drivers: i2c: Add support for cc32xx I2C bus
This was validated on the cc3220sf_launchxl board
using the Zephyr thermometer sample program
adapted to call the i2c driver directly, and fetching
samples from the on-board TMP006 temperature sensor.

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-01-09 08:39:59 -06:00
Ilya Tagunov
3b1b05be7b boards: arm: nucleo_f030r8: add I2C to documentation
Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-01-07 16:04:08 -05:00
Ilya Tagunov
299bb15352 boards: arm: nucleo_f030r8: enable i2c1 and i2c2 nodes and add fixups
Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-01-07 16:04:08 -05:00
Ilya Tagunov
007f2e0fda boards: arm: nucleo_f030r8: add I2C1 and I2C2 pinmux
Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
2018-01-07 16:04:08 -05:00
d8ca2b6980 boards: add documentation for the Arduino Zero.
Signed-off-by: Michael Hope <mlhx@google.com>
2018-01-04 13:18:25 -05:00
4c47c21753 boards: add board and DTS definitions for the Arduino Zero.
Signed-off-by: Michael Hope <mlhx@google.com>
2018-01-04 13:18:25 -05:00
Vakul Garg
aded95b888 eth: mcux: Enable ETH_MCUX_0 conditionally
ETH_MCUX_0 needs to be turned on when CONFIG_NET_L2_ETHERNET is enabled.
If CONFIG_NET_L2_ETHERNET is disabled (e.g. when configured for 6loble),
then ETH_MCUX_0 should remain disabled.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
2018-01-02 13:33:18 -05:00
Manivannan Sadhasivam
c4b24f87da boards: arm: 96b_neonkey: doc: Remove flash goal
This board doesn't support `make flash` way of programming.
So, remove that from documentation.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-01-02 09:42:22 -05:00
Paul Sokolovsky
e25df54eae various: Update/fix some textual material and code comments.
Of these, only struct net_ipv6_nbr_data::send_ns is a descriptive
change:

send_ns is used for timing Neighbor Solicitations in general, not
just for DAD.

The rest are typo/grammar fixes.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2017-12-29 09:45:39 -05:00
Anas Nashif
f006ea3b58 boards: add supported features
Update board definitions with supported feature. This is temporary
until we have full coverage for device drivers in DTS, then we can use
DTS instead.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-12-28 20:24:29 -05:00
Carles Cufi
7fc13d29c8 board: arm: nrf: Add support for GDB debugging
Use the existing J-Link functionality to support debugging nRF5x targets
with GDB over a Segger J-Link USB connection.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2017-12-19 16:57:36 -05:00
Erwan Gouriou
e2f0aefe2f boards: disco_l475_iot1: add ST reference to doc name
ST official reference for this board is B-L475E-IOT01A.
While not used in zephyr, add reference in documentaion title.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2017-12-19 12:45:17 -05:00
Ricardo Salveti
dd43bd1823 boards: arm: nrf51_blenano: add board documentation
Documentation based on nrf52_blenano2.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2017-12-18 21:46:39 -05:00
Ricardo Salveti
a3e8f44e11 boards: arm: nrf51_blenano: add on-board LED definition
The on-board LED is connected to pin 19 (P0_19).

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2017-12-18 21:46:39 -05:00
Ricardo Salveti
96343afc2d boards: arm: nrf51_blenano: add support for make flash
Nano kit comes with a daplink board, which can be flashed with pyocd.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2017-12-18 21:46:39 -05:00
Marti Bolivar
3ebc2e46b2 scripts: runner: dfu-util: support DT-based flashing for DfuSe
Enable DT support in the dfu-util flasher when the target is a
DfuSe (DFU + ST extensions) device.

Untangling DfuSe-specific options (currently, the default is 'leave',
to immediately start running after the flashing is done) from the
actual address makes this cleaner, and sets up a subsequent patch to
let callers set DfuSe options.

It also lets us fix an unnecessary printline when flashing DfuSe
devices. There's no need to reset those, since the 'leave' modifier
starts execution immediately.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2017-12-15 09:57:30 -05:00
Marti Bolivar
7a3462de7a scripts: runner: use arguments, not environment vars
The various runners (flash/debug scripts) use environment variables to
take arguments. This is legacy behavior which is not desirable.

Use command line arguments instead.

Note: this leaves more general environment variables with publicly
      documented behavior in place for now, for compatibility, e.g.:

      ZEPHYR_FLASH_OVER_DFU, OPENSDA_FW, ESP_IDF_PATH, PYOCD_DAPARG

For example, when using dfu-util to flash arduino_101, instead of
setting DFUUTIL_PID, DFUUTIL_ALT, and DFUUTIL_IMG environment
variables, have the script invocation look like this:

  python3 .../zephyr_flash_debug.py dfu-util flash \
          [common arguments omitted] \
          --pid=8087:0aba --alt=x86_app \
          --img=.../build/zephyr/zephyr.bin

Make similar changes for other runners (openocd, etc.) and
targets (debug, debugserver).

To implement this in the scripts:

  - have the individual scripts/support/runner/some-runner.py files
    register their own command line arguments

  - teach them to construct instances from arguments, not the
    environment

  - have zephyr_flash_debug.py request runners to register command
    line argument parsers, and handle arguments

In the build system:

  - add a new board_runner_args() extension function that board.cmake
    files can use to add to the zephyr_flash_debug.py command line

  - adjust cmake/flash/CMakeLists.txt to invoke with arguments

  - add new helper include files for each runner (like
    boards/common/dfu-util.board.cmake, etc.), which add default
    options as needed and then add on overrides from
    board_runner_args() calls

  - update board.cmake files to use the new includes and extension

This implied some tweaking when using openocd to make the CMake string
escaping and unescaping work properly.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2017-12-15 09:57:30 -05:00
Marti Bolivar
e33ec242fd scripts: refactor flash/debug scripts to remove "shell"
The Python-based runners have replaced the old shell scripts. Refactor
the build system accordingly:

- FLASH_SCRIPT is now BOARD_FLASH_RUNNER
- DEBUG_SCRIPT is now BOARD_DEBUG_RUNNER

The values, rather than being the names of files, are now the names of
runners in scripts/support/runner. They are still short, descriptive
names like "openocd", "jlink", "em-starterkit", etc.

Adjust the zephyr_flash_debug.py call and runner internals
accordingly. Have each runner class report a name and the commands it
can handle. This lets us move some boilerplate from each do_run()
method into the common run() routine, and enables further improvements
in future patches.

The handles_command() method is temporary, and will be replaced by a
more general mechanism for describing runner capabilities in a
subsequent patch. The initial use case for extending this is to add
device tree awareness to the runners.

To try to avoid user confusion, abort the configuration if an
xxx_SCRIPT is defined.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2017-12-15 09:57:30 -05:00
Erwan Gouriou
9b2a00058d board: disco_l475_iot1: Use dts for sensor definition
Move sensor related configuration to dts and dts based
generated defines on disco_l475_iot1.

Signed-Off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2017-12-14 11:30:44 -06:00
Erwan Gouriou
0c397c7b34 boards: stm32: fix default HSI clock configuration
To avoid configuration surprises, replace
CONFIG_CLOCK_STM32_PLL_SRC_HSI
with
CONFIG_CLOCK_STM32_PLL_SRC_HSI=y
No impact today, but could depend on tools.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2017-12-14 08:52:20 -06:00
Erwan Gouriou
96efdbbf33 boards: add support for nucleo_f429zi
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2017-12-12 12:36:08 -06:00
Yannis Damigos
c2a0789d5f boards: stm32f3_disco: Use pins PA9/PA10 for I2C_2
On stm32f3_disco pins PF0/PF1 are used for OSC_IN/OSC_OUT
signals. Use pins PA9/PA10 for I2C_2 port

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2017-12-12 12:36:08 -06:00
Neil Armstrong
70224fdc59 boards: nucleo_f091rc: add i2c to documentation
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2017-12-12 12:36:08 -06:00
Neil Armstrong
a2883af9ba board: nucleo_f091rc: enable i2c1 and i2c2 nodes and add fixups
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2017-12-12 12:36:08 -06:00
Neil Armstrong
36f613810b board: nucleo_f091rc: add I2C1 and I2C2 pinmux
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2017-12-12 12:36:08 -06:00
Sudarsana Nagineni
aca079c9fc boards: olimex stm32-e407, stm32f407g_disc1: Enable USB OTG Support
Enable USB OTG support for olimex stm32-e407 and stm32f407g_disc1
boards by adding USB OTG to the pinmux table. Also, fix out of
range endpoint addresses in CDC ACM case for STM32F4 based boards.

Signed-off-by: Sudarsana Nagineni <sudarsana.nagineni@intel.com>
2017-12-12 12:36:08 -06:00
Marti Bolivar
a6bc913fb5 doc: boards: v2m_beetle: fix conversion to cmake
This board doesn't support the 'flash' goal, which was mistakenly
included during the CMake conversion.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2017-12-06 16:58:49 -06:00
Gil Pitney
60d16bda22 boards: arm: cc3220sf_launchxl: doc: clarify external flash size
External serial flash on this board is 4MB.

Previously, this was confused with internal flash, which is 1MB.

Fixes #1270

Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2017-12-05 11:31:55 -06:00
Kumar Gala
6b38f57225 Add missing license and copyright headers
The following files didn't have any copyright or license headers on them
when they got contributed.  So add the SPDX Apache license and
appropriate copyright info:

boards/arm/stm32l476g_disco/pinmux.c
samples/basic/threads/src/main.c
tests/net/socket/tcp/src/main.c

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-12-05 08:21:05 -06:00
David B. Kinder
c7e9495811 doc: fix broken notes directives
Fix two docs using ".. note:" instead of ".. note::" (missing a colon).

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-12-04 15:00:17 -05:00
Piotr Mienkowski
dafdfadfbe drivers: Add Atmel SAM I2S (SSC) driver
Added Inter-IC Sound driver (based on SSC module) for Atmel
SAM MCU family.

Tested on Atmel SMART SAM E70 Xplained board

Origin: Original

Jira: ZEP-2509
Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2017-11-30 10:30:33 -05:00
Stefan Smarzly
a7b476608f boards: arm: compatible scratch slot size for mcuboot on NRF52 PCA10040
Signed-off-by: Stefan Smarzly <stefan.smarzly@tado.com>
2017-11-30 13:43:01 +01:00
Neil Armstrong
a8054d5936 boards: nucleo_f091rc: fix cmake build
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2017-11-29 10:03:53 -06:00
Maureen Helm
5e9c13afe6 mimxrt1050_evk: Fix kernel timer frequency
The kernel timer frequency was incorrectly set to the system clock
frequency (528 MHz) instead of the core clock frequency (600 MHz).

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-11-28 11:43:14 -06:00
Anas Nashif
1f1143ac87 build: use kconfig to select generated artifacts
Not all boards require the various binary formats zephyr generates. So
be selective based on the arch, SoC or board and only geenrate the
binaries actually needed.

Fixes #5009

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-11-23 07:29:13 -05:00
Arthur SFEZ
ec53c8a834 boards: arm: Add support for STM32L476G Discovery board
Add configuration, pinmux, dts and documentation for the STM32L476G
Discovery board based on the STM32L476VG SoC.

Signed-off-by: Arthur SFEZ <arthur.sfez@gmail.com>
2017-11-18 08:45:32 -05:00
Maureen Helm
d952aae3f1 doc: Convert mimxrt1050_evk doc to CMake
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-11-17 18:36:16 -05:00
Maureen Helm
fb011862e4 mimxrt1050_evk: Fix setting of JLINK_DEVICE
The '=' character was incorrectly getting passed to the JLinkGDBServer
device argument, and caused the server to fail to connect to the target.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-11-15 16:24:11 -06:00
David B. Kinder
be9ee06bd9 doc: fix misspellings in boards and samples docs
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-11-15 12:59:22 -05:00
Piotr Mienkowski
8bfcfe5545 drivers: i2c: Add DTS support for i2c_sam_twihs driver
Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2017-11-15 11:13:08 -06:00
Piotr Mienkowski
1f47ed75b7 drivers: i2c: rename twihs_sam to i2c_sam_twihs
Rename the Atmel SAM I2C driver based on TWIHS module to match the
convention:
<driver class>_<SoC family>_<hardware module used by the driver>

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
2017-11-15 11:13:08 -06:00
Kumar Gala
3f4fb4a3b6 boards: olimexino_stm32: Use standard openocd.board.cmake
olimexino_stm32 was not getting the flash base address from the Kconfig
variable.  Since the board uses DTS that will get set, so we can use the
standard openocd.board.cmake.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-11-15 10:46:37 -06:00
Maureen Helm
457699cd3c arm: Enable the ARM MPU on the NXP i.MX RT SoC and board
Unlike other NXP SoCs currently in Zephyr, the mimxrt1052 has the ARM
MPU rather than the NXP MPU. Start out by enabling it with a simple set
of memory regions for "flash" (ITCM), "ram" (DTCM), and the peripheral
buses. More regions will need to be added when we implement support for
external memories.

Tested with:
- samples/mpu/mpu_stack_guard_test
- tests/kernel/mem_protect/protection

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-11-15 09:09:58 -06:00
Maureen Helm
ec11279645 boards: arm: Add NXP mimxrt1050_evk
Adds support for the NXP MIMXRT1050-EVK board, an entry-level
development board for the new mimxrt1052 Cortex-M7 SoC.

Adds pinmuxing, dts, documentation, and jlink debug support for the new
board. Note that pinmuxing uses the mcux pinmux driver directly rather
than the Zephyr pinmux interface. The mimxrt1052 SoC has complicated
pinmuxing that may require changing the Zephyr pinmux interface to
support, so for now let's use the mcux driver directly.

We are also not yet configuring the external flash, therefore a debugger
is required to load code to the internal sram. The on-board OpenSDA
circuit with jlink firmware is sufficient, and the 'make debug' build
target is supported.

Samples tested include: hello_world, philosophers, synchronization,
basic/blinky, and basic/button.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-11-15 09:09:58 -06:00
Arthur SFEZ
209180848f doc: fix grammar/punctuation in stm32l476g_disco/nucleo_l476rg
Signed-off-by: Arthur SFEZ <arthur.sfez@gmail.com>
2017-11-15 08:21:49 -06:00
Arthur SFEZ
13379dc0cc boards: add openocd support for nucleo_l476rg and stm32l496g_disco
the current zephyr sdk now includes openocd configurations for l4
boards, we can now update the boards and docs to reflect this

Signed-off-by: Arthur SFEZ <arthur.sfez@gmail.com>
2017-11-15 08:21:49 -06:00
Zhang WenChao
989c9c11d6 board: Add PWM2 on stm32f4_disco
Signed-off-by: Zhang WenChao <zhangwenchao001@gmail.com>
2017-11-14 07:04:00 -05:00
Marti Bolivar
f0c95919b0 doc: boards: arm: convert make to cmake
Unify documentation formatting and use zephyr-app-commands where
applicable.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2017-11-10 18:35:50 -05:00
Marti Bolivar
76a62a3735 doc: boards: olimex: fix "resetting" typos
And add missing commas while we're here.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2017-11-10 18:35:50 -05:00
Marti Bolivar
1bfe59103f doc: boards: efm32wg_stk3800: fix note
The rst syntax is wrong; fix it. Fix a typo as well.

Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
2017-11-10 18:35:50 -05:00
Sebastian Bøe
f0346bfac0 flash: Change type of FLASH_SCRIPT_ENV_VARS
The old way of constructing FLASH_SCRIPT_ENV_VARS was corrupting the
values that were passed to the flasher. This new method is the
standard way of creating a dictionary/hashmap in CMake and does not
suffer from the same problem.

This fixes
https://github.com/zephyrproject-rtos/zephyr/issues/4844#event-1334599401

Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
2017-11-10 07:54:54 -05:00
Kumar Gala
ef912810d3 dts: Move dts files into board dirs
Move the dts files into the board dir so that board ports can be more
standalone.  This will allow us at some point to have board ports
outside of the tree.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-11-09 14:23:41 -06:00
Kumar Gala
09c63b373a dts: Move fixup files into board dirs
Move the dts fixup files into the board dir so that board ports can be
more standalone.  This will allow us at some point to have board ports
outside of the tree.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-11-09 14:23:41 -06:00
Anas Nashif
162e64a3bd cmake: use zephyr_library_* for all boards
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-11-08 20:00:22 -05:00
Sebastian Bøe
5ac969257d cmake: Fixed flashing of nrf52840_pca10056
Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
2017-11-08 20:00:22 -05:00
Sebastian Bøe
0829ddfe9a kbuild: Removed KBuild
Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
2017-11-08 20:00:22 -05:00
Sebastian Bøe
12f8f76165 Introduce cmake-based rewrite of KBuild
Introducing CMake is an important step in a larger effort to make
Zephyr easy to use for application developers working on different
platforms with different development environment needs.

Simplified, this change retains Kconfig as-is, and replaces all
Makefiles with CMakeLists.txt. The DSL-like Make language that KBuild
offers is replaced by a set of CMake extentions. These extentions have
either provided simple one-to-one translations of KBuild features or
introduced new concepts that replace KBuild concepts.

This is a breaking change for existing test infrastructure and build
scripts that are maintained out-of-tree. But for FW itself, no porting
should be necessary.

For users that just want to continue their work with minimal
disruption the following should suffice:

Install CMake 3.8.2+

Port any out-of-tree Makefiles to CMake.

Learn the absolute minimum about the new command line interface:

$ cd samples/hello_world
$ mkdir build && cd build
$ cmake -DBOARD=nrf52_pca10040 ..

$ cd build
$ make

PR: zephyrproject-rtos#4692
docs: http://docs.zephyrproject.org/getting_started/getting_started.html

Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
2017-11-08 20:00:22 -05:00
Paul Sokolovsky
960708d517 board: frdm_k64f, frdm_kw41z, frdm_kl25z: Define LED1
To make more cross-board samples work.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2017-11-07 12:24:29 -06:00
Bobby Noelte
007a6b0201 boards: arm: add support for NUCLEO-F091RC
Support the ST STM32 Nucleo-64 development board with
STM32F091RC SoC.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2017-11-06 11:39:16 -06:00
Erwan Gouriou
a8fc84b7bb boards: add documentation for nucleo_f103rb
This commit provides the missing documentation for board
nucleo_f103rb

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2017-11-06 09:11:11 -06:00
Erwan Gouriou
84d2ba80f3 board: rename doc file for nucleo_f030r8
Due to copy paste issue, doc file for board nucleo_f030r8
had wrong file name.
Fix it with correct doc name

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2017-11-06 09:11:11 -06:00
Yannis Damigos
d60d80f511 boards: disco_l475_iot1: Enable I2C_1 in default config
I2C_1 is enabled in board's DT file but we need to enable
it also in boards default config.

I2C_0 doesn't exist in STM32L475 SOC.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2017-11-03 13:52:57 -05:00
Erwan Gouriou
a7956b0d79 board: disco_l475_iot1: Provide sensor configuration settings
Provide default settings in disco_l475_iot board for following
sensors: LSM6DSL, LIS3MDL, LPS22HB, HTS221.
Sensors are disabled by default.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2017-11-03 13:52:57 -05:00
Daniel Wagenknecht
c282a452ff doc: boards: stm32f3_disco: update Documentation to match pinmux.c
Updated Documentation to match default peripheral mapping for
UART1 (PC4/PC5).

Signed-off-by: Daniel Wagenknecht <wagenknecht@clage.de>
2017-11-03 13:52:57 -05:00
Daniel Wagenknecht
b334fb68f8 doc: boards: stm32f3_disco: group default peripheral mapping
Moved doc for I2C default peripheral mapping to chapter
Default Zephyr Peripheral Mapping

Signed-off-by: Daniel Wagenknecht <wagenknecht@clage.de>
2017-11-03 13:52:57 -05:00