Commit Graph

20 Commits

Author SHA1 Message Date
Daniel DeGrasse
c73428062d drivers: mipi_dbi: mipi_dbi_spi: change reset pin polarity
Change reset pin polarity for MIPI DBI SPI controller, so that the board
devicetree is responsible for setting the GPIO to active low, and the
driver always sets the pin to a logic 1 to reset the display.

Fixes #68562

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-02-08 19:42:38 +01:00
Daniel DeGrasse
3dbbb73319 drivers: display: ili9xxx: convert to MIPI DBI API
Convert ili9xxx display drivers to use MIPI DBI API. Due to the fact
this change requires a new devicetree structure for the display driver
to build, required devicetree changes are also included in this commit
for all boards and shields defining an instance of an ili9xxx display.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-01-31 16:01:45 +00:00
Sylvio Alves
ce1be0e121 boards: esp32xx: decrease Wi-Fi minimum heap size
Decrease total RAM usage when Wi-Fi is enabled, specially after
`config HEAP_MEM_POOL_ADD_SIZE_BOARD` was added. This allows application
to handle additional HEAP as required.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-01-22 12:59:23 +01:00
Mike Szczys
7382dbd13a boards: xtensa: m5stack_core2: swap-xy touch input
Swap the lvgl X/Y touch input coordinates to match the orientation of the
screen.

Signed-off-by: Mike Szczys <szczys@hotmail.com>
2024-01-07 20:09:37 -05:00
Johan Hedberg
c6c1d462a0 boards: xtensa: Use HEAP_MEM_POOL_ADD_SIZE KConfig options
Kconfig options with a HEAP_MEM_POOL_ADD_SIZE_ prefix should be used to
set the minimum required system heap size. This helps prevent
applications from creating a non-working image by trying to set a too
small value.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-12-20 11:01:42 +01:00
Martin Kiepfer
0a962b8893 m5stack_core2: doc: SD-card status documented
Added support column for all features of m5stack_core2 board.
Link to m5stack_core2_ext added.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
2023-12-04 14:39:43 +01:00
Martin Kiepfer
04c165ad4d m5stack_core2: SDHC: SD card support added
* SD card support via sdhc-spi driver added. SPI speed is
configured to 20MHz for stability reasons. Some cards
seem to not working properly with 25HMz or even higher speeds.
* Pinmux ctrl for SPI3 pins reworked. Native cs removed
as gpio chip-selects are required.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
2023-12-04 14:39:43 +01:00
Benjamin Cabé
1fbcccd2fc boards: xtensa: Set M5Stack vendor for M5Stack boards
s/espressif/extensa/ for the couple M5Stack boards in-tree that had the
wrong vendor set.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-11-14 09:22:06 +01:00
Fabio Baltieri
2fbcb46a60 boards: m5stack_core2: do not use as default test platform
Only quemu boards are used as default in CI, drop the default property
from this one.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-11-04 18:12:57 -04:00
Bartosz Bilas
2d060feb51 boards: m5stack_core2: override REGULATOR_AXP192_INIT_PRIORITY priority
axp192 is used by the display controller and gpio hog subsys
thus we need to set this priority to the smaller value.

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
2023-11-02 15:02:00 +00:00
Bartosz Bilas
f9051d626d boards: m5stack_core2: fix priorities override
Instead of those set, use the default ones
for the MFD/REGULATOR_AXP192_INIT_PRIORITY/GPIO_AXP192_INIT_PRIORITY
that are set to the 80/86/81 values correctly. Adjust the
GPIO_HOGS_INIT_PRIORITY only to be executed after GPIO driver.

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
2023-11-02 11:33:18 +00:00
Martin Kiepfer
82b1df21cf shields: Add support for M5Stack-Core2 base shield.
M5Stack-Core2 comes with a base shield that is connected to the M5Stack
extention connector. It features a MPU6886 6-axis motion tracker
and a SPM1423 microphone.

Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
2023-10-25 17:33:35 +02:00
Martin Kiepfer
bc5f78d9ba boards: m5stack_core2: Add support for mbus connector
This commit adds basic support for the mbus connection port to
m5stack_core2 board.

Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
2023-10-25 17:33:35 +02:00
Sophie 'Tyalie' Friedrich
7857996e90 boards: esp23: m5stack_core2: Fix i2c1 pin definitions
For GPIO pins above 31, one needs to use the `&gpio1` (or similar)
definition, as zephyr seperates GPIOs into chunks of 32.

Signed-off-by: Sophie 'Tyalie' Friedrich <dev@flowerpot.me>
2023-10-23 20:56:54 -05:00
Anas Nashif
c3827ec48e boards: add vendor to board yaml
This is coming from devicetree and corrosponds to what we have in the
dts/bindings/vendor-prefixes.txt file.

This will allow for static filtering, especially with twister, i.e. no
need to build anything to know the vendor of a board

All of the vendor data was extracted automatically from the devicetree,
so some platforms might not have the right vendor or no vendor at all
right now, we need to fix some of the DTS information or do this
manually to get this 100% correct. But we are close.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-22 09:29:36 +02:00
Benjamin Cabé
131105811d boards: esp32: M5Stack Core2 has PCF8563 RTC, not PCF8523
The RTC chip on i2c0 is a PCF8563, not a PCF8523.
RTC _almost_ works when using the latter, but not quite, hence why it
probably was missed before.
Fix tested as working using RTC Shell commands.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-18 10:40:10 +01:00
Martin Kiepfer
555baf7197 boards: m5stack_core2: Increase i2c bitrate on i2c0
All periphals connected on i2c0 support 400kbit. The default speed has
been increased to improve responsiveness.

Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
2023-09-12 09:23:25 +02:00
Martin Kiepfer
147109adb0 boards: Add lvgl pointer support on m5stack_core2
Added lvgl-pointer definition in devicetree, to enable
touch-support in lvgl applications.
Kscan support has been removed from m5stack_core2 as this was just a
temporary thing.
Has been tested with lvgl hello world sample.

Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
2023-09-12 09:23:25 +02:00
Martin Kiepfer
c45cab369c devicetree: Add grove connector definition for m5stack_core2
Basic pinout definition.

Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
2023-09-11 11:06:36 +02:00
Martin Kiepfer
24eb2ee80a boards: M5Stack Core2 module suppport
This Pull-Request enables support for the M5Stack Core2 hardware.
The module features a LCD display, touchscreen, battery, USB-Port,
8MB RAM and 16MB Flash.
Basic features are working. Please refere to the board documentation
for details.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>

gpio: gpio_axp192: fix dependecy between GET_DIRECTION and GET_CONFIG
configuration

Latest unit gpio get_direction unit test failes, as get_direction api
internally requires get_config functionality. This commit fixes this
dependecy.

Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
2023-09-11 11:06:36 +02:00