From patchwork Tue May 2 12:18:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 9707897 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 9A4DF60245 for ; Tue, 2 May 2017 12:18:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B4512841D for ; Tue, 2 May 2017 12:18:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D98E2842B; Tue, 2 May 2017 12:18:37 +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 584D12841D for ; Tue, 2 May 2017 12:18:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750735AbdEBMSg (ORCPT ); Tue, 2 May 2017 08:18:36 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:35946 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750708AbdEBMSf (ORCPT ); Tue, 2 May 2017 08:18:35 -0400 Received: by mail-io0-f193.google.com with SMTP id x86so29516185ioe.3; Tue, 02 May 2017 05:18:34 -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=ND/5ARcOiiW/HdORy/tAcIY0BAtSvHH+5DJ3H3xQqj4=; b=CTRXMD6oSkPNVOLBILbeGNAkQbkFb1mPA1hczPX0Q5fGygvE2Ca1rEbN4UlWf3/ZNk 4sFAcIsMFIpDsYwDiROlcCTHW/VfD9NVWyCi3Hx7VGJRsA63U4dejB1l/G6QL/LylqjF 8JEbwx28lWOJYdsEoPkWZPNuk6Sckm5828Q+jcINbHxsckfKPb7Reilxs7vqVuCySZxo TT/a3B0Q4tdk+azNvjIZ1cUQb9E/lKyFsLuzPGt2e2zwcJBCW6itwkmf2aJMyj3ks9dd vvM2wOZ4WvV9IGUTmjRk4ln3QdR1JyPKpfrqCiofIFqjmJ+VktN6IaP3nZOjRs92uvF5 cHqw== 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=ND/5ARcOiiW/HdORy/tAcIY0BAtSvHH+5DJ3H3xQqj4=; b=HeJCIditwIxh0xWO7rTpnj0oOJJ63rLaaAkpC+mHc27KCw5hjdZ2XTRUbOqicQLmhw jmqmL2wtxkzTcqJujnpC8Qa8BN/uZcAUWWYxKFJyFN0penPR0AbT5DwSzK5fLWKd668N wmgbRHZ2AQGA8ModbCP0K6KImlCLjhasoe8/MYK+ap+tQ2jnyUKId4X9u/54T6JCZspv YbE4qYZvaOub7MXUZ4cdGcz4YJwReffAEHMl/PQKM03BrEHsvOXkN17Isj3umD8HuCwC OfSAot/hLuXE6pFYyfwQxm5c8oI6fktlXnj4JDQDM/WTCyW3g0d8g3xjDK9+VzpEmJwR QKFA== X-Gm-Message-State: AN3rC/53QzYNJIN+YEdYvreGXcvhgFrQ/ebpYu5NIvIObZIThcfgqjcC wCJy9YQ58XztMg== X-Received: by 10.157.50.41 with SMTP id t41mr11262259otc.199.1493727514109; Tue, 02 May 2017 05:18:34 -0700 (PDT) Received: from kurokawa.lan ([195.140.253.167]) by smtp.gmail.com with ESMTPSA id r48sm2471001otr.41.2017.05.02.05.18.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2017 05:18:33 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: linux-renesas-soc@vger.kernel.org Cc: lee.jones@linaro.org, Marek Vasut , devicetree@vger.kernel.org, Rob Herring , Geert Uytterhoeven Subject: [PATCH V3 1/2] mfd: Add ROHM BD9571MWV-M PMIC DT bindings Date: Tue, 2 May 2017 14:18:15 +0200 Message-Id: <20170502121816.10572-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 Acked-by: Rob Herring --- V2: - Drop the compatible = "regulator-fixed" from the binding example, it should not be there. - List the VD09 regulator V3: Replace bd9571@30 with pmic@30 --- .../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..9ab216a851d5 --- /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: pmic@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; + }; + }; + };