Commit Graph

4590 Commits

Author SHA1 Message Date
Marek Pieta
d79971e5b7 boards: thingy53_nrf5340: Disable BMI270 in DTS
Change disables BMI270 sensor in board DTS. The BMI270 sensor
driver in Zephyr does not support sensor connected over SPI.

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
2022-08-11 09:47:08 -05:00
Erwan Gouriou
416691d685 boards: stm32l562e_dk: Add STM32CubeProgrammer runner
This commit adds STM32CubeProgrammer runner to stm32l562e_dk.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-08-11 13:22:58 +01:00
Kumar Gala
26857e3b8f boards: arm: nordic: Remove label property from devicetree
The label property isn't needed in devicetree so remove it.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-10 20:20:36 +02:00
Kumar Gala
9df7fbfaed boards: arm: efr32mg_sltb004a: Fix build issues
Fix build error since the I2C controller is not enabled in the devicetree
for the bus that the ccs811 sensor is on.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-10 10:46:55 -05:00
Kumar Gala
ff2a1212bf counter: remove Kconfig.defconfig* setting of counter drivers
Now that counter drivers are enabled based on devicetree
we need to remove any cases of them getting enabled by
Kconfig.defconfig* files as this can lead to errors.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-10 10:46:55 -05:00
Andrzej Głąbek
65976137dc boards: nrf: Activate pull-up on QSPI CSN line in "sleep" state
When there is no external pull-up on the CSN line and the line
is put into the low-power mode (input direction and disconnected
buffer), after some time its level falls to low and some flash
chips, like for example MX25R64, exit the Deep Power-down mode
when that happens. To prevent this, activate the GPIO internal
pull-up for this line in boards that do not have the external
pull-up on it.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2022-08-10 16:08:23 +02:00
Gerard Marull-Paretas
e2e9155dd5 boards: remove unused tag from supported list
All IEEE 802.15.4 tests/samples use DT-based filter now, so the
ieee802154 tag can be deleted.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-10 11:57:34 +02:00
Gerard Marull-Paretas
b74a22924e net: lib: config: remove NET_CONFIG_IEEE802154_DEV_NAME
Remove NET_CONFIG_IEEE802154_DEV_NAME in favor of DT based choice using
zephyr,ieee802154.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-10 11:57:34 +02:00
Gerard Marull-Paretas
846bed99c3 boards: enable IEEE 802.15.4 devices and add choice
Enable the IEEE 802.15.4 radio node on all boards that listed
'ieee802154' in the supported field.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-10 11:57:34 +02:00
Kumar Gala
236484456f drivers: kscan: Remove unnecessary Kconfig settings
Have the kscan device enabled in devicetree will now get the driver
enabled by default when CONFIG_KSCAN=y is set.  So we can remove
driver enabling Kconfig values in various Kconfig.defconfig files.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-09 23:37:46 -05:00
Kumar Gala
f2fa572561 entropy: remove Kconfig.defconfig* setting of entropy drivers
Now that entropy drivers are enabled based on devicetree
we need to remove any cases of them getting enabled by
Kconfig.defconfig* files as this can lead to errors.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-09 23:37:33 -05:00
Francois Ramu
3f7b5625f5 boards: arm: stm32u585 and stm32l562 disco octoflash in SPI mode
The four-byte-opcodes property of the octoFlash node must be set to
use a 4-byte opcode (SPI_NOR_CMD_PP_4B) in the case of OSPI_SPI_MODE.
Else the write instruction is wrong and the operation fails
in this transfer data mode

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-08-09 15:59:18 +01:00
Chen Peng1
c6393e2536 dts: stm32f411e_disco@B: fix wrong device label lsm303agr-magn@1e.
the device label lsm303agr-magn@1e doesn't exist in the base dts
file stm32f411e_disco.dts, it is lsm303agr-magn, so correct it.

Signed-off-by: Chen Peng1 <peng1.chen@intel.com>
2022-08-09 08:45:55 -04:00
Kumar Gala
f7496df804 boards: remove unnecessary I2C / SPI bus Kconfig enablement
We now 'select I2C' and/or SPI bus in Kconfig in the sensor driver
Kconfig's so there is no need to have boards do the following:

config I2C
       default y if SENSOR

config SPI
       default y if SENSOR

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-09 07:28:11 -05:00
Erwan Gouriou
ac0bf71d84 boards: nucleo_wb5rg: Add a c2h device
Add a chosen c2h to enable use of transparent mode over uart.

Additionally add cts/rts pins and enable hw flow control to lpuart1
for H4 protocol support.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-08-09 12:31:16 +02:00
Kumar Gala
af3065d0f5 boards: arm: Remove label property from devicetree
The label property isn't needed in devicetree so remove it.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-09 12:30:59 +02:00
Kumar Gala
63769bd1c1 drivers: display: Remove unnecessary Kconfig settings
Have the display enabled in devicetree will now get the driver
enabled by default when CONFIG_DISPLAY=y is set.  So we can remove
setting driver enabling Kconfig values in various .conf and
defconfig files.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-09 12:27:44 +02:00
Kumar Gala
e31cba26be flash: remove Kconfig.defconfig* setting of flash drivers
Now that flash drivers are enabled based on devicetree
we need to remove any cases of them getting enabled by
Kconfig.defconfig* files as this can lead to errors.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-09 12:27:28 +02:00
Andrzej Głąbek
af75354d82 boards: nrf9160dk_nrf9160: Correct arduino_spi definition
This is a follow-up to commit 8541299020.

The arduino_spi definition introduced in the above commit is incorrect
because the spi1 MOSI and MISO pins are swapped and spi1 uses the same
pins (P0.13, P0.12, and P0.11) that are assigned to spi3 when building
for board revision 0.14.0 and above.
This commit actually reverts the changes made to dts files in the
commit mentioned above and instead it adds the arduino_spi label
to spi3 and assigns the proper pins to this instance in the default
dts file. And in the overlay for revision 0.14.0 it just adds another
CS line to spi3 (the SPIM pins are by default configured correctly)
so that this instance can be used for communication with the exernal
flash.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2022-08-08 14:16:15 +02:00
Kumar Gala
daf7609cb7 boards: arm: nrf5340: Drop RPMSG service configuration
The preferred ipc service on NRF platforms is ipc_service.  Remove
configuration for rpmsg_service and just utilize ipc_service.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-08 10:41:55 +02:00
Ayan Kumar Halder
b77a52b103 boards: fvp_baser_aemv8r_aarch32: Fix the board type
The board type should be "fvp_baser_aemv8r_aarch32". This will build
zephyr binary for aarch32.

Signed-off-by: Ayan Kumar Halder <ayankuma@amd.com>
2022-08-07 14:28:42 +01:00
Andriy Gelman
4348cafa19 boards: xmc45_relax_kit: Add led node
Adds two LEDs.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2022-08-05 13:00:21 +02:00
Gerard Marull-Paretas
61361e870b kconfig: remove redundant IEEE 802.15.4 defaults or selections
All IEEE 802.15.4 drivers are now automatically enabled if they are
'okay' in DT and all of its dependencies are 'y', including
CONFIG_IEEE802154. This means individual driver enablement is not
necessary anymore in Kconfig.defconfig files or samples/tests. Boards
need to still make sure any dependencies are enabled, e.g. SPI bus in
some cases.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-05 12:56:47 +02:00
Gerard Marull-Paretas
ada8d72888 boards: remove non-minimal peripherals from defconfig
According to the board porting guidelines, boards should "leave
peripherals and their drivers disabled by default". In Zephyr we
tipically enable GPIO and SERIAL, as they are virtually required by all
samples/tests in tree. However, for the rest of peripherals it is up to
the application/test to enable the necessary driver classes. It is also
useful that board's Kconfig.defconfig enables certain driver peripherals
based on a condition, e.g. enable I2C if SENSOR=y.

Ref. https://docs.zephyrproject.org/latest/hardware/porting/
board_porting.html#general-recommendations

This patch removes the following driver classes from defconfig files:

- CONFIG_ADC
- CONFIG_COUNTER
- CONFIG_EEPROM
- CONFIG_ENTROPY
- CONFIG_ESPI
- CONFIG_HWINFO
- CONFIG_I2C
- CONFIG_LED
- CONFIG_NETWORKING
- CONFIG_PS2
- CONFIG_PWM
- CONFIG_SENSOR
- CONFIG_SPI
- CONFIG_SPI_SLAVE
- CONFIG_WATCHDOG

Note that a previous attempt was done in #38510.

Fixes #30694

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-05 12:55:51 +02:00
Gerard Marull-Paretas
ef8bae7110 boards: mec1501modular_assy6885: move UART_SOC_MAPPING to Kconfig.defconfig
Set the ESPI_PERIPHERAL_UART_SOC_MAPPING default value to 1 in
Kconfig.defconfig, only if ESPI=y.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-05 12:55:51 +02:00
Gerard Marull-Paretas
991ba97a9b boards: mec1501modular_assy6885: remove redundant I2C_INIT_PRIORITY
This board has no devices connected to the I2C bus, so there's no need
to customize init priorities at the board level.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-05 12:55:51 +02:00
Gerard Marull-Paretas
cba17e2c96 boards: mec15xxevb_assy6853: remove redundant I2C_INIT_PRIORITY
In this board I2C is required to talk to a GPIO expander (PCA95XX). By
default I2C devices are initialized with KERNEL_INIT_PRIORITY_DEVICE
(set to 50), and the PCA95XX driver is initialized with priority 70.
This means that there is no need to customize I2C priority as it will
always come before.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-05 12:55:51 +02:00
Gerard Marull-Paretas
aeb228048b boards: ip_k66f: enable SPI if NET_DSA=y
SPI is required by DSA_KSZ8794, enabled if NET_SDA=y.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-05 12:55:51 +02:00
Gerard Marull-Paretas
d105556721 boards: cyclonev_socdk: remove redundant COUNTER_INIT_PRIORITY
Counter devices are now initialized with priority 60 by default, which
guarantees it will come after I2C (50).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-05 12:55:51 +02:00
Declan Snyder
f3e5967cd4 doc: Updated NXP Docs to indicate entropy support
Updated documentation to indicate support for
random number generation on NXP boards.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2022-08-04 16:45:51 -05:00
Neil Chen
84fbdf1a23 board: arm: Add board support for lpcxpresso55s36
- Add pinctrl, dts, doc

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2022-08-04 10:47:16 -05:00
TOKITA Hiroshi
fd70c4a8e7 boards: Set devicetree alias for ST IIS3DHHC nodes
Set accel0 alias for all boards with the IIS3DHHC accelerometer
to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
1ad8bc5194 boards: Set devicetree alias for ST LSM6DSO nodes
Set accel0 alias for all boards with the LSM6DSO accelerometer
to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
49fa59b72c boards: Set devicetree alias for ST LSM6DSL nodes
Set accel0 alias for all boards with the LSM6DSL accelerometer
to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
d8c57bf9fb boards: Set devicetree alias for Bosch BMI270 nodes
Set accel0 alias for all boards with the BMI270 accelerometer
to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
9b4c455fc0 boards: Set devicetree alias for ST LIS3DH nodes
Set accel0 alias for all boards with the LIS3DH accelerometer
to use by the accel_polling sample.

Add "st,lis2dh" compatibility to resolve dependency
to 96b_wistrio and rak5010_nrf52840.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
f8e876c06c boards: Set devicetree alias for ST LIS2DH and compatible nodes
Set accel0 alias for all boards with the LIS2DH and compatible
accelerometer to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
3dd844b650 boards: Set devicetree alias for ST LIS2DW12 nodes
Set accel0 alias for all boards with the LIS2DW12 accelerometer
to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
8277efb96c boards: Set devicetree alias for NXP FXOS8700 and compatible nodes
Set accel0 alias for all boards with the FXOS8700 and compatible
accelerometer to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
0309b77074 boards: Set devicetree alias for Analog Devices ADXL362 nodes
Set accel0 alias for all boards with the ADXL362 accelerometer
to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
TOKITA Hiroshi
342f74a792 boards: Configure I2C/SPI default for boards with accelerometer
For boards with an accelerometer, configure the appropriate bus
(I2C or SPI) default to be enabled if the sensor driver class was enabled.

This change makes no need to add a bunch of board-specific configuration
overlays to the application.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-08-04 09:06:57 -05:00
Kumar Gala
e83ccd5607 boards: arm: atmel: Remove label property from devicetree
The label property isn't needed in devicetree so remove it.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-04 13:46:50 +02:00
Kumar Gala
96bca6d656 boards: arm: nxp: Remove label property from devicetree
The label property isn't needed in devicetree so remove it.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-04 13:46:30 +02:00
Kumar Gala
4764a32d44 boards: arm: stm32: Remove label property from devicetree
The label property isn't needed in devicetree so remove it.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-04 13:46:24 +02:00
Erwan Gouriou
30ccff5cff boards: nucleo_l11k4: SPI device is missing pinctrl configuration
Add pinctrl-0 to spi1 device.

Fixes #48642

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-08-04 13:45:29 +02:00
Kumar Gala
6298b27725 watchdog: remove Kconfig.defconfig setting of watchdog drivers
Now that watchdog drivers are enabled based on devicetree
we need to remove any cases of them getting enabled by
Kconfig.defconfig* files as this can lead to errors.

Typically the Kconfig.defconfig* will blindly enable a
watchdog and not respect the devicetree state of the watchdog.
Additionally we can get problems with prj.conf/defconfig
getting incorrectly overridden.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-03 18:30:17 -05:00
Kumar Gala
b5b2b627b5 dac: remove Kconfig.defconfig setting of DAC drivers
Now that DAC drivers are enabled based on devicetree
we need to remove any cases of them getting enabled by
Kconfig.defconfig* files as this can lead to errors.

Typically the Kconfig.defconfig* will blindly enable a
sensor and not respect the devicetree state of the DAC.
Additionally we can get problems with prj.conf/defconfig
getting incorrectly overridden.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-03 18:45:23 +02:00
Kumar Gala
cab0f5e4f3 dac: remove setting DAC_INIT_PRIORITY in board Kconfig.defconfig
The specific drivers for DAC_MCP4725 and DAC_DACX0508 have their
own driver specific Kconfig symbol for the INIT_PRIORITY.  So
remove setting the generic one as it doesnt make sense to set it
and the default value matches what the board specific values for
INIT_PRIORITY are set to.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-03 18:45:23 +02:00
Jan Kuliga
a830ba149d boards: arm: nucleo_f303re: Add lacking board-level spi dt description.
The nucleo_f303re board has a SoC equipped with spi. Add lacking
devicetree, doc and yaml description.

Signed-off-by: Jan Kuliga <jtkuliga@gmail.com>
2022-08-03 12:06:20 +02:00
Jan Kuliga
133d2351e7 boards: arm: nucleo_f303re: doc: Fix board type typo.
The current board's documentation includes a board type typo.
Change the board type to the proper one.

Signed-off-by: Jan Kuliga <jtkuliga@gmail.com>
2022-08-03 12:06:20 +02:00