From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B153C072B5 for ; Fri, 24 May 2019 11:06:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2885C217F9 for ; Fri, 24 May 2019 11:06:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390784AbfEXLG6 (ORCPT ); Fri, 24 May 2019 07:06:58 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:53947 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390578AbfEXLG5 (ORCPT ); Fri, 24 May 2019 07:06:57 -0400 Received: from localhost (aaubervilliers-681-1-27-134.w90-88.abo.wanadoo.fr [90.88.147.134]) (Authenticated sender: maxime.ripard@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 4D254200012; Fri, 24 May 2019 11:06:50 +0000 (UTC) Date: Fri, 24 May 2019 13:06:49 +0200 From: Maxime Ripard To: Rob Herring Cc: Mark Rutland , Frank Rowand , "David S . Miller" , Chen-Yu Tsai , Maxime Coquelin , Alexandre Torgue , netdev , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Chevallier , Antoine =?utf-8?Q?T=C3=A9nart?= Subject: Re: [PATCH 2/8] dt-bindings: net: Add a YAML schemas for the generic PHY options Message-ID: <20190524110649.56o7g7xkgdb5loyk@flea> References: <74d98cc3c744d53710c841381efd41cf5f15e656.1558605170.git-series.maxime.ripard@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Rob, On Thu, May 23, 2019 at 09:44:51AM -0500, Rob Herring wrote: > > + reg: > > + maxItems: 1 > > + minimum: 0 > > + maximum: 31 > > min/max need to be under 'items'. I don't think these would ever be > valid if the type is an array. > > I've modified the meta-schema to catch this. Have you pushed it already? Using: reg: maxItems: 1 items: minimum: 0 maximum: 31 is creating this error when running dtbs_check ethernet-phy.yaml: properties:reg: {'maxItems': 1, 'items': {'minimum': 0, 'maximum': 31}, 'description': 'The ID number for the PHY.'} is not valid under any of the given schemas Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com