From patchwork Mon Apr 24 15:21:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 9696589 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9A15B6037F for ; Mon, 24 Apr 2017 15:22:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 899B11FF87 for ; Mon, 24 Apr 2017 15:22:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B09F20144; Mon, 24 Apr 2017 15:22:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D99A31FF87 for ; Mon, 24 Apr 2017 15:22:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1169980AbdDXPWH (ORCPT ); Mon, 24 Apr 2017 11:22:07 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:36367 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1169566AbdDXPWG (ORCPT ); Mon, 24 Apr 2017 11:22:06 -0400 Received: by mail-it0-f65.google.com with SMTP id x188so17154972itb.3; Mon, 24 Apr 2017 08:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ZSQx4JjQutA3UVdD9Yfx6N5Pqx1P6WaCYu45h4+kfBQ=; b=MLKko7rmAhXQqturBhSaXw4YwWz38yZMUvqXNQPAxy6J56STO2jD9FlaDZKpEUW4Jh wwgkMLehWgZpju4dk1s0bZIrSTpCsy+6/Uprra/8cwUW2Gd4My9GJI2m4JiCiFXNLNaL MpCP2bfoX8ngClZh7iQFPQ3MMhzuTBhUtYXwweJa79RqFo0jBUnG2fH+ZyTsws3poOSL kxLOAyulRfNpzZIeQlzm4wAwEdRR97LbLiFoFpIQxyf3nRgmKKTn5qNCAILg4GIFnhfx 9hZ8yDzQYSz/rEZ9ZgXa0+E0eJ2rslrPIbjD+OgPlFapb/fR4uvh78afSVrWvzJU/gCZ oMSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZSQx4JjQutA3UVdD9Yfx6N5Pqx1P6WaCYu45h4+kfBQ=; b=CiPFKHD3A7HPsBxD/hET3MmYbZ96X9bK2OJBHdpGa1Pqmbe/sd7DA4bNQW4EINAf9O gIuqdRKqRGS3MgE6Wf0PFgNzTc+9FltDNEgwDGc5wpKAWYA7JUVhdCq0xad/5+ObBPv2 vSbBt9fg4u7n2r9ZYXCu51c6Z17Nd5fm7j0znGRj6tzt5xgr4TfrnXqMOW/9BcqPcy0n dwO+ejheetb05bxEtZlEm7q4eZLUWGpuisqYRMj/yy1dQmcbJEz46lOa4Avk9Q6ECIJ0 tFUAi9vzd2AxwimsGjWzLtq4SdIHQUPuXuQLNReGLrzkX/L5nJmxlnBLDSOcR6gZ1/gb 1y7A== X-Gm-Message-State: AN3rC/6ean50Q7tP86AWV9DDXX8+7mMLVjA3dfIDRlNa8XAJfGpBTLoo yGpnT+PEJJ6vpw== X-Received: by 10.202.205.18 with SMTP id d18mr12345051oig.30.1493047325505; Mon, 24 Apr 2017 08:22:05 -0700 (PDT) Received: from kurokawa.lan ([195.140.253.167]) by smtp.gmail.com with ESMTPSA id q130sm8206326oif.9.2017.04.24.08.22.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 08:22:04 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: linux-renesas-soc@vger.kernel.org Cc: Marek Vasut , devicetree@vger.kernel.org, Rob Herring , Geert Uytterhoeven Subject: [PATCH V2 1/4] mfd: Add ROHM BD9571MWV-M PMIC DT bindings Date: Mon, 24 Apr 2017 17:21:27 +0200 Message-Id: <20170424152130.32410-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add DT bindings for the ROHM BD9571MWV-M PMIC. This PMIC has the following features: - multiple voltage monitors for 1V8, 2V5, 3V3 voltage rail - one voltage regulator for DVFS - two GPIOs Signed-off-by: Marek Vasut Cc: devicetree@vger.kernel.org Cc: Rob Herring Cc: Geert Uytterhoeven Cc: linux-renesas-soc@vger.kernel.org --- V2: - Drop the compatible = "regulator-fixed" from the binding example, it should not be there. - List the VD09 regulator --- .../devicetree/bindings/mfd/bd9571mwv.txt | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/bd9571mwv.txt diff --git a/Documentation/devicetree/bindings/mfd/bd9571mwv.txt b/Documentation/devicetree/bindings/mfd/bd9571mwv.txt new file mode 100644 index 000000000000..ce24231edd7d --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/bd9571mwv.txt @@ -0,0 +1,49 @@ +* ROHM BD9571MWV Power Management Integrated Circuit (PMIC) bindings + +Required properties: + - compatible : Should be "rohm,bd9571mwv". + - reg : I2C slave address. + - interrupt-parent : Phandle to the parent interrupt controller. + - interrupts : The interrupt line the device is connected to. + - interrupt-controller : Marks the device node as an interrupt controller. + - #interrupt-cells : The number of cells to describe an IRQ, should be 2. + The first cell is the IRQ number. + The second cell is the flags, encoded as trigger + masks from ../interrupt-controller/interrupts.txt. + - gpio-controller : Marks the device node as a GPIO Controller. + - #gpio-cells : Should be two. The first cell is the pin number and + the second cell is used to specify flags. + See ../gpio/gpio.txt for more information. + - regulators: : List of child nodes that specify the regulator + initialization data. Child nodes must be named + after their hardware counterparts: + - vd09 + - vd18 + - vd25 + - vd33 + - dvfs + Each child node is defined using the standard + binding for regulators. + +Example: + + pmic: bd9571mwv@30 { + compatible = "rohm,bd9571mwv"; + reg = <0x30>; + interrupt-parent = <&gpio2>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + + regulators { + dvfs: dvfs { + regulator-name = "dvfs"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1030000>; + regulator-boot-on; + regulator-always-on; + }; + }; + };