From patchwork Thu Jul 3 13:14:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 366860 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 8ADE114013B for ; Thu, 3 Jul 2014 23:18:11 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756935AbaGCNRY (ORCPT ); Thu, 3 Jul 2014 09:17:24 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:35219 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757449AbaGCNRE (ORCPT ); Thu, 3 Jul 2014 09:17:04 -0400 Received: from localhost.localdomain (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 08FF94F883; Thu, 3 Jul 2014 16:17:03 +0300 (EEST) From: Stanimir Varbanov To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring , Kumar Gala , Grant Likely , Courtney Cavin , Lee Jones , Josh Cartwright , Stanimir Varbanov Subject: [RFC PATCH v2 5/5] dt: rtc: add binding document for qpnp rtc Date: Thu, 3 Jul 2014 16:14:03 +0300 Message-Id: <1404393243-7324-6-git-send-email-svarbanov@mm-sol.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1404393243-7324-1-git-send-email-svarbanov@mm-sol.com> References: <1404393243-7324-1-git-send-email-svarbanov@mm-sol.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree binding document which describes the qpnp-rtc. Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/rtc/qcom,rtc-qpnp.txt | 24 ++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/rtc/qcom,rtc-qpnp.txt 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..a64e194 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/qcom,rtc-qpnp.txt @@ -0,0 +1,24 @@ +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,qpnp-rtc". + - reg: Specify the peripheral id for device. Currently there + are two sub-peripherals - rtc base and alarm base. + - reg-names: Specify the reg property as strings. Should be "rtc" + and "alarm", defining the rtc and alarm bases. + - 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@6000 { + compatible = "qcom,qpnp-rtc"; + reg = <0x6000 0x6100>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + };