Commit Graph

4072 Commits

Author SHA1 Message Date
Gerard Marull-Paretas
bedd55ac97 boards: arm: stm32f746g_disco: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on
STM32F746G-DISCOVERY board.

NOTE: DT entry for timers1/pwm1 has been replaced by timers3/pwm3 as it
was the pwm referenced in the pinmux file.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
ef6579b15f boards: arm: nucleo_l432kc: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-L432KC
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
a4aa951baa boards: arm: nucleo_wb55rg: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-WB55RG
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
dda6396c65 boards: arm: nucleo_f412zg: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F412ZG
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
db89bb7ef8 boards: arm: nucleo_f429zi: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F429ZI
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
162e14b51f boards: arm: steval_fcu001v1: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on STEVAL-FCU001V1
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
f1f92709c1 boards: arm: mikroe_mini_m4: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on Mikroe mini M4 for
STM32 board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
3e8b30ab62 boards: arm: stm32f3_disco: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on STM32F3-DISCOVERY
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
08af27bbe1 boards: arm: b_l4s5i_iot01a: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on B-L4SI-IOT01A
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
150f1952d1 boards: arm: stm32f4_disco: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on STM32F4DISCOVERY
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
d01ac27306 boards: arm: nucleo_f103rb: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F103RB
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
2310f04d04 boards: arm: nucleo_g071rb: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-G071RB
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
e6fcd2c18f boards: arm: disco_l475_iot1: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on
DISCO-L475VG-IOT01A board.

NOTE: pinctrl file pointed to a wrong variant l475r(c-e-g)tx, however,
the SoC in the board corresponds to l475v(c-e-g)tx.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
4fa7a03cc3 boards: arm: blackpill_f411ce: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on Blackpill F411CE
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
a9085a5bdb boards: arm: nucleo_l476rg: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-L476RG
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
6944984468 boards: arm: nucleo_l452re: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-L452RE and
NUCLEO-L452RE-P boards.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
6c758e73b6 boards: arm: olimex_stm32_h103: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on Olimex STM32 H103
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
c35bd329c6 boards: arm: stm32_min_dev: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on STM32 Minimum
Development board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
40e56b0819 boards: arm: 96b_aerocore2: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on 96Boards Aerocore2
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
b4cebf9589 boards: arm: stm32l496g_disco: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on STM32L496G-DISCO
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
02ef16df8f boards: arm: waveshare_open103z: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on Waveshare Open103Z
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
ab83471034 boards: arm: nucleo_f413zh: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F413ZH
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
79164b9909 boards: arm: nucleo_f767zi: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F767ZI
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
5e12674337 boards: arm: nucleo_l4r5zi: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-L4R5ZI
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
5b3874bf5d boards: arm: 96b_stm32_sensor_mez: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on i96Boards STM32
Sensor Mezzanine board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
139b1554e5 boards: arm: stm32vl_disco: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on STM32VL-DISCO
board.

NOTE: missing pwm1 entry has been added.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
a77164d3eb boards: arm: olimexino_stm32: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on OLIMEXINO-STM32
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
d44b95c60e boards: arm: nucleo_f407zg: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F407ZG
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
816f5f87cd boards: arm: nucleo_f407ve: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F407VE
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
038f2d9498 boards: arm: nucleo_f334r8: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F334R8
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
e5fada8753 boards: arm: nucleo_f756zg: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F756ZG
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
00036e25a7 boards: arm: nucleo_f746zg: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F746ZG
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
3538995eb0 boards: arm: nucleo_f302r8: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F302R8
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
defc35c1f7 boards: arm: stm32f411e_disco: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on STM32F411E
discovery board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
8b764ceb58 boards: arm: nucleo_g474re: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-G474RE
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
2eb9c0d660 boards: arm: nucleo_g431rb: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-G431RB
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
8ff4938743 boards: arm: nucleo_h745zi_q_m7: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-H745ZI-Q
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
72b5ee3fe5 boards: arm: nucleo_l496zg: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-L496ZG
board.

NOTE: pwm4 node has been deleted as it was not actually used nor
documented.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
d44da842d1 boards: arm: nucleo_f401re: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-F401RE
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Gerard Marull-Paretas
b2d24ce5bd boards: arm: nucleo_h743zi: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on Nucleo H743Zi
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-10-07 12:27:37 -05:00
Mulin Chao
dd99fbebe6 drivers: pwm: add pwm driver support in NPCX7 series
In npcx7 series, there're 8 Pulse Width Modulator (PWM) modules and each
one support generating a single 16-bit PWM output. A 16-bit clock
prescaler (PRSCn) and a 16-bit counter (CTRn) determine the cycle time,
the minimal possible pulse width, and the duty-cycle steps.

Beside introducing pwm driver for Nuvoton NPCX series, this CL also
includes:

1. Add PWM device tree declarations.
2. Zephyr PWM api implementation.
3. Add aliases in npcx7m6fb_evb board device tree file for supporting
   samples/basic/blinky_pwm application and pwm test suites

Signed-off-by: Mulin Chao <MLChao@nuvoton.com>
2020-10-06 18:16:02 -05:00
Carlo Caione
6f9ca9c15a qemu_cortex_a53: Switch to GICv3
QEMU support for GICv3 is mature enough that we can switch to that by
default.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2020-10-06 12:53:58 -04:00
Erwin Rol
eb54f86755 boards: arm: Add support for SEGGER TRB STM32F407
Add support for the STM32F407 based SEGGER Trace Reference Board.

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
2020-10-06 12:17:26 -04:00
Simon Glass
6f0c8f0d2c tests: drivers: sensor: Add an BMI160 accelerometer test
Using the SPI emulator we can create a simple test for the BMI160
driver. Add this an enable it for native_posix.

Signed-off-by: Simon Glass <sjg@chromium.org>
2020-10-05 15:33:00 -04:00
Jeremy LOCHE
ee2c66a627 boards: nucleo_h743zi: Configure serial console pins using dt
usart3 pin configuration is now done through device tree.

Signed-off-by: Jeremy LOCHE <lochejeremy@gmail.com>
2020-10-02 08:36:57 -05:00
Alexandre Bourdiol
2a6b52e9c2 boards: arm: stm32h747i_disco: wakeup pin is active high
Wakeup pin is active HIGH for stm32h747i_disco.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2020-10-02 11:48:32 +02:00
Alexandre Bourdiol
cde8f37833 boards: arm: stm32 review Joystick polarity and pul up/down
Similarly to #28676 Joystick polarity and pull up/down
need to be review for all STM32 boards.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2020-10-02 11:48:32 +02:00
Marco Peter
03f256505c drivers: ssd1306: Add SPI support
This change allows to use SSD1306 based displays to be used on the
SPI bus as well.
Adding SPI shield.
Tested on SSD1306 and SSD1309 based displays using I2C.
Tested on SSD1309 based display using SPI.

Signed-off-by: Marco Peter <marco@peter-net.ch>
2020-10-02 11:33:26 +02:00
Mulin Chao
be217e4a3a drivers: eSPI: add eSPI driver support for NPCX7 series.
In npcx7 series, all of them support the Intel Enhanced Serial
Peripheral Interface (eSPI) Revision 1.0. This specification provides a
path for migrating host sub-devices via LPC to a lower pin count, higher
bandwidth bus. In addition to Host communication via the peripheral
channel, it provides virtual wires support, out-of-band communication,
and device mastering option over the Chipset SPI flash.

Becisdes introducing eSPI device in npcx7, this CL also includes:

1. Add eSPI device tree declarations.
2. Add npcx7-espi-vws-map.dtsi to present the relationship between eSPI
   Virtual-Wire signals, eSPI registers, and wake-up input sources.
3. Zephyr eSPI api implementation.
4, Add OOB (Out of Band tunneled SMBus) support.
5. Add configuration files for eSPI test suites.

Signed-off-by: Mulin Chao <MLChao@nuvoton.com>
2020-10-02 11:33:15 +02:00
Yuguo Zou
d04ff1af7c arch: arc: Restore MPU registers to its initial states between tests
EMSK boards can't be reset between tests due to hardware configures.
MPU v3 configs in previous test could cause exceptions in the following
tests. This commit fixes this issue by restoring MPU registers initial
states at early init stage.

Signed-off-by: Yuguo Zou <yuguo.zou@synopsys.com>
2020-10-02 11:31:34 +02:00