From patchwork Thu Sep 12 10:57:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2877531 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1956E9F478 for ; Thu, 12 Sep 2013 10:57:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B1CD202DD for ; Thu, 12 Sep 2013 10:57:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4594202AB for ; Thu, 12 Sep 2013 10:57:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752125Ab3ILK51 (ORCPT ); Thu, 12 Sep 2013 06:57:27 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:57678 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751514Ab3ILK50 (ORCPT ); Thu, 12 Sep 2013 06:57:26 -0400 Received: from axis700.grange (dslb-088-076-068-089.pools.arcor-ip.net [88.76.68.89]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0McnL7-1VbT0q0bRZ-00HyF0; Thu, 12 Sep 2013 12:57:21 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 97FE040BB4; Thu, 12 Sep 2013 12:57:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 8D20540BB3; Thu, 12 Sep 2013 12:57:20 +0200 (CEST) Date: Thu, 12 Sep 2013 12:57:20 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Mark Brown cc: linux-kernel@vger.kernel.org, Magnus Damm , linux-sh@vger.kernel.org, devicetree@vger.kernel.org, Grant Likely , Rob Herring Subject: [PATCH] regulator: da9210: add Device Tree binding documentation In-Reply-To: <20130909160406.GS29403@sirena.org.uk> Message-ID: References: <1378741920-11085-1-git-send-email-g.liakhovetski@gmx.de> <1378741920-11085-3-git-send-email-g.liakhovetski@gmx.de> <20130909160406.GS29403@sirena.org.uk> MIME-Version: 1.0 X-Provags-ID: V02:K0:qbYSd/pyv/qZXpF9jo7BSQL4xRV3cpkiTOlKhIEblmG UqdDpl6oH92EWr6181PdGs79FiTE6cpcYigCRvqMLSO849Tp4K 5XIRMCCMtsPxD1BdmxRNAk6MP0tsqrXXsNLDh/la8PF2UB6OmE j/xXgcl6xcFfrJEkhjzXtONiGdvZElRZaDC0brqHs8bqbAAXGe b4yp2l74qX4yPC2KGfYg5arbOtoBZ23XuSrlpWaXUYTUvEQeqg bopfcy1UyIJ0xLDG20jKTe/obpiygkeomABXp3uNgrbR2Y0z1p pvDsZOZnUYkUub9iRMNOEeLK7W/RuRqUXXDkuCMQCbdxvQJGSo 4O30zrSxPNscwh8BLZujU4+qT1RmzHwA5fICAc3ykawOBFvhYy 90bMSfhrbsxWQ== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 DA9210 Device Tree support currently only handles standard regulator DT bindings. This patch adds compulsory minimal documentation to describe this. Signed-off-by: Guennadi Liakhovetski --- On Mon, 9 Sep 2013, Mark Brown wrote: > On Mon, Sep 09, 2013 at 05:52:00PM +0200, Guennadi Liakhovetski wrote: > > This patch adds basic Device Tree support to the da9210 regulator driver - > > with no special properties, since also driver's platform data only contains > > standard regulator initialisation parameters. > > > > Signed-off-by: Guennadi Liakhovetski > > --- > > drivers/regulator/da9210-regulator.c | 9 ++++++--- > > I'd expect to see a binding document, even if it is just a very brief > one documenting the prefix and pointing to the standard regulator > properties. Hi Mark, Is a separate patch like this one ok or you'd prefer me to re-post the original series and merge this with the DT implementation? .../devicetree/bindings/regulator/da9210.txt | 21 ++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/da9210.txt diff --git a/Documentation/devicetree/bindings/regulator/da9210.txt b/Documentation/devicetree/bindings/regulator/da9210.txt new file mode 100644 index 0000000..f120f22 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/da9210.txt @@ -0,0 +1,21 @@ +* Dialog Semiconductor DA9210 Voltage Regulator + +Required properties: + +- compatible: must be "diasemi,da9210" +- reg: the i2c slave address of the regulator. It should be 0x68. + +Any standard regulator properties can be used to configure the single da9210 +DCDC. + +Example: + + da9210@68 { + compatible = "diasemi,da9210"; + reg = <0x68>; + + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1000000>; + regulator-boot-on; + regulator-always-on; + };