From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbdBFV1H (ORCPT ); Mon, 6 Feb 2017 16:27:07 -0500 Received: from mail.kernel.org ([198.145.29.136]:42300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752088AbdBFV1F (ORCPT ); Mon, 6 Feb 2017 16:27:05 -0500 MIME-Version: 1.0 In-Reply-To: <20170202234357.2405-1-tony@atomide.com> References: <20170202234357.2405-1-tony@atomide.com> From: Rob Herring Date: Mon, 6 Feb 2017 15:26:40 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv2] regulator: cpcap: Add basic regulator support To: Tony Lindgren Cc: Liam Girdwood , Mark Brown , "linux-kernel@vger.kernel.org" , linux-omap , "devicetree@vger.kernel.org" , Marcel Partap , Michael Scott Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 2, 2017 at 5:43 PM, Tony Lindgren wrote: > Many Motorola phones like droid 4 are using a custom PMIC called CPCAP > or 6556002. This PMIC is used with several SoCs, I've noticed at least > omap3, omap4 and Tegra2 based Motorola phones and tablets using it. > > Cc: devicetree@vger.kernel.org > Cc: Marcel Partap > Cc: Michael Scott > Cc: Rob Herring > Signed-off-by: Tony Lindgren > --- > > With the cpcap core MFD driver now in Linux next as commit > 3d66c8abc13e ("mfd: cpcap: Add minimal support"), here's a related > regulator driver. This is needed to support more devices on droid 4, > such as the LCD and touchscreen. > > Changes since v1: > > - Use standard regulator sel_regmap functions and drop the pointless > custom implementations as commented by Mark Brown > > - Fix unit-address with no reg property as commented by Rob Herring > > --- > .../bindings/regulator/cpcap-regulator.txt | 34 ++ Acked-by: Rob Herring > drivers/regulator/Kconfig | 7 + > drivers/regulator/Makefile | 1 + > drivers/regulator/cpcap-regulator.c | 464 +++++++++++++++++++++ > 4 files changed, 506 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/cpcap-regulator.txt > create mode 100644 drivers/regulator/cpcap-regulator.c