devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] Initial support for ImgTec PWM DAC and PDM DAC
@ 2014-11-28 18:12 Naidu Tellapati
  2014-11-28 18:12 ` [PATCH v6 1/4] pwm: Imagination Technologies PWM DAC driver Naidu Tellapati
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Naidu Tellapati @ 2014-11-28 18:12 UTC (permalink / raw)
  To: thierry.reding, abrestic, gregkh, arnd, James.Hartley,
	Ezequiel.Garcia
  Cc: devicetree, linux-pwm, Arul.Ramasamy, Sai.Masarapu,
	Naidu Tellapati

The Pistachio SOC from Imagination Technologies includes – 4x PDM blocks
and 1x “basic PWM” block with four output channels. These share 4 MFIO pins,
each PWM channel being muxed with each PDM block output (0-3 muxed with 0-3)
using the CR_PERIP_PWM_PDM_CONTROL register in the peripheral wrapper
register bank (offset 0x140). The PDM and PWM outputs are used to control
targets such as LCD backlight.

The PWM driver uses Linux PWM framework. Since the PDM does not fit into PWM
framework we have implemented it as a MISC driver.

The series is based on v3.18-rc5.

Changes from v5:

 * Used syscon for accessing PWM & PDM control register.

Changes from v4:

 * Removed CR_prefix from the defined macros.

 * Folded same data type varibles in one line.

 * Removed cr-periph property from PWM DT binding document.

 * Removed regmap_update_bits from img_pwm_enable and img_pwm_disable functions.

 * Addressed few more comments given in v4.

Changes from v3:

 * Addressed couple of comments given in v3.

Changes from v2:

 * Added depends on MIPS || COMPILE_TEST.

 * Corrected the logic while calculating time base steps.

 * Addressed few other minor comments given in v2.

Changes from v1:

 * Used regmap_update_bits at some places in the driver.

 * Placed some #defines next to their register.

 * Added depends on HAS_IOMEM in Kconfig.

 * Removed unnecessary paragraph from file header.

 * Defined register masks in a readable way.

 * Renamed clk-names with clock-names.

 * Added system interface clock in DT binding document.

 * Addressed few other minor review comments given in v1.

Naidu Tellapati (4):
  pwm: Imagination Technologies PWM DAC driver
  DT: pwm: Add binding document for IMG PWM DAC
  pdm: Imagination Technologies PDM DAC driver
  DT: pdm: Add binding document for IMG PDM DAC

 Documentation/devicetree/bindings/misc/img-pdm.txt |   54 ++
 Documentation/devicetree/bindings/pwm/img-pwm.txt  |   24 +
 drivers/misc/Kconfig                               |   13 +
 drivers/misc/Makefile                              |    1 +
 drivers/misc/img-pdm.c                             |  672 ++++++++++++++++++++
 drivers/pwm/Kconfig                                |   13 +
 drivers/pwm/Makefile                               |    1 +
 drivers/pwm/pwm-img.c                              |  250 ++++++++
 include/linux/img_pdm.h                            |   35 +
 9 files changed, 1063 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/misc/img-pdm.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/img-pwm.txt
 create mode 100644 drivers/misc/img-pdm.c
 create mode 100644 drivers/pwm/pwm-img.c
 create mode 100644 include/linux/img_pdm.h


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

end of thread, other threads:[~2014-12-05 11:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-28 18:12 [PATCH v6 0/4] Initial support for ImgTec PWM DAC and PDM DAC Naidu Tellapati
2014-11-28 18:12 ` [PATCH v6 1/4] pwm: Imagination Technologies PWM DAC driver Naidu Tellapati
2014-11-28 18:12 ` [PATCH v6 2/4] DT: pwm: Add binding document for IMG PWM DAC Naidu Tellapati
2014-11-28 18:12 ` [PATCH v6 3/4] pdm: Imagination Technologies PDM DAC driver Naidu Tellapati
2014-11-28 18:12 ` [PATCH v6 4/4] DT: pdm: Add binding document for IMG PDM DAC Naidu Tellapati
2014-12-05 11:52 ` [PATCH v6 0/4] Initial support for ImgTec PWM DAC and " Ezequiel Garcia

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).