<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/pwm/core.c, branch linux-3.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-10-05T18:56:43Z</updated>
<entry>
<title>pwm: Check for negative duty-cycle and period</title>
<updated>2012-10-05T18:56:43Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2012-09-02T20:13:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2d476a98f71c55e9acdca1d5a1080a22c0622af'/>
<id>urn:sha1:c2d476a98f71c55e9acdca1d5a1080a22c0622af</id>
<content type='text'>
Make sure the duty-cycle and period passed in are not negative. This
should eventually be made implicit by making them unsigned. While at
it, the drivers' .config() implementations can have the equivalent
checks removed.

Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
Cc: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Cc: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Cc: Axel Lin &lt;axel.lin@gmail.com&gt;
Cc: Kukjin Kim &lt;kgene.kim@samsung.com&gt;
Cc: Jingoo Han &lt;jg1.han@samsung.com&gt;
Cc: Jonghwan Choi &lt;jhbird.choi@samsung.com&gt;
Cc: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Cc: "Philip, Avinash" &lt;avinashphilip@ti.com&gt;
Cc: Vaibhav Bedia &lt;vaibhav.bedia@ti.com&gt;
Acked-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
</content>
</entry>
<entry>
<title>pwm: add devm_pwm_get() and devm_pwm_put()</title>
<updated>2012-09-10T15:05:45Z</updated>
<author>
<name>Alexandre Courbot</name>
</author>
<published>2012-08-01T10:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6354316dbe5a13b25bea15d7ffc891be025eb267'/>
<id>urn:sha1:6354316dbe5a13b25bea15d7ffc891be025eb267</id>
<content type='text'>
Add resource managed variants of pwm_get() and pwm_put() for
convenience. Code is largely inspired by the equivalent devm functions
of the regulator framework.

Signed-off-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
<entry>
<title>pwm: Add support for configuring the PWM polarity</title>
<updated>2012-09-10T15:05:44Z</updated>
<author>
<name>Philip, Avinash</name>
</author>
<published>2012-07-24T14:05:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0aa0869c3c9b10338dd92a20fa4a9b6959f177b5'/>
<id>urn:sha1:0aa0869c3c9b10338dd92a20fa4a9b6959f177b5</id>
<content type='text'>
Some hardware supports inverting the polarity of the PWM signal. This
commit adds support to the PWM framework to allow users of the PWM API
to configure the polarity. Note that in order to reduce complexity,
changing the polarity of a PWM signal is only allowed while the PWM is
disabled.

A practical example where this can prove useful is to simulate inversion
of the duty cycle. While inversion of polarity and duty cycle are not
exactly the same, the differences for most use-cases are negligible.

