Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3201166imm; Tue, 29 May 2018 03:02:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqmYxhe5FXNlfj+DE/R1VHoDLLhGMdaXo9/nZZ6MRfZmQu1uEil6+kAxD3L8sa7Grj6LcsK X-Received: by 2002:a17:902:d706:: with SMTP id w6-v6mr17080164ply.142.1527588139332; Tue, 29 May 2018 03:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527588139; cv=none; d=google.com; s=arc-20160816; b=b990SXhuRzs6V6PoItu5bfuVs3mysS5wVSplfuhHln51dHPJB4tXDCNBVdxr8WyVOn LGSyuSk5km7TsUZcvz/EOc7lD9iYMX7bEnTxH8WIUKNGssFNN4Uo0Bvc+77UeoCZUK/o m5aGd8pDT5+ER3FQFq52gygZEiQ4DX4hxTxtDrNkbxsTTkKU1OqK/qzt3pjn8FFBqRlz N/YYdeU+iZvqgU+PvOPK1emdS4aI7mDsh1c3qYOMIYvZhCsohmsNOZ+Zfkp+FL5QT1TV eaBSAlFZ+Em+DVJE/xAhBP3cBVhBG9igLsfqV1Puh6Y+FrAldP29tPfZfnYc6iVRYSSF xG6w== 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=1RJ/SxUzQBaBY1WAw5T0pvYek2njT05d6Zk1q3KXxE8=; b=f6Kbi1DcuDaZi+NzeC3gONCzrX0uLiDyer1srCAFR3p//UPsOVUFjh0QtsZVArZDeZ 601DLxdWKOFF7NEKq8PoWnMrVfaRs9zzU9sp8uPFN32bsCImq0oYIIElZhtnIq3LtbSU 7MiPa0OFe8YoaPtDr2NFYw5+3umJ9uKavCNjJvA68uGxYxIYrWpC0uMyA1v8ErVhTMwL NKD30nl1g6k2rvFRPy+4RiEU2Jw91JwR8IV0Slg8WsyDu0XoKTS5+8kedDOWL5nhWFpr 4yuBbPW25QZ73bRVGbmRiiZLP9hKO4FaWfRXFFLVjI/c1eUCiShVJU9XdRYoNTdCVdcC 5RNA== 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 y12-v6si17838197pgp.24.2018.05.29.03.02.04; Tue, 29 May 2018 03:02:19 -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 S933027AbeE2KAR (ORCPT + 99 others); Tue, 29 May 2018 06:00:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:51323 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932734AbeE2KAM (ORCPT ); Tue, 29 May 2018 06:00:12 -0400 Received: by mail-wm0-f68.google.com with SMTP id r15-v6so11205845wmc.1; Tue, 29 May 2018 03:00:11 -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=1RJ/SxUzQBaBY1WAw5T0pvYek2njT05d6Zk1q3KXxE8=; b=d+ASjjzbgJ5y0ul3Ep9iMi0SbkrQpy0VS8skwEZwwMohUDT/HtqYMwePzI4ORTsS6P goMlQ22v0b6IrcMUmQjKs6uHJFXL8SfFNT5KqhobxZwmbm/8FGYEges1aksrWCf+2xil HD45i7pPGMboMufNSBRkhpxp9UVVyk21CQcidBLZKnPI2GhVivy0iYnmjBEfWxrr6Uc7 Z4nW224dgE66589rPL6zyHBk5HtVm1OPdI5D9iMocnPYBbbYxAf+lTEhxM5N49jaDG7A P1+1EwCfAVkaepLXggzG06CPCzkde2S/kijcqFZliRwTkC9/JBk3Ym13TxCZIghfbYHO vfjQ== X-Gm-Message-State: ALKqPwfvRMsynGay3AGsKSmC90bfOa6NAv8KjaQz3pIICs9NOtWglVV3 bHhoGTJQAwY0NrSLZYwjUSE= X-Received: by 2002:a2e:7113:: with SMTP id m19-v6mr10601995ljc.44.1527588010696; Tue, 29 May 2018 03:00:10 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.34]) by smtp.gmail.com with ESMTPSA id j103-v6sm1363138lfi.58.2018.05.29.03.00.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 03:00:09 -0700 (PDT) Date: Tue, 29 May 2018 13:00:01 +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 v3 3/6] regulator: bd71837: Devicetree bindings for BD71837 regulators Message-ID: <81fa35b78d71d43ef2fcfeebc8d4b35c1a97599f.1527587295.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 regulators. Signed-off-by: Matti Vaittinen --- .../bindings/regulator/rohm,bd71837-regulator.txt | 126 +++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/rohm,bd71837-regulator.txt diff --git a/Documentation/devicetree/bindings/regulator/rohm,bd71837-regulator.txt b/Documentation/devicetree/bindings/regulator/rohm,bd71837-regulator.txt new file mode 100644 index 000000000000..4edf3137d9f7 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/rohm,bd71837-regulator.txt @@ -0,0 +1,126 @@ +ROHM BD71837 Power Management Integrated Circuit (PMIC) regulator bindings + +BD71837MWV is a programmable Power Management +IC (PMIC) 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 regulators and 7 LDO’s to provide all +the power rails required by the SoC and the commonly +used peripherals. + +Required properties: + - regulator-name: should be "buck1", ..., "buck8" and "ldo1", ..., "ldo7" + +List of regulators provided by this controller. BD71837 regulators node +should be sub node of the BD71837 MFD node. See BD71837 MFD bindings at +Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.txt +Regulator nodes should be named to BUCK_ and LDO_. The +definition for each of these nodes is defined using the standard +binding for regulators at +Documentation/devicetree/bindings/regulator/regulator.txt. +Note that if BD71837 starts at RUN state you probably want to use +regulator-boot-on at least for BUCK6 and BUCK7 so that those are not +disabled by driver at startup. LDO5 and LDO6 are supplied by those and +if they are disabled at startup the voltage monitoring for LDO5/LDO6 will +cause PMIC to reset. + +The valid names for regulator nodes are: +BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7, BUCK8 +LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 + +Optional properties: +- Any optional property defined in bindings/regulator/regulator.txt + +Example: +regulators { + buck1: BUCK1 { + regulator-name = "buck1"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + regulator-boot-on; + regulator-ramp-delay = <1250>; + }; + buck2: BUCK2 { + regulator-name = "buck2"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <1250>; + }; + buck3: BUCK3 { + regulator-name = "buck3"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + regulator-boot-on; + }; + buck4: BUCK4 { + regulator-name = "buck4"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + regulator-boot-on; + }; + buck5: BUCK5 { + regulator-name = "buck5"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1350000>; + regulator-boot-on; + }; + buck6: BUCK6 { + regulator-name = "buck6"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + buck7: BUCK7 { + regulator-name = "buck7"; + regulator-min-microvolt = <1605000>; + regulator-max-microvolt = <1995000>; + regulator-boot-on; + }; + buck8: BUCK8 { + regulator-name = "buck8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1400000>; + }; + + ldo1: LDO1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + ldo2: LDO2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + regulator-boot-on; + }; + ldo3: LDO3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + ldo4: LDO4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1800000>; + }; + ldo5: LDO5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + ldo6: LDO6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1800000>; + }; + ldo7_reg: LDO7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; +}; + + -- 2.14.3