From patchwork Mon Jul 14 14:33:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 33601 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B71AB20CAD for ; Mon, 14 Jul 2014 14:35:31 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf11741560ykp.5 for ; Mon, 14 Jul 2014 07:35:31 -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=SYNvFDGMwfneCNy5fEiRMBcnQeRvnOqtqKWv5zl9mW0=; b=Fo3iUFVaINUrP60RETJCeSxsipz2zR2UGXoyWZRGfq4pIGhb8yg8ZBOckLCbf3rce1 Py2vKtjLqmFAJ6C8l80ks7DIMSbotPRoSgJ4E14EdA7hwcKmQ/BOWkLQyUGWCZdpFvBE vPDMYDY+UKbAmcZJbWCHSAxbquLyFOV/b0mWgvPdEBso9Hsh9IpIsgeA087bzOYy+upS RMH1NrPMf1jaQxa+EPh/gQmSFSoyBaF6GkPGeFHXuGDfKSvVrt6PD8BQ6vdyuFZljeOF ISBMmp/+b3+KtN8/d1QFOVxiCQpfe3IOI1E6xE6dsW6GPnW7HxVdJdnYPPm+BnggFJdo eXWA== X-Gm-Message-State: ALoCoQlK/v2R5a7QB/5OI6V0qiDa9CutakLwfWdGOwn5Ya5mH0/vhhBPxEVoMbVYnuWyif7Ooy2j X-Received: by 10.236.175.42 with SMTP id y30mr6826174yhl.42.1405348531468; Mon, 14 Jul 2014 07:35:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.77 with SMTP id r71ls1075671qga.71.gmail; Mon, 14 Jul 2014 07:35:31 -0700 (PDT) X-Received: by 10.52.120.38 with SMTP id kz6mr355420vdb.86.1405348531396; Mon, 14 Jul 2014 07:35:31 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id hf3si5398363veb.101.2014.07.14.07.35.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jul 2014 07:35:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id im17so7211434vcb.25 for ; Mon, 14 Jul 2014 07:35:31 -0700 (PDT) X-Received: by 10.220.69.68 with SMTP id y4mr16435525vci.21.1405348531326; Mon, 14 Jul 2014 07:35:31 -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.37.5 with SMTP id tc5csp139657vcb; Mon, 14 Jul 2014 07:35:30 -0700 (PDT) X-Received: by 10.66.161.69 with SMTP id xq5mr16887690pab.62.1405348529914; Mon, 14 Jul 2014 07:35:29 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kz4si9321194pbc.58.2014.07.14.07.35.29; Mon, 14 Jul 2014 07:35:29 -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 S1755986AbaGNOfT (ORCPT + 28 others); Mon, 14 Jul 2014 10:35:19 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:52740 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755831AbaGNOeC (ORCPT ); Mon, 14 Jul 2014 10:34:02 -0400 Received: by mail-ie0-f180.google.com with SMTP id at20so3239173iec.25 for ; Mon, 14 Jul 2014 07:34:01 -0700 (PDT) X-Received: by 10.50.25.71 with SMTP id a7mr25782579igg.17.1405348441758; Mon, 14 Jul 2014 07:34:01 -0700 (PDT) Received: from localhost.localdomain (host109-148-237-85.range109-148.btcentralplus.com. [109.148.237.85]) by mx.google.com with ESMTPSA id q11sm25317390igr.7.2014.07.14.07.33.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jul 2014 07:34:01 -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, devicetree@vger.kernel.org, ajitpal.singh@st.com Subject: [PATCH v2 07/11] pwm: sti: Supply Device Tree binding documentation for ST's PWM IP Date: Mon, 14 Jul 2014 15:33:28 +0100 Message-Id: <1405348412-7352-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1405348412-7352-1-git-send-email-lee.jones@linaro.org> References: <1405348412-7352-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.220.180 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: Ajit Pal Singh 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..84d2fb8 --- /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>; +};