<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/pwm, branch automarkup</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=automarkup</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=automarkup'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2019-03-04T11:52:49+00:00</updated>
<entry>
<title>pwm: atmel: Remove useless symbolic definitions</title>
<updated>2019-03-04T11:52:49+00:00</updated>
<author>
<name>Thierry Reding</name>
<email>thierry.reding@gmail.com</email>
</author>
<published>2019-03-04T11:10:29+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=d7d96312fe108d0df50898d212770b0a5b2d491e'/>
<id>urn:sha1:d7d96312fe108d0df50898d212770b0a5b2d491e</id>
<content type='text'>
The values that these symbols define are only assigned to the per-SoC
structure where the context is clear, so there's no need for the extra
symbolic name.

Acked-by: Claudiu Beznea &lt;claudiu.beznea@microchip.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: bcm-kona: Update macros to remove braces around numbers</title>
<updated>2019-03-04T11:52:49+00:00</updated>
<author>
<name>Sheetal Tigadoli</name>
<email>sheetal.tigadoli@broadcom.com</email>
</author>
<published>2019-01-16T19:41:22+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=6571d13e449d2d577ff88471b7b8a83dfe17c12c'/>
<id>urn:sha1:6571d13e449d2d577ff88471b7b8a83dfe17c12c</id>
<content type='text'>
Parentheses are not needed around integer literals in macros. Remove
them.

Signed-off-by: Sheetal Tigadoli &lt;sheetal.tigadoli@broadcom.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: imx27: Only enable the clocks once in .get_state()</title>
<updated>2019-03-04T11:52:48+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2019-01-10T19:33:53+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=519ef9b5f23c16dcb3a3a8a890baf7c084974730'/>
<id>urn:sha1:519ef9b5f23c16dcb3a3a8a890baf7c084974730</id>
<content type='text'>
Currently the function pwm_imx27_get_state() of enables the clocks once
unconditionally at the start, a second time if the PWM is enabled and
disables unconditionally at the end.

Simplify that to enable once at the start and disable conditionally at
the end.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: rcar: Improve calculation of divider</title>
<updated>2019-03-04T11:14:21+00:00</updated>
<author>
<name>Yoshihiro Shimoda</name>
<email>yoshihiro.shimoda.uh@renesas.com</email>
</author>
<published>2019-01-09T08:19:08+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=b4f9a7268dbe9d55a6bc8c3123cb518657743b76'/>
<id>urn:sha1:b4f9a7268dbe9d55a6bc8c3123cb518657743b76</id>
<content type='text'>
The rcar_pwm_get_clock_division() has a loop to calculate the divider,
but the value of div should be calculatable without a loop. So, this
patch improves it.

This algorithm is suggested by Uwe Kleine-König and Laurent Pinchart.

Signed-off-by: Yoshihiro Shimoda &lt;yoshihiro.shimoda.uh@renesas.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: rcar: Remove legacy APIs</title>
<updated>2019-03-04T11:14:07+00:00</updated>
<author>
<name>Yoshihiro Shimoda</name>
<email>yoshihiro.shimoda.uh@renesas.com</email>
</author>
<published>2019-01-09T08:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=8cc2b970397c59b25ffb22e0e4a86753fa162619'/>
<id>urn:sha1:8cc2b970397c59b25ffb22e0e4a86753fa162619</id>
<content type='text'>
This patch removes legacy APIs. Since rcar_pwm_{en,dis}able() functions
are reused on "atomic" API, this patch changes the arguments of these
functions. No change in behavior.

Signed-off-by: Yoshihiro Shimoda &lt;yoshihiro.shimoda.uh@renesas.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: rcar: Use "atomic" API on rcar_pwm_resume()</title>
<updated>2019-03-04T11:14:06+00:00</updated>
<author>
<name>Yoshihiro Shimoda</name>
<email>yoshihiro.shimoda.uh@renesas.com</email>
</author>
<published>2019-01-09T08:19:06+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=87f50ce981b8ac33734e3b5847f7f0bbfcad856b'/>
<id>urn:sha1:87f50ce981b8ac33734e3b5847f7f0bbfcad856b</id>
<content type='text'>
To remove legacy API related functions in the future, this patch
uses "atomic" related function instead. No change in behavior.

Signed-off-by: Yoshihiro Shimoda &lt;yoshihiro.shimoda.uh@renesas.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: rcar: Add support "atomic" API</title>
<updated>2019-03-04T11:14:05+00:00</updated>
<author>
<name>Yoshihiro Shimoda</name>
<email>yoshihiro.shimoda.uh@renesas.com</email>
</author>
<published>2019-01-09T08:19:05+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=7f68ce8287d3b25a70455aec18ff678a908d49ee'/>
<id>urn:sha1:7f68ce8287d3b25a70455aec18ff678a908d49ee</id>
<content type='text'>
This patch adds support for "atomic" API. This behavior differs with
legacy APIs a little.

 Legacy APIs:
  The PWMCNT register will be updated in rcar_pwm_config() even if
  the PWM state is disabled.

 Atomic API:
  The PWMCNT register will be updated in rcar_pwm_apply() only if
  the PWM state is enabled. Otherwize, if a PWM runs with 30% duty
  cycles and the pwm_apply_state() is called with state-&gt;enabled = 0,
  -&gt;duty_cycle = 60 and -&gt;period = 100, this is possible to output
  a 60% duty cycle.

Signed-off-by: Yoshihiro Shimoda &lt;yoshihiro.shimoda.uh@renesas.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: atmel: Add support for SAM9X60's PWM controller</title>
<updated>2019-03-04T10:57:44+00:00</updated>
<author>
<name>Claudiu Beznea</name>
<email>claudiu.beznea@microchip.com</email>
</author>
<published>2019-02-25T16:44:45+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=74d0c3b2050927f364e3320091f234c108bd845d'/>
<id>urn:sha1:74d0c3b2050927f364e3320091f234c108bd845d</id>
<content type='text'>
Add support for SAM9X60's PWM controller.

Signed-off-by: Claudiu Beznea &lt;claudiu.beznea@microchip.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: atmel: Rename objects of type atmel_pwm_data</title>
<updated>2019-03-04T10:56:48+00:00</updated>
<author>
<name>Claudiu Beznea</name>
<email>claudiu.beznea@microchip.com</email>
</author>
<published>2019-02-25T16:44:41+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=abcbe3733e50aacc16fadce11536ac3c70ba55d2'/>
<id>urn:sha1:abcbe3733e50aacc16fadce11536ac3c70ba55d2</id>
<content type='text'>
Rename objects of type atmel_pwm_data to contain chip name instead of
version number.

Signed-off-by: Claudiu Beznea &lt;claudiu.beznea@microchip.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: atmel: Add support for controllers with 32 bit counters</title>
<updated>2019-03-04T10:56:08+00:00</updated>
<author>
<name>Claudiu Beznea</name>
<email>claudiu.beznea@microchip.com</email>
</author>
<published>2019-02-25T16:44:37+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=0285827d546d9087aadce6d3728dd824e32e3777'/>
<id>urn:sha1:0285827d546d9087aadce6d3728dd824e32e3777</id>
<content type='text'>
SAM9X60's PWM controller uses 32 bits counters thus it could generate
signals with higher period and duty cycles than the old ones. Prepare
the current driver to be able to work with old controllers (that uses
16 bits counters) and with the new SAM9X60's controller, by providing
counters information based on compatible string.

Signed-off-by: Claudiu Beznea &lt;claudiu.beznea@microchip.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
</feed>
