Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1660245
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V1 2/2] pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module |
| Date | 2017-06-07 23:20 +0200 |
| Message-ID | <tPQwW-3ya-29@gated-at.bofh.it> (permalink) |
| References | <tN598-16T-31@gated-at.bofh.it> <tN5iO-1a0-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, May 31, 2017 at 02:14:38PM +0800, fenglinw@codeaurora.org wrote:
> From: Fenglin Wu <fenglinw@codeaurora.org>
>
> Add pwm_chip to support QTI LPG module and export LPG channels as
> PWM devices for consumer drivers' usage.
>
> Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
> ---
> .../devicetree/bindings/pwm/pwm-qti-lpg.txt | 39 ++
Please put binding in a separate patch.
> drivers/pwm/Kconfig | 10 +
> drivers/pwm/Makefile | 1 +
> drivers/pwm/pwm-qti-lpg.c | 578 +++++++++++++++++++++
> 4 files changed, 628 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pwm/pwm-qti-lpg.txt
> create mode 100644 drivers/pwm/pwm-qti-lpg.c
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-qti-lpg.txt b/Documentation/devicetree/bindings/pwm/pwm-qti-lpg.txt
> new file mode 100644
> index 0000000..df81f5f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/pwm-qti-lpg.txt
> @@ -0,0 +1,39 @@
> +Qualcomm Technologies, Inc. LPG driver specific bindings
> +
> +This binding document describes the properties of LPG (Light Pulse Generator)
> +device module in Qualcomm Technologies, Inc. PMIC chips.
> +
> +- compatible:
> + Usage: required
> + Value type: <string>
> + Definition: Must be "qcom,pwm-lpg".
Needs SoC specific compatible strings.
> +
> +- reg:
> + Usage: required
> + Value type: <prop-encoded-array>
> + Definition: Register base and length for LPG modules. The length
> + varies based on the number of channels available in
> + the PMIC chips.
> +
> +- reg-names:
> + Usage: required
> + Value type: <string>
> + Definition: The name of the register defined in the reg property.
> + It must be "lpg-base".
-names is pointless when there is only 1.
> +
> +- #pwm-cells:
> + Usage: required
> + Value type: <u32>
> + Definition: The number of cells in "pwms" property specified in
> + PWM user nodes. It should be 2. The first cell is
> + the PWM channel ID indexed from 0, and the second
> + cell is the PWM default period in nanoseconds.
> +
> +Example:
> +
> + pmi8998_lpg: lpg@b100 {
> + compatible = "qcom,pwm-lpg";
> + reg = <0xb100 0x600>;
> + reg-names = "lpg-base";
> + #pwm-cells = <2>;
> + };
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V1 0/2] *** Add support for QTI TRI_LED and LPG module *** fenglinw@codeaurora.org - 2017-05-31 08:20 +0200
[PATCH V1 2/2] pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module fenglinw@codeaurora.org - 2017-05-31 08:30 +0200
Re: [PATCH V1 2/2] pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module Rob Herring <robh@kernel.org> - 2017-06-07 23:20 +0200
csiph-web