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: 326668 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2903A2C020F for ; Wed, 5 Mar 2014 21:00:07 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752358AbaCEKAF (ORCPT ); Wed, 5 Mar 2014 05:00:05 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:35085 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbaCEKAB (ORCPT ); Wed, 5 Mar 2014 05:00:01 -0500 Received: by mail-pd0-f170.google.com with SMTP id v10so862021pde.1 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 Cc: linux-arm-kernel@lists.infradead.org, workgroup.linux@csr.com, devicetree@vger.kernel.org, Barry Song 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 Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org 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""; +};