From: Stanimir Varbanov Subject: [RFC PATCH 0/6] Support for QPNP PMIC's Date: Fri, 20 Jun 2014 15:21:19 +0300 Message-ID: <1403266885-911-1-git-send-email-svarbanov@mm-sol.com> Return-path: Received: from ns.mm-sol.com ([37.157.136.199]:45414 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966074AbaFTMWO (ORCPT ); Fri, 20 Jun 2014 08:22:14 -0400 Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: linux-arm-msm@vger.kernel.org Cc: Stanimir Varbanov Hello to all, The goal of this WIP set is to provide support for sub-functional hw blocks inside Qualcomm QPNP PMIC chips by creating a new qpnp bus (device-driver modeled). On SPMI interface we attach a so called Slaves. For example one PMIC chip like pm8941 has two slave id's. On every slaveid the PMIC chip has various peripherials. Every peripheral driver should expose qpnp_driver structure and implement the .probe and .remove callbacks. Every peripheral driver will reside on the proper place in /drivers directory. The fisrt patch describes the devicetree binding of the slave devices attached to the SPMI interface. The second patch adds implemetation of the qpnp-bus and a layer connection with the SPMI interface. The third patch adds spmi arbiter and underlying slaveid devicetree nodes for msm8974 SoC. The other patches are example of rtc-qpnp driver and binding documentation. Since this set is a WIP, it will be used as a starting point for future duscussions about implementing QPNP PMIC sub-function hw blocks. Regards, Stan Ivan T. Ivanov (2): dt: qpnp: add binding description of Qualcomm QPNP PMICs dt: qcom: msm8974: add qpnp-spmi device nodes Stanimir Varbanov (4): qpnp: add support for Qualcomm QPNP PMICs rtc: add qpnp rtc driver dt: msm8974: add qpnp rtc device node dt: rtc: add binding document for rtc-qpnp .../devicetree/bindings/qpnp/qcom,qpnp-spmi.txt | 42 ++ .../devicetree/bindings/rtc/qcom,rtc-qpnp.txt | 21 + arch/arm/boot/dts/qcom-msm8974.dtsi | 52 ++ drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/qpnp/Kconfig | 12 + drivers/qpnp/Makefile | 1 + drivers/qpnp/qpnp-bus.c | 475 +++++++++++++++++++ drivers/qpnp/qpnp-spmi.c | 63 +++ drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-qpnp.c | 489 ++++++++++++++++++++ include/linux/qpnp.h | 83 ++++ 13 files changed, 1250 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/qpnp/qcom,qpnp-spmi.txt create mode 100644 Documentation/devicetree/bindings/rtc/qcom,rtc-qpnp.txt create mode 100644 drivers/qpnp/Kconfig create mode 100644 drivers/qpnp/Makefile create mode 100644 drivers/qpnp/qpnp-bus.c create mode 100644 drivers/qpnp/qpnp-spmi.c create mode 100644 drivers/rtc/rtc-qpnp.c create mode 100644 include/linux/qpnp.h