All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kent Gibson <warthog618@gmail.com>
To: Robert Baumgartner <rbaumgar@redhat.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	Thierry Reding <treding@nvidia.com>,
	"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
	Bartosz Golaszewski <brgl@bgdev.pl>
Subject: Re: [libgpiod] How can I use PWM
Date: Sun, 7 Aug 2022 22:41:58 +0800	[thread overview]
Message-ID: <20220807144158.GA42204@sol> (raw)
In-Reply-To: <CAKdJ40QmeOgGdbscp06BorATN3d1gW0zraTB+FKSXqRbgowRQA@mail.gmail.com>

On Sun, Aug 07, 2022 at 03:20:33PM +0200, Robert Baumgartner wrote:
> Andy, Kent,
> 
> I believe I am on the right track.
> 
> I added following line to my config.txt
> # enable pwm on pin 18
> dtoverlay=pwm,pin=18,func=2
> 
> Now I have
> # ls /sys/class/pwm/pwmchip0
> device  export  npwm  power  subsystem  uevent  unexport
> # lsmod|grep pwm
> pwm_bcm2835            16384  0
> 

Excellent - if the hardware PWMs cover the lines you are interested in
then that is certainly the way to go.

> and an example I found is working
> https://github.com/jdimpson/syspw
> 

I believe that should be syspwm.

Cheers,
Kent.

      reply	other threads:[~2022-08-07 14:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05 11:14 [libgpiod] How can I use PWM Robert Baumgartner
2022-08-06 10:12 ` Andy Shevchenko
2022-08-06 13:40   ` Kent Gibson
2022-08-06 14:04     ` Andy Shevchenko
2022-08-07 13:20       ` Robert Baumgartner
2022-08-07 14:41         ` Kent Gibson [this message]

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=20220807144158.GA42204@sol \
    --to=warthog618@gmail.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=brgl@bgdev.pl \
    --cc=linux-gpio@vger.kernel.org \
    --cc=rbaumgar@redhat.com \
    --cc=thierry.reding@gmail.com \
    --cc=treding@nvidia.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.