-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Support imx93 display #97587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
RuoshanShi
wants to merge
15
commits into
zephyrproject-rtos:main
Choose a base branch
from
nxp-upstream:support_imx93_display
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Support imx93 display #97587
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6cdf192
drivers: clock: ccm_rev2: add imx93 common clocks set support
WinteriWang ff557d7
soc: imx93: a55: initialize video pll
WinteriWang 785634b
driver: mucx_mediamix: add mcux_mediamix driver support
WinteriWang 207741f
[nxp toup] soc: imx93: enable imx93 mediamix
WinteriWang cb4542c
driver: mucx_lcdifv3: add mcux_lcdifv3 driver support
WinteriWang 30a3a76
soc: imx93: enable mcux lcdifv3
WinteriWang 8356e1c
drivers: mipi dsi: Add dsi dwc driver support
RuoshanShi e62636f
driver: mipi dsi: Update dsi dwc driver to support i.MX93 A55
RuoshanShi 7753f48
soc: imx93: enable mipi dsi
WinteriWang 2b4bd4c
driver: display: add waveshare dsi panel driver support
WinteriWang 3ad6479
boards: nxp: add shield of 7inch DSI LCD(C) for FRDM_IMX93
WinteriWang 8bfea49
driver: mucx_lcdifv3: support both full and partial refresh
WinteriWang 3ef20a2
soc: imx93: a55: add missing stdint header
WinteriWang beab17e
modules: lvgl: fix build warning for print format
JiafeiPan f2a7a9a
west.yml: update hal_nxp revision
RuoshanShi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,3 +149,5 @@ | |
&wdog4 { | ||
status = "okay"; | ||
}; | ||
|
||
display_i2c: &lpi2c1 {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Copyright 2025 NXP | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
if SHIELD_WAVESHARE_7INCH_DSI_LCD_C | ||
|
||
if DISPLAY | ||
|
||
if LVGL | ||
|
||
config LV_Z_VDB_SIZE | ||
default 100 | ||
|
||
config LV_Z_DOUBLE_VDB | ||
default y | ||
|
||
config LV_Z_BITS_PER_PIXEL | ||
default 32 | ||
|
||
config LV_Z_FULL_REFRESH | ||
default y | ||
|
||
choice LV_COLOR_DEPTH | ||
default LV_COLOR_DEPTH_32 | ||
endchoice | ||
|
||
endif # LVGL | ||
|
||
endif # DISPLAY | ||
|
||
endif # SHIELD_7INCH_DSI_LCD_C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright 2025 NXP | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
config SHIELD_WAVESHARE_7INCH_DSI_LCD_C | ||
def_bool $(shields_list_contains,waveshare_7inch_dsi_lcd_c) |
61 changes: 61 additions & 0 deletions
61
boards/shields/waveshare_dsi_lcd/boards/frdm_imx93_mimx9352_a55.overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright 2025 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <dt-bindings/mipi_dsi/mipi_dsi.h> | ||
|
||
/ { | ||
chosen { | ||
zephyr,display = &lcdif; | ||
}; | ||
|
||
dram: memory@d0000000 { | ||
reg = <0xd0000000 DT_SIZE_M(64)>; | ||
}; | ||
}; | ||
|
||
&media_blk_ctrl { | ||
status = "okay"; | ||
}; | ||
|
||
&lcdif { | ||
width = <1024>; | ||
height = <600>; | ||
pixel-format = "argb-8888"; | ||
media-axi-clk-rate = <400000000>; | ||
media-apb-clk-rate = <133333334>; | ||
status = "okay"; | ||
|
||
display-timings { | ||
compatible = "zephyr,panel-timing"; | ||
hsync-len = <100>; | ||
hfront-porch = <100>; | ||
hback-porch = <100>; | ||
vsync-len = <10>; | ||
vfront-porch = <10>; | ||
vback-porch = <10>; | ||
de-active= <0>; | ||
pixelclk-active = <0>; | ||
hsync-active = <1>; | ||
vsync-active = <1>; | ||
clock-frequency = <50000000>; | ||
}; | ||
}; | ||
|
||
&mipi_dsi { | ||
dpi-color-coding = "24-bit"; | ||
dpi-video-mode = "non-burst-sync-pulse"; | ||
dphy-ref-frequency = <24000000>; | ||
data-rate-clock = <600000000>; | ||
status = "okay"; | ||
}; | ||
|
||
&display_i2c { | ||
status = "okay"; | ||
}; | ||
|
||
&dsi_panel { | ||
mipi-dsi = <&mipi_dsi>; | ||
}; |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need to add shield.yml file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kartben The shield.yml file has been added, thanks for the comments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.. _waveshare_dsi_lcd: | ||
|
||
WAVESHARE DSI LCD Panel | ||
######################## | ||
|
||
Overview | ||
******** | ||
|
||
The WAVESHARE DSI LCD Panel Shield is a universal driver shield. | ||
The shield can be used to drive various DSI LCD panel. | ||
|
||
More information about the shield can be found | ||
-at the `WAVESHARE DSI LCD Panel website`_. | ||
|
||
Current supported displays | ||
========================== | ||
|
||
+--------------+------------------------------+ | ||
| Display | Shield Designation | | ||
| | | | ||
+==============+==============================+ | ||
| 7inch DSI | waveshare_7inch_dsi_lcd_c | | ||
| LCD(C) | | | ||
+--------------+------------------------------+ | ||
|
||
|
||
Requirements | ||
************ | ||
|
||
This shield can only be used with a board that provides a configuration | ||
for MIPI DSI and defines node aliases for I2C interfaces | ||
(see :ref:`shields` for more details). | ||
|
||
Programming | ||
*********** | ||
|
||
Correct shield designation (see the table above) for your display must | ||
be entered when you invoke ``west build``. | ||
For example: | ||
|
||
.. zephyr-app-commands:: | ||
:zephyr-app: samples/subsys/display/lvgl | ||
:board: frdm_imx93/mimx9352/a55 | ||
:shield: waveshare_7inch_dsi_lcd_c | ||
:goals: build | ||
|
||
References | ||
********** | ||
|
||
.. target-notes:: | ||
|
||
.. _WAVESHARE DSI LCD Panel website: | ||
https://www.waveshare.com/product/displays/lcd-oled/7inch-dsi-lcd-c.htm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
shield: | ||
name: waveshare_7inch_dsi_lcd_c | ||
full_name: Waveshare 7inch DSI LCD (C) | ||
vendor: waveshare | ||
supported_features: | ||
- display | ||
- input |
17 changes: 17 additions & 0 deletions
17
boards/shields/waveshare_dsi_lcd/waveshare_7inch_dsi_lcd_c.overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright 2025 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <dt-bindings/mipi_dsi/mipi_dsi.h> | ||
|
||
&display_i2c { | ||
dsi_panel: waveshare_panel@45 { | ||
compatible = "waveshare,7inch-dsi-lcd-c"; | ||
reg = <0x45>; | ||
data-lanes = <2>; | ||
pixel-format = <MIPI_DSI_PIXFMT_RGB888>; | ||
status = "okay"; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
menuconfig DISPLAY_MCUX_LCDIFV3 | ||
bool "MCUX LCDIFV3 driver" | ||
default y | ||
depends on DT_HAS_NXP_IMX_LCDIFV3_ENABLED | ||
depends on CLOCK_CONTROL | ||
select INIT_VIDEO_PLL | ||
help | ||
Enable support for mcux LCDIFV3 driver. | ||
|
||
if DISPLAY_MCUX_LCDIFV3 | ||
|
||
config MCUX_LCDIFV3_FB_NUM | ||
int "Framebuffers to be allocated in driver" | ||
default 2 | ||
range 0 2 | ||
help | ||
Number of framebuffers to be allocated in LCDIFV3 driver. Driver allocates | ||
framebuffers in order to support partial display update. | ||
|
||
endif # DISPLAY_MCUX_LCDIFV3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright 2025 NXP | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config WAVESHARE_7INCH_DSI_LCD_C | ||
bool "waveshare 7inch DSI LCD(C) driver" | ||
default y | ||
select MIPI_DSI | ||
select I2C | ||
depends on DT_HAS_WAVESHARE_7INCH_DSI_LCD_C_ENABLED | ||
help | ||
Enable driver for waveshare 7inch DSI LCD(C). |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.