From patchwork Wed Jun 18 15:29:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32146 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C0708206A0 for ; Wed, 18 Jun 2014 15:29:44 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id r10sf2985916pdi.6 for ; Wed, 18 Jun 2014 08:29:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :references:mime-version:in-reply-to:user-agent:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe :content-type:content-disposition; bh=hB1LzBXY/WDOlWEo9mxo853voCcxtB27PRTY/AF59+4=; b=KhByUYd+ciZYumg7iuXjZehugzS0L9wMhcLf5rdi45QaBnDUddaMbNn/0c3p6AWQ0X cCc9p7aQVE4rN3zOJgBvfjnyP491T35X/zqsYHloN1FN3kBeZ5hcdGQyUyq8Di/I7x3A hfGsrpnTGG4+rECMsfKqHmmUmtZTfA886QUzJnV+A/1gCY5T/boetjBqgNj4jteVO+/L H/aauFkWsTtW5iFC9mrzhPL9f3BcopPyciGiMMB222TBiFhgVttRRfu9ZlzVqbkhrchi Gl5KcFlkC1tH154kKtuVNvxhQEZVwMhmtO77Df1ukuY5/ZhGTS7SvjjxX0CxSBgdmDzB QxgQ== X-Gm-Message-State: ALoCoQmhdWV7CXZSbvrRe/0PqJ/TUpYqIDCoJ60JRuZsgcxmZbMczZl4fGgyNEoRtrOZqOVHWMkq X-Received: by 10.66.120.143 with SMTP id lc15mr1097405pab.28.1403105384105; Wed, 18 Jun 2014 08:29:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.203 with SMTP id e69ls161341qgf.29.gmail; Wed, 18 Jun 2014 08:29:43 -0700 (PDT) X-Received: by 10.221.7.71 with SMTP id on7mr1938281vcb.18.1403105383930; Wed, 18 Jun 2014 08:29:43 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id zu9si1024649vdc.75.2014.06.18.08.29.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 08:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so948671vcb.21 for ; Wed, 18 Jun 2014 08:29:43 -0700 (PDT) X-Received: by 10.52.25.130 with SMTP id c2mr14461705vdg.27.1403105383822; Wed, 18 Jun 2014 08:29:43 -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 vs6csp293539vcb; Wed, 18 Jun 2014 08:29:43 -0700 (PDT) X-Received: by 10.68.180.65 with SMTP id dm1mr3387643pbc.142.1403105383063; Wed, 18 Jun 2014 08:29:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ev3si2537656pbb.114.2014.06.18.08.29.42; Wed, 18 Jun 2014 08:29:42 -0700 (PDT) Received-SPF: none (google.com: devicetree-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 S1752098AbaFRP3l (ORCPT + 8 others); Wed, 18 Jun 2014 11:29:41 -0400 Received: from mail-ig0-f178.google.com ([209.85.213.178]:61725 "EHLO mail-ig0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752043AbaFRP3l (ORCPT ); Wed, 18 Jun 2014 11:29:41 -0400 Received: by mail-ig0-f178.google.com with SMTP id hn18so914739igb.17 for ; Wed, 18 Jun 2014 08:29:40 -0700 (PDT) X-Received: by 10.50.20.33 with SMTP id k1mr6092153ige.26.1403105380524; Wed, 18 Jun 2014 08:29:40 -0700 (PDT) Received: from lee--X1 (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id l9sm7579495igx.7.2014.06.18.08.29.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Jun 2014 08:29:40 -0700 (PDT) Date: Wed, 18 Jun 2014 16:29:32 +0100 From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: 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 v2 7/7] pwm: st: Supply Device Tree binding documentation for ST's PWM IP Message-ID: <20140618152932.GG15956@lee--X1> References: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> <1403103172-19856-7-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 In-Reply-To: <1403103172-19856-7-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.176 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: , Content-Disposition: inline pwm: st: Supply Device Tree binding documentation for ST's PWM IP Signed-off-by: Lee Jones --- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; +};