Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Tomasz Figa <tomasz.figa@gmail.com>
To: randy <lxr1234@hotmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>,
	Jingoo Han <jg1.han@samsung.com>,
	Sachin Kamat <sachin.kamat@linaro.org>,
	linux-pwm@vger.kernel.org, linux-samsung-soc@vger.kernel.org
Subject: Re: [exynos4412]How to test a pwm device, is there a test program?
Date: Sat, 14 Dec 2013 14:05:57 +0100	[thread overview]
Message-ID: <1611879.darQQ1Xxis@flatron> (raw)
In-Reply-To: <20131214124408.GG17467@mithrandir>

Hi Thierry, Ayaka,

On Saturday 14 of December 2013 13:44:09 Thierry Reding wrote:
> On Thu, Dec 12, 2013 at 10:27:04PM +0800, randy wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > 于 2013年12月12日 20:22, Thierry Reding 写道:
> > > On Mon, Dec 09, 2013 at 09:06:37PM +0800, randy wrote:
> > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> > >> 
> > >> 于 2013年12月09日 19:55, Thierry Reding 写道:
> > >>> On Mon, Dec 09, 2013 at 07:04:12PM +0800, randy wrote: [...]
> > >>>> Actually, I don't know whether the pwm works or not. In
> > >>>> dmesg, I saw: [  853.690000] samsung-pwm 139d0000.pwm: tried
> > >>>> to request PWM channel 0 without output [  876.930000]
> > >>>> samsung-pwm 139d0000.pwm: tried to request PWM channel 0
> > >>>> without output [ 879.615000] samsung-pwm 139d0000.pwm: tried
> > >>>> to request PWM channel 1 without output
> > >>>> 
> > >>>> in my dts, I only add ================================ 
> > >>>> pwm@139D0000 { status = "okay";
> > >> I added samsung,pwm-outputs = <0>;
> > >>>> }; ================================ is it enough to make pwm
> > >>>>  work, if the driver in kernel has been correct.
> > >>> 
> > >>> It seems like you're missing the samsung,pwm-outputs property
> > >>> (see Documentation/devicetree/bindings/pwm/pwm-samsung.txt).
> > >>> 
> > >>> Thierry
> > >> 
> > >> Well I have make it output to channel 0 now. But it doesn't work
> > >> with the config below. As it is a buzzer, I change your config. 
> > >> ============================================= root@mifu:~# cat
> > >> /sys/class/pwm/pwmchip0/pwm0/enable
> > >> 
> > >> 1 root@mifu:~# cat /sys/class/pwm/pwmchip0/pwm0/period 1000000 
> > >> root@mifu:~# cat /sys/class/pwm/pwmchip0/pwm0/duty_cycle 500000 
> > >> ============================================== I have used a
> > >> function generator with Vpp=2.2, it works.
> > > 
> > > Are you sure the function generator runs at the same frequency? Do
> > > you
> > Yes, I am sure.
> > > have the possibility to check the PWM output with a scope to see if
> > > it outputs anything?
> > I have used a oscillograph to capture, nothing(althought it show some
> > waves, but it is nosie single captured by autoset). I have a scope but
> > I don't think there is any different.
> > > 
> > > Thierry
> > Ayaka
> > Thank you
> 
> I don't know what else you could try, so I'm Cc'ing a couple of people
> who have worked with this driver before, perhaps they can help resolve
> this.

I suspect invalid hardware configuration here.

Ayaka, could you post your board dts file with PWM enabled?

Btw. For topics related to Samsung's platforms, it's good to always CC
linux-samsung-soc ML.

Best regards,
Tomasz


           reply	other threads:[~2013-12-14 13:05 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20131214124408.GG17467@mithrandir>]

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=1611879.darQQ1Xxis@flatron \
    --to=tomasz.figa@gmail.com \
    --cc=jg1.han@samsung.com \
    --cc=linux-pwm@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=lxr1234@hotmail.com \
    --cc=sachin.kamat@linaro.org \
    --cc=thierry.reding@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox