Skip to content

Commit 25ede2d

Browse files
ZhaoxiangJincfriedt
authored andcommitted
boards: Enable cmp on frdm_mcxc242
Enable cmp on frdm_mcxc242 Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent 6d724bd commit 25ede2d

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

boards/nxp/frdm_mcxc242/frdm_mcxc242-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,11 @@
7070
slew-rate = "slow";
7171
};
7272
};
73+
pinmux_cmp: pinmux_cmp {
74+
group0 {
75+
pinmux = <CMP0_IN0_PTC6>;
76+
drive-strength = "high";
77+
slew-rate = "fast";
78+
};
79+
};
7380
};

boards/nxp/frdm_mcxc242/frdm_mcxc242.dts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 NXP
2+
* Copyright 2024-2025 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -200,3 +200,9 @@ zephyr_udc0: &usb {
200200
&pit0_channel1 {
201201
status = "okay";
202202
};
203+
204+
&cmp {
205+
status = "okay";
206+
pinctrl-0 = <&pinmux_cmp>;
207+
pinctrl-names = "default";
208+
};

dts/arm/nxp/nxp_mcxc_common.dtsi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 NXP
2+
* Copyright 2024-2025 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -322,6 +322,14 @@
322322
status = "disabled";
323323
};
324324
};
325+
326+
cmp: cmp@40073000 {
327+
compatible = "nxp,cmp";
328+
reg = <0x40073000 0x1000>;
329+
interrupts = <16 0>;
330+
status = "disabled";
331+
clocks = <&sim KINETIS_SIM_CMP_CLK 0 0>;
332+
};
325333
};
326334
};
327335

0 commit comments

Comments
 (0)