From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762218AbcALNh2 (ORCPT ); Tue, 12 Jan 2016 08:37:28 -0500 Received: from down.free-electrons.com ([37.187.137.238]:38328 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751981AbcALNh0 (ORCPT ); Tue, 12 Jan 2016 08:37:26 -0500 From: Maxime Ripard To: Mark Brown , Chen-Yu Tsai , Liam Girdwood Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Maxime Ripard Subject: [PATCH v2 0/2] regulator: Add support for parallel regulators Date: Tue, 12 Jan 2016 14:37:20 +0100 Message-Id: <1452605842-9317-1-git-send-email-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.6.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On some boards, devices consuming a lot of power cannot use a single regulator, but few of them in parallel to spread the consumption. In such a case, we must ensure that all these regulators are kept in sync. Since this is something that is totally board specific, it should obviously not be handle by each and every customer drivers that might be driving a device wired this way on a particular board. Instead, we implemented a regulator driver that just aggregates several parent regulators and just forwards the regulators calls to them. Let me know what you think, Maxime Changes from v1: - Added documentation - Fixed an error in the is_enabled callback returned value - Unwind the enable and disable callbacks in case of a failure - Added a depency on CONFIG_OF - Added the missing module device table Maxime Ripard (2): regulator: Add coupled regulator ARM: sunxi: chip: Add Wifi chip .../bindings/regulator/coupled-voltage.txt | 18 ++ arch/arm/boot/dts/sun5i-r8-chip.dts | 44 ++- drivers/regulator/Kconfig | 8 + drivers/regulator/Makefile | 1 + drivers/regulator/coupled-voltage-regulator.c | 299 +++++++++++++++++++++ 5 files changed, 369 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/regulator/coupled-voltage.txt create mode 100644 drivers/regulator/coupled-voltage-regulator.c -- 2.6.4