Commit graph

6167 commits

Author SHA1 Message Date
Gerson Fernando Budke
dc172849fa drivers: pwm: Update sam pwm driver to use pinctrl
This update Atmel sam pwm driver to use pinctrl driver and API. It
updates all boards with new pinctrl groups format. In addition this
remove all remaining manual pinmux at board level.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
Gerson Fernando Budke
d7c37d1f12 drivers: can: Update sam canfd driver to use pinctrl
This update Atmel sam canfd driver to use pinctrl driver and API. It
updates all boards with new pinctrl groups format. In addition this
add missing entries to run automated tests for can/canfd drivers.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
Gerson Fernando Budke
e1d88706bb drivers: i2s: Update sam ssc driver to use pinctrl
This update Atmel sam ssc driver to use pinctrl driver and API. It
updates all boards with new pinctrl groups format. In addition this
remove DEV_NAME macro at sam xdma driver.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
Gerson Fernando Budke
bd485ea960 drivers: adc: Update sam afec driver to use pinctrl
This update Atmel sam afec driver to use pinctrl driver and API. It
updates all boards with new pinctrl groups format. In addition, it
add overlay files to allow run samples/drivers/adc example.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
Gerson Fernando Budke
3c4a9ef47d drivers: usb: Update sam usb drivers to use pinctrl
This update Atmel sam usb drivers to use pinctrl driver and API. It
updates all boards with new pinctrl groups format.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
Gerson Fernando Budke
a27304b658 drivers: i2c: Update sam drivers to use pinctrl
This update Atmel sam i2c drivers to use pinctrl driver and API. It
updates all boards with new pinctrl groups format. This add missing
i2c-0 alias into sam4l_ek board.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
Gerson Fernando Budke
38d0659931 drivers: spi: Update sam driver to use pinctrl
This update Atmel sam spi driver to use pinctrl driver and API. It
updates all boards with new pinctrl groups format.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
Gerson Fernando Budke
bfaf027dde drivers: serial: Update sam drivers to use pinctrl
This update Atmel sam serial drivers to use pinctrl driver and API. It
updates all boards with new pinctrl groups format.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-03-24 15:45:37 -07:00
Gerard Marull-Paretas
d7405647df boards: circuitdojo_feather_nrf9160: use regulator for 3V3 supply
Many board peripherals are enabled by turning on a 3V3 buck-boost
converter, controller by P0.31 (NRF_PS_EN). Use the regulator framework
instead of custom init code.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:23:19 -05:00
Gerard Marull-Paretas
93b0db781e boards: shields: remove redundant ILI9XXX defconfig entries
The driver is already enabled when turning CONFIG_DISPLAY on and
enabling the display node in Devicetree.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 13:36:54 +01:00
Alexey Brodkin
231b37049e boards: qemu_arc: Enable networking via SLIP (serial port)
The simplest way of getting networking to work on really tiny embedded
system is to use an extra serial port as an interface to external world
with help of a SLIP,
see https://en.wikipedia.org/wiki/Serial_Line_Internet_Protocol.

The catch is on a deeply embedded system we most likely won't see
an Ethernet MAC in the system as it might be as large ans as complex
as the CPU itself so there's no point in adding it. Moreover it will
require support in drivers, which are very hardware specific
(not only IP-block specific, but also need to take care of all the quirks
made in this particular instance and platform).

But with SLIP we may use existing serial port of the board which already
has all the needed support and with a platform-agnotic code of SLIP
we may have usable networking on both simulators & real HW boards.

And that's what we do in Zephyr.

Now we teach ARC's QEMU platform to do so as well.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2022-03-24 08:27:40 -04:00
Alexey Brodkin
35f53b8456 ARC: QEMU: Add the second UART support
This makes the second UART of ARC QEMU's "virt" platfrom available
in Zephyr. But please note to get it used corresponding change needs
to be applied to QEMU itself, see:
https://github.com/foss-for-synopsys-dwc-arc-processors/qemu/pull/62

PR for Zephyr's SDK-NG is posted here:
https://github.com/zephyrproject-rtos/sdk-ng/pull/422

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2022-03-24 08:27:40 -04:00
Casper Meijn
43841fcb16 boards: arm: pinetime: Add battery voltage divider
PineTime hardware can measure the battery voltage via an ADC pin. Define
this as a `voltage-divider` in the board dts. This enables the sample
`boards/nrf/battery`.

Signed-off-by: Casper Meijn <casper@meijn.net>
2022-03-24 08:27:11 -04:00
Gerard Marull-Paretas
7c15199e64 boards: arduino_nano_33_ble: add GPIO_ACTIVE_LOW to led0-2
The led0,1,2 LEDs are active low (MCU pins are electrically connected to
the LED cathodes).

