Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3771941ybl; Mon, 3 Feb 2020 06:16:57 -0800 (PST) X-Google-Smtp-Source: APXvYqw7cUR7FgtFyOv3EVm661wSkGEbxVqsYxFnq9JoFm+7oP7r1ULCZO1Bch5zMtGfs4uVFWxG X-Received: by 2002:aca:3857:: with SMTP id f84mr13990229oia.150.1580739416991; Mon, 03 Feb 2020 06:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580739416; cv=none; d=google.com; s=arc-20160816; b=ZB01YY1kvK6av3/6CgRTQkrgBXxnubttT9YXeB5096FtSuoaZLyRPmY5xJNHDiaBRf 0RH/2+pSfe6o2S8SZuHFrR6yOIgI4J263wYOomaKXK6QBY8acc+TPTxYBtA7gk4Ylx6v le/rYRa5Tcv03Vp20GFUSe6LB/Pf7qMcC47rVWAyD3CeUiLFA9He+l4Q9TcY8om5p794 0fJGo/Rx8qEDsQMz/vbCDPm4l+hfMZ24dC5MeyoqBYNyg/9bwvbt+edBngiC1ZV/6RJt Y4HBXzF9ljCJSVFcb7eusd1PhTpKNNoXdALoueI7HNNGdGozfizuOCu5bVeTjEZXzDbQ rZ/w== 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=lZ1XB3cL2d42Vdd8z9DnhNwtr2+wX5XMn+SoIlAejis=; b=vCGXarJHrQi2caYPqSB7TspYGtUEoh9DZI17knKwbU2QYu/rxzvxhI5JR4Mcw7Lyjn iFQc1uvKtMl1t7cVS5a4NUSNxWSBeGYUCU3YFaGJuEfAGZ0WWWNBdgfCMRZI5fwsYzgN 3dqATQdeWroMus21JQw1U5OnbA0DjATobM6HBA3yoLpqlga0Etzy8+2X1Oing/bOtP2X p4tb/9UhMbN8QfSbsOpDvV3BNBVH9a/1EF2QEKewWa5O/ods5aHAHFFjGvQo0NCCEsxZ vwAzPVxbsfw13OJUgbU6SUQ39lfKhYmvi8cWjqOF3kRFwLUTHnPbh8aF7+DRuEM6OJ0t g1Ig== 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 a4si9300027otq.98.2020.02.03.06.16.44; Mon, 03 Feb 2020 06:16:56 -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 S1727820AbgBCMNA (ORCPT + 99 others); Mon, 3 Feb 2020 07:13:00 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42912 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727708AbgBCMNA (ORCPT ); Mon, 3 Feb 2020 07:13:00 -0500 Received: by mail-wr1-f66.google.com with SMTP id k11so17723605wrd.9; Mon, 03 Feb 2020 04:12:58 -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=lZ1XB3cL2d42Vdd8z9DnhNwtr2+wX5XMn+SoIlAejis=; b=gx3dVMq7kl4AV33UXfi9toXmxvn3Uc1BuHtQ2otMie8MPok9vjoSqcXushvtiSYSnG jJtmkAPbnw0byiT/tTwC8QP8AXYYU6cYOcxw2jwlLiK9NwbP2QGRWR65OlaS5fBIED4a 8R/8G4AXdVWoY0y5+Ns6uAe1411vXQ7fGNaU+spJ6+mj7TcEhmMuFoazlvkirS4Rezsj kBBx2o3GJi9uNSR34Af8irMBKoasEKm4Ze6AuYvuc5eywgcL+bUl+V/jZeFLMZh4lmdB MOOMPLmfhoKtCAkNDOKei0IhwoW2PJ+706dNzgncRjBDc7xdFOtss9AkXgNXDv3EdZLy GYpQ== X-Gm-Message-State: APjAAAV3swFRFoxQtb+fsKAhwQL23sGHiX/wFCRgv5fINTwWiR6+Slkx TGU02kb8pNtz9Wf4vrU+r1UgfaRjrA== X-Received: by 2002:adf:b193:: with SMTP id q19mr15026212wra.78.1580731977905; Mon, 03 Feb 2020 04:12:57 -0800 (PST) Received: from rob-hp-laptop ([212.187.182.163]) by smtp.gmail.com with ESMTPSA id u4sm300839wrt.37.2020.02.03.04.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 04:12:57 -0800 (PST) Received: (nullmailer pid 7857 invoked by uid 1000); Mon, 03 Feb 2020 12:12:55 -0000 Date: Mon, 3 Feb 2020 12:12:55 +0000 From: Rob Herring To: Saravanan Sekar Cc: lgirdwood@gmail.com, broonie@kernel.org, mark.rutland@arm.com, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, davem@davemloft.net, mchehab+samsung@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] dt-bindings: regulator: add document bindings for mp5416 Message-ID: <20200203121255.GA30513@bogus> References: <20200122135958.13663-1-sravanhome@gmail.com> <20200122135958.13663-2-sravanhome@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200122135958.13663-2-sravanhome@gmail.com> 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 Wed, Jan 22, 2020 at 02:59:56PM +0100, Saravanan Sekar wrote: > Add device tree binding information for mp5416 regulator driver. > > Signed-off-by: Saravanan Sekar > --- > .../bindings/regulator/mps,mp5416.yaml | 78 +++++++++++++++++++ > 1 file changed, 78 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/mps,mp5416.yaml > > diff --git a/Documentation/devicetree/bindings/regulator/mps,mp5416.yaml b/Documentation/devicetree/bindings/regulator/mps,mp5416.yaml > new file mode 100644 > index 000000000000..702508e4267f > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/mps,mp5416.yaml > @@ -0,0 +1,78 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/regulator/mps,mp5416.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Monolithic Power System MP5416 PMIC > + > +maintainers: > + - Saravanan Sekar > + > +properties: > + $nodename: > + pattern: "pmic@[0-9a-f]{1,2}" Needs a ^ and $. > + compatible: > + enum: > + - mps,mp5416 > + > + reg: > + maxItems: 1 > + > + regulators: > + type: object > + allOf: > + - $ref: regulator.yaml# Does this node contain regulator properties? > + description: | > + list of regulators provided by this controller, must be named > + after their hardware counterparts BUCK[1-4] and LDO[1-4] > + > + patternProperties: > + "^buck[1-4]$": > + $ref: "regulator.yaml#" Must be under 'allOf' or other constraints are ignored. > + type: object > + > + "^ldo[1-4]$": > + $ref: "regulator.yaml#" > + type: object > + > + additionalProperties: false > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - regulators > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + pmic@69 { > + compatible = "mps,mp5416"; > + reg = <0x69>; > + > + regulators { > + > + buck1 { > + regulator-name = "buck1"; > + regulator-min-microvolt = <600000>; > + regulator-max-microvolt = <2187500>; > + regulator-min-microamp = <3800000>; > + regulator-max-microamp = <6800000>; > + regulator-boot-on; > + }; > + > + ldo2 { > + regulator-name = "ldo2"; > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <3975000>; > + }; > + }; > + }; > + }; > +... > -- > 2.17.1 >