Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions boards/shields/st_lcd_dsi_mb1835/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ orsource "boards/*.defconfig"

if LVGL

config INPUT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe prefer configdefault.

default y

config LV_Z_BITS_PER_PIXEL
default 32

Expand Down
13 changes: 13 additions & 0 deletions boards/shields/st_lcd_dsi_mb1835/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@ Set ``--shield "st_lcd_dsi_mb1835"`` when you invoke ``west build``. For example
:shield: st_lcd_dsi_mb1835
:goals: build

You can test both the display and the capacitive touch using the
:zephyr:code-sample:`draw_touch_events` sample:

.. zephyr-app-commands::
:zephyr-app: samples/subsys/input/draw_touch_events
:board: stm32u5g9j_dk1
:shield: st_lcd_dsi_mb1835
:goals: build

This sample renders a cross that follows your finger and is a quick way to
verify that the panel, LTDC, and touch controller are wired and configured
correctly on STM32U5G9J-DK1 with this shield.

References
**********

Expand Down
15 changes: 15 additions & 0 deletions boards/shields/st_lcd_dsi_mb1835/st_lcd_dsi_mb1835.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
/ {
chosen {
zephyr,display = &zephyr_lcd_controller;
zephyr,touch = &st1633i;
};

lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&st1633i>;
};
};

Expand Down Expand Up @@ -111,3 +117,12 @@
vfront-porch = <50>;
};
};

&qsh_030_i2c {
st1633i: st1633i@70 {
compatible = "sitronix,cf1133";
reg = <0x70>;
int-gpios = <&dsi_lcd_qsh_030 4 GPIO_ACTIVE_LOW>;
status = "okay";
};
};
16 changes: 16 additions & 0 deletions boards/st/stm32u5g9j_dk1/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,22 @@ Here is an example for the :zephyr:code-sample:`blinky` application.
:goals: debug


Using the ST LCD DSI MB1835 shield
**********************************

The :ref:`st_lcd_dsi_mb1835` shield provides a 480x480 round LCD panel with
capacitive touch for this board via MIPI DSI and I2C. You can exercise both
display and touch using the :zephyr:code-sample:`draw_touch_events` sample:

.. zephyr-app-commands::
:zephyr-app: samples/subsys/input/draw_touch_events
:board: stm32u5g9j_dk1
:shield: st_lcd_dsi_mb1835
:goals: build flash

See the shield documentation for details: :ref:`st_lcd_dsi_mb1835`.


.. _STM32U5G9J-DK1 website:
https://www.st.com/en/evaluation-tools/stm32u5g9j-dk1.html

Expand Down
7 changes: 7 additions & 0 deletions boards/st/stm32u5g9j_dk1/stm32u5g9j_dk1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,13 @@ zephyr_udc0: &usbotg_hs {
status = "okay";
};

qsh_030_i2c: &i2c5 {
pinctrl-0 = <&i2c5_scl_ph5 &i2c5_sda_ph4>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_FAST>;
status = "okay";
};

/* alias used by display shields */
zephyr_mipi_dsi: &mipi_dsi {};

Expand Down