From patchwork Wed Jun 18 14:52:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32139 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0E55021133 for ; Wed, 18 Jun 2014 14:53:50 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id tr6sf6703846ieb.11 for ; Wed, 18 Jun 2014 07:53:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ULmJW7oHeKwdpSEC07Dy5XVmPXJWJgQpaOJ0mj/ONYQ=; b=E16WT8bAhXPaMT+wUZZHT/cw80H4eBNviAcr4SvqSzJ3vkg7fW40ABqMit2zeh6/Qe V6XXN3IZuBWMCrNIk/Rww8YPeQkv8KR+27OLDhN1zHA9S0SxizcbqnwsyP4Gz+Ure6gZ veE2zpG++Z+r3jELkxCjHXK5a/1stAj4hM/FItBUztUL0cjm1IysXBZAfIuWOuNRU+lh RnqSVf+wnVrcZNJ9rPdGNg89zMaW4Gse44LQASplBPiRe+picEbV8lfg9RHWBAB3SfTk AkpMS+rOJHMG6dDgBrBKZFvYpUTX1q2ReK3lOIRUj/kU94vRD6KlgIEepxliALB8aIZU Q5UQ== X-Gm-Message-State: ALoCoQltTJo2w8UFI3vx613NuA7Wzo1o201oed2yWVHs9zN2iXPFd/FJioVMxm3c744/anqj+TBY X-Received: by 10.42.49.138 with SMTP id w10mr845071icf.13.1403103229306; Wed, 18 Jun 2014 07:53:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.7 with SMTP id 7ls140292qgo.60.gmail; Wed, 18 Jun 2014 07:53:49 -0700 (PDT) X-Received: by 10.52.171.68 with SMTP id as4mr216373vdc.91.1403103229209; Wed, 18 Jun 2014 07:53:49 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id a11si987939vcf.3.2014.06.18.07.53.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 07:53:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db11so917425veb.26 for ; Wed, 18 Jun 2014 07:53:49 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr1760651vcg.16.1403103229128; Wed, 18 Jun 2014 07:53:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp290968vcb; Wed, 18 Jun 2014 07:53:48 -0700 (PDT) X-Received: by 10.68.240.5 with SMTP id vw5mr3036175pbc.113.1403103228313; Wed, 18 Jun 2014 07:53:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gz4si2491214pac.61.2014.06.18.07.53.47; Wed, 18 Jun 2014 07:53:47 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751715AbaFROx1 (ORCPT + 22 others); Wed, 18 Jun 2014 10:53:27 -0400 Received: from mail-ig0-f178.google.com ([209.85.213.178]:36118 "EHLO mail-ig0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751376AbaFROxY (ORCPT ); Wed, 18 Jun 2014 10:53:24 -0400 Received: by mail-ig0-f178.google.com with SMTP id hn18so875754igb.5 for ; Wed, 18 Jun 2014 07:53:24 -0700 (PDT) X-Received: by 10.50.111.161 with SMTP id ij1mr5384332igb.12.1403103204048; Wed, 18 Jun 2014 07:53:24 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id t16sm38979351igr.14.2014.06.18.07.53.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 07:53:23 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, thierry.reding@gmail.com, linux-pwm@vger.kernel.org, maxime.coquelin@st.com, patrice.chotard@st.com, srinivas.kandagatla@gmail.com, devicetree@vger.kernel.org, ajitpal.singh@st.com Subject: [PATCH 7/7] pwm: st: Supply Device Tree binding documentation for ST's PWM IP Date: Wed, 18 Jun 2014 15:52:52 +0100 Message-Id: <1403103172-19856-7-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> References: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/pwm/pwm-st.txt | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-st.txt diff --git a/Documentation/devicetree/bindings/pwm/pwm-st.txt b/Documentation/devicetree/bindings/pwm/pwm-st.txt new file mode 100644 index 0000000..ea88c5c --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-st.txt @@ -0,0 +1,41 @@ +STMicroelectronics PWM driver bindings +-------------------------------------- + +Required parameters: +- compatible : "st,pwm" +- #pwm-cells : Number of cells used to specify a PWM. First cell + specifies the per-chip index of the PWM to use and the + second cell is the period in nanoseconds - fixed to 2 + for STiH41x. +- reg : Physical base address and length of the controller's + registers. +- pinctrl-names: Set to "default". +- pinctrl-0: List of phandles pointing to pin configuration nodes + for PWM module. + For Pinctrl properties, please refer to [1]. +- clock-names: Set to "pwm". +- clocks: phandle of the clock used by the PWM module. + For Clk properties, please refer to [2]. + +Optional properties: +- st,pwm-num-chan: Number of available channels. If not passed, the driver + will consider single channel by default. + +[1] Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt +[2] Documentation/devicetree/bindings/clock/clock-bindings.txt + +Example: + +pwm1: pwm@fe510000 { + compatible = "st,pwm"; + reg = <0xfe510000 0x68>; + #pwm-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm1_chan0_default + &pinctrl_pwm1_chan1_default + &pinctrl_pwm1_chan2_default + &pinctrl_pwm1_chan3_default>; + clocks = <&CLK_SYSIN>; + clock-names = "pwm"; + st,pwm-num-chan = <4>; +};