<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/pwm, branch linux-4.16.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.16.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2018-04-24T07:43:05+00:00</updated>
<entry>
<title>pwm: mediatek: Improve precision in rate calculation</title>
<updated>2018-04-24T07:43:05+00:00</updated>
<author>
<name>Sean Wang</name>
<email>sean.wang@mediatek.com</email>
</author>
<published>2018-03-02T08:49:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c1d2f1eac9a935c21c38d1680ec4c22200cfcb78'/>
<id>urn:sha1:c1d2f1eac9a935c21c38d1680ec4c22200cfcb78</id>
<content type='text'>
commit 04c0a4e00dc11fedc0b0a8593adcf0f4310505d4 upstream.

Add a way that turning resolution from in nanosecond into in picosecond
to improve noticeably almost 4.5% precision.

It's necessary to hold the new resolution with type u64 and thus related
operations on u64 are applied instead in those rate calculations.

And the patch has a dependency on [1].

[1] http://lists.infradead.org/pipermail/linux-mediatek/2018-March/012225.html

Cc: stable@vger.kernel.org
Fixes: caf065f8fd58 ("pwm: Add MediaTek PWM support")
Signed-off-by: Sean Wang &lt;sean.wang@mediatek.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>pwm: mediatek: Fix up PWM4 and PWM5 malfunction on MT7623</title>
<updated>2018-04-24T07:43:05+00:00</updated>
<author>
<name>Sean Wang</name>
<email>sean.wang@mediatek.com</email>
</author>
<published>2018-03-01T08:19:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=95d476598b0828c44ced99d9c95c135092b9d612'/>
<id>urn:sha1:95d476598b0828c44ced99d9c95c135092b9d612</id>
<content type='text'>
commit 360cc036563db27881ce08049f69138438f2ddd0 upstream.

Since the offset for both registers, PWMDWIDTH and PWMTHRES, used to
control PWM4 or PWM5 are distinct from the other PWMs, whose wrong
programming on PWM hardware causes waveform cannot be output as expected.
Thus, the patch adds the extra condition for fixing up the weird case to
let PWM4 or PWM5 able to work on MT7623.

v1 -&gt; v2: use pwm45_fixup naming instead of pwm45_quirk
v2 -&gt; v3: add more tags for Reviewed-by, Fixes, and Cc stable

Cc: stable@vger.kernel.org
Fixes: caf065f8fd58 ("pwm: Add MediaTek PWM support")
Signed-off-by: Sean Wang &lt;sean.wang@mediatek.com&gt;
Reviewed-by: Matthias Brugger &lt;matthias.bgg@gmail.com&gt;
Cc: Zhi Mao &lt;zhi.mao@mediatek.com&gt;
Cc: John Crispin &lt;john@phrozen.org&gt;
Cc: Matthias Brugger &lt;matthias.bgg@gmail.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>pwm: rcar: Fix a condition to prevent mismatch value setting to duty</title>
<updated>2018-04-24T07:43:04+00:00</updated>
<author>
<name>Ryo Kodama</name>
<email>ryo.kodama.vz@renesas.com</email>
</author>
<published>2018-03-09T11:24:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=af3f8a7fc27a1883d7643701166ea8dd94832edf'/>
<id>urn:sha1:af3f8a7fc27a1883d7643701166ea8dd94832edf</id>
<content type='text'>
commit 6225f9c64b40bc8a22503e9cda70f55d7a9dd3c6 upstream.

This patch fixes an issue that is possible to set mismatch value to duty
for R-Car PWM if we input the following commands:

 # cd /sys/class/pwm/&lt;pwmchip&gt;/
 # echo 0 &gt; export
 # cd pwm0
 # echo 30 &gt; period
 # echo 30 &gt; duty_cycle
 # echo 0 &gt; duty_cycle
 # cat duty_cycle
 0
 # echo 1 &gt; enable
 --&gt; Then, the actual duty_cycle is 30, not 0.

So, this patch adds a condition into rcar_pwm_config() to fix this
issue.

Signed-off-by: Ryo Kodama &lt;ryo.kodama.vz@renesas.com&gt;
[shimoda: revise the commit log and add Fixes and Cc tags]
Fixes: ed6c1476bf7f ("pwm: Add support for R-Car PWM Timer")
Cc: Cc: &lt;stable@vger.kernel.org&gt; # v4.4+
Signed-off-by: Yoshihiro Shimoda &lt;yoshihiro.shimoda.uh@renesas.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>pwm: meson: Add clock source configuration for Meson-AXG</title>
<updated>2017-12-05T08:51:36+00:00</updated>
<author>
<name>Jian Hu</name>
<email>jian.hu@amlogic.com</email>
</author>
<published>2017-12-04T06:00:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=bccaa3f917c90917a758020dfbdd9027290a7c4e'/>
<id>urn:sha1:bccaa3f917c90917a758020dfbdd9027290a7c4e</id>
<content type='text'>
For PWM controller in the Meson-AXG SoC, the EE domain and AO domain
have different clock sources. This patch tries to describe them in the
DT compatible data.

Signed-off-by: Jian Hu &lt;jian.hu@amlogic.com&gt;
Signed-off-by: Yixun Lan &lt;yixun.lan@amlogic.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: stmpe: Fix wrong register offset for hwpwm=2 case</title>
<updated>2017-12-05T08:33:05+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2017-11-07T05:18:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8472b529e113e0863ea064fdee51bf73c3f86fd6'/>
<id>urn:sha1:8472b529e113e0863ea064fdee51bf73c3f86fd6</id>
<content type='text'>
Fix trivial copy/paste bug.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Fixes: ef1f09eca74a ("pwm: Add a driver for the STMPE PWM")
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: Set class for exported channels in sysfs</title>
<updated>2017-12-05T08:24:58+00:00</updated>
<author>
<name>Gottfried Haider</name>
<email>gottfried.haider@gmail.com</email>
</author>
<published>2017-09-26T11:59:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7e5d1fd75c3dde9fc10c4472b9368089d1b81d00'/>
<id>urn:sha1:7e5d1fd75c3dde9fc10c4472b9368089d1b81d00</id>
<content type='text'>
Notifications for devices without bus or class set get dropped by
dev_uevent_filter(). Adding the class to the exported child matches
what the GPIO subsystem is doing.

With this change exporting a channel triggers a udev event, which
gives userspace a chance to fixup permissions and makes it possible
for non-root users to make use of the PWM subsystem.

Signed-off-by: Gottfried Haider &lt;gottfried.haider@gmail.com&gt;
CC: Thierry Reding &lt;thierry.reding@gmail.com&gt;
CC: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
CC: linux-pwm@vger.kernel.org
CC: linux-arm-kernel@lists.infradead.org
CC: linux-rpi-kernel@lists.infradead.org
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'pwm/for-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm</title>
<updated>2017-11-23T07:09:18+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2017-11-23T07:09:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5a787756b809888e8925d722862167f1229b58f7'/>
<id>urn:sha1:5a787756b809888e8925d722862167f1229b58f7</id>
<content type='text'>
Pull pwm updates from Thierry Reding:
 "The changes for this release include power management improvements for
  the pwm-img driver, support for the backup mode on pwm-atmel-tcb as
  well as support for more hardware with the R-Car and Mediatek drivers.

  To round things off there's a bit of cleanup for sunxi and stm32-lp"

* tag 'pwm/for-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
  pwm: stm32-lp: Remove pwm_is_enabled() check before calling pwm_disable()
  pwm: mediatek: Add MT2712/MT7622 support
  pwm: sunxi: Use of_device_get_match_data()
  pwm: atmel-tcb: Support backup mode
  dt-bindings: pwm: Add R-Car D3 device tree bindings
  pwm: img: Add runtime PM
  pwm: img: Add suspend / resume handling
</content>
</entry>
<entry>
<title>pwm: stm32-lp: Remove pwm_is_enabled() check before calling pwm_disable()</title>
<updated>2017-11-15T10:02:06+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2017-11-07T03:30:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f83e2ae2606b3754a5b9dfe9dd792c453698df6c'/>
<id>urn:sha1:f83e2ae2606b3754a5b9dfe9dd792c453698df6c</id>
<content type='text'>
The same checking is done by the implementation of pwm_disable().

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Acked-by: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: mediatek: Add MT2712/MT7622 support</title>
<updated>2017-11-15T09:57:53+00:00</updated>
<author>
<name>Zhi Mao</name>
<email>zhi.mao@mediatek.com</email>
</author>
<published>2017-10-25T10:11:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=424268c7494c2ae24c95565b9047bbf30309e88a'/>
<id>urn:sha1:424268c7494c2ae24c95565b9047bbf30309e88a</id>
<content type='text'>
Add support for MT2712 and MT7622. Due to register offset address of
pwm7 for MT2712 is not fixed 0x40, add mtk_pwm_reg_offset array for PWM
register offset.

Reviewed-by: Claudiu Beznea &lt;claudiu.beznea@microchip.com&gt;
Reviewed-by: Matthias Brugger &lt;matthias.bgg@gmail.com&gt;
Signed-off-by: Zhi Mao &lt;zhi.mao@mediatek.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
<entry>
<title>pwm: sunxi: Use of_device_get_match_data()</title>
<updated>2017-11-15T09:56:55+00:00</updated>
<author>
<name>Corentin Labbe</name>
<email>clabbe.montjoie@gmail.com</email>
</author>
<published>2017-10-21T17:38:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=df4f6e8c9f089d8c8406f87df819b4d91277979c'/>
<id>urn:sha1:df4f6e8c9f089d8c8406f87df819b4d91277979c</id>
<content type='text'>
The usage of of_device_get_match_data reduce the code size a bit.
Furthermore, it prevents an improbable dereference when
of_match_device() returns NULL.

Signed-off-by: Corentin Labbe &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Thierry Reding &lt;thierry.reding@gmail.com&gt;
</content>
</entry>
</feed>
