From patchwork Sun Apr 16 18:07:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 9683063 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 B0D3560209 for ; Sun, 16 Apr 2017 18:08:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99C9B279E0 for ; Sun, 16 Apr 2017 18:08:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AB2927EED; Sun, 16 Apr 2017 18:08:32 +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 2BA7D279E0 for ; Sun, 16 Apr 2017 18:08:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756532AbdDPSIb (ORCPT ); Sun, 16 Apr 2017 14:08:31 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:32819 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752467AbdDPSIa (ORCPT ); Sun, 16 Apr 2017 14:08:30 -0400 Received: by mail-oi0-f65.google.com with SMTP id t63so24612852oih.0; Sun, 16 Apr 2017 11:08:29 -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=LvbKyoN0P+FU3P3SxCdrc03QAT1X5j+PI0+zQygluFI=; b=l7Ou0sVnh8Z6YGSict3wp4sU2MZ7Gi4ZEk12ZyAFnihKTtMpWKvK3UNboShZVS41aG r8lMRB0IP58A3Y2J7V9L/JZVKGgGLT4D/ifJFUxUDJfzlO0uKyxcxQ9yd2z9FWItA1Ds 6yhDD3vRx2rHm1B4D+Pf6rzaI3h8LDELle67yOt481fG3A9m2gB+NyxXwv/ayKRtHf03 ahYqi/hC57LztO7yfSl/TeKR7GKGP7PyMPk412gXU4ljsAqwjN3wG4KJRbz+LmdSJWcg /auPdou7ZejUnyR/s2JtUrRYtVzIdxTEvkRipkcgziQmwEUotTQG94EJ1AMIEkk4cSsf J04w== 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=LvbKyoN0P+FU3P3SxCdrc03QAT1X5j+PI0+zQygluFI=; b=YhQNhAaaTeahVzA0pT+cPozzmRBX3GM3wy14fcnNxldK7beDPb2yWvnv1NASV/bc8C TISYlkakoc9j2cdF/jKeSIJdjh1VL7rPLYw5qXJ7BngScyFKFmQpUzQargQtAwzv4850 pWGFq2G2OMjM9Ls0YJhKr8uw0q/bLgF/SYIff19gwenB/rUlm5hUBvuNPHrE+NaZIx6U EcJ//K6tcKurrH+MBaBNe94fXyr3Lk1ngfkbwpLaugD/xv5ytb5qTbQK95TGh52n0YsC mUYfD4rv+JqnV1U7i6fxUl1ijeX5j1cOl5waZlYB/sfQGpKVX9EP+akUAfS6+iIHfx2d SnJw== X-Gm-Message-State: AN3rC/7f8uSoqW8f/Q1GV/FgILkLeG5+22UxU8BCW/aRgg/JqpWQ+sQ9 wc0aSdv/YgVB3g== X-Received: by 10.202.225.212 with SMTP id y203mr2879698oig.46.1492366109355; Sun, 16 Apr 2017 11:08:29 -0700 (PDT) Received: from kurokawa.lan ([195.140.253.167]) by smtp.gmail.com with ESMTPSA id d198sm125694oig.20.2017.04.16.11.08.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Apr 2017 11:08:28 -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 1/4] mfd: Add ROHM BD9571MWV-M PMIC DT bindings Date: Sun, 16 Apr 2017 20:07:58 +0200 Message-Id: <20170416180801.17828-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 --- .../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..0952ee3bc30b --- /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: + - 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 { + compatible = "regulator-fixed"; + regulator-name = "dvfs"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1030000>; + regulator-boot-on; + regulator-always-on; + }; + }; + };