[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1494411.dJ2nCQkPX8@hyperion>
Date: Sun, 02 Sep 2012 23:34:32 +0200
From: Maarten ter Huurne <maarten@...ewalker.org>
To: Thierry Reding <thierry.reding@...onic-design.de>
Cc: Ralf Baechle <ralf@...ux-mips.org>, linux-mips@...ux-mips.org,
linux-kernel@...r.kernel.org,
Antony Pavlov <antonynpavlov@...il.com>,
Lars-Peter Clausen <lars@...afoo.de>
Subject: Re: [PATCH 0/3] MIPS: JZ4740: Move PWM driver to PWM framework
On Sunday 02 September 2012 21:27:53 Thierry Reding wrote:
> On Sun, Sep 02, 2012 at 03:25:55PM +0200, Maarten ter Huurne wrote:
> > I tested the "for-next" branch on the Dingoo A320 with the pwm-backlight
> > driver. It didn't work at first, because the PWM number and the timer
> > number didn't align: I requested PWM number 5 to get PWM7 and the GPIO
> > of PWM7 was used, but with timer 5 instead of timer 7, resulting in a
> > dark screen. However, it works fine after adding PWM0/1 as described
> > above.
>
> I haven't seen any usage of the pwm-backlight driver in mainline. I
> assume this is only present in some downstream repository?
Yes, the Dingoo A320 support is currently only available in the qi-kernel
repository. We have some essential drivers (the SLCD framebuffer driver in
particular) that are in their current state just too ugly to submit to
mainline.
> > If other people want to test on real hardware, you can find the code in
> > branch jz-3.6-rc2-pwm in the qi-kernel repository. Unfortunately our web
> > interface for git is still broken, but the repo itself is fine.
> >
> > git://projects.qi-hardware.com/qi-kernel.git
This is where you can find the code. The relevant configs are
qi_lb60_defconfig and a320_defconfig.
> An alternative approach would be to change pwm_chip.base from -1
> (dynamically allocated) to 2, which would leave 0 and 1 unavailable.
> That should at least solve the problem that you had regarding the GPIO
> and timer mismatch.
That could work, but the hardware does have PWM0 and PWM1, which are just
not available in our kernel, so adding them in busy state would better
describe real situation.
Maybe at some point we'll have a generic timer framework as well and then
having PWM0/1 defined but not requestable because the timers are busy would
be a natural fit.
> But the above also sounds sensible, and since both you and Lars agree
> that this is the better option, I can squash these changes into my patch
> with your permission.
Yes, please do.
Bye,
Maarten
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists