Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5030337ybl; Wed, 22 Jan 2020 09:01:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzzScRxATvcKZ/7AFdzDFk50CHdxEnN5BAXuQ+uStcX0habDYD7oPO4UfImoHweNkSV1TX4 X-Received: by 2002:aca:b1d5:: with SMTP id a204mr7356571oif.82.1579712505624; Wed, 22 Jan 2020 09:01:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579712505; cv=none; d=google.com; s=arc-20160816; b=ENo/zmXgLENX+RJ7eLuM3SlcfA8N4IfYilx8l/wXnUaLozAJ4BWDpOuST8LO0uboD/ gwweiO+o9Dxp9LKkYBS1F59gQiM/Bz2pkPE6bW4zAxTnraagZgFWxTclR2hfFXaUflMl a62m/KPJeDB1O6mhWZtIygeEo6hFaQZbPlP+MDIwUtoYQVK5VBX6s1k3cfeWy5rN+YKL oTiAN0t9uNvA+G30mCmZXeGTYLt0WfDkb2kAYT2s2K4k6xO+EcT0zVDn6C3rLkXbVLNe GmYXQjxVZnzKGyjob8r8fNkAqh+j/msF93CZ9xqZouqN+pje7esDLg0JzLsgozeYdYib UavQ== 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=mou9J8YjfkvnsPaT9Al7wgNVF7rWGQkRBCyvGjZr+Wo=; b=leaUwb37Jy3VkBSYoXzjise2iHxzA7OCihLNVbMR5o3HG+M0bsGYV4NbtOsv65VowB OjnhqAq6PiFMfh0fIDZxteLWeVlzXIFiZVp6ZpAXnkI5fSrogC69rTM43luXz7XkhFWr aalWiICMhKciE+bUvSI1pu82KjtKVSHVhlveZ3+falBMVQoa4tS9bKJv/MDfQPV68QYX KXeIf4abRMRPPZ6q4dl4XO2wU4tjG2lCNPRQoDOHjsS88ypdQ+T+5kgY/lpAZfYbVCfT Ahenwec98q9n5t5B6+OnyLBckYmG5t2qpUG7bkqOsxb18uhSDLNDa6LmrEZOgO+1tYXH LfZQ== 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 n7si24032901otk.277.2020.01.22.09.01.32; Wed, 22 Jan 2020 09:01:45 -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 S1729045AbgAVQ7S (ORCPT + 99 others); Wed, 22 Jan 2020 11:59:18 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:45296 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbgAVQ7R (ORCPT ); Wed, 22 Jan 2020 11:59:17 -0500 Received: by mail-oi1-f194.google.com with SMTP id n16so6690726oie.12; Wed, 22 Jan 2020 08:59:17 -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=mou9J8YjfkvnsPaT9Al7wgNVF7rWGQkRBCyvGjZr+Wo=; b=ThOaV9wZzW/jb23FnbhBqmyl4KgC78rflMRx1XnDzGo8kwjJkznfeimugjv7BBOo2k SZF6MM7r/Fzc31UWUSxJ1E0M7Bj9am/i+ttQkQp7mqztC7uliHwTIv/KsYndnjODyMTW RBDi7ppRj1he5giOhTQbzf5VQVJPpOenZA7bdIsI+Jw81eeSpKJZaTh9zcSPcaK1Pw0a V+MiQ8qBTnDTcD92iZqaP9QUR2AIFv3BVrtDSxKsV7TcFcXmiEhJN0u0dLL4Js7/+bYK AEq4OwOmnueM0xURX/F3A09CYeRqsk2NOaCFZLifMRnp4ljmKhgmN/sLowuvhoxlewKp oaLQ== X-Gm-Message-State: APjAAAUBAXakKCMQhQw//SrZ7VJ3s8AODUjCK1sBx8KHLGKSqoDmyQVd d9qElYJDVm1vQl7S21QeXg== X-Received: by 2002:aca:5083:: with SMTP id e125mr7643124oib.96.1579712355982; Wed, 22 Jan 2020 08:59:15 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id e21sm13187177oib.16.2020.01.22.08.59.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 08:59:15 -0800 (PST) Received: (nullmailer pid 6651 invoked by uid 1000); Wed, 22 Jan 2020 16:59:14 -0000 Date: Wed, 22 Jan 2020 10:59:14 -0600 From: Rob Herring To: Saravanan Sekar Cc: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, mripard@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7] dt-bindings: regulator: add document bindings for mpq7920 Message-ID: <20200122165914.GA3900@bogus> References: <20200121192405.25382-1-sravanhome@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200121192405.25382-1-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 Tue, 21 Jan 2020 20:24:05 +0100, Saravanan Sekar wrote: > Add device tree binding information for mpq7920 regulator driver. > Example bindings for mpq7920 are added. > > Signed-off-by: Saravanan Sekar > --- > > Notes: > Changes on v7 : > - added regualtors child-node under patternProperties, added required > - mps,buck-ovp-disable is not common property, regulator subsystem provides > only over current protection support. > > .../bindings/regulator/mps,mpq7920.yaml | 118 ++++++++++++++++++ > 1 file changed, 118 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml > My bot found errors running 'make dt_binding_check' on your patch: warning: no schema found in file: Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: ignoring, error in schema: properties: regulators: properties: mps,switch-freq Documentation/devicetree/bindings/display/simple-framebuffer.example.dts:21.16-37.11: Warning (chosen_node_is_root): /example-0/chosen: chosen node must be at root node /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:properties:mps,switch-freq: {'$ref': '/schemas/types.yaml#/definitions/uint8', 'enum': [0, 1, 2, 3], 'default': 2, 'description': 'switching frequency must be one of following corresponding value\n1.1MHz, 1.65MHz, 2.2MHz, 2.75MHz\n'} is not valid under any of the given schemas (Possible causes of the failure): /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:properties:mps,switch-freq: 'not' is a required property /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:properties:mps,switch-freq:enum:0: 0 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:properties:mps,switch-freq:enum:1: 1 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:properties:mps,switch-freq:enum:2: 2 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:properties:mps,switch-freq:enum:3: 3 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-softstart: {'$ref': '/schemas/types.yaml#/definitions/uint8', 'enum': [0, 1, 2, 3], 'description': 'defines the soft start time of this buck, must be one of the following\ncorresponding values 150us, 300us, 610us, 920us\n'} is not valid under any of the given schemas (Possible causes of the failure): /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-softstart: 'not' is a required property /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-softstart:enum:0: 0 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-softstart:enum:1: 1 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-softstart:enum:2: 2 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-softstart:enum:3: 3 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-phase-delay: {'$ref': '/schemas/types.yaml#/definitions/uint8', 'enum': [0, 1, 2, 3], 'description': 'defines the phase delay of this buck, must be one of the following\ncorresponding values 0deg, 90deg, 180deg, 270deg\n'} is not valid under any of the given schemas (Possible causes of the failure): /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-phase-delay: 'not' is a required property /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-phase-delay:enum:0: 0 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-phase-delay:enum:1: 1 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-phase-delay:enum:2: 2 is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml: properties:regulators:patternProperties:^buck[1-4]$:properties:mps,buck-phase-delay:enum:3: 3 is not of type 'string' Documentation/devicetree/bindings/Makefile:12: recipe for target 'Documentation/devicetree/bindings/regulator/mps,mpq7920.example.dts' failed make[1]: *** [Documentation/devicetree/bindings/regulator/mps,mpq7920.example.dts] Error 1 Makefile:1263: recipe for target 'dt_binding_check' failed make: *** [dt_binding_check] Error 2 See https://patchwork.ozlabs.org/patch/1226717 Please check and re-submit. The errors are too helpful here. The problem appears to be that '$ref' has to be under an 'allOf' if there are other constraints. Rob