Skip to content

Commit 654c293

Browse files
bijudaslag-linaro
authored andcommitted
mfd: Add Renesas RZ/G2L MTU3a core driver
The RZ/G2L multi-function timer pulse unit 3 (MTU3a) is embedded in the Renesas RZ/G2L family SoCs. It consists of eight 16-bit timer channels and one 32-bit timer channel. It supports the following functions - Counter - Timer - PWM The 8/16/32 bit registers are mixed in each channel. Add MTU3a core driver for RZ/G2L SoC. The core driver shares the clk and channel register access for the other child devices like Counter, PWM and Clock event. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230330111632.169434-3-biju.das.jz@bp.renesas.com
1 parent 0a9d6b5 commit 654c293

5 files changed

Lines changed: 806 additions & 0 deletions

File tree

drivers/mfd/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,16 @@ config MFD_SC27XX_PMIC
13151315
This driver provides common support for accessing the SC27xx PMICs,
13161316
and it also adds the irq_chip parts for handling the PMIC chip events.
13171317

1318+
config RZ_MTU3
1319+
bool "Renesas RZ/G2L MTU3a core driver"
1320+
depends on (ARCH_RZG2L && OF) || COMPILE_TEST
1321+
help
1322+
Select this option to enable Renesas RZ/G2L MTU3a core driver for
1323+
the Multi-Function Timer Pulse Unit 3 (MTU3a) hardware available
1324+
on SoCs from Renesas. The core driver shares the clk and channel
1325+
register access for the other child devices like Counter, PWM,
1326+
Clock Source, and Clock event.
1327+
13181328
config ABX500_CORE
13191329
bool "ST-Ericsson ABX500 Mixed Signal Circuit register functions"
13201330
depends on ARCH_U8500 || COMPILE_TEST

drivers/mfd/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ pcf50633-objs := pcf50633-core.o pcf50633-irq.o
174174
obj-$(CONFIG_MFD_PCF50633) += pcf50633.o
175175
obj-$(CONFIG_PCF50633_ADC) += pcf50633-adc.o
176176
obj-$(CONFIG_PCF50633_GPIO) += pcf50633-gpio.o
177+
obj-$(CONFIG_RZ_MTU3) += rz-mtu3.o
177178
obj-$(CONFIG_ABX500_CORE) += abx500-core.o
178179
obj-$(CONFIG_MFD_DB8500_PRCMU) += db8500-prcmu.o
179180
# ab8500-core need to come after db8500-prcmu (which provides the channel)

0 commit comments

Comments
 (0)