linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] imx6q: pwm: Activate stop_mode and configure pinmux
@ 2012-08-27 15:34 HACHIMI Samir
  2012-08-28  6:39 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: HACHIMI Samir @ 2012-08-27 15:34 UTC (permalink / raw)
  To: linux-arm-kernel

From: Samir Hachimi <shachimi@adeneo-embedded.com>

This patch series enables support for pwm driver on imx6q SoC. The first
patch of the series configure the pinctrl for pwm in device-tree. Actually
they are several pin who can be set to pwmO for each pwm, so I assume that
all of them must be enabled when configuring pin.
The second patch activate stop_enable mode and unset the enable bit during
configuration of pwm, and set the enable bit in pwm CR register during enable.

Changes since v1:
Remove default pwm pinmux configuration in DT as Shawn and Matt suggested.
Now, pwm used pwm's clocks properties to configure pwm's clock.
Need Shawn's patch '[PATCH v2 0/4] Move imx6q/28/23 clock lookup over to device tree' to work.
Use Beno??t's '[PATCH] pwm-imx: Fix config / enable / disable' (un)setting the cr enable bit to enable/disable pwm.
The second patch used driver_data instead of cpu_is_xxx macros, to check used architecture and enabled stop_enable mode.


Samir Hachimi (2):
  Add clock look-up for pwm.
  Enable Stop_enable mode during configuration of pwm.

 arch/arm/boot/dts/imx6q.dtsi |   68 ++++++++++++++++++++++++++++++++++++++++++
 drivers/pwm/pwm-imx.c        |   59 ++++++++++++++++++++++++++----------
 2 files changed, 111 insertions(+), 16 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-28  6:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27 15:34 [PATCH v2 0/2] imx6q: pwm: Activate stop_mode and configure pinmux HACHIMI Samir
2012-08-28  6:39 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).