All of lore.kernel.org
 help / color / mirror / Atom feed
From: robert.jarzmik@free.fr (Robert Jarzmik)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 01/17] ARM: pxa: cm-x300: Use PWM lookup table
Date: Tue, 06 Oct 2015 20:49:49 +0200	[thread overview]
Message-ID: <87bncbbzn6.fsf@belgarion.home> (raw)
In-Reply-To: <20151006075347.GD18633@ulmo> (Thierry Reding's message of "Tue, 6 Oct 2015 09:53:47 +0200")

Thierry Reding <thierry.reding@gmail.com> writes:

> On Mon, Oct 05, 2015 at 10:23:29PM +0200, Robert Jarzmik wrote:
>> Thierry Reding <thierry.reding@gmail.com> writes:
>> 
>> > @@ -305,11 +306,14 @@ static inline void cm_x300_init_lcd(void) {}
>> >  #endif
>> >  
>> >  #if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE)
>> > +static struct pwm_lookup cm_x300_pwm_lookup[] = {
>> > +	PWM_LOOKUP("pxa27x-pwm.0", 1, "pwm-backlight.0", NULL, 10000,
>> > +		   PWM_POLARITY_NORMAL),
>> > +};
>> That looks weird. It was pwm_id = 2, and I can't find the "2" in the statement
>> above. I would gladly fix it myself, but I wonder where that "2" should go ...
>
> pwm_id = 2 should be equivalent to the 1 in the second argument of the
> PWM_LOOKUP macro (i.e. the PWM index). The rationale for that change is
> given in an old commit by Paul Parsons:
> With the lookup tables the situation is somewhat more complicated
> because the indices are relative to the provider. The above would
> therefore map to something like this:
>
> 	Address     Hardware  Device            Index
> 	0x40b00000  PWM0      pxa2{5,7}x-pwm.0  0
> 	0x40b00010  PWM2      pxa27x-pwm.0      1
> 	0x40c00000  PWM1      pxa2{5,7}x-pwm.1  0
> 	0x40c00010  PWM3      pxa27x-pwm.1      1
>
> Does that clarify the situation?
Yes, very much, thanks. That settles the situation for the patches I had not
understood so far, ie. patches 1, 14,16,17.

Therefore, I'll apply the whole serie this week. Thanks for your work.

Cheers.

-- 
Robert

  reply	other threads:[~2015-10-06 18:49 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-05  8:49 [PATCH 00/17] ARM: pxa: Use PWM lookup tables Thierry Reding
2015-10-05  8:49 ` [PATCH 01/17] ARM: pxa: cm-x300: Use PWM lookup table Thierry Reding
2015-10-05 20:23   ` Robert Jarzmik
2015-10-06  7:53     ` Thierry Reding
2015-10-06 18:49       ` Robert Jarzmik [this message]
2015-10-05  8:49 ` [PATCH 02/17] ARM: pxa: colibri-pxa270-income: " Thierry Reding
2015-10-05  8:49 ` [PATCH 03/17] ARM: pxa: ezx: " Thierry Reding
2015-10-05  8:49 ` [PATCH 04/17] ARM: pxa: hx4700: Remove unused field initializers Thierry Reding
2015-10-06  6:53   ` Philipp Zabel
2015-10-05  8:49 ` [PATCH 05/17] ARM: pxa: lpd270: Use PWM lookup table Thierry Reding
2015-10-05  8:49 ` [PATCH 06/17] ARM: pxa: magician: " Thierry Reding
2015-10-06  6:52   ` Philipp Zabel
2015-10-05  8:49 ` [PATCH 07/17] ARM: pxa: mainstone: " Thierry Reding
2015-10-05  8:49 ` [PATCH 08/17] ARM: pxa: mioa701: " Thierry Reding
2015-10-05  8:49 ` [PATCH 09/17] ARM: pxa: palm27x: " Thierry Reding
2015-10-05  8:49 ` [PATCH 10/17] ARM: pxa: palmtc: " Thierry Reding
2015-10-05  8:49 ` [PATCH 11/17] ARM: pxa: palmte2: " Thierry Reding
2015-10-05  8:49 ` [PATCH 12/17] ARM: pxa: pcm990: " Thierry Reding
2015-10-05  8:49 ` [PATCH 13/17] ARM: pxa: raumfeld: " Thierry Reding
2015-10-05  8:49 ` [PATCH 14/17] ARM: pxa: tavorevb: " Thierry Reding
2015-10-05  8:49 ` [PATCH 15/17] ARM: pxa: viper: " Thierry Reding
2015-10-05  8:49 ` [PATCH 16/17] ARM: pxa: z2: " Thierry Reding
2015-10-05  8:49 ` [PATCH 17/17] ARM: pxa: zylonite: " Thierry Reding
2015-10-05 18:48 ` [PATCH 00/17] ARM: pxa: Use PWM lookup tables Robert Jarzmik

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=87bncbbzn6.fsf@belgarion.home \
    --to=robert.jarzmik@free.fr \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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.