Ref.
https://content.arduino.cc/assets/NANO33BLE_V4.0_sch.pdf

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
bd182a8666 boards: arduino_nano_33_ble: improve DT formatting
Remove C99 like comments, add some extra spaces for better readability.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
c0f12be3df boards: arduino_nano_33_ble: remove redundant defconfigs
The I2C/SPI settings are automatically selected depending on DT
selection.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
58b60bbb2d boards: arduino_nano_33_ble: remove redundant "gpio library"
The board had an internal "library" to configure pins in an Arduinoeish
fasion. This is no longer used, so can be removed.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
1b479d6a8a boards: arduino_nano_33_ble: refactor init code
- Specify in DT the pin to enable I2C pull-up connection
- Always build board.c, so that the I2C bus is always pulled-up

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
f266b286b7 boards: arduino_nano_33_ble: use regulator for sensors
Most sensors are enabled by enabling the VDD_ENV output. Define a
regulator on DT for that and enable the regulators if sensors are
enabled.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
4e86985bec boards: arduino_nano_33_ble: define LED in DT
The board has a user LED attached to P1.09. This information was
hardcoded in board C files and enabled by default. This is something
applications need to do if needed (note that an always ON LED can incur
a considerable power consumption).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
7b033aa4df boards: arduino_nano_33_ble: remove undocumented debug code
It's not clear why the board configures debug/tracing functionality
using HAL low level code, remove it.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
0b59d43d12 boards: arduino_nano_33_ble: remove redundant pwm entries
Enabling PWMs without selecting any channel is pointless, so remove
entries from DT. Also remove custom code in sensor_init, PWM API needs
to be used instead.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
7ceabd25ec boards: arduino_nano_33_ble: drop BLE_EN_USB_CONSOLE
Drop the BOARD_ARDUINO_NANO_33_BLE_EN_USB_CONSOLE Kconfig option. If
applications need a USB console, they need to adjust `prj.conf` (or
overlays) enabling relevant settings.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
5357f5a83c boards: arduino_nano_33_ble: remove redundant comments from DT
Remove some comments that are redundant and provide no relevant
information.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Gerard Marull-Paretas
65034dfbbf boards: arduino_nano_33_ble: remove redundant rtc1 entry
The peripheral is already disabled by default, so the entry was
pointless. Also removed commented code in init_sensors.c related to rtc.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-24 12:47:25 +01:00
Filip Kokosinski
38f38e0be8 boards: FE310-based boards: transition to pinctrl driver
This commit makes the transition from the pinmux driver to the pinctrl
driver. It also modifies UART, SPI and I2C drivers used in FE310-based
boards to use the new pinctrl API.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-03-24 10:46:34 +01:00
Filip Kokosinski
a9543e0ff4 boards: qemu_riscv32: add pinctrl configuration for qemu_riscv32_xip
Add pinctrl configuration for future use with the new pinctrl driver.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-03-24 10:46:34 +01:00
Filip Kokosinski
99e787de21 boards: hifive1_revb: add pinctrl configuration for hifive1_revb board
Add pinctrl configuration for future use with the new pinctrl driver.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-03-24 10:46:34 +01:00
Filip Kokosinski
0d3ec151c8 boards: hifive1: add pinctrl configuration for hifive1 board
Add pinctrl configuration for future use with the new pinctrl driver.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-03-24 10:46:34 +01:00
Alexandre Bourdiol
f1ad7ede9c boards: arm: disco_l475_iot1 BLE SPI CS is active low
On board disco_l475_iot1, BLE SPI CS is active low

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2022-03-24 10:44:15 +01:00
Matthias Hauser
e565e67114 boards: Add Proteus-III board file
Add a new board file of the Proteus-III radio module

Signed-off-by: Matthias Hauser <Matthias.Hauser@we-online.de>
2022-03-23 18:50:09 +01:00
Joakim Andersson
fab4aadd0e soc: arm: bl5340_dvk: Fix bl5340 DVK pin assignments
Fix the BL5340 DVK pin assignment using the nrf5340 DK pin.
Regression from: e4260ac03f.

This also aligns the BL5340 DVK to use the GPIO forward module.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2022-03-23 18:28:38 +01:00
Joakim Andersson
88bb3ae498 soc: arm: nordic: Fix missing include path
Fix missing include path for TF-M installed headers.
When TF-M was enabled resulted in the following error:
"fatal error: tfm_ioctl_api.h: No such file or directory"

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2022-03-23 18:28:38 +01:00
Wilfred Mallawa
fcbe753cd0 boards: thingy52_nrf52832: additional led aliases
This PR updates the `thingy52_nrf52832` dts to add two additional
aliases for leds 1 & 2.

Why:
In a university course, alot of students use this board with Zephyr
and have wondered why many boards provide dts aliases for
additional leds (ex [1][2]), yet, this only has an alias
for the single led. The PR adds required led
aliases to make working with the leds on this board a
little bit quicker/easier.

Testing:
	* `./scripts/twister -p thingy52_nrf52832`
	* Hardware verification using the gpio_api to toggle all leds.

Edit: Fixup commit msg line length

[1] boards/arm/particle_boron/dts/mesh_feather.dtsi
[2] boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts

Signed-off-by: Wilfred Mallawa <thulith.mallawa@uqconnect.edu.au>
2022-03-23 09:18:01 -05:00
Yannis Damigos
7dcdaf9375 board/odroid_go: Add pullups to buttons and a new button
Add volume button.
Add internal pull ups to buttons which don't have an
external one.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2022-03-23 14:09:34 +01:00
Jordan Yates
6ceddab6da boards: nrf5340dk_nrf5340: Bluetooth RNG
Use the ENTROPY_BT_HCI entropy device on the application core, which has
no access to the hardware RNG peripheral (network core only).

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2022-03-23 13:38:47 +01:00
Yannis Damigos
05c4f44112 boards/odroid_go: Update documentation
Update board's documentation.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
2022-03-23 12:55:18 +01:00
Bartosz Golaszewski
c203b033ef boards: shields: adafruit: add a board overlay for arduino_nano_33_ble
This adds an overlay defining a dummy arduino_header with three pins
required by the adafruit 2.8 TFT display to work on arduino_nano_33_ble.

While the nano form factor doesn't really have a proper Rev3 header, this
allows to connect the display to the nano pins and make the display work.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
2022-03-23 12:53:30 +01:00
Bartosz Golaszewski
4389f75314 boards: arm: arduino_nano_33_ble: add arduino labels for I2C and SPI
Certain overlays reference I2C and SPI by the semi standardized
arduino_i2c/arduino_spi labels. Add them to the DT for arduino_nano_33_ble
for the I2C and SPI interfaces exposed on the headers.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
2022-03-23 12:53:30 +01:00
Andrei-Edward Popa
66ec2bac3a dts: arm: rpi_pico: added resets for UART instances
added resets for Raspberry Pi Pico UART instances
enabled reset controller in defconfig

Signed-off-by: Andrei-Edward Popa <andrei.popa105@yahoo.com>
2022-03-23 12:51:39 +01:00
Dylan Hung
9065bee557 boards: arm: Add ast1030_evb board
Skeleton board support for the aspeed ast1030 evaluation board from
Aspeed Technology.

Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
Change-Id: I16af50dd63cb355071e32f89264d8aeae47184ac
2022-03-23 12:50:28 +01:00
Gerard Marull-Paretas
800e31ae76 boards: arm: hexiwear_k64: use regulator driver for 1V8 and 3V3
The LDO line (1V8) used by MAX30101 can be enabled using a regulator
device instead of custom code in the board pinmux.c. The same applies
for the 3V3 line used by multiple sensors.

NOTE: also enabled gpioa, required by LDO_EN. Spotted thanks to
build-time issue (current code did not work...).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-22 23:24:44 -05:00
Gerard Marull-Paretas
4d6d2bf429 boards: arm: hexiwear_k64: use regulator driver for battery sensing
The battery sensing circuit can be enabled using a regulator device
instead of custom code in the board pinmux.c.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-22 23:24:44 -05:00
Tomasz Bursztyka
f78a4ab7cf zefi: Add an EFI boot argument passing ACPI RSDP info
If such table pointer is present with EFI system table, this will speed
up ACPI initialization later on.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2022-03-22 09:56:54 -04:00
Matthias Hauser
e7108fc303 boards: Add Proteus-II board file
Add a new board file of the Proteus-II radio module

Signed-off-by: Matthias Hauser <Matthias.Hauser@we-online.de>
2022-03-22 07:52:05 -05:00
Daniel DeGrasse
7b449d6045 boards: remove pinmux usage for all kinetis boards
Remove pinmux file where possible, and remove all pinmux driver usage
where file cannot be removed. All kinetis boards no longer use pinmux
driver.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-03-22 12:36:04 +01:00
Daniel DeGrasse
7013a8a43f boards: remove tpm pinmux usage for kinetis boards
tpm driver supports pinctrl. Remove pinmux usage for kinetis boards.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-03-22 12:36:04 +01:00
Daniel DeGrasse
88fc9fbf1b boards: remove pinmux usage for dac32 driver
dac32 driver supports pinctrl. Remove pinmux usage on kinetis boards
with this IP.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-03-22 12:36:04 +01:00
Daniel DeGrasse
f1b3f00114 boards: remove pinmux usage for acmp peripheral
Remove pinmux usage for acmp peripheral on kinetis boards, as mcux_acmp
driver supports pinctrl

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-03-22 12:36:04 +01:00
Daniel DeGrasse
de18fdf2f1 boards: remove pinmux configuration for kinetis boards using adc12
Remove pinmux configuration for kinetis boards using adc12, as pinctrl
is supported by driver

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-03-22 12:36:04 +01:00