[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<ZQ0PR01MB12531D76903B31ECD673C1D79FDC2@ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn>
Date: Tue, 2 Jul 2024 09:23:47 +0000
From: William Qiu <william.qiu@...rfivetech.com>
To: Philipp Zabel <p.zabel@...gutronix.de>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "linux-pwm@...r.kernel.org"
<linux-pwm@...r.kernel.org>
CC: Uwe Kleine-König <ukleinek@...nel.org>, Hal Feng
<hal.feng@...rfivetech.com>
Subject: RE: [PATCH v13] pwm: opencores: Add PWM driver support
> -----Original Message-----
> From: Philipp Zabel <p.zabel@...gutronix.de>
> Sent: 2024年7月2日 17:22
> To: William Qiu <william.qiu@...rfivetech.com>; linux-kernel@...r.kernel.org;
> linux-pwm@...r.kernel.org
> Cc: Uwe Kleine-König <ukleinek@...nel.org>; Hal Feng
> <hal.feng@...rfivetech.com>
> Subject: Re: [PATCH v13] pwm: opencores: Add PWM driver support
>
> On Di, 2024-07-02 at 16:38 +0800, William Qiu wrote:
> > Add driver for OpenCores PWM Controller. And add compatibility code
> > which based on StarFive SoC.
> >
> > Co-developed-by: Hal Feng <hal.feng@...rfivetech.com>
> > Signed-off-by: Hal Feng <hal.feng@...rfivetech.com>
> > Signed-off-by: William Qiu <william.qiu@...rfivetech.com>
> > ---
> > MAINTAINERS | 7 ++
> > drivers/pwm/Kconfig | 12 ++
> > drivers/pwm/Makefile | 1 +
> > drivers/pwm/pwm-ocores.c | 239
> > +++++++++++++++++++++++++++++++++++++++
> > 4 files changed, 259 insertions(+)
> > create mode 100644 drivers/pwm/pwm-ocores.c
> >
> > diff --git a/MAINTAINERS b/MAINTAINERS index
> > 3c4fdf74a3f9..3b547ede2ce5 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -16824,6 +16824,13 @@ F: Documentation/i2c/busses/i2c-ocores.rst
> > F: drivers/i2c/busses/i2c-ocores.c
> > F: include/linux/platform_data/i2c-ocores.h
> >
> > +OPENCORES PWM DRIVER
> > +M: William Qiu <william.qiu@...rfivetech.com>
> > +M: Hal Feng <hal.feng@...rfivetech.com>
> > +S: Supported
> > +F: Documentation/devicetree/bindings/pwm/opencores,pwm.yaml
> > +F: drivers/pwm/pwm-ocores.c
> > +
> > OPENRISC ARCHITECTURE
> > M: Jonas Bonn <jonas@...thpole.se>
> > M: Stefan Kristiansson <stefan.kristiansson@...nalahti.fi>
> > diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index
> > 1dd7921194f5..42158bc1c8bc 100644
> > --- a/drivers/pwm/Kconfig
> > +++ b/drivers/pwm/Kconfig
> > @@ -440,6 +440,18 @@ config PWM_NTXEC
> > controller found in certain e-book readers designed by the original
> > design manufacturer Netronix.
> >
> > +config PWM_OCORES
> > + tristate "OpenCores PTC PWM support"
> > + depends on HAS_IOMEM && OF
> > + depends on COMMON_CLK && RESET_CONTROLLER
>
> The reset controller API has stubs in case RESET_CONTROLLER is disabled, so in
> general reset consumers don't need to depend on it.
>
> regards
> Philipp
I see, I'll drop it.
Best Regards,
William
Powered by blists - more mailing lists