-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Add imx91evk SoC and board support. #84009
base: main
Are you sure you want to change the base?
Add imx91evk SoC and board support. #84009
Conversation
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
west.yml
Outdated
revision: b5f6470ec7ccd7f1c9a2c929fa93eae9fb001d9e | ||
revision: pull/497/head |
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.
manifest update must come before anything needing it
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.
yes, will make it the first patch. Thanks
soc/nxp/imx/imx9/imx91/mmu_regions.c
Outdated
#include <zephyr/sys/util.h> | ||
|
||
static const struct arm_mmu_region mmu_regions[] = { | ||
|
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.
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.
will remove it.
boards/nxp/imx91_evk/CMakeLists.txt
Outdated
@@ -0,0 +1 @@ | |||
# SPDX-License-Identifier: Apache-2.0 |
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.
empty file can go
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.
will drop it
boards/nxp/imx91_evk/board.cmake
Outdated
@@ -0,0 +1 @@ | |||
# SPDX-License-Identifier: Apache-2.0 |
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.
empty file can go
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.
yes, will drop it.
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_IMX91_EVK | ||
select SOC_MIMX9131 if BOARD_IMX91_EVK_MIMX9131 |
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.
is this board going to have other SoCs adding to it? If not, then
select SOC_MIMX9131 if BOARD_IMX91_EVK_MIMX9131 | |
select SOC_MIMX9131 |
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.
No other SoC, will take your suggestion. Thanks
boards/nxp/imx91_evk/doc/index.rst
Outdated
Supported Features | ||
================== | ||
|
||
The Zephyr imx91_evk board Cortex-A Core configuration supports the following |
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.
`` around board name, or better yet use full name as supplied to west build and call it board target
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.
make sense, will update. thanks
&lpuart1 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
/* clocks = <&ccm IMX_CCM_UART4_CLK 0x6c 24>; */ |
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.
can go?
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.
yes, will remove this line.
# Zephyr Kernel Configuration | ||
CONFIG_XIP=n | ||
CONFIG_KERNEL_DIRECT_MAP=y |
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.
why can't SoC select/defconfig these?
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.
I think it's better not select the XIP and DIRECT_MAP configs under SoC, these configs can be different in boards with the same SoC.
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.
Currently there are some device drivers MMIO mapping uses direct map, so I also suggest to move it to SoC defconfig.
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.
Zephyr device drivers should use the virtual address, so not depends on this config. This is for some freestanding applications that access the MMIO/RAM using physical address, such as the applications in our Real-time-edge.
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.
So device driver are based on hal driver which need to use 1:1 mapping, so they are using K_MEM_DIRECT_MAP MMIP mapping flag, so depend on CONFIG_KERNEL_DIRECT_MAP.
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.
Already move it to SoC Kconfig and select it on condition HAS_MCUX.
@JiafeiPan I'm adding you as an assignee |
d2ad03c
to
79a0244
Compare
# Zephyr Kernel Configuration | ||
CONFIG_XIP=n | ||
CONFIG_KERNEL_DIRECT_MAP=y |
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.
Currently there are some device drivers MMIO mapping uses direct map, so I also suggest to move it to SoC defconfig.
@@ -203,7 +203,7 @@ manifest: | |||
groups: |
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.
Please create a better description for this PR. When it will be merged there won't be any reference to PR497.
So please say something along the lines: update hal_nxp to pull support for imx91.
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.
yes, will update with the info, actually it will be updated to the hal_nxp SHA when that PR is merged.
Update the hal_nxp revison to the depended PR support for mimx9131. Signed-off-by: Hou Zhiqiang <[email protected]>
Add DTSi file for i.MX91. Signed-off-by: Hou Zhiqiang <[email protected]>
The i.MX 91 SoC’s integrated EdgeLock® Secure Enclave provides security features including lifecycle management, tamper detection, secure boot and a simplified path to certifications. The i.MX 91 family features an Arm® Cortex®-A55 running at up to 1.4GHz, support for modern LPDDR4 memory to enable platform longevity, dual Gigabit Ethernet and dual USB ports, along with a rich set of peripherals targeting medical, industrial and consumer IoT market segments. Signed-off-by: Hou Zhiqiang <[email protected]>
Add clock driver support for MIMX9131. Signed-off-by: Hou Zhiqiang <[email protected]>
Add pinctrl driver support for MIMX9131. Signed-off-by: Hou Zhiqiang <[email protected]>
79a0244
to
9b2cdc9
Compare
V2:
V3:
|
The i.MX 91 Evaluation Kit (MCIMX91-EVK board) is a platform designed to display the most commonly used features of the i.MX 91 applications processor. The MCIMX91-EVK board is an entry-level development board with a small and low-cost package. Signed-off-by: Hou Zhiqiang <[email protected]>
9b2cdc9
to
ebffa1a
Compare
V4:
|
Add imx91evk SoC and board support.
Depends on: