Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1660245
| Path | csiph.com!news.mixmin.net!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| 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 | Wed, 07 Jun 2017 23:20:02 +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> |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=myve00jF114HHjKN4eBhexq+OdIvInNPT3aCqE6XIF0=; b=XD0KWq6wj1dST/t1t96Rgetl+sgcQe/wRMOtDJDMlZOgu+h5AeNfYVQrxtCuf5UkJ8 LDbF5f7YORbF1pcCQQjMgiMEeAE/9sU87H2AHcT9yUshfAqHB0hvcfIZGVzK/XT9jp3X OOPzhYOHqedMaxG4koX/UdLpN30WjDcu/0RGnlLgdxIc+XQlNaGeh7HIIqazc4reubxw PaN/0SfdnwIYdKqUDObcfq5Dc14ugsDTURMg4Ber59SSRil5NNq3xMbwYt5b1+l4uRrY mkf24niMm24XZdjUggUS+Ebf5PjjVHnIcADN/Bp8Dfnai1JNYKySWpFnW+t9QWyeuesm xP4Q== |
| X-Gm-Message-State | AODbwcCz/oqf3MPKVChXCr3DVSxHPP2GcJzv5ldANEqkYjwtJP1ZZ142 Z9NHnzkLRDKMOg== |
| X-Received | by 10.157.36.132 with SMTP id z4mr18758392ota.158.1496870384184; Wed, 07 Jun 2017 14:19:44 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | NeoMutt/20170113 (1.7.2) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 70 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Thierry Reding <thierry.reding@gmail.com>, Mark Rutland <mark.rutland@arm.com>, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, subbaram@quicinc.com, aghayal@qti.qualcomm.com, wruan@quicinc.com, kgunda@qti.qualcomm.com |
| X-Original-Date | Wed, 7 Jun 2017 16:19:42 -0500 |
| X-Original-Message-ID | <20170607211942.o3lddk7waowobpgt@rob-hp-laptop> |
| X-Original-References | <20170531061541.10808-1-fenglinw@codeaurora.org> <20170531061541.10808-3-fenglinw@codeaurora.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1660245 |
Show key headers only | View raw
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