-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add frdm_mcxe31b board basic support #95560
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
base: main
Are you sure you want to change the base?
Add frdm_mcxe31b board basic support #95560
Conversation
6017e5b
to
0d95a80
Compare
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
0d95a80
to
5d68882
Compare
5d68882
to
3ef987b
Compare
|
||
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(fxosc), nxp_fxosc, okay) | ||
const fxosc_config_t fxosc_config = {.freqHz = NXP_FXOSC_FREQ, | ||
.workMode = NXP_FXOSC_WORKMODE, |
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.
have these files been put through clang-format? Because the struct here looks very odd
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.
Have used clang-format command to format this file.
drivers/pinctrl/Kconfig.nxp_siul2
Outdated
default y | ||
depends on DT_HAS_NXP_S32ZE_SIUL2_PINCTRL_ENABLED || DT_HAS_NXP_S32K3_SIUL2_PINCTRL_ENABLED | ||
depends on DT_HAS_NXP_S32ZE_SIUL2_PINCTRL_ENABLED || DT_HAS_NXP_S32K3_SIUL2_PINCTRL_ENABLED || \ | ||
DT_HAS_NXP_MCXE31X_SIUL2_PINCTRL_ENABLED |
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.
DT_HAS_NXP_MCXE31X_SIUL2_PINCTRL_ENABLED | |
DT_HAS_NXP_MCXE31X_SIUL2_PINCTRL_ENABLED |
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.
Updated
cpus { | ||
#address-cells = <0x1>; | ||
#size-cells = <0>; | ||
core0: cpu@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.
missing newline on line 15
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.
Updated
&peripheral { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
adc_0: adc@a0000 { |
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.
etc. fix in whole PR
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.
Sorry, I ignore the first sub-node. I have checked all the dts files and corrected them.
@@ -0,0 +1,10 @@ | |||
# | |||
# Copyright 2025 NXP |
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.
remove excess spacing from commit title
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.
Updated
boards/nxp/frdm_mcxe31b/Kconfig
Outdated
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config NXP_MCXE31X_BOOT_HEADER |
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.
BOARD_
prefix missing
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.
Updated.
/* | ||
* Copyright 2025 NXP | ||
* | ||
* SPDXLicense-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.
needs fixing
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.
Updated
|
||
leds { | ||
compatible = "gpio-leds"; | ||
red_led: led_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.
I can still see a missing newline on line 37 and other places, Fix in the whole PR
d777dfa
to
96f1e57
Compare
@lucien-nxp I merged the HAL side PR and updated this PR for you. |
96f1e57
to
9399c1a
Compare
Updated hal_nxp to add mcxe31x pinctrl.h Signed-off-by: Lucien Zhao <[email protected]>
- add clock_init function to initialize clock sources according devicetree settings - finish basic clock api function Signed-off-by: Lucien Zhao <[email protected]>
- adapt for mcxe31x series - due to some bit defined in header files add some conditional macro to separate Signed-off-by: Lucien Zhao <[email protected]>
- add binding files: nxp,mcxe31x-siul2-pinctrl.yaml - Enable PINCTRL_NXP_SIUL2 when nxp,mcxe31x-siul2-pinctrl is ok Signed-off-by: Lucien Zhao <[email protected]>
- create 'mcxe' as family and 'mcxe31x' as series - add pinctrl_soc.h - add soc.c/.h to do some soc level initialization - add ecc initialization in mcxe31x_soc_initialization.S Signed-off-by: Lucien Zhao <[email protected]>
- Generate a full devices device tree file - Use specific_part.dtsi + full_devices.dtsi way to desribe all devices Signed-off-by: Lucien Zhao <[email protected]>
9399c1a
to
328b205
Compare
- support XIP way to boot - add board doc and picture - enable cases below: hello_world/blinky/button/ philosophers/synchronization/ gpio_basic_api Signed-off-by: Lucien Zhao <[email protected]>
328b205
to
28ba883
Compare
|
#ifndef _ASMLANGUAGE | ||
|
||
#include <fsl_common.h> | ||
|
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.
Add an include to soc_common.h
hello_world/blinky/button/philosophers/synchronization