Commit graph

4959 commits

Author SHA1 Message Date
Tomasz Michalec
d83647dea6 drivers: adc: add ADC emulator
ADC emulator is designed to be used in tests on native_posix board. It
supports 1-16 bit resolution range and all GAINs from enum adc_gain.
Reference voltages and number of emulated channels are set through dts.
Using special API from drivers/adc/adc_emul.h it is possible to set
constant voltage value returned by given ADC channel or set custom
function which allows to simulate complex output.
Also reference voltages can be changed in runtime using the API.

The CL also includes:
- Add adc definitions of ADC emulator in
  tests/drivers/adc/adc_api/src/test_adc.c for supporting test suites.
- Add test for ADC emulator API in tests/drivers/adc/adc_emul/

Signed-off-by: Tomasz Michalec <tm@semihalf.com>
2021-05-07 15:27:37 +02:00
Hake Huang
d4c0c95a1c adc: add adc edma support in frdm_k82f
adc edma and pit support in frdm_k82f

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2021-05-07 08:23:49 -05:00
Watson Zeng
e0af111d33 board: qemu_arc: fix cpu frequency to 10Mhz
we have set SYS_CLOCK_HW_CYCLES_PER_SEC to 10000000,
so we need to set cpu.freq_hz=10000000 too.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2021-05-07 13:15:13 +02:00
Watson Zeng
6a7982ff10 arc: qemu: enable MPU
Enable MPU for arc qemu.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2021-05-07 13:15:13 +02:00
Aymeric Aillet
8b285fc104 boards: arm: rcar_h3ulcb: Enable UART
Enable UART driver for Renesas R-Car H3 boards.

Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
2021-05-07 13:08:48 +02:00
Aymeric Aillet
8eed20db0c dts: arm: rcar_gen3_cr7: Add SCIF support to DTS
Add SCIF bus initial support to Renesas R-Car SOC series.
SCIF1 is used as main serial and shell output on R-Car H3 board.

Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
2021-05-07 13:08:48 +02:00
Jamie McCrae
f4350a9303 boards: arm: Add Laird Connectivity BL5340 DVK platform
This adds initial support for the Laird Connectivity BL5340
development kit hardware

Signed-off-by: Jamie McCrae <jamie.mccrae@lairdconnect.com>
2021-05-07 09:06:27 +02:00
Kumar Gala
b7e908707f boards: arc: hsdk: Enable CY8C95XX if GPIO
The board has an I2C GPIO expander on it.  A number of samples utilize
LEDs on GPIOs for testing purpose so it makes sense to enable the GPIO
expander (CONFIG_GPIO_CY8C95XX) driver when CONFIG_GPIO has been
enabled.  We have to also enable I2C since the expander is connected
over an I2C interface.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-05-06 17:33:58 -04:00
Marcin Niestroj
b4854debd1 drivers: wifi: esp_at: rename driver from esp
Recently WiFi ESP32 driver (utilizing WiFi radio in ESP32 SoC) was
introduced into drivers/wifi/esp32/ and it already caused confusion as
there was existing drivers/wifi/esp/ directory for ESP-AT
driver (utilizing external WiFi chip, by communicating using AT commands
from any serial capable platform). So question has arisen whether it is
good to merge both, while they are totally different drivers.

Rename ESP-AT driver to be placed in drivers/wifi/esp_at/, so that it is
easier to figure out difference between "esp32" and "esp_at" just by
looking at driver name. Rename also DT compatible and all Kconfig
options for the same reason.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2021-05-06 13:21:39 -04:00
Jared Wolff
779439550b boards: arm: nrf: Adding updated Circuit Dojo board definitions.
Adding the Circuit Dojo nRF9160 Thing Plus device tree definitions.
Both secure and non secure targets.

Adding LIS2DH to nRF9160 Feather
definitions. Updating flash to W25Q32JV.

Signed-off-by: Jared Wolff <hello@jaredwolff.com>
2021-05-06 18:38:57 +02:00
Jamie McCrae
498f964bd2 boards: bl654_sensor_board
Add BL654 Sensor Board files

Signed-off-by: Jamie McCrae <jamie.mccrae@lairdconnect.com>
2021-05-06 18:36:02 +02:00
Greg Leach
70361f579b boards: Add Laird Connectivity BT6x0
Adds support for the BT6x0, a multi sensor platform.

Signed-off-by: Greg Leach <greg.leach@lairdconnect.com>
2021-05-06 18:34:34 +02:00
Thomas Stranger
a3967cefa4 tests: dma: add nucleog474re board
Add nucleo_g474re board to dma/chan_blen_transfer and dma/loop_transfer
tests.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-05-06 09:28:33 -05:00
Kim Bøndergaard
5a54cae7ce boards: stm32f412g_disco: Add arduino headers
Added arduino gpios, and the typically used aliases for
arduino_spi, arduino serial and arduino_i2c

Signed-off-by: Kim Bøndergaard <kim.boendergaard@escoglobal.com>
Signed-off-by: Kim Bøndergaard <kim@fam-boendergaard.dk>
2021-05-06 08:17:07 -05:00
Alex Tsamakos
a637f0a718 boards: actinius_icarus: remove unused pwm nodes and add bootloader LED
Also update the name of sram0_bsd to sram0_modem

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2021-05-06 15:03:32 +02:00
Alex Tsamakos
0febdbfba0 boards: arm: Add support for Actinius Icarus SoM (uC: Nordic nRF9160)
Add support for the Actinius Icarus SoM (nRF9160).

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2021-05-06 15:03:32 +02:00
Alex Tsamakos
181192f364 boards: arm: Add support for Actinius Icarus Bee (uC: Nordic nRF9160)
Add support for the Actinius Icarus Bee (nRF9160).

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2021-05-06 15:03:32 +02:00
Aymeric Aillet
647fa1b985 boards: doc: Fix building target name
Fix target name that was not the right one for
rcar_h3ulcb board.

Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
2021-05-06 07:54:55 -05:00
Mahesh Mahadevan
f099eb7da5 boards: RT600: Add support for suspend-to-idle power state
Update dts file to add suspend-to-idle power state

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-05-05 22:28:44 -05:00
Marc Herbert
9fecab03ee boards: cavs15: add tools/README.md comparing loggers
The correct information is from Andy Ross and the mistakes from me.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2021-05-05 21:13:56 -04:00
Marc Herbert
f34b87988b intel_adsp_cavs15/ adsplog.py: add missing new line in ERROR msg
PS: print() does that for free.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2021-05-05 21:13:56 -04:00
Shubham Kulkarni
e52eda5216 boards: esp32: Remove disassembly_flag_inline_source property
Running xtensa-esp32-elf-objdump -d -S zephyr.elf leads to lag on
macOS. Hence this property is removed from binutils.

Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
2021-05-05 19:49:38 -04:00
Shubham Kulkarni
2ab585fd2e boards: esp32: Use proper binary generation command
west build generates binary file of around 13MB. Use esptool to
generate proper binary file

Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
2021-05-05 19:49:38 -04:00
Daniel Leung
845bf6dbd7 boards: set CONFIG_KERNEL_VM_OFFSET=0 on qemu_x86_virt
Since CONFIG_KERNEL_VM_OFFSET no longer needs to be the same as
CONFIG_SRAM_OFFSET, set it to zero to reclaim the hole in
virtual address space.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-05-05 19:42:25 -04:00
Erwan Gouriou
02ce386d05 boards: nucleo_l152re: Explicitly set apb2-prescaler
This board clock configuration was relying on default Kconfig
value for APB2 value, and hence apb2 has not been converted
to device tree.
Explicit apb2 value in dts.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-05-05 16:34:37 -05:00
Erwan Gouriou
704a0a398a boards: nucleo_wb55rg: Fix left over in dts clock configuration
Along with other clocks settings, enable LSE clock using device tree.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-05-05 16:34:37 -05:00
Erwan Gouriou
080ffa5f4e include/drivers/clock_control: stm32: Fix apb1/2 conditions (wl/wb)
Fix definition condition for APB1 and APB2.
These were not visible until now as defaulted
in Kconfig.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-05-05 16:34:37 -05:00
Erwan Gouriou
81a5524acc boards: disco_l475_iot1: Add missing bus prescaler props
These were missing but not visible since value was defaulted
in Kconfig.
With Kconfig deprecation this breaks compilation.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-05-05 16:34:37 -05:00
Kumar Gala
5f423d45cf boards: hexiwear_k64: Drop SPI as supported board feature
We don't currently configure any SPI interface on the hexiwear_k64 so
remove 'spi' as a listed supported feature in the board YAML.

