Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp878705ybc; Fri, 22 Nov 2019 14:50:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxJzwra+kSeDGhZvtlP5IyUko9P9XT3MiX/MyDNuldPcROdeYzLrSHueWksg05W4D/YpOJD X-Received: by 2002:a50:984b:: with SMTP id h11mr4290253edb.248.1574463003757; Fri, 22 Nov 2019 14:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574463003; cv=none; d=google.com; s=arc-20160816; b=jxkXbepf/o/LjJuB+cR1GsOstbE4mkIQ9011hLWmnvabLtpSPDbbeCmStXubZe97pW r+JezTVPAx7Qw3z+6bo5bBAgcbD8oePfRCvEZ7l525DDX2pfqJR95trkQsKCeILt7XFX l8MlvzD4IJO5aT2jB51YcXkcA28JOH2HYSmLBoZYS/9Fe/cjAElwx5sf2NcMwHhJagSv FvpEQLYA5+21E+sJdSAyuN1E2ST4Opjzrfgu08YXxjJ2QpScJ1TW49otD82A/pWU6XzP HEKhtpW+oNrzgfhOo9T8N+0L/Vvj25WN3H550CrugVKeoo79oj+ihF/Hw0y/NvuZHaT7 CaCw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rN+xXlHiqtwE2I732mBe4YEtOdoVVWt0shahQQ1i45E=; b=xFt2gUSYLSHei9QIgpjPq1PYrDxAWqmxRVbfJtPL5xYiIi9/fY3WurlzgzVIxkRd3I 7lWuXBWcRPVnzOss+MrLcMlgCTFAV7Cp6+NIfA75sXVmHsHfLGvZ1/4HfHTBx0No47dr mrIQA1qh/Ftf0vmkZHbLoPO4eWBVIyJGV8RQIe8fAWr3dNcUgoobeLHTMeziQ5s9SsIk rX9PRKxn9iiKxJ6omHef94FnOmwZu203GGyKHs/PwoPq0MiH15amMLinz0KiyMHfH9K7 5msoCJhrIMQ4U8hVko9RsmemwBYVboiCijTf9kRxzcqonH0dtyJ80gQFBy0qp0tkEjco YHaA== 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 ce11si6489535edb.391.2019.11.22.14.49.38; Fri, 22 Nov 2019 14:50:03 -0800 (PST) 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 S1726729AbfKVWsk (ORCPT + 99 others); Fri, 22 Nov 2019 17:48:40 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:39657 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbfKVWsj (ORCPT ); Fri, 22 Nov 2019 17:48:39 -0500 Received: by mail-oi1-f195.google.com with SMTP id v138so7975609oif.6; Fri, 22 Nov 2019 14:48:38 -0800 (PST) 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:in-reply-to:user-agent; bh=rN+xXlHiqtwE2I732mBe4YEtOdoVVWt0shahQQ1i45E=; b=nvP07f099V0+hP3fXH6zVK/mOSKBBJLgfTadVnJlsiBeRbjosOOjaer8+pYZRm+SDc ZBjiNvpSpUGTlZko4lxD9FrthGYTpkvxvWG72WQA39j3bWTmtA0nrAZ0HWW1e/0VYCuP PviO7EQBT7iB4j7qG5h9ACEk0zCB5skMa0km1clbsrHFU+N2t16N9Z0QYK1WXis4T+s1 eJO0YCsvKkxDw9DAfmW50JGhwdoFU0LydaMOraR+XWzJPULs6DJh9iq23qVAeldNLTbs YNaT8fcKZ1UQFMYWcti4Ig0m3Vj5j7DpY2d1vC9rRkOIbYAwgAIc7kABfz6nE4Ou417p aFow== X-Gm-Message-State: APjAAAUma2TtgRmMWjQ2OP46EPkekrT9BpbeReldV1eX9uMiZlyWiuaS S/t3VvHOTLCKRFr4ykdnog== X-Received: by 2002:aca:b10a:: with SMTP id a10mr14438745oif.26.1574462918016; Fri, 22 Nov 2019 14:48:38 -0800 (PST) Received: from localhost ([2607:fb90:bde:716a:c9ec:246b:67b7:9768]) by smtp.gmail.com with ESMTPSA id 4sm2676245otc.77.2019.11.22.14.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2019 14:48:36 -0800 (PST) Date: Fri, 22 Nov 2019 16:48:34 -0600 From: Rob Herring To: Matti Vaittinen Cc: mazziesaccount@gmail.com, Lee Jones , Jacek Anaszewski , Pavel Machek , Dan Murphy , Mark Rutland , Liam Girdwood , Mark Brown , Jonathan Corbet , Michael Turquette , Stephen Boyd , Linus Walleij , Bartosz Golaszewski , Alessandro Zummo , Alexandre Belloni , Mauro Carvalho Chehab , Jeff Kirsher , Wolfram Sang , Marek Szyprowski , Heiner Kallweit , Nicholas Mc Guire , Phil Edworthy , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH v5 01/16] dt-bindings: regulator: Document ROHM BD71282 regulator bindings Message-ID: <20191122224834.GA9158@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 18, 2019 at 08:53:57AM +0200, Matti Vaittinen wrote: > Document ROHM BD71828 PMIC regulator device tree bindings. > > Signed-off-by: Matti Vaittinen > --- > > No changes from v4 > > .../regulator/rohm,bd71828-regulator.yaml | 122 ++++++++++++++++++ > 1 file changed, 122 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml > > diff --git a/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml b/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml > new file mode 100644 > index 000000000000..c23ec4d8584b > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml > @@ -0,0 +1,122 @@ > +# SPDX-License-Identifier: GPL-2.0-only Please dual license new bindings: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/regulator/rohm,bd71828-regulator.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ROHM BD71828 Power Management Integrated Circuit regulators > + > +maintainers: > + - Matti Vaittinen > + > +description: | > + This module is part of the ROHM BD71828 MFD device. For more details > + see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml. > + > + The regulator controller is represented as a sub-node of the PMIC node > + on the device tree. > + > + Regulator nodes should be named to BUCK_ and LDO_. > + The valid names for BD71828 regulator nodes are > + BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7 > + LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 > + > +patternProperties: > + "^LDO[1-7]$": > + type: object > + allOf: > + - $ref: regulator.yaml# > + description: > + Properties for single LDO regulator. > + > + properties: > + #Is there a nice way to check the name is same as node name but lower case Nope. Why not make the node names lower case? That's the preference though the regulator binding is special. > + regulator-name: > + pattern: "^ldo[1-7]$" > + description: > + should be "ldo1", ..., "ldo7" > + > + "^BUCK[1-7]$": > + type: object > + allOf: > + - $ref: regulator.yaml# > + description: > + Properties for single BUCK regulator. > + > + properties: > + #Is there a nice way to check the name is same as node name but lower case > + regulator-name: > + pattern: "^buck[1-7]$" > + description: > + should be "buck1", ..., "buck7" > + > + rohm,dvs-run-voltage: > + allOf: > + - $ref: "/schemas/types.yaml#/definitions/uint32" > + - minimum: 0 > + maximum: 3300000 > + description: > + PMIC default "RUN" state voltage in uV. See below table for > + bucks which support this. 0 means disabled. > + > + rohm,dvs-idle-voltage: > + allOf: > + - $ref: "/schemas/types.yaml#/definitions/uint32" > + - minimum: 0 > + maximum: 3300000 > + description: > + PMIC default "IDLE" state voltage in uV. See below table for > + bucks which support this. 0 means disabled. > + > + rohm,dvs-suspend-voltage: > + allOf: > + - $ref: "/schemas/types.yaml#/definitions/uint32" > + - minimum: 0 > + maximum: 3300000 > + description: > + PMIC default "SUSPEND" state voltage in uV. See below table for > + bucks which support this. 0 means disabled. > + > + rohm,dvs-lpsr-voltage: > + allOf: > + - $ref: "/schemas/types.yaml#/definitions/uint32" > + - minimum: 0 > + maximum: 3300000 > + description: > + PMIC default "LPSR" state voltage in uV. See below table for > + bucks which support this. 0 means disabled. > + > +#Supported default DVS states: > +#buck | run | idle | suspend | lpsr > +#---------------------------------------------------------------------------- > +#1, 2, 6, and 7 | supported | supported | supported (*) > +#---------------------------------------------------------------------------- > +#3, 4, and 5 | supported (**) > +#---------------------------------------------------------------------------- > +#(*) LPSR and SUSPEND states use same voltage but both states have own enable / > +# disable settings. Voltage 0 can be specified for a state to make regulator > +# disabled on that state. > +#(**) All states use same voltage but have own enable / disable settings. > +# Voltage 0 can be specified for a state to make regulator disabled on that > +# state. Would be nicer if indented to the same level. > + > + rohm,dvs-runlvl-ctrl: > + description: | > + buck control is done based on run-level. Regulator is not > + individually controllable. See ../mfd/rohm,bd71828-pmic.yaml for > + how to specify run-level control mechanism. Only bucks 1, 2, 6 > + and 7 support this. > + type: boolean > + > + rohm,dvs-runlevel-microvolts: > + minimum: 0 > + maximum: 2000000 > + maxItems: 4 Mixing array and scalar constraints. maxItems: 4 items: minimum: 0 maximum: 2000000 > + description: > + Array of voltages for run-levels. First value is for run-level 0, > + second for run-level 1 etc. Microvolts. > + > + required: > + - regulator-name > + additionalProperties: false > +additionalProperties: false > -- > 2.21.0 > > > -- > Matti Vaittinen, Linux device drivers > ROHM Semiconductors, Finland SWDC > Kiviharjunlenkki 1E > 90220 OULU > FINLAND > > ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ > Simon says - in Latin please. > ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ > Thanks to Simon Glass for the translation =]