Skip to content

Commit 284945a

Browse files
committed
drivers: comparator: microchip: Add G1 Comparator Driver
Add G1 Comparator driver for Microchip Analog Comparator Peripherals. Signed-off-by: Arunprasath P <arunprasath.p@microchip.com>
1 parent e029a6c commit 284945a

File tree

4 files changed

+591
-0
lines changed

4 files changed

+591
-0
lines changed

drivers/comparator/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ zephyr_library_sources_ifdef(CONFIG_USERSPACE comparator_handlers.c)
99
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_SILABS_ACMP comparator_silabs_acmp.c)
1010
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_FAKE_COMP comparator_fake_comp.c)
1111
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_IT51XXX_VCMP comparator_it51xxx_vcmp.c)
12+
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_MCHP_AC_G1 comparator_mchp_ac_g1.c)
1213
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_MCUX_ACMP comparator_mcux_acmp.c)
1314
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NXP_CMP comparator_nxp_cmp.c)
1415
zephyr_library_sources_ifdef(CONFIG_COMPARATOR_NRF_COMP comparator_nrf_comp.c)

drivers/comparator/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config COMPARATOR_INIT_PRIORITY
2121
rsource "Kconfig.fake_comp"
2222
rsource "Kconfig.silabs_acmp"
2323
rsource "Kconfig.it51xxx_vcmp"
24+
rsource "Kconfig.mchp"
2425
rsource "Kconfig.mcux_acmp"
2526
rsource "Kconfig.nxp_cmp"
2627
rsource "Kconfig.nrf_comp"

drivers/comparator/Kconfig.mchp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2025 Microchip Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config COMPARATOR_MCHP_AC_G1
5+
bool "Microchip Comparator Driver for AC G1 Peripherals"
6+
default y
7+
depends on DT_HAS_MICROCHIP_AC_G1_COMPARATOR_ENABLED
8+
select PINCTRL
9+
help
10+
Enable support for the Microchip Comparator driver
11+
on G1 AC peripherals.

0 commit comments

Comments
 (0)