This can be added back if SPI support is added for the board in the
future.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-05-05 11:08:33 -05:00
Gerson Fernando Budke
bb39e9fcb4 boards: arm: cy8ckit_062_ble: Add spi config
Create a common dtsi file to share peripherals between both CPU cores.
The spi is the initial shared peripheral.

Signed-off-by: Gerson Fernando Budke <gerson.budke@atl-electronics.com>
2021-05-05 16:01:28 +02:00
Tim Lin
caa3328cc7 ite: drivers/pinmux: modify pinmux driver
Modify the pinmux control method and add support the fun3
& fun4 alternation function.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2021-05-05 08:45:16 -04:00
Maureen Helm
dd9c656961 boards: arm: Document flash driver support on mimxrt106x_evk boards
Documents QSPI flash driver support on mimxrt1060_evk and mimxrt1064_evk
boards.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-05-05 08:44:00 -04:00
Maureen Helm
62e3298bed boards: arm: Add mcuboot and flash storage partitions to mimxrt1060_evk
Adds flash partitions and chosen nodes to the mimxrt1060_evk device tree
to support mcuboot and storage on the external QSPI flash. This flash is
rated for 100K minimum program-erase cycles per sector, therefore this
partition configuration supports approximately 100K / (3072/128) = 4167
upgrades.

Also enables FlexSPI flash driver XIP mode support on this board to
support mcuboot.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-05-05 08:44:00 -04:00
Maureen Helm
6a9dc2ae57 boards: arm: Add mcuboot flash partitions to mimxrt1064_evk
Adds flash partitions and chosen nodes to the mimxrt1064_evk device tree
to support mcuboot on the internal QSPI flash. This flash is rated for
100K minimum program-erase cycles per sector, therefore this partition
configuration supports approximately 100K / (1984/64) = 3225 upgrades.

Also enables FlexSPI flash driver XIP mode support on this board to
support mcuboot.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-05-05 08:44:00 -04:00
Fabio Baltieri
0a56ced423 boards: stm32_min_dev: convert to dt based clock config
Convert the stm32_min_dev boards to the new device tree based config
setup.

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
2021-05-05 08:42:53 -04:00
Pawel Dunaj
5fdbd94cf3 boards: thingy53_nrf5340: Add brief doc
Add a short summary about the board.

Signed-off-by: Pawel Dunaj <pawel.dunaj@nordicsemi.no>
2021-05-05 12:42:01 +02:00
Emil Obalski
b2034116d0 boards: nordic: cmake build warnings exception for Thingy:53
Hide cmake build warnings with uniqe unit address
for thingy53 nRF5340 board.

Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
2021-05-05 12:42:01 +02:00
Emil Obalski
c45323a2fe boards: nordic: Add support for Thingy:53 as thingy53_nrf5340 board
Adding Thingy53 board with all required files including:
 - Kconfigs
 - dts
 - yamls
 - cmake
 - doc

Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
Signed-off-by: Georgios Titas <georgios.titas@nordicsemi.no>
2021-05-05 12:42:01 +02:00
Erwan Gouriou
f447fa33e3 boards: stm32h747i_disco: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-05-04 13:57:41 -05:00
Erwan Gouriou
d3458ebd29 boards: nucleo_h753zi: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-05-04 13:57:41 -05:00
Erwan Gouriou
3e6666d53d boards: nucleo_h743zi: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-05-04 13:57:41 -05:00
Alexandre Bourdiol
fc1fdbccc7 boards: stm32f469i_disco: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00
Alexandre Bourdiol
7668780e9f boards: stm32f429i_disc1: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00
Alexandre Bourdiol
02aecc89cb boards: stm32f412g_disco: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00
Alexandre Bourdiol
45c97d3dd9 boards: stm32f411e_disco: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00
Alexandre Bourdiol
b71b869bf6 boards: stm32f4_disco: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00
Alexandre Bourdiol
e37bf46858 boards: steval_fcu001v1: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00
Alexandre Bourdiol
ef5e0e8724 boards: adafruit_feather_stm32f405: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00
Alexandre Bourdiol
8c2cab1b24 boards: segger_trb_stm32f407: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00
Alexandre Bourdiol
e92dbb0bde boards: nucleo_f446re: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-05-04 13:10:46 -05:00