From patchwork Tue Mar 12 17:08:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 15303 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3B06323E3E for ; Tue, 12 Mar 2013 17:10:03 +0000 (UTC) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by fiordland.canonical.com (Postfix) with ESMTP id E3B0EA18777 for ; Tue, 12 Mar 2013 17:10:02 +0000 (UTC) Received: by mail-ve0-f173.google.com with SMTP id oz10so63100veb.18 for ; Tue, 12 Mar 2013 10:10:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=U0J0C8qwbJ6dgja9GZhvflWACgI3KlSZorxW+Y2qK18=; b=G2+6emt2/LDD/ZqOxIwe+c1NfdxF611s7sctViTfMTGtxVCIrNEISbz6/wwIoTlUXa Fp8PWZTu/EHCVD9NVU0NQC53KL3JOqknliX6Omm76dNEXZomV73JVaUZRQjOeIDhailf RtPXHIw3KepaHfdHji0vKIyJsHY5ODufRgR8smfMMfbMaICT1/C+QR5YgMfjUI0HNitD kZtRlWdHFthlV+g5695s7oDUGN2Z7ccAXBM0rlfPs0OsTzZS6K/NISc5TZvV/1u9oFpA YNcU7GFDg/goiN7yUNu/blCzqVbXLoOnaP0+WMDkWPLKhKaG7iCGL16/zCF3ZSxEwVKt 55PA== X-Received: by 10.52.177.163 with SMTP id cr3mr5950421vdc.94.1363108202435; Tue, 12 Mar 2013 10:10:02 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp138444veb; Tue, 12 Mar 2013 10:10:02 -0700 (PDT) X-Received: by 10.42.204.79 with SMTP id fl15mr12946639icb.57.1363108201757; Tue, 12 Mar 2013 10:10:01 -0700 (PDT) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [2607:f8b0:4001:c03::22f]) by mx.google.com with ESMTPS id ls10si22992403igc.47.2013.03.12.10.10.01 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 10:10:01 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:4001:c03::22f is neither permitted nor denied by best guess record for domain of haojian.zhuang@linaro.org) client-ip=2607:f8b0:4001:c03::22f; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:4001:c03::22f is neither permitted nor denied by best guess record for domain of haojian.zhuang@linaro.org) smtp.mail=haojian.zhuang@linaro.org Received: by mail-ie0-f175.google.com with SMTP id c12so101608ieb.34 for ; Tue, 12 Mar 2013 10:10:01 -0700 (PDT) X-Received: by 10.50.13.228 with SMTP id k4mr12506170igc.30.1363108201453; Tue, 12 Mar 2013 10:10:01 -0700 (PDT) Received: from localhost.localdomain ([140.206.155.72]) by mx.google.com with ESMTPS id xc3sm20593825igb.10.2013.03.12.10.09.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 10:10:00 -0700 (PDT) From: Haojian Zhuang To: linux@arm.linux.org.uk, linus.walleij@linaro.org, arnd@arndb.de, olof@lixom.net, rob.herring@calxeda.com, linux-arm-kernel@lists.infradead.org, pawel.moll@arm.com, swarren@nvidia.com, john.stultz@linaro.org, tglx@linutronix.de, mturquette@linaro.org Cc: patches@linaro.org, Haojian Zhuang Subject: [PATCH v2 14/14] Document: add device tree binding file for sp804 Date: Wed, 13 Mar 2013 01:08:43 +0800 Message-Id: <1363108124-17484-15-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1363108124-17484-1-git-send-email-haojian.zhuang@linaro.org> References: <1363108124-17484-1-git-send-email-haojian.zhuang@linaro.org> X-Gm-Message-State: ALoCoQniUGzWA0xuaqfSsHUqO9UcqcCL19iCUZtu+XORZCAhdlQ+XQeXSPMbaE9IK16M9BwwzOPM Add binding document for sp804 dual timer. Signed-off-by: Haojian Zhuang --- .../devicetree/bindings/timer/arm,sp804.txt | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/arm,sp804.txt diff --git a/Documentation/devicetree/bindings/timer/arm,sp804.txt b/Documentation/devicetree/bindings/timer/arm,sp804.txt new file mode 100644 index 0000000..ec1ae45 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/arm,sp804.txt @@ -0,0 +1,27 @@ +ARM sp804 Dual Timers +--------------------------------------- + +Required properties: +- compatible: Should be "arm,sp804" & "arm,primecell" +- interrupts: Should contain the list of Dual Timer interrupts + interrupts = <0 0 4>, <0 1 4>; +- reg: Should contain location and length for dual timer register. +- clocks: clock driving the dual timer hardware + clocks = <&timclk0 &timclk1>; + +Optional properties: +- arm,sp804-clocksource: Should contain the register offset of TIMER1 or + TIMER2 in Dual Timer Controller. + arm,sp804-clocksource = <0x20>; + +Example: + + timer0: timer@fc800000 { + compatible = "arm,sp804", "arm,primecell"; + reg = <0xfc800000 0x1000>; + /* timer00 & timer01 */ + interrupts = <0 0 4>, <0 1 4>; + clocks = <&timclk0 &timclk1>; + clock-names = "apb_pclk"; + status = "disabled"; + };