All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V1 0/2] *** Add support for QTI TRI_LED and LPG module ***
@ 2017-05-31  6:14 fenglinw
  2017-05-31  6:14 ` [PATCH V1 1/2] leds: leds-qti-rgb: Add LED driver for QTI TRI_LED module fenglinw
  2017-05-31  6:14 ` [PATCH V1 2/2] pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module fenglinw
  0 siblings, 2 replies; 15+ messages in thread
From: fenglinw @ 2017-05-31  6:14 UTC (permalink / raw)
  To: linux-arm-msm, linux-kernel; +Cc: subbaram, aghayal, wruan, kgunda, Fenglin Wu

From: Fenglin Wu <fenglinw@codeaurora.org>

QTI TRI_LED module and LPG modules are existing in some Qualcomm PMICs
like PMI8998, PM660, etc. TRI_LED module has 3 LED drivers and each is
controlled by a PWM channel used for LED dimming or blinking. LPG (Light
Pulse Generator) module can be configured to operate in PWM mode to
output PWM signal with a fixed amplitude or in LUT (Look Up Table) mode
to output PWM signal with a modulated amplitude. Normally, each LED driver
in TRI_LED module is controlled by the output of a LPG module.

This patchset adds the support of registering TRI_LED as LED devices and
adding LPGs as PWM devices, but only the LPG PWM mode is supported. LUT mode
is not included because current PWM driver framework doesn't support hardware
autonomously modulating amplitude with vary duties. This is going to be
supported in next patchset with some PWM framework change.

Fenglin Wu (2):
  leds: leds-qti-rgb: Add LED driver for QTI TRI_LED module
  pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module

 .../devicetree/bindings/leds/leds-qti-rgb.txt      |  66 +++
 .../devicetree/bindings/pwm/pwm-qti-lpg.txt        |  39 ++
 drivers/leds/Kconfig                               |   8 +
 drivers/leds/Makefile                              |   1 +
 drivers/leds/leds-qti-rgb.c                        | 634 +++++++++++++++++++++
 drivers/pwm/Kconfig                                |  10 +
 drivers/pwm/Makefile                               |   1 +
 drivers/pwm/pwm-qti-lpg.c                          | 578 +++++++++++++++++++
 8 files changed, 1337 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/leds-qti-rgb.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/pwm-qti-lpg.txt
 create mode 100644 drivers/leds/leds-qti-rgb.c
 create mode 100644 drivers/pwm/pwm-qti-lpg.c

-- 
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.

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

end of thread, other threads:[~2017-06-07 21:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31  6:14 [PATCH V1 0/2] *** Add support for QTI TRI_LED and LPG module *** fenglinw
2017-05-31  6:14 ` [PATCH V1 1/2] leds: leds-qti-rgb: Add LED driver for QTI TRI_LED module fenglinw
     [not found]   ` <20170531061541.10808-2-fenglinw-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2017-05-31  7:55     ` Pavel Machek
2017-05-31  7:55       ` Pavel Machek
2017-05-31  8:23       ` Wu Fenglin
2017-05-31  8:23         ` Wu Fenglin
2017-05-31 16:55         ` Pavel Machek
2017-06-01  0:30           ` Wu Fenglin
2017-06-01  0:30             ` Wu Fenglin
2017-06-01 19:31             ` Jacek Anaszewski
2017-06-01 19:31               ` Jacek Anaszewski
2017-05-31  6:14 ` [PATCH V1 2/2] pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module fenglinw
2017-06-03 23:20   ` kbuild test robot
2017-06-03 23:20     ` kbuild test robot
2017-06-07 21:19   ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.