-
Notifications
You must be signed in to change notification settings - Fork 263
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 first i.MX 95 based machine #1989
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6fa259b
linux-imx: Update to NXP BSP LF6.6.36_2.1.0
MaxKrummenacher cb0f79f
use-imx-security-controller-firmware: Add i.MX 95 configuration
MaxKrummenacher 44d7efa
optee-os: add i.mx95 configuration
MaxKrummenacher 825d6a4
imx-system-manager: import recipe from meta-imx
MaxKrummenacher 3e08ba1
imx-base: Add i.MX 95 configuration
MaxKrummenacher 22b589e
imx95-19x19-verdin: add machine conf from meta-imx
MaxKrummenacher 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 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 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,72 @@ | ||
#@TYPE: Machine | ||
#@NAME: Toradex i.MX 95 19x19 Verdin board | ||
#@SOC: i.MX95 | ||
#@DESCRIPTION: Machine configuration for Toradex i.MX 95 19x19 Verdin board | ||
#@MAINTAINER: Flora Hu <[email protected]> | ||
|
||
MACHINEOVERRIDES =. "mx95:" | ||
|
||
require conf/machine/include/imx95-evk.inc | ||
IMX_DEFAULT_BSP = "nxp" | ||
|
||
KERNEL_DEVICETREE_BASENAME = "imx95-19x19-verdin" | ||
|
||
KERNEL_DEVICETREE:append:use-nxp-bsp = " \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-adv7535.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-adv7535.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-adv7535-ap1302.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ap1302.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ap1302.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-lt8912.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-lt8912.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-lt8912-ap1302.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-lt9611uxc.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-lt9611uxc.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-lt9611uxc-ap1302.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-os08a20.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-os08a20.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-os08a20-isp-lt8912.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ox03c10.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ox03c10.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ox03c10-isp-lt8912.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ox05b1s.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ox05b1s.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ox05b1s-isp-lt8912.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-panel-cap-touch-10inch-dsi.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-panel-cap-touch-10inch-dsi.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-panel-cap-touch-10inch-lvds.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-rm692c9.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-rm692c9.dtbo \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-rpmsg.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ti-serdes.dtb \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}-ti-serdes.dtbo \ | ||
" | ||
|
||
UBOOT_CONFIG_BASENAME = "imx95_19x19_verdin" | ||
|
||
UBOOT_CONFIG ??= "sd" | ||
UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig" | ||
UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_fspi_defconfig" | ||
|
||
IMXBOOT_TARGETS = "flash_a55" | ||
|
||
OEI_BOARD = "mx95lp5" | ||
DDR_TYPE = "lpddr5" | ||
|
||
DDR_FIRMWARE_NAME = " \ | ||
lpddr5_dmem_v202311.bin \ | ||
lpddr5_dmem_qb_v202311.bin \ | ||
lpddr5_imem_v202311.bin \ | ||
lpddr5_imem_qb_v202311.bin \ | ||
" | ||
|
||
IMXBOOT_VARIANT = "" | ||
|
||
# The System Manager Firmware Name corresponds to a particular binary implementation | ||
# in the Yocto deploy folder. The name is comprised of the Firmware Basename and the | ||
# default system manager Config name, e.g., m33_image-mx95evk.bin and | ||
# m33_image-mx95evk_fusa.bin for the standard BSP version and FuSa version, respectively | ||
# The System Manager Firmware Basename is an alias used by imx-boot instead of using | ||
# a unique name for each implementation, e.g., m33_image.bin for i.MX 95 | ||
SYSTEM_MANAGER_FIRMWARE_BASENAME ?= "m33_image" | ||
SYSTEM_MANAGER_FIRMWARE_NAME ?= "m33_image-mx95evk" |
This file contains 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 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,56 @@ | ||
require conf/machine/include/imx-base.inc | ||
require conf/machine/include/arm/armv8-2a/tune-cortexa55.inc | ||
|
||
MACHINE_FEATURES += "pci wifi bluetooth optee" | ||
MACHINE_FEATURES:append:use-nxp-bsp = " nxpwifi-all-pcie nxpwifi-all-sdio jailhouse dpdk xen" | ||
|
||
KERNEL_DEVICETREE = " \ | ||
freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ | ||
" | ||
|
||
IMX_DEFAULT_BOOTLOADER:use-nxp-bsp = "u-boot-imx" | ||
IMX_DEFAULT_BOOTLOADER:use-mainline-bsp = "u-boot-fslc" | ||
|
||
LOADADDR = "" | ||
UBOOT_SUFFIX = "bin" | ||
UBOOT_MAKE_TARGET = "" | ||
|
||
SPL_BINARY = "spl/u-boot-spl.bin" | ||
|
||
UBOOT_CONFIG ??= "sd" | ||
UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_evk_defconfig,sdcard" | ||
UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_evk_fspi_defconfig" | ||
|
||
ATF_PLATFORM = "imx95" | ||
OEI_CONFIGS = "ddr tcm" | ||
OEI_CORE = "m33" | ||
OEI_SOC = "mx95" | ||
OEI_BOARD ?= "mx95lp5" | ||
DDR_TYPE ?= "lpddr5" | ||
|
||
IMXBOOT_VARIANTS = "alt jailhouse netc" | ||
|
||
# Multiple system manager configs by IMXBOOT_VARIANT | ||
SYSTEM_MANAGER_CONFIG = "${@bb.utils.contains('IMXBOOT_VARIANT', 'alt', 'mx95alt', \ | ||
bb.utils.contains('IMXBOOT_VARIANT', 'jailhouse', 'mx95evkjailhouse', \ | ||
bb.utils.contains('IMXBOOT_VARIANT', 'netc', 'mx95netc', \ | ||
'mx95evk', d), d), d)}" | ||
|
||
# imx-boot (flash.bin) targets based on UBOOT_CONFIG and IMXBOOT_VARIANT | ||
IMXBOOT_TARGETS_SD = "${@bb.utils.contains('IMXBOOT_VARIANT', 'alt', '${IMXBOOT_TARGETS_BASENAME}_alt', \ | ||
bb.utils.contains('IMXBOOT_VARIANT', 'jailhouse', '${IMXBOOT_TARGETS_BASENAME}_jailhouse', \ | ||
bb.utils.contains('IMXBOOT_VARIANT', 'netc', '${IMXBOOT_TARGETS_BASENAME}_netc', \ | ||
'${IMXBOOT_TARGETS_BASENAME}_all ${IMXBOOT_TARGETS_BASENAME}_a55', d), d), d)} \ | ||
" | ||
|
||
IMXBOOT_TARGETS = " \ | ||
${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_a55_flexspi', '${IMXBOOT_TARGETS_SD}', d)} \ | ||
" | ||
|
||
IMX_BOOT_SOC_TARGET = "iMX95" | ||
IMX_BOOT_SEEK = "32" | ||
|
||
# We have to disable SERIAL_CONSOLE due to auto-serial-console | ||
SERIAL_CONSOLES = "115200;ttyLP0" | ||
|
||
IMX_DEFAULT_BSP = "nxp" |
42 changes: 42 additions & 0 deletions
42
dynamic-layers/arm-toolchain/recipes-bsp/imx-system-manager/imx-system-manager.inc
This file contains 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,42 @@ | ||
# Set generic compiler for system manager core | ||
INHIBIT_DEFAULT_DEPS = "1" | ||
DEPENDS = "${SM_COMPILER}" | ||
SM_COMPILER ?= "gcc-arm-none-eabi-native" | ||
PROVIDES += "virtual/imx-system-manager" | ||
|
||
inherit deploy | ||
|
||
# Set monitor mode for none, one, or two | ||
PACKAGECONFIG[m0] = "M=0,,,,,m1 m2" | ||
PACKAGECONFIG[m1] = ",,,,,m0 m2" | ||
PACKAGECONFIG[m2] = "M=2,,,,,m0 m1" | ||
|
||
SYSTEM_MANAGER_CONFIG ?= "INVALID" | ||
|
||
LDFLAGS[unexport] = "1" | ||
|
||
EXTRA_OEMAKE = " \ | ||
V=y \ | ||
SM_CROSS_COMPILE=arm-none-eabi- \ | ||
${PACKAGECONFIG_CONFARGS} \ | ||
" | ||
|
||
do_configure() { | ||
oe_runmake config=${SYSTEM_MANAGER_CONFIG} clean | ||
oe_runmake config=${SYSTEM_MANAGER_CONFIG} cfg | ||
} | ||
|
||
do_compile() { | ||
oe_runmake config=${SYSTEM_MANAGER_CONFIG} | ||
} | ||
|
||
do_install[noexec] = "1" | ||
|
||
addtask deploy after do_compile | ||
do_deploy() { | ||
install -D -p -m 0644 \ | ||
${B}/build/${SYSTEM_MANAGER_CONFIG}/${SYSTEM_MANAGER_FIRMWARE_BASENAME}.bin \ | ||
${DEPLOYDIR}/${SYSTEM_MANAGER_FIRMWARE_BASENAME}-${SYSTEM_MANAGER_CONFIG}.bin | ||
} | ||
|
||
COMPATIBLE_MACHINE = "(mx95-generic-bsp)" |
23 changes: 23 additions & 0 deletions
23
dynamic-layers/arm-toolchain/recipes-bsp/imx-system-manager/imx-system-manager_1.0.0.bb
This file contains 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,23 @@ | ||
SUMMARY = "i.MX System Manager Firmware" | ||
DESCRIPTION = "\ | ||
The System Manager (SM) is a firmware that runs on a Cortex-M processor on \ | ||
many NXP i.MX processors. The Cortex-M is the boot core, runs the boot ROM \ | ||
which loads the SM (and other boot code), and then branches to the SM. The \ | ||
SM then configures some aspects of the hardware such as isolation mechanisms \ | ||
and then starts other cores in the system. After starting these cores, it \ | ||
enters a service mode where it provides access to clocking, power, sensor, \ | ||
and pin control via a client RPC API based on ARM's System Control and \ | ||
Management Interface (SCMI)." | ||
LICENSE = "BSD-3-Clause" | ||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b66f32a90f9577a5a3255c21d79bc619" | ||
|
||
SRC_URI = "${IMX_SYSTEM_MANAGER_SRC};branch=${SRCBRANCH}" | ||
IMX_SYSTEM_MANAGER_SRC ?= "git://github.com/nxp-imx/imx-sm.git;protocol=https" | ||
SRCBRANCH = "master" | ||
SRCREV = "709deccd9338399eb39b5cf99a60eab4fa60d539" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
require imx-system-manager.inc | ||
|
||
PACKAGECONFIG ??= "m2" |
This file contains 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 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 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
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.
Please split out the Linux update in a specific pull request.
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.
Done, #1991