Signed-off-by: Philip, Avinash &lt;avinashphilip@ti.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
<entry>
<title>pwm: core: Fix coding style issues</title>
<updated>2012-08-17T12:08:26Z</updated>
<author>
<name>Sachin Kamat</name>
</author>
<published>2012-08-10T11:11:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e50d3523ff45646a48666ebbd3d8aeb0c75084ed'/>
<id>urn:sha1:e50d3523ff45646a48666ebbd3d8aeb0c75084ed</id>
<content type='text'>
Fixes the following:
WARNING: line over 80 characters
ERROR: spaces required around that ':' (ctx:VxW)
WARNING: Prefer pr_warn(... to pr_warning(...

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
<entry>
<title>pwm: Add missing static storage class specifiers in core.c file</title>
<updated>2012-08-17T12:08:24Z</updated>
<author>
<name>Sachin Kamat</name>
</author>
<published>2012-08-02T07:02:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dfeb86ecde7ae6ce15bd69a6a205b5e13aea8111'/>
<id>urn:sha1:dfeb86ecde7ae6ce15bd69a6a205b5e13aea8111</id>
<content type='text'>
Fixes the following sparse warnings:
drivers/pwm/core.c:152:6: warning:
symbol 'of_pwmchip_add' was not declared. Should it be static?
drivers/pwm/core.c:165:6: warning:
symbol 'of_pwmchip_remove' was not declared. Should it be static?

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
<entry>
<title>pwm: fix used-uninitialized warning in pwm_get()</title>
<updated>2012-07-23T11:24:17Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2012-07-11T06:05:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d295b129762bf6b2b7541243f496e363580de4a2'/>
<id>urn:sha1:d295b129762bf6b2b7541243f496e363580de4a2</id>
<content type='text'>
Some versions of GCC don't seem no notice that the initialization of the
index variable is tied to that of the chip variable and falsely report
it as potentially being used uninitialized. However, to save anybody
else from tripping over this, we now initialize the index variable
unconditionally.

Originally-by: Stephen Warren &lt;swarren@nvidia.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
<entry>
<title>pwm: Add device tree support</title>
<updated>2012-06-15T10:56:57Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2011-12-14T10:10:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7299ab70e68e20e70cb45fe4ab4b6029fe964acd'/>
<id>urn:sha1:7299ab70e68e20e70cb45fe4ab4b6029fe964acd</id>
<content type='text'>
This patch adds helpers to support device tree bindings for the generic
PWM API. Device tree binding documentation for PWM controllers is also
provided.

Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Reviewed-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
<entry>
<title>pwm: Add table-based lookup for static mappings</title>
<updated>2012-06-15T10:56:53Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2012-03-26T06:42:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8138d2ddbcca2a100482dac390133f83c5a60f94'/>
<id>urn:sha1:8138d2ddbcca2a100482dac390133f83c5a60f94</id>
<content type='text'>
In order to get rid of the global namespace for PWM devices, this commit
provides an alternative method, similar to that of the regulator or
clock frameworks, for registering a static mapping for PWM devices. This
works by providing a table with a provider/consumer map in the board
setup code.

With the new pwm_get() and pwm_put() functions available, usage of
pwm_request() and pwm_free() becomes deprecated.

Reviewed-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Reviewed-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
<entry>
<title>pwm: Add debugfs interface</title>
<updated>2012-06-15T10:56:53Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2012-03-26T07:31:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=62099abf67a20cfb98d4c031fb1925e10a78ee1b'/>
<id>urn:sha1:62099abf67a20cfb98d4c031fb1925e10a78ee1b</id>
<content type='text'>
This commit adds a debugfs interface that can be used to list the
current internal state of the PWM devices registered with the PWM
framework.

Reviewed-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Reviewed-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
<entry>
<title>pwm: Allow chips to support multiple PWMs</title>
<updated>2012-06-15T10:56:52Z</updated>
<author>
<name>Thierry Reding</name>
</author>
<published>2011-12-14T10:12:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f051c466cf690ac661d713d3ceb56b4efcecc853'/>
<id>urn:sha1:f051c466cf690ac661d713d3ceb56b4efcecc853</id>
<content type='text'>
Many PWM controllers provide access to more than a single PWM output and
may even share some resource among them. Allowing a PWM chip to provide
multiple PWM devices enables better sharing of those resources. As a
side-effect this change allows easy integration with the device tree
where a given PWM can be looked up based on the PWM chip's phandle and a
corresponding index.

This commit modifies the PWM core to support multiple PWMs per struct
pwm_chip. It achieves this in a similar way to how gpiolib works, by
allowing PWM ranges to be requested dynamically (pwm_chip.base == -1) or
starting at a given offset (pwm_chip.base &gt;= 0). A chip specifies how
many PWMs it controls using the npwm member. Each of the functions in
the pwm_ops structure gets an additional argument that specified the PWM
number (it can be converted to a per-chip index by subtracting the
chip's base).

The total maximum number of PWM devices is currently fixed to 1024 while
the data is actually stored in a radix tree, thus saving resources if
not all of them are used.

Reviewed-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Reviewed-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
[eric@eukrea.com: fix error handling in pwmchip_add]
Signed-off-by: Eric Bénard &lt;eric@eukrea.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
</content>
</entry>
</feed>
