Commit d8ab33ae authored by Phi Tran's avatar Phi Tran Committed by Benjamin Cabé
Browse files

drivers: pwm: Add support for PWM driver on RSK_RX130_512KB



This is initial commit to support PWM driver
on Renesas RX130 with MTU modules.

Signed-off-by: default avatarPhi Tran <phi.tran.jg@bp.renesas.com>
parent 065900b1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ zephyr_library_sources_ifdef(CONFIG_PWM_NXP_FLEXIO pwm_nxp_flexio.c)
zephyr_library_sources_ifdef(CONFIG_PWM_NXP_S32_EMIOS pwm_nxp_s32_emios.c)
zephyr_library_sources_ifdef(CONFIG_PWM_ENE_KB1200	pwm_ene_kb1200.c)
zephyr_library_sources_ifdef(CONFIG_PWM_RENESAS_RA	pwm_renesas_ra.c)
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)
+2 −0
Original line number Diff line number Diff line
@@ -118,6 +118,8 @@ source "drivers/pwm/Kconfig.ene"

source "drivers/pwm/Kconfig.renesas_ra"

source "drivers/pwm/Kconfig.renesas_rx_mtu"

source "drivers/pwm/Kconfig.ifx_cat1"

source "drivers/pwm/Kconfig.fake"
+9 −0
Original line number Diff line number Diff line
# Copyright (c) 2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

config PWM_RENESAS_RX_MTU
	bool "Renesas RX MTU PWM driver"
	default y
	depends on DT_HAS_RENESAS_RX_MTU_PWM_ENABLED
	help
	  Enable the Renesas RX PWM driver.
+662 −0

File added.

Preview size limit exceeded, changes collapsed.

+44 −0
Original line number Diff line number Diff line
# Copyright (c) 2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

description: Renesas RX MTU controller

compatible: "renesas,rx-mtu"

include: [base.yaml, pinctrl-device.yaml]

properties:
  channel:
    type: int
    description: channel MTU

  reg:
    required: true

  reg-names:
    required: true

  clocks:
    required: true

  counter-clear-channel:
    type: int
    description:
      Choose one channel to act as counter clear channel. Not required in synchronous
      mode if another synchronous MTU has a counter clear channel defined. If neither a channel
      nor synchronous mode is chosen, it is not possible to set a period, but the MTU will use a
      constant period of 0xffff cycles.

  synchronous:
    type: boolean
    description:
      if set, the device will operate in synchronous mode. All MTU devices in
      synchronous mode have the same period (in cycles, but subject to different prescaler
      settings). Only one of the synchronous devices has to specify a counter clear channel.

  bit-idx:
    type: int
    required: true
    description:
      which bit of the common timer start register (TSTR) and timer synchronous
      register (TSYR) to set for this device.
Loading