Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp147027imm; Wed, 30 May 2018 20:06:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJcS1CNMJJXfs9DDZfHlaPjONWpa2bgg6WLd/FB48y5oCTyuDJSzrfOLsZi5M3ShXfQMnCZ X-Received: by 2002:aa7:80c6:: with SMTP id a6-v6mr5133876pfn.120.1527735990569; Wed, 30 May 2018 20:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527735990; cv=none; d=google.com; s=arc-20160816; b=IndLkJ2Z0fH8PMHSw6y9+WAYz+HXtelYsZ1EbufbUrGTcSOSn6UgEcDJxWXLrWn8tk sR697qPWTkQCBy3dtgbDKPCyLdie4V+YOgwzoh3x4/md2kJdEYFKD71ZVnem9FCFn0oJ LEkpHtiGVRV3YDuca3ni/hqk5YMpExck973/qR8zGkliksCFWg3virCPYPyHCWBjcRYO CYc4Ov2bQ4eIvp8gYQAEbI85gNrg2ALo1xs4sl9iQsLGcHkqZdNPklB0CAtkcdHqRdXA Rlf6YKqGdCjm3T7HzIm5ZSTmT48mSM/0FJXQiou5rLzy0T3W+n9dP3341EaPW1k0ZE9V 6TOQ== 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=JMw8DBItkWh8UIcUpyILTxujaj8DR7wHpo+UEwxsdAA=; b=NHMDdG+gbfaS+UNVX4e7qRB3fJNgLQZVOzalaH70oEDok51UsNCkKlET8yc6u7X1Xl YtYqNZZhva0B0jVXfEpLvYv2OwYDQi5xkbMYuTDzXNFVNJA54nwApQjsx8KshDqPe69/ Ii6N8NQpqAve6lw9ccz7FAroBanoITn6TjegEZNAyWOvuNqEYmPxU9rwg83wO5xiU3V3 B5HrTux+/HVJ3nFB7UoR6eJK6wuLjfahdf/f74L/gv4I4CXqjmHKlnKjzRYDGEIq4oF8 sY2p14DUB9s4omjimduPDTHnHrUnTlcm+MIuGtsjuUkx1jwAFuwWJbBU2INP7bNpQYgD Mofg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si23532838pgt.356.2018.05.30.20.06.16; Wed, 30 May 2018 20:06:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932697AbeEaDEm (ORCPT + 99 others); Wed, 30 May 2018 23:04:42 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:34101 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932643AbeEaDEj (ORCPT ); Wed, 30 May 2018 23:04:39 -0400 Received: by mail-yw0-f194.google.com with SMTP id b125-v6so3747220ywe.1; Wed, 30 May 2018 20:04: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=JMw8DBItkWh8UIcUpyILTxujaj8DR7wHpo+UEwxsdAA=; b=goX9oTns8Z6wWmkPGJ+TiDw+g+O0M5PbJ6Cj4Kz9J+RSHVBaKy4+A4YGQ8t3PqF84H yz0qmnUBcdr8B2R3w73BL6XrsnRwKvm8vuu3UsCQe4CZGTnBD/wcqjkbpjIrxWTcpnPM idqtpqKKFtaNZMQkSv1+tA4l0YdRn+wmiXDudWBZ2onxE5qHOEQAyzSCXN4iDIHd9nwg of6S9pno/iVPIQIjapn0ZB+t9pO0mGSYf69n6EhDoCnUPeUUNmuE9L6olwEsv4xjhiSm Ib26oVyoUvlJWFUG4uzuNS7/d8zogGdskWs9fXzUSiIId7YkN/VcJfwKogD1WcMtTXbN dfCw== X-Gm-Message-State: ALKqPwcBMy30WUG6dJRT2dIR2Q/b9d2L9TMTzQvXcFp2DVFwe47YJThU jBGq2J74h9uDbzbzSy64bKh+cMQ= X-Received: by 2002:a81:7584:: with SMTP id q126-v6mr2942960ywc.226.1527735878392; Wed, 30 May 2018 20:04:38 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id h202-v6sm16368654ywc.21.2018.05.30.20.04.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 20:04:37 -0700 (PDT) Date: Wed, 30 May 2018 22:04:36 -0500 From: Rob Herring To: Matti Vaittinen Cc: mturquette@baylibre.com, sboyd@kernel.org, mark.rutland@arm.com, lee.jones@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, mazziesaccount@gmail.com, 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: Re: [PATCH v4 3/6] regulator: bd71837: Devicetree bindings for BD71837 regulators Message-ID: <20180531030436.GB16122@rob-hp-laptop> References: <318229ca7ffcceb090fc8d0c43f887decc3082f0.1527669443.git.matti.vaittinen@fi.rohmeurope.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <318229ca7ffcceb090fc8d0c43f887decc3082f0.1527669443.git.matti.vaittinen@fi.rohmeurope.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 30, 2018 at 11:42:32AM +0300, Matti Vaittinen wrote: > 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. Why duplicate this from the core binding? Otherwise, Reviewed-by: Rob Herring > + > +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 >