Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions boards/nxp/lpcxpresso55s36/lpcxpresso55s36-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,12 @@
nxp,analog-mode;
};
};

pinmux_hscmp0: pinmux_hscmp0 {
group0 {
pinmux = <HSCMP0_IN3_PIO1_5>;
slew-rate = "standard";
nxp,analog-mode;
};
};
};
6 changes: 6 additions & 0 deletions boards/nxp/lpcxpresso55s36/lpcxpresso55s36.dts
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,9 @@ zephyr_udc0: &usbfs {
pinctrl-0 = <&pinmux_opamp0>;
pinctrl-names = "default";
};

&hscmp0 {
status = "okay";
pinctrl-0 = <&pinmux_hscmp0>;
pinctrl-names = "default";
};
1 change: 1 addition & 0 deletions boards/nxp/lpcxpresso55s36/lpcxpresso55s36.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ supported:
- pwm
- usb_device
- usbd
- comparator
vendor: nxp
18 changes: 18 additions & 0 deletions drivers/clock_control/clock_control_mcux_syscon.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,24 @@ static int mcux_lpc_syscon_clock_control_on(const struct device *dev,
}
#endif

#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(hscmp0))
if ((uint32_t)sub_system == MCUX_HSCMP0_CLK) {
CLOCK_EnableClock(kCLOCK_Hscmp0);
}
#endif

#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(hscmp1))
if ((uint32_t)sub_system == MCUX_HSCMP1_CLK) {
CLOCK_EnableClock(kCLOCK_Hscmp1);
}
#endif

#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(hscmp2))
if ((uint32_t)sub_system == MCUX_HSCMP2_CLK) {
CLOCK_EnableClock(kCLOCK_Hscmp2);
}
#endif

#ifdef CONFIG_SOC_FAMILY_MCXN
#if DT_NODE_HAS_STATUS(DT_NODELABEL(trng), okay)
if ((uint32_t)sub_system == MCUX_ELS_CLK) {
Expand Down
1 change: 1 addition & 0 deletions drivers/comparator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ zephyr_library_sources_ifdef(CONFIG_COMPARATOR_MCUX_ACMP comparator_mcux_acmp.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NRF_COMP comparator_nrf_comp.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NRF_LPCOMP comparator_nrf_lpcomp.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NXP_CMP comparator_nxp_cmp.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NXP_HSCMP comparator_nxp_hscmp.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_RENESAS_RA comparator_renesas_ra.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_RENESAS_RA_LVD comparator_renesas_ra_lvd.c)
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_RENESAS_RX_LVD comparator_renesas_rx_lvd.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/comparator/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ rsource "Kconfig.mcux_acmp"
rsource "Kconfig.nrf_comp"
rsource "Kconfig.nrf_lpcomp"
rsource "Kconfig.nxp_cmp"
rsource "Kconfig.nxp_hscmp"
rsource "Kconfig.renesas_ra"
rsource "Kconfig.renesas_rx"
rsource "Kconfig.shell"
Expand Down
11 changes: 11 additions & 0 deletions drivers/comparator/Kconfig.nxp_hscmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2025 NXP
# SPDX-License-Identifier: Apache-2.0

config COMPARATOR_NXP_HSCMP
bool "NXP HSCMP comparator driver"
default y
depends on DT_HAS_NXP_HSCMP_ENABLED
select PINCTRL
select CLOCK_CONTROL
select RESET
select REGULATOR
Loading
Loading