From patchwork Wed Mar 5 09:59:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song <21cnbao@gmail.com> X-Patchwork-Id: 3772111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7990E9F370 for ; Wed, 5 Mar 2014 10:01:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 650BD20221 for ; Wed, 5 Mar 2014 10:01:02 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 63C5F20220 for ; Wed, 5 Mar 2014 10:01:01 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WL8cw-0003GG-UW; Wed, 05 Mar 2014 10:00:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WL8ck-0002K9-2b; Wed, 05 Mar 2014 10:00:26 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WL8cg-0002J5-Fh for linux-arm-kernel@lists.infradead.org; Wed, 05 Mar 2014 10:00:23 +0000 Received: by mail-pa0-f49.google.com with SMTP id lj1so883121pab.36 for ; Wed, 05 Mar 2014 02:00:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=W+WZpXJM+JNvRRvpkkX7YTJOT8PwXucACNzmR3StWko=; b=U8hzZrWbTpmKkjDpxFdfGr0/ztkvePvps93sJ4N8ks5PPLoywzu/B55MwNBYN8fZV3 KH0kESVTNGO9i9fo2DqwUTINsjjK1fEAAvGiPMGHZdq5WPeq5xRs7B2y5n2FLOTBrBXW zriZStsfx+M72bE0tTSRoudefn5x9lBVgFAIQTDPzkerbIepHi2HcDYhWvgHia+tn6o7 D50wXzsmKH+j2pzGugjQQzxq6aGlLSTY4RBFuuIYpItdyKT//44IzwYUtgzy0MnJwXns KgKnKh/Nx03DDSRa4v7EsJ4BoIFdzc8FvL2eBFHMtTAvuF99CSBtqMcApVPhivnEYswc Kmew== X-Received: by 10.68.201.97 with SMTP id jz1mr5945277pbc.26.1394013600884; Wed, 05 Mar 2014 02:00:00 -0800 (PST) Received: from localhost.localdomain ([117.136.8.59]) by mx.google.com with ESMTPSA id ce15sm12028487pac.0.2014.03.05.01.59.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 02:00:00 -0800 (PST) From: Barry Song <21cnbao@gmail.com> To: thierry.reding@gmail.com, linux-pwm@vger.kernel.org Subject: [PATCH v4 2/4] pwm: sirf: add dt-binding document Date: Wed, 5 Mar 2014 17:59:43 +0800 Message-Id: <1394013583-6352-1-git-send-email-21cnbao@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140305_050022_595166_1163E4DF X-CRM114-Status: GOOD ( 11.17 ) X-Spam-Score: -2.0 (--) Cc: devicetree@vger.kernel.org, workgroup.linux@csr.com, linux-arm-kernel@lists.infradead.org, Barry Song X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Barry Song this patch adds dt-binding document for pwm-sirf. here the controller clock can't generate PWM signals, so we need seperate clock as signal source. Signed-off-by: Barry Song --- Documentation/devicetree/bindings/pwm/pwm-sirf.txt | 23 ++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sirf.txt diff --git a/Documentation/devicetree/bindings/pwm/pwm-sirf.txt b/Documentation/devicetree/bindings/pwm/pwm-sirf.txt new file mode 100644 index 0000000..47851ea --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-sirf.txt @@ -0,0 +1,23 @@ +SiRF prima2 & atlas6 PWM drivers + +Required properties: +- compatible: "sirf,prima2-pwm" +- reg: physical base address and length of the controller's registers +- #pwm-cells: should be 2. The first cell specifies the per-chip index of the + PWM to use and the second cell is the period in nanoseconds. +- clocks: from common clock binding: the 1st clock is for PWM controller the + other clocks are the sources to generate PWM signals +- clock-names : The first one is the name of the clock for PWM, others are names + of clock sources to generate PWM signal, e.g.sigsrc0 ~sigsrc4. For prima2 and + atlas6, sigsrc0 is OSC with 26MHz, sigsrc3 is RTC with 32KHz, others are PLLs. + Generally, PWM module uses the OSC as clock source to generate PWM signals. + + +Example: +pwm: pwm@b0130000 { + compatible = "sirf,prima2-pwm"; + #pwm-cells = <2>; + reg = <0xb0130000 0x10000>; + clocks = <&clks 21>, <&clks 1>; + clock-names = "pwmc", "sigsrc0""; +};