Skip to content

Commit 10e379c

Browse files
decsnykartben
authored andcommitted
soc: mcx: Add mcx cmc hwinfo binding
Add a stupid binding for doc purposes. Terrible coupling when we have to configure DT in order to generate documentation properly. At least we get rid of one of the stupid HAS_MCUX_ kconfigs in the process. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1 parent 8d417a3 commit 10e379c

File tree

10 files changed

+27
-12
lines changed

10 files changed

+27
-12
lines changed

drivers/hwinfo/Kconfig.mcux_mcx_cmc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
config HWINFO_MCUX_MCX_CMC
55
bool "NXP MCX CMC reset cause"
66
default y
7-
depends on HAS_MCUX_MCX_CMC
7+
depends on DT_HAS_NXP_CMC_RESET_CAUSE_ENABLED
88
select HWINFO_HAS_DRIVER
99
help
1010
Enable NXP kinetis mcux CMC hwinfo driver.

dts/arm/nxp/nxp_mcxa153.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
status = "okay";
3030
};
3131

32+
cmc {
33+
compatible = "nxp,cmc-reset-cause";
34+
};
35+
3236
soc {
3337
ctimer0: ctimer@40004000 {
3438
compatible = "nxp,lpc-ctimer";

dts/arm/nxp/nxp_mcxa156.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
status = "okay";
3030
};
3131

32+
cmc {
33+
compatible = "nxp,cmc-reset-cause";
34+
};
35+
3236
soc {
3337
syscon: syscon@40000000 {
3438
compatible = "nxp,lpc-syscon";

dts/arm/nxp/nxp_mcxa266.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
};
2424
};
2525

26+
cmc {
27+
compatible = "nxp,cmc-reset-cause";
28+
};
29+
2630
/* Dummy pinctrl node, filled with pin mux options at board level */
2731
pinctrl: pinctrl {
2832
compatible = "nxp,port-pinctrl";

dts/arm/nxp/nxp_mcxa346.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
status = "okay";
3030
};
3131

32+
cmc {
33+
compatible = "nxp,cmc-reset-cause";
34+
};
35+
3236
soc {
3337
syscon: syscon@40091000 {
3438
compatible = "nxp,lpc-syscon";

dts/arm/nxp/nxp_mcxnx4x_common.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
};
3535
};
3636

37+
cmc {
38+
compatible = "nxp,cmc-reset-cause";
39+
};
40+
3741
/* Dummy pinctrl node, filled with pin mux options at board level */
3842
pinctrl: pinctrl {
3943
compatible = "nxp,port-pinctrl";
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright 2025 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: CMC reset causes
5+
6+
compatible: "nxp,cmc-reset-cause"

modules/hal_nxp/mcux/Kconfig.mcux

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ config HAS_MCUX_RCM
5252
Set if the Reset Control Module (RCM) module is present in
5353
the SoC.
5454

55-
config HAS_MCUX_MCX_CMC
56-
bool
57-
help
58-
Set if the Core Mode Controller (CMC) module is present in
59-
the SoC.
60-
6155
config HAS_MCUX_XCACHE
6256
bool
6357
help

soc/nxp/mcx/mcxa/Kconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,23 @@ config SOC_FAMILY_MCXA
1313
config SOC_MCXA153
1414
select CPU_CORTEX_M33
1515
select HAS_MCUX_CACHE
16-
select HAS_MCUX_MCX_CMC
1716

1817
config SOC_MCXA156
1918
select CPU_CORTEX_M33
2019
select CPU_HAS_FPU
2120
select ARMV8_M_DSP
2221
select HAS_MCUX_CACHE
23-
select HAS_MCUX_MCX_CMC
2422

2523
config SOC_MCXA346
2624
select CPU_CORTEX_M33
2725
select CPU_HAS_ARM_MPU
2826
select CPU_HAS_FPU
2927
select ARMV8_M_DSP
3028
select HAS_MCUX_CACHE
31-
select HAS_MCUX_MCX_CMC
3229

3330
config SOC_MCXA266
3431
select CPU_CORTEX_M33
3532
select CPU_HAS_ARM_MPU
3633
select CPU_HAS_FPU
3734
select ARMV8_M_DSP
3835
select HAS_MCUX_CACHE
39-
select HAS_MCUX_MCX_CMC

soc/nxp/mcx/mcxn/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ config SOC_FAMILY_MCXN
88
select HAS_MCUX
99
select CPU_CORTEX_M_HAS_SYSTICK
1010
select CPU_CORTEX_M_HAS_DWT
11-
select HAS_MCUX_MCX_CMC
1211

1312
config SOC_MCXN947_CPU0
1413
select CPU_CORTEX_M33

0 commit comments

Comments
 (0)