Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp15051758ybl; Tue, 31 Dec 2019 00:02:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwqj9E/9CQ3xo5N/lWddVrietY9qhZOnyMijRCgpBAYeawiybjVL6fX9moBLovVLNOjikOm X-Received: by 2002:a9d:53cb:: with SMTP id i11mr81115227oth.158.1577779359823; Tue, 31 Dec 2019 00:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577779359; cv=none; d=google.com; s=arc-20160816; b=IV6tpSzuI1gbZXTJ3TVUxXtpGvIxAy69YfNHZZCuvrN5wE+skNO8OAKKgN14gXmtZt b0TgIGWa28SswJV0R/hLVLiD2g9woRA0hU7hIwtmRjPiv87nTjTVXuOzt6lrG6qgFTby 7l4Jg7BILkLRZ+5+XbkIRpoF0+qJuwfuyg/16kV4Y2K00qu43r4yvzMVg/T5fmTDaoSi 4xdDY6G8vD8hI6OC9nRgVct2dgF3+fG+UmMJfm1AVuyJnIKGWHqwYDFOm8zzrxpDxS+f r73uS1rhr4x0fKH61bZG+G84XPCBEoz8NvQMeG9MYaiiiuhrFn7XNUYQCN8SJhYZY8mx WrBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=z6omdWKixYV4XElfDuEcsDoFKXluCUgejU3p435c21c=; b=PNhscpPX4GKmD3/cAlgOlRELihOZZX/F9tPoxMfGIaElbUAHMa6eGmMLq+XMC1xEyq d1I0C0Ixw2s9xFefBIFoSjLcuDtv+bc3qOEynzjunQWgv6/ZBUFJLTAABpLOhsd2r3/7 rJwolzWLQjqO2p9HWlo4OPB4clJ66NQExVzQeP2ZKnO/YTaZAD7U27BQibWpaSDe1QCv n/OCbftEF9hv7kiF35tGVQzUk5lgPH+ycgY0w0KjYZijVcPQsK/VeC+RIIIIpAcsyipr VEJlXgOHiM9Cz3CitsqfkioWxIDuK2VU65koEGQiDu4m5S+36oL35hnJ6lNp04+PeXBx 2mvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NrjhCO77; 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=pass (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 d5si22321534oij.139.2019.12.31.00.02.15; Tue, 31 Dec 2019 00:02:39 -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; dkim=pass header.i=@kernel.org header.s=default header.b=NrjhCO77; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725913AbfLaH6h (ORCPT + 99 others); Tue, 31 Dec 2019 02:58:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:60942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbfLaH6h (ORCPT ); Tue, 31 Dec 2019 02:58:37 -0500 Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 84A91206D9; Tue, 31 Dec 2019 07:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577779116; bh=fl8RoGLJ0Bkf3yCH1QLnzjV3P/tl6iQW6a0+tUPE/Mk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NrjhCO77dz/ZYeJPLhPRQi/8p/IolRtyGUUXMnbC3Ue1/q1iQ3X311qRgzcRO0qAK p0AntSL+ok3jBooT/+g2eQn1mpETDdJjC3pitQRlWXJ+7Y1YE3SV6D3KC1Sj8Df6Ax MSF9REoZjsKqmxuE+nzuAMwCGNVlzmle234SV1eg= Date: Tue, 31 Dec 2019 09:00:02 +0100 From: Maxime Ripard To: saravanan sekar Cc: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, heiko@sntech.de, sam@ravnborg.org, icenowy@aosc.io, laurent.pinchart@ideasonboard.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 v3 2/4] dt-bindings: regulator: add document bindings for mpq7920 Message-ID: <20191231080002.efq3yeomzktepegk@hendrix.lan> References: <20191222204507.32413-1-sravanhome@gmail.com> <20191222204507.32413-3-sravanhome@gmail.com> <20191223105028.amtzf62yjdpdsfrt@hendrix.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 26, 2019 at 11:23:36PM +0100, saravanan sekar wrote: > > > + mps,inc-off-time: > > > + description: | > > > + mutually exclusive to mps,fixed-off-time an array of 8, linearly increase > > > + output delay during power off sequence based on factor of time slot/interval > > > + for each regulator. > > > + allOf: > > > + - $ref: "/schemas/types.yaml#/definitions/uint8-array" > > > + - minimum: 0 > > > + - maximum: 15 > > > + - default: [ 0, 6, 0, 6, 7, 7, 7, 9 ] > > You should check the size of the array too, but if it's a property of > > the regulators, why not have it in the regulators node? > > the node regulators & sub-node of regulators are parsed (initdata) by > regulator framework during regulator registration, > so it would be redundant parsing all the node if mentioned under each > regulator node and this is optional. If you still not > convinced I will change. It's not really redundant, since the regulator framework will ignore whatever custom property you would put there, and your driver would ignore any generic property in those nodes. > > > + regulators: > > > + type: object > > > + description: > > > + list of regulators provided by this controller, must be named > > > + after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5] > > > + The valid names for regulators are > > > + buck1, buck2, buck3, buck4, ldortc, ldo2, ldo3, ldo4, ldo5 > > For the third times now, the names should be validated using > > propertyNames. > > Not sure did I understand your question correctly. > all the node name under regulators node are parsed by regulator > framework & validated against > name in regulator descriptors. Yes, and the point of the bindings in YAML is to make sure all the constraints we might have can be catched at compilation / validation time. The names of the nodes are a constraint, and propertyNames allows you to express it. Maxime