Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3594572imm; Mon, 4 Jun 2018 06:19:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ13K8Xz0ukszjtL3pP65hia6KGq/BEhytPLx5+AdIAHtBz/EteceX1lHqRd3lu62HDwV1z X-Received: by 2002:a17:902:bd96:: with SMTP id q22-v6mr11528102pls.247.1528118391531; Mon, 04 Jun 2018 06:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528118391; cv=none; d=google.com; s=arc-20160816; b=JBN6Sv/FaRbhEDFpaOS00ew2nSXCws6BhOCmk/a9rAzVccZiSg0AgaaZQddZ7GFY7q AdTD9OKZkKzZ94bnRZ5+cemdu3Yb6q0unnFaIiziMTMoFZgfh8tMtdjtjA/rshh5WxGi kBob0scuCExu2LHade8CiD5AyVmrNVOdk7da0QvRkX/G0olTWPoBWDFb2N7jfJhDuv/b d+HUwRJB403x30CGly9Sr4Ief35YqJ0m/OWy3qRBzyRvBQB8evSfAftfQ8C6jBJlg9o8 IspSf3Ehrocx4jisqPe2ZREbTmvDN9KrQ5TuckvgYn/aKLAzChd594O391X6icxkYXPw LBRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=x5b29cLWYrB9vXMlbvjVadadfRAc9z9vNkAsZ0uenhc=; b=we0E8GXiDwD4tPkYp5zKWoX68VHxCq9GXDyX5anFpAtrU5hnSi8NWsHipujWHbFIuH EAtiPyK9/3FQwnFr2ASIkNyECpuRpdiGmzKCyQqlfycXWxKz8Qr4bqFWB5JD0YDEfe9E V/l77uXbnAQH8he7Uxn2jyPfRhuVwm8QwOIKBsxwweGLC6eI+zkkSlEL3LrYAkvV6weg xmf09GJ8Uj3cfvlA6n4CMEBI9p8Sgv99UJttyLJpoAisotGAyav7vLIN5bAd8CMwLSe5 2pAdhP+2fVDA7mgmq8nqeBX8jm1g/Rlj9uyLZOW1DkNsWSqItN7CR14BmAAKza8of7/m wyRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14-v6si20581725pgw.478.2018.06.04.06.19.36; Mon, 04 Jun 2018 06:19:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753270AbeFDNSl (ORCPT + 99 others); Mon, 4 Jun 2018 09:18:41 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:46454 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752432AbeFDNSj (ORCPT ); Mon, 4 Jun 2018 09:18:39 -0400 Received: by mail-lf0-f68.google.com with SMTP id j13-v6so20718599lfb.13; Mon, 04 Jun 2018 06:18:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=x5b29cLWYrB9vXMlbvjVadadfRAc9z9vNkAsZ0uenhc=; b=tB5PHxXAfTcagJfCu1jxYxbc6Xtzu95KZNfztRJkfq136Og7TtIqHOchlrGjTr2pbs 4GifkJ3JXhzf/0Pvqhzga9ki6UrHCmgOGHMijKlylR83iquzAc/5roLjNItLVU3g9W42 iipKhBW2mIT1tBhogu9DlUDciJ2UROHYZPbg/9m1R0CB2HTFNCXc2ewM4MjpjdBfR6Ot ZvS5mfj1frlFtHAG5EupPcqt6TgEHHeVLrz50ecoYmSRu1dd6WyabD9H7zbq7mrxkmDe IpxQKotJLF6xmbV5avI+hRLxlrfpIA3H93DnOlSkcmUIsz32Hzv5O+YZC5VvQ44Ae6Tl 0y5A== X-Gm-Message-State: APt69E3SMiPh4iwGskyjpc+7lU+EA5pRUFmpycV0hwKcOlyOq5+2VAFk 4pxl8IHO8NtW7BklwaiGtQU= X-Received: by 2002:a19:d86a:: with SMTP id p103-v6mr3316438lfg.36.1528118318148; Mon, 04 Jun 2018 06:18:38 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.34]) by smtp.gmail.com with ESMTPSA id g22-v6sm1880351lfh.38.2018.06.04.06.18.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 06:18:37 -0700 (PDT) Date: Mon, 4 Jun 2018 16:18:30 +0300 From: Matti Vaittinen To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, lee.jones@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, mazziesaccount@gmail.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mikko.mutanen@fi.rohmeurope.com, heikki.haikola@fi.rohmeurope.com Subject: [PATCH v5 2/4] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC Message-ID: <6509bbe0238c20c16930c9f23d63656b1d5f4af2.1528117485.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document devicetree bindings for ROHM BD71837 PMIC MFD. Signed-off-by: Matti Vaittinen --- .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.txt diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.txt b/Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.txt new file mode 100644 index 000000000000..ac2b66181f17 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.txt @@ -0,0 +1,76 @@ +* ROHM BD71837 Power Management Integrated Circuit bindings + +BD71837MWV is a programmable Power Management IC for powering single-core, +dual-core, and quad-core SoC’s such as NXP-i.MX 8M. It is optimized for +low BOM cost and compact solution footprint. It integrates 8 Buck +egulators and 7 LDO’s to provide all the power rails required by the SoC and +the commonly used peripherals. + +Required properties: + - compatible : Should be "rohm,bd71837". + - reg : I2C slave address. + - interrupt-parent : Phandle to the parent interrupt controller. + - interrupts : The interrupt line the device is connected to. + - regulators: : List of child nodes that specify the regulators + Please see ../regulator/rohm,bd71837-regulator.txt + - clock: : Please see ../clock/rohm,bd71837-clock.txt + +Optional properties: + - interrupt-controller : Marks the device node as an interrupt controller. + BD71837MWV can report different power state change + events to other drivers. Different events can be seen + as separate BD71837 domain interrupts. + The BD71837 driver only provides the infrastructure + for the IRQs. The users should write own driver to + convert the IRQ into the event they wish. The IRQ can + be used with the standard + request_irq/enable_irq/disable_irq API inside the + kernel. + - #interrupt-cells : The number of cells to describe an IRQ should be 1. + The value in cell is the IRQ number. + Meaningfull numbers are: + 0 => PMIC_STBY_REQ level change + 1 => PMIC_ON_REQ level change + 2 => WDOG_B level change + 3 => Power Button level change + 4 => Power Button Long Push + 5 => Power Button Short Push + 6 => SWRESET register is written 1 + +Example: + + pmic: pmic@4b { + compatible = "rohm,bd71837"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4b>; + interrupt-parent = <&gpio1>; + interrupts = <29 GPIO_ACTIVE_LOW>; + interrupt-names = "irq"; + #interrupt-cells = <1>; + interrupt-controller; + #clock-cells = <0>; + clock-frequency = <32768>; + + regulators { + buck1: BUCK1 { + regulator-name = "buck1"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + regulator-boot-on; + regulator-ramp-delay = <1250>; + }; + /* ... */ + }; + }; + + /* driver consuming PMIC interrupts */ + + my-power-button: power-button { + compatible = "foo"; + interrupt-parent = <&pmic>; + interrupts = <3>, <4>, <5>; + interrupt-names = "pwrb", "pwrb-l", "pwrb-s"; + /* ... */ + }; + -- 2.14.3