From patchwork Fri Jun 20 12:21:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 4388961 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 69E22BEEAA for ; Fri, 20 Jun 2014 12:22:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A2D7B203DF for ; Fri, 20 Jun 2014 12:22:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C78E720351 for ; Fri, 20 Jun 2014 12:22:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967235AbaFTMWn (ORCPT ); Fri, 20 Jun 2014 08:22:43 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:45453 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966074AbaFTMWm (ORCPT ); Fri, 20 Jun 2014 08:22:42 -0400 Received: from localhost.localdomain (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 70F73C7BD; Fri, 20 Jun 2014 15:22:41 +0300 (EEST) From: Stanimir Varbanov To: linux-arm-msm@vger.kernel.org Cc: "Ivan T. Ivanov" , Stanimir Varbanov Subject: [RFC PATCH 1/6] dt: qpnp: add binding description of Qualcomm QPNP PMICs Date: Fri, 20 Jun 2014 15:21:20 +0300 Message-Id: <1403266885-911-2-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 From: Ivan T. Ivanov Document the bindings used to describe the Qualcomm QPNP PMICs. Suggested-by: Josh Cartwright Signed-off-by: Ivan T. Ivanov Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/qpnp/qcom,qpnp-spmi.txt | 42 ++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/qpnp/qcom,qpnp-spmi.txt \ No newline at end of file diff --git a/Documentation/devicetree/bindings/qpnp/qcom,qpnp-spmi.txt b/Documentation/devicetree/bindings/qpnp/qcom,qpnp-spmi.txt new file mode 100644 index 0000000..f657587 --- /dev/null +++ b/Documentation/devicetree/bindings/qpnp/qcom,qpnp-spmi.txt @@ -0,0 +1,42 @@ +Qualcomm QPNP partitioned PMIC multi-function device bindings + +QPNP is effectively a partitioning scheme for dividing the SPMI extended +register space up into logical pieces, and set of fixed register +locations/definitions within these regions, with some of these regions +specifically used for interrupt handling. + +The QPNP PMICs are used with the Qualcomm Snapdragon series SoCs, and are +interfaced to the chip via the SPMI (System Power Management Interface) bus. +Support for multiple independent functions are implemented by splitting the +16-bit SPMI slave address space into 256 smaller fixed-size regions, 256 bytes +each. A function can consume one or more of these fixed-size register regions. + +Required properties: +- compatible: Should contain "qcom,qpnp-spmi" +- reg: Specifies the SPMI USID slave address for this device. + For more info see bindings/spmi/spmi.txt +- #address-cells: Defines address cells for peripheral nodes - should be 1 +- #size-cells: Defines size cells for peripheral nodes - should be 0 + +Required properties for peripheral devices: +- compatible: Should constain "qcom,qpnp-xxx" +- reg: One or more 8bits peripheral ID + +Each child node represents a function of the QPNP. Each child 'reg' entry +describes a QPNP peripheral ID (number) within the USID slave address where +the region starts. + +Example: + + pm8941@0 { + compatible = "qcom,qpnp-spmi"; + reg = <0x0 SPMI_USID>; + + #address-cells = <1>; + #size-cells = <0>; + + rtc@60 { + compatible = "qcom,qpnp-rtc"; + reg = <0x60>, <0x61>; + }; + };