Make shield overlays less error prone and easier to maintain by
switching to the GPIO pin constants defined in mikro-bus.h.
The constant names the socket pin, not the function the shield puts it
to, so a stepper DIR line wired to the AN pin becomes MIKROBUS_AN and
keeps its existing comment naming the function.
arduino_uno_click and mb1280_stmod_plus define mikroBUS nexus nodes
rather than consuming one. Their gpio-map entries are converted on both
sides so the Arduino and STMod+ parent pins are named too, which lets
the redundant "AN -> A0" style comments go.
The generated devicetree is unchanged.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
Adds a new shield definition for the MikroE ADAC Click board. This board
provides support for an ADI AD5593R ADC/DAC over a mikroBUS I2C
interface.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
Adds a new shield definition for the MikroE Accel 22 Click board. This
board provides support for an ADI ADXL367 3-axis accelerometer over a
mikroBUS SPI interface.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
Adds a new shield definition for the MikroE Accel Click board. This
board provides support for an ADI ADXL345 3-axis accelerometer over a
mikroBUS I2C interface.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
Order of Properties in Device Node
The following order of properties in device nodes is preferred:
“compatible”
“reg”
“ranges”
Standard/common properties (defined by common bindings,
e.g. without vendor-prefixes)
Vendor-specific properties
“status” (if applicable)
Child nodes, where each node is preceded with a blank line
Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
PLL3 was configured with div-m = 16 and mul-n = 110, giving a 1 MHz
reference and a 110 MHz VCO. This is outside both legal operating
modes of the STM32H747 PLL (VCOL: 150-420 MHz VCO, VCOH: ref >= 2 MHz).
Since commit 00f0eb822b ("drivers: clock_control: stm32h7: fix
incorrect VCO configuration logic") the configuration is rejected with
-ERANGE, and stm32_clock_control_init() returns before applying the bus
prescalers and switching SYSCLK to PLL1. The M7 core is left running
from HSI (64 MHz instead of 480 MHz) and peripherals such as the
console UART compute their dividers from DT rates that no longer match
the actual clock tree, resulting in wrong baud rates.
Use div-m = 8 and mul-n = 110 (2 MHz reference, 220 MHz VCO, VCOL) and
double the P/Q/R dividers so the outputs are unchanged, keeping the
27.5 MHz LTDC pixel clock on pll3_r.
Assisted-by: GitHub-Copilot:claude-opus-5.5
Signed-off-by: Martino Facchin <m.facchin@arduino.cc>
The vendor field of shield.yml must be a prefix from
vendor-prefixes.txt. Three shields used a vendor name or an unknown
prefix instead, which shows up as empty entries in the vendor selector
of the board catalog.
Fixes#121946
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
Update LVGL to 9.6.0
The LVGL module now sources a zephyr/Kconfig.defaults before the
LVGL Kconfig.
The Zephyr tree no longer re-declares or references symbols of the
LVGL module Kconfig. Boards, shields and SoCs set Zephyr owned LV_Z_*
options instead, and Kconfig.defaults in the LVGL module turns them
into defaults of the matching LVGL options.
LVGL 9.6 replaces the color depth option with the
LV_COLOR_FORMAT_DEFAULT choice. The LV_Z_COLOR_FORMAT choice provides
its SoC, board and shield default, with a no default option that
keeps the LVGL default. LV_Z_DPI_DEF and LV_Z_DRAW_BUF_ALIGN have no
prompt and default to 0, which also keeps the LVGL default.
LV_ATTRIBUTE_MEM_ALIGN_SIZE has no LVGL counterpart and becomes
LV_Z_ATTRIBUTE_MEM_ALIGN_SIZE. LV_USE_GPU_NXP_PXP is used by hal_nxp
and keeps its name.
The render buffers are sized from the bits per pixel of
LV_COLOR_FORMAT_DEFAULT unless LV_Z_BITS_PER_PIXEL is set,
and the monochrome buffer layout follows CONFIG_LV_COLOR_FORMAT_I1,
so both follow a color format set by the application.
Logging and the system monitor stay with the LVGL module. The glue
logs through its own log module using the log level template, and
samples using the system monitor enable CPU_LOAD themselves.
Co-authored-by: Fabian Blatz <fabianblatz@gmail.com>
Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
Signed-off-by: André Costa <andre_miguel_costa@hotmail.com>
Now that main overlay ensure that csi_i2c is enabled, there is no
more need to have board specific overlay.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
In preparation of removing the display timing from the driver, embed
them within the device-tree.
The blanking periods passed to the DSI host on attach were one pixel
each. A host driving the panel in video mode converts the horizontal
values into lane byte clock periods, and a one pixel porch does not
leave room for the sync short packets and the blanking packets that
have to be sent during the porches.
Use 6 pixel horizontal porches instead, long enough for the packets
to be sent during those periods.
Assisted-by: Copilot:claude-opus-5
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
The shield declares RGB565 buffers, which store the least significant
byte first. The 8-bit FMC transport sends these bytes unchanged, but
the ST7789V RAMCTRL configuration selects most-significant-byte-first
pixel data.
Set the RAMCTRL ENDIAN bit to match the declared pixel format,
preserving the remaining register settings.
Clear the MADCTL MY bit to correct the vertically mirrored output
with the shield joystick below the display.
Build-tested the display sample for nucleo_u575zi_q.
Signed-off-by: Michele Vaccari <michele.vaccari@outlook.com>
The STM32MP157C-DK2 and STM32MP157F-DK2 Discovery boards share the same
MB1272 hardware and are identical from the Cortex-M4 (Zephyr) point of
view. Rename the existing stm32mp157c_dk2 board to the SoC-agnostic
stm32mp157x_dk2 so that both variants can later be selected through a
board qualifier.
The board target becomes stm32mp157x_dk2/stm32mp157cxx. The board
definition is split into a shared stm32mp157x_dk2.dtsi and a per-SoC
stm32mp157x_dk2_stm32mp157cxx.dts (SoC dtsi plus pinctrl). All in-tree
references to the old target (shield overlays and sample/test filters)
are updated accordingly. This is a pure rename with no functional change
for the Cortex-M4 target.
The old stm32mp157c_dk2 board name is kept as a deprecated alias in
boards/deprecated.cmake, mapping to stm32mp157x_dk2/stm32mp157cxx, so
existing build commands keep working with a deprecation warning.
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Richard Gudino <richar_1321@hotmail.com>
Enable I2C2 on the STM32MP257F-DK when the B-CAMS-IMX shield is used,
since the board keeps the camera I2C bus disabled by default.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: Jerome LAMY <jerome.lamy@savoirfairelinux.com>
Add the RAK19007 WisBlock Base Board 2nd Gen shield. The board
provides one Core Slot and four Sensor slots A-D. Slot D accepts
modules up to 23 mm; slots A-C accept 10 mm modules. It includes
a battery voltage monitor and user-configurable status LEDs.
The USB-C port is on this board and is wired to the Core Slot USB
pins, so this shield enables the CDC ACM console and selects it as
the serial backend.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
Setting dma/dmamux as okay on stm32l4r9i_disco and stm32h747i_disco
is no more necessary since they are already set as okay at
board level.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Allow usage of the st_b_cams_omv_mb1683 shield on the stm32l4r9i_disco
board by removing the reset property of the sensor since this is not
available on that board.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Allow usage of the st_b_cams_omv_mb1683 shield on the stm32h747i_disco
board by removing the reset property of the sensor since this is not
available on that board.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
This fixes the wrong I2C address for the M2MEM ID EEPROM. It
was put to be 0x57 but instead it should be 0x51. The issue
was spotted at the time of developing a b_m2mem_pack1 sample,
and it was verified by using zephyr shell command:
i2c scan m2mem_i2c.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
Commit a088942a62 ("boards: shields: nxp_m2_wifi_bt: increase BT RX
stack size") raised the BT RX WQ stack to 2048 to cover flash writes
done from the RX thread. But some boards using this shield (e.g.
MCXN947) use the NXP ELS/PKC PSA crypto backend, where SMP pairing
operations run in the BT RX thread with a much deeper call chain and
2048 is not enough.
Raise the default to 2800 to cover the worst case (the ELS/PKC PSA
crypto path), matching the value used for RW6xx.
Signed-off-by: Miles Wang <linxiao.wang@nxp.com>
Update the west yaml to point to the new LVGL version.
Fix the Kconfig symbol deprecation around color formatting/depth
in all boards/shields.
Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
Update the w5500_evb_pico2's board files and documentation to use
hazard3_0/m33_0 cpu clusters over the hazard3/m33 cpu clusters. Update
board overlays and references in yaml files in shields and tests
directory.
For example, instead of w5500_evb_pico2/rp2350a/m33, the board target is
now w5500_evb_pico2/rp2350a/m33_0.
Add old board target to deprecated boards list to be replaced by new
target automatically and warn on use of old target.
Assisted-by: Claude:sonnet5
Signed-off-by: Andrew Fantino <fantino@qti.qualcomm.com>
Update the rpi_pico2's board files and documentation to use
hazard3_0/m33_0 cpu clusters over the hazard3/m33 cpu clusters. Update
board overlays and references in yaml files in samples, shields, and
tests directories.
For example, instead of rpi_pico2/rp2350a/m33, the board target is now
rpi_pico2/rp2350a/m33_0.
Add old board targets to deprecated boards list to be replaced by new
targets automatically and warn on use of old targets.
Assisted-by: Claude:sonnet5
Signed-off-by: Andrew Fantino <fantino@qti.qualcomm.com>
Update the pico_plus2's board files and documentation to use
hazard3_0/m33_0 cpu clusters over the hazard3/m33 cpu clusters. Update
board overlays and references in yaml files in samples, shields, and
tests directories.
For example, instead of pico_plus2/rp2350b/m33, the board
target is now pico_plus2/rp2350b/m33_0.
Add old board target to deprecated boards list to be replaced by
new target automatically and warn on use of old target.
Assisted-by: Claude:sonnet5
Signed-off-by: Andrew Fantino <fantino@qti.qualcomm.com>
Drop the co5300 driver's internal shadow framebuffer and the associated
even-coordinate/address alignment logic for the MIPI DSI write path.
co5300_mipi_dsi_adjust_coordinates() and its supporting framebuffer
allocation, placement, and alignment machinery (CO5300_FRAMEBUFFER_DECL,
addr_align, frame_ptr/frame_pitch, BUILD_ASSERTs) are removed, and
co5300_mipi_dsi_display_write() now writes directly from the caller-
supplied buffer using the caller's descriptor instead of a locally
adjusted one.
Move window-set and tearing-effect synchronization out of the per-bus
write callbacks (co5300_mipi_dsi_display_write/co5300_mspi_display_write)
and into the shared co5300_write() entry point, so both backends get
consistent handling without duplicating the logic.
Remove the now-unused pitch-align, addr-align, and ext-ram devicetree
properties from the chipone,co5300-mipi-dsi binding, and drop the
corresponding ext-ram/addr-align/pitch-align overlay properties from
the zc143ac72mipi shield.
Required alignment is now handled at the LVGL level instead: enable
LV_Z_AREA_X_ALIGNMENT_WIDTH and LV_Z_AREA_Y_ALIGNMENT_WIDTH (set to 2)
in the zc143ac72mipi shield's Kconfig.defconfig so LVGL rounds
invalidated areas to even boundaries before they reach the driver,
removing the need for the driver to compensate internally.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
This board features RS-485 and CANFD (only transceiver no controller).
It is compatible with the DHSBC STM32MP255C board.
Signed-off-by: Rupert Englbrecht <renglbrecht@dh-electronics.com>
The AT25040 EEPROM chip is 512 bytes and the way it accepts the 9th
address bit is via the opcode. The 8 address bytes can only address
256 bytes. To address 512 bytes, you need the 9th address bit or'd
into the opcode
Signed-off-by: Gaurang Gunde <ggunde@axon.com>
The X-NUCLEO-IKS4A1 Mode 5 documentation incorrectly identifies
LSM6DSO16IS as the Qvar controller.
Mode 5 routes QVAR1 and QVAR2 to HUB1. According to the board
schematic, HUB1 is connected to LSM6DSV16X, which provides the
Qvar interface on its SDx/AH1/QVAR1 and SCx/AH2/QVAR2 pins.
Correct the Mode 5 documentation to identify LSM6DSV16X as the
Qvar controller.
Signed-off-by: Duc Viet Le <levietduc0712@gmail.com>
LCDIF frame buffers must be placed on non-cacheable region
to work. Mark the region non-cacheable through the standard
zephyr,memory-attr MPU property.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
The new update SDIO support on renesas,ra-sdhc driver required the
sdio-int interupt signal to be defined on device tree, this add the
sdio interrupt define on the RA8x1, RA8x2 SoC
Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
The IS25LP032D ships with the Quad Enable bit cleared, so its quad
commands do nothing until the bit is set and reading back what was
just written returns 0x88 on every byte. The memory reports a Quad
Enable Requirement of 010b in its SFDP, which is S1B6: the bit is bit
6 of the status register, read and written with RDSR and WRSR.
State that in the devicetree so the driver sets the bit during
initialization. Nothing changes for the other variants: the W25Q16JV
on MB1928-33LB is an SNIQ, an ordering option whose Quad Enable bit
is fixed to 1 in the factory, and the two MB1927 modules are octal.
Verified with samples/drivers/mspi/mspi_flash on nucleo_u3c5zi_q: the
erase, write and read-back tests pass, and the log shows the driver
issuing a Write Status Register command it did not issue before.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
The JEDEC ID of the memory on this module was never filled in, so the
driver could not verify which chip it is talking to, and the number of
dummy cycles for the octal read was a placeholder copied from the
MB1927-33BA module.
Read both from the hardware instead. The memory answers c2 81 39,
which is the Macronix octal 256 Mbit part the module is documented to
carry. The dummy cycle count does not need to be in the devicetree at
all: the mxicy,mx25u quirk reads it from configuration register 2 of
the memory itself, and the driver only overrides that when rx-dummy is
present. Dropping the property therefore replaces a guess with the
value the memory reports, which is 20 on the module tested.
Verified with samples/drivers/mspi/mspi_flash on nucleo_u3c5zi_q: the
chip is recognized as 32 MB with 4-byte addressing and the erase,
write and read-back tests pass.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
The reset line of every module is the enable input of the module LDO,
so resetting the memory means cutting its supply. Without a pulse
length the driver switches the regulator off and on again in the same
breath, the rail never falls, and the memory keeps whatever volatile
configuration the previous firmware left behind.
That is visible on the octal modules: once the driver has switched one
of them to OPI, resetting the board alone leaves it there, so the next
boot talks single-line SPI to a memory that listens octal and every
command reads back as zeros.
Give the reset a real pulse and a recovery delay. The values cover all
four memories with margin: MX25LM51245G asks for 300 us below 0.9 V
for the initialization to happen and 3 ms until it operates, W25Q16JV
for 20 us until chip select may go low and 5 ms until a write
instruction is accepted, and IS25LP032D for 300 us until chip select
may go low. The remaining unknown is how long the rail needs to
collapse, which depends on the module, hence the margin.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
The shield provides the Ethernet PHY for the S32K148-EVB. Enable the
ENET module and its PTP clock in addition to the MAC and MDIO nodes, so
the shield enables everything the ENET driver needs instead of relying
on the SoC devicetree leaving these nodes enabled.
No functional change: the nodes are currently enabled by default.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Remove duplicated <board>.overlay files for all boards
that support b_m2mem_pack1 shield and handle it with a
generic ext-nor0 alias.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
nucleo_c5a3zg now exports the board-side devicetree labels required by
the B-M2MEM-PACK1 shields, so list it next to nucleo_u3c5zi_q as an
in-tree host-board implementation and in the build example.
Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
The default hostapd regulatory region for NXP M2 Wi-Fi/BT
shields was set to 'WW' (worldwide), which uses conservative
transmit power limits. This can cause FTM (Fine Timing
Measurement) session failures on IW612 when operating as
a SoftAP responder, because the reduced power is insufficient
for reliable FTM frame exchange.
Change the default to 'US' to allow higher transmit power,
which improves SoftAP FTM reliability and avoids session
failures during 802.11mc/az distance measurements.
Assisted-by: WChat:Claude
Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
Remove board-specific `LV_COLOR_DEPTH_16` defaults
since 16-bit RGB565 is already the default selection
for `LV_COLOR_DEPTH`.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Update all x-nucleo-iks4a1 shield samples and references to them so
that they use the new zephyr:code-sample extension.
Signed-off-by: Armando Visconti <armando.visconti@st.com>
Add support for the X-NUCLEO-GFX02Z1 display shield on the
NUCLEO-F446ZE.
- Expose the st_zio_fmc and st_zio_qspi connector labels on nucleo_f446ze
and add the FMC and QUADSPI pin configuration together with a disabled
QSPI NOR flash node to the board devicetree, so the shield overlay only
enables the peripherals, completes the flash node and describes the
on-shield devices.
- Add the nucleo_f446ze shield overlay wiring the ST7789V display over
the FMC 8080 bus and the MX25L6433F NOR Flash over the QUADSPI
controller. The FMC bank base address is provided explicitly through
the bank-address property because the STM32F4 HAL does not define the
FMC_BANK1_x sub-bank macros.
- Document the board and extend the display sample and display_check
test coverage.
Signed-off-by: Michele Vaccari <michele.vaccari@outlook.com>