From patchwork Fri Jun 20 12:21:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 4389091 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E3B0EBEEAA for ; Fri, 20 Jun 2014 12:25:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7239320351 for ; Fri, 20 Jun 2014 12:25:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51056203DA for ; Fri, 20 Jun 2014 12:25:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967102AbaFTMZW (ORCPT ); Fri, 20 Jun 2014 08:25:22 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:45675 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966074AbaFTMZW (ORCPT ); Fri, 20 Jun 2014 08:25:22 -0400 Received: from localhost.localdomain (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 460F5C7BD; Fri, 20 Jun 2014 15:25:21 +0300 (EEST) From: Stanimir Varbanov To: linux-arm-msm@vger.kernel.org Cc: Stanimir Varbanov Subject: [RFC PATCH 6/6] dt: rtc: add binding document for rtc-qpnp Date: Fri, 20 Jun 2014 15:21:25 +0300 Message-Id: <1403266885-911-7-git-send-email-svarbanov@mm-sol.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1403266885-911-1-git-send-email-svarbanov@mm-sol.com> References: <1403266885-911-1-git-send-email-svarbanov@mm-sol.com> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Add devicetree binding document which describes the rtc-qpnp. Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/rtc/qcom,rtc-qpnp.txt | 21 ++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/rtc/qcom,rtc-qpnp.txt \ No newline at end of file diff --git a/Documentation/devicetree/bindings/rtc/qcom,rtc-qpnp.txt b/Documentation/devicetree/bindings/rtc/qcom,rtc-qpnp.txt new file mode 100644 index 0000000..609603f --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/qcom,rtc-qpnp.txt @@ -0,0 +1,21 @@ +Qualcomm RTC QPNP + +The RTC device supports 32bit RTC module housed inside QPNP PMIC's. +The driver utilizes SPMI interface to communicate with the RTC module. +RTC device is divided into two sub-peripherals one which controls +basic RTC and other for controlling alarm. + +Required properties : + - compatible: Should be "qcom,rtc-qpnp". + - reg: Specify the peripheral id for device. Currently there + are two sub-peripherals - rtc base and alarm base. + - interrupts: Specifies alarm interrupt, only for alarm sub-peripheral. + For more info about interrupt cells see + Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt + +Example: + rtc@60 { + compatible = "qcom,rtc-qpnp"; + reg = <0x60>, <0x61>; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + };