From patchwork Tue Apr 25 18:32:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 754974 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wCBg10lfhz9s7s for ; Wed, 26 Apr 2017 04:33:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lWknB4NR"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1948913AbdDYSdZ (ORCPT ); Tue, 25 Apr 2017 14:33:25 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:34656 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1950176AbdDYSdA (ORCPT ); Tue, 25 Apr 2017 14:33:00 -0400 Received: by mail-oi0-f68.google.com with SMTP id y11so36366129oie.1; Tue, 25 Apr 2017 11:33:00 -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=lWknB4NRdpa/05Gh213EYiA4NnLjhL5xdGTBl2Z5p8Dn5m0ARPvP76SBWM8AVT5JRS x2YLe5lY3bfFWCHLyG2lOZJbNTulLXkdqZsUqzppKL6/CcPlkV6Z4C+xP+sSwG0Nnq17 JO886TGngwl3lUdcZML01iJP2mZ6Auw7iLxmelNaX72U6Sbale8dFUfiOl69/flufM8Z uyRxLbE8zdSdaHyZBfIgIggarsJ49LhKT6Pelxw7R6CknsyfQTBoEMg4bZ/2/lsoE0dv tIiC00uNiOPcWW1bnd2bQ1aAfcri3ULzMO4DHWHl/eAOwqkZgIzfaqgJy3e9hItce8XT IkOA== 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=J4NFSUEhNykCobkdCmbTo5n0u27T/I15GvnWdZC6AXQ/070hmQLe8xPbTxSU6cqNM7 nzVPPYULzimB6r2LEHjYPXVfFou5byuBVhx1c8LtywC9zed9Kgb2VGCB3zORIgjDAhoO Fa2CdEYR99dG5OwjnS9dm52nM7WlK3xd0f3CKSc4OZ7pQAES/8fnNKlGSO2tRqzslhOp qrhPiEK3z+0VghL2j3rBZZPD0xPgMAJlLXAKeAD/Jd5jji18wa4mMVJ4npU711r0vXQg a0TUQxicOW+WLOOybNhm7ORapckgFWy0DviNILEf1GIqgC81mhkrk6y2S8OQOZSehE6+ YYIg== X-Gm-Message-State: AN3rC/60Irn7+e+H0ZiiDNj3mMT4B+ELPQK5scsYM8PGilYPMwB+70fM e34cts5P8+A92Q== X-Received: by 10.157.61.53 with SMTP id a50mr20981516otc.101.1493145179365; Tue, 25 Apr 2017 11:32:59 -0700 (PDT) Received: from kurokawa.lan ([195.140.253.167]) by smtp.gmail.com with ESMTPSA id i124sm8890009oib.41.2017.04.25.11.32.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Apr 2017 11:32:58 -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: [RESEND][PATCH V2 1/4] mfd: Add ROHM BD9571MWV-M PMIC DT bindings Date: Tue, 25 Apr 2017 20:32:07 +0200 Message-Id: <20170425183210.30594-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../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; + }; + }; + };