Devicetree
 help / color / mirror / Atom feed
From: Dhruva Gole <d-gole@ti.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "Uwe Kleine-König" <ukleinek@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	andy.shevchenko@gmail.com, "Philip Howard" <phil@gadgetoid.com>,
	"Sean Young" <sean@mess.org>,
	"Chris Morgan" <macromorgan@hotmail.com>,
	"Stefan Wahren" <wahrenst@gmx.net>,
	linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org,
	devicetree@vger.kernel.org,
	"Vincent Whitchurch" <vincent.whitchurch@axis.com>,
	"Andy Shevchenko" <andy@kernel.org>
Subject: Re: [PATCH v7 2/2] pwm: Add GPIO PWM driver
Date: Wed, 5 Jun 2024 11:22:22 +0530	[thread overview]
Message-ID: <20240605055222.vi2mu6atmz7vezns@dhruva> (raw)
In-Reply-To: <20240604-pwm-gpio-v7-2-6b67cf60db92@linaro.org>

On Jun 04, 2024 at 23:00:41 +0200, Linus Walleij wrote:
> From: Vincent Whitchurch <vincent.whitchurch@axis.com>
> 
> Add a software PWM which toggles a GPIO from a high-resolution timer.
> 
> This will naturally not be as accurate or as efficient as a hardware
> PWM, but it is useful in some cases.  I have for example used it for
> evaluating LED brightness handling (via leds-pwm) on a board where the
> LED was just hooked up to a GPIO, and for a simple verification of the
> timer frequency on another platform.
> 
> Since high-resolution timers are used, sleeping GPIO chips are not
> supported and are rejected in the probe function.
> 
> Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
> Co-developed-by: Stefan Wahren <wahrenst@gmx.net>
> Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
> Co-developed-by: Linus Walleij <linus.walleij@linaro.org>
> Reviewed-by: Andy Shevchenko <andy@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  Documentation/driver-api/gpio/drivers-on-gpio.rst |   7 +-
>  drivers/pwm/Kconfig                               |  11 +
>  drivers/pwm/Makefile                              |   1 +
>  drivers/pwm/pwm-gpio.c                            | 241 ++++++++++++++++++++++
>  4 files changed, 259 insertions(+), 1 deletion(-)
> 

Reviewed-by: Dhruva Gole <d-gole@ti.com>

-- 
Best regards,
Dhruva Gole <d-gole@ti.com>

  reply	other threads:[~2024-06-05  5:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-04 21:00 [PATCH v7 0/2] pwm: Add GPIO PWM driver Linus Walleij
2024-06-04 21:00 ` [PATCH v7 1/2] dt-bindings: pwm: Add pwm-gpio Linus Walleij
2024-06-04 21:00 ` [PATCH v7 2/2] pwm: Add GPIO PWM driver Linus Walleij
2024-06-05  5:52   ` Dhruva Gole [this message]
2024-06-18 11:51 ` [PATCH v7 0/2] " Phil Howard
2024-06-27  6:52 ` Uwe Kleine-König
2024-06-27  9:54   ` Stefan Wahren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240605055222.vi2mu6atmz7vezns@dhruva \
    --to=d-gole@ti.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=macromorgan@hotmail.com \
    --cc=phil@gadgetoid.com \
    --cc=robh@kernel.org \
    --cc=sean@mess.org \
    --cc=ukleinek@kernel.org \
    --cc=vincent.whitchurch@axis.com \
    --cc=wahrenst@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox