Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755873Ab2BWMcK (ORCPT ); Thu, 23 Feb 2012 07:32:10 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:52193 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755604Ab2BWMcI (ORCPT ); Thu, 23 Feb 2012 07:32:08 -0500 X-AuditID: cbfee61b-b7c62ae000000989-1c-4f4631c43126 From: Thomas Abraham To: linux-kernel@vger.kernel.org Cc: k.lewandowsk@samsung.com, devicetree-discuss@lists.ozlabs.org, rob.herring@calxeda.com, grant.likely@secretlab.ca, kgene.kim@samsung.com, broonie@opensource.wolfsonmicro.com, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, dg77.kim@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 0/2] regulator: add irq domain and device tree support for MAX8997 Date: Thu, 23 Feb 2012 18:08:06 +0530 Message-id: <1330000688-11226-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2481 Lines: 52 Changes since v2: - Atleast one voltage level has to be specfied for Buck 1/2/5 even if GPIO DVS option is not used (suggested by MyungJoo Ham). - Reworked the irq_domain support based the v5 of irq_domain generalization patches. MAX8997 is a multi-function device which includes support for regulators, rtc, battery charger and other sub-blocks. This patchset adds device tree support for the pmic (regulators) sub-block. The first patch adds irq domain support for the interrupts supported by max8997 mainly for removing the need to pass a irq_base from the platform code. The irq_base could not anyway be passed in case of device tree based instantiation. The reverse mapping method used is linear since the sub-drivers of max8997 has access to the max8997 irq_domain from which the linux irq number can be obtained. The second patch adds device tree support for max8997. This patch modifies both mfd and regulator portions of the max8997 code. This patchset is based on the following tree. http://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git [for-next] with all patches merged from http://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git [for-next] http://git.secretlab.ca/git/linux-2.6.git [irqdomain/next] and depends on the following patchset. [PATCH v3 0/4] ARM: Exynos4: Add irq domain and device tree support for wakeup interrupts. This patchset has been tested on Origen board. Thomas Abraham (2): mfd: add irq domain support for max8997 interrupts regulator: add device tree support for max8997 .../devicetree/bindings/regulator/max8997-pmic.txt | 134 +++++++++++++++++++ arch/arm/mach-exynos/mach-nuri.c | 4 - arch/arm/mach-exynos/mach-origen.c | 1 - drivers/mfd/max8997-irq.c | 60 +++++---- drivers/mfd/max8997.c | 73 ++++++++++- drivers/regulator/max8997.c | 139 +++++++++++++++++++- include/linux/mfd/max8997-private.h | 4 +- include/linux/mfd/max8997.h | 2 +- 8 files changed, 382 insertions(+), 35 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/max8997-pmic.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/