Skip to content
Open
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
6 changes: 6 additions & 0 deletions boards/microchip/sam/sama7g54_ek/sama7g54_ek.dts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,12 @@
clock-frequency = <DT_FREQ_M(10)>;
};

&pit64b1 {
top-alarm;
prescaler-period = <15>;
status = "okay";
};

&pwm {
pinctrl-0 = <&pinctrl_mikrobus_pwm_default>;
pinctrl-names = "default";
Expand Down
1 change: 1 addition & 0 deletions boards/microchip/sam/sama7g54_ek/sama7g54_ek.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ toolchain:
ram: 128
supported:
- can
- counter
- dma
- entropy
- pwm
Expand Down
1 change: 1 addition & 0 deletions drivers/counter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ zephyr_library_sources_ifdef(CONFIG_COUNTER_INFINEON_TCPWM counter_ifx_tcpwm.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_ITE_IT51XXX counter_ite_it51xxx.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_ITE_IT8XXX2 counter_ite_it8xxx2.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_MAXIM_DS3231 maxim_ds3231.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_MCHP_SAM_PIT64B counter_mchp_sam_pit64b.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_MCUX_CTIMER counter_mcux_ctimer.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_MCUX_FTM counter_mcux_ftm.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_MCUX_GPT counter_mcux_gpt.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/counter/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ source "drivers/counter/Kconfig.max32_rtc"
source "drivers/counter/Kconfig.max32_timer"
source "drivers/counter/Kconfig.max32_wut"
source "drivers/counter/Kconfig.maxim_ds3231"
source "drivers/counter/Kconfig.mchp_sam_pit64b"
source "drivers/counter/Kconfig.mcp7940n"
source "drivers/counter/Kconfig.mcux_ctimer"
source "drivers/counter/Kconfig.mcux_ftm"
Expand Down
11 changes: 11 additions & 0 deletions drivers/counter/Kconfig.mchp_sam_pit64b
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (C) 2025 Microchip Technology Inc. and its subsidiaries
#
# SPDX-License-Identifier: Apache-2.0
#

config COUNTER_MCHP_SAM_PIT64B
bool "Microchip SAM PIT64B Counter"
default y
depends on DT_HAS_MICROCHIP_SAM_PIT64B_COUNTER_ENABLED
help
Enable the Microchip PIT64B counter driver.
Loading
Loading