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=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 35DD7C4332B for ; Wed, 6 Jan 2021 07:15:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 03B4723102 for ; Wed, 6 Jan 2021 07:15:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726231AbhAFHPH (ORCPT ); Wed, 6 Jan 2021 02:15:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbhAFHPG (ORCPT ); Wed, 6 Jan 2021 02:15:06 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA5B4C06135C for ; Tue, 5 Jan 2021 23:13:39 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id jx16so3701747ejb.10 for ; Tue, 05 Jan 2021 23:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rT4Dc8swlK31/4OXAMfRD8Dy9QIvv8YpGOiKzBJjVS0=; b=kW/FIQ9UMgiQ4U+TkdADVoEYk5gZPV3uhWmFEaBISm60k6X7HKncaLJMcm7Te12ixW DmozTsbCxinSR4kw60jnPkTRpJcI2yoqWEX3PsYD1Gobe1MgtRCRsAYMvDuT6a2OmRZe JA5aIaNzC2Qz1QI2pjKK7hj+qAEnukuAv07b9W7M8pBoGmUjZmXbHaL5522RR1fvjBcC aUOByaCkN/CFtegf2L0lfAhcsuMiZ+e/Z0kGD0hJrq1CBcozlTfyZi2pX2qyg5tLtp5K qfoj7U94CqKy1yfDXJToNFtVkn5zEBI7/9XBDJd/bwiyCn1gMrTQ4lsyGmJDatnR3P5D m6RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rT4Dc8swlK31/4OXAMfRD8Dy9QIvv8YpGOiKzBJjVS0=; b=moE2tGgklH57FVnnXAlY3mbgkEsvIjsOWJ13DiKu+bbj8fY/8+efzBSULptbBFrpNn +T42562qMjYMULauRquX4iB8X1Rv+bTexKBimFQFVywHTUdavVA3birXyCejmM8TRwmT tfYdBBru9JL250cQvHGetfxAGQH9XFXJr97YsNj4OGUUPekVtVE3Xu76/YIBUWXUZVZU gFvSaoxBY4eM8GdvKAAsr1b4u6xQeaQriKjwSt0iWDRzSwQDOM8b1PwS+Z4Faw1maVYT i9ud2H5z8WBPZQbOgeniFk9wESYVE3PIJs81H65IpncokCtt4iQgDsQnDsd3dtSsw+Yq ef6w== X-Gm-Message-State: AOAM532Nx2nF5GKyqjJPZ1dnC7x1dzp0V28goxy3Ed47PrJRKhKDOKkS fw3y/XYsY845z4STeaqX+jv7EIO6kCmiV1ZSIPSYVA== X-Google-Smtp-Source: ABdhPJz7NZsjb4UgOGiErAdqwk42sh/yXenAjVlhxnzAVaOFNfM5U6i5Q3E7GI/VvU/IA448wOjGCY/95IeDdC3rxz4= X-Received: by 2002:a17:906:8594:: with SMTP id v20mr1986708ejx.470.1609917218321; Tue, 05 Jan 2021 23:13:38 -0800 (PST) MIME-Version: 1.0 References: <20210104230253.2805217-1-robh@kernel.org> In-Reply-To: <20210104230253.2805217-1-robh@kernel.org> From: Bartosz Golaszewski Date: Wed, 6 Jan 2021 08:13:27 +0100 Message-ID: Subject: Re: [PATCH] dt-bindings: Add missing array size constraints To: Rob Herring Cc: linux-devicetree , LKML , Jens Axboe , Stephen Boyd , Thierry Reding , MyungJoo Ham , Chanwoo Choi , Linus Walleij , Jonathan Cameron , Dmitry Torokhov , Thomas Gleixner , Marc Zyngier , Mauro Carvalho Chehab , Chen-Yu Tsai , Ulf Hansson , "David S. Miller" , Jakub Kicinski , Sebastian Reichel , Ohad Ben-Cohen , Bjorn Andersson , Greg Kroah-Hartman , arm-soc , linux-ide@vger.kernel.org, linux-clk , linux-drm , linux-gpio , linux-iio , Linux Input , linux-media , linux-mmc@vger.kernel.org, netdev , linux-pm , linux-remoteproc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Linux-ALSA , linux-spi@vger.kernel.org, USB list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, Jan 5, 2021 at 12:03 AM Rob Herring wrote: > > DT properties which can have multiple entries need to specify what the > entries are and define how many entries there can be. In the case of > only a single entry, just 'maxItems: 1' is sufficient. > > Add the missing entry constraints. These were found with a modified > meta-schema. Unfortunately, there are a few cases where the size > constraints are not defined such as common bindings, so the meta-schema > can't be part of the normal checks. > [snip!] > .../bindings/gpio/gpio-pca95xx.yaml | 1 + [snip!] > diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > index f5ee23c2df60..57cdcfd4ff3c 100644 > --- a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > +++ b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml > @@ -81,6 +81,7 @@ properties: > const: 2 > > reset-gpios: > + maxItems: 1 > description: > GPIO specification for the RESET input. This is an active low signal to > the PCA953x. Not valid for Maxim MAX732x devices. Acked-by: Bartosz Golaszewski