Skip to content

Add Support PWM driver for Renesas RZ/A3UL #93297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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
12 changes: 12 additions & 0 deletions boards/renesas/rza3ul_smarc/rza3ul_smarc-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,16 @@
slew-rate = "fast";
};
};

/omit-if-no-ref/ mtu1_pins: mtu1 {
mtu1-pinmux {
pinmux = <RZA_PINMUX(PORT_01, 0, 4)>; /* MTIOCA */
};
};

/omit-if-no-ref/ mtu3_pins: mtu3 {
mtu3-pinmux {
pinmux = <RZA_PINMUX(PORT_04, 2, 4)>; /* MTIOCA */
};
};
};
1 change: 1 addition & 0 deletions boards/renesas/rza3ul_smarc/rza3ul_smarc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ toolchain:
supported:
- uart
- gpio
- pwm
testing:
ignore_tags:
- bluetooth
1 change: 1 addition & 0 deletions drivers/pwm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ zephyr_library_sources_ifdef(CONFIG_PWM_RENESAS_RX_MTU pwm_renesas_rx_mtu.c)
zephyr_library_sources_ifdef(CONFIG_PWM_INFINEON_CAT1 pwm_ifx_cat1.c)
zephyr_library_sources_ifdef(CONFIG_PWM_FAKE pwm_fake.c)
zephyr_library_sources_ifdef(CONFIG_PWM_RENESAS_RZ_GPT pwm_renesas_rz_gpt.c)
zephyr_library_sources_ifdef(CONFIG_PWM_RENESAS_RZ_MTU pwm_renesas_rz_mtu.c)
zephyr_library_sources_ifdef(CONFIG_PWM_NEORV32 pwm_neorv32.c)
zephyr_library_sources_ifdef(CONFIG_PWM_WCH_GPTM pwm_wch_gptm.c)

Expand Down
10 changes: 9 additions & 1 deletion drivers/pwm/Kconfig.renesas_rz
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# Copyright (c) 2024-2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

config PWM_RENESAS_RZ_GPT
Expand All @@ -8,3 +8,11 @@ config PWM_RENESAS_RZ_GPT
select USE_RZ_FSP_GPT
help
Enable the PWM driver for the Renesas RZ General PWM Timer (GPT).

config PWM_RENESAS_RZ_MTU
bool "Renesas RZ Multi-Function Timer Pulse (MTU) PWM driver"
default y
depends on DT_HAS_RENESAS_RZ_MTU_PWM_ENABLED
select USE_RZ_FSP_MTU
help
Enable the PWM driver for the Renesas RZ Multi-Function Timer Pulse (MTU).
Loading
Loading