Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp244846pxu; Tue, 5 Jan 2021 09:42:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8xixhCNK8lA0ddISLgrP9DEHoQbGT2nlCjXTZhwP4qyZwnZ+gz0yiVb24Fk+OZn37ta62 X-Received: by 2002:a50:8e19:: with SMTP id 25mr851924edw.263.1609868529712; Tue, 05 Jan 2021 09:42:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609868529; cv=none; d=google.com; s=arc-20160816; b=C299QkEorDv0ajJ9o1i6qn1WTKOSfD0pTlbtYY68Z+FvUfOjfRoAhMJouKXS9Gw2O+ iMI2mpV3gFch+ATGfS5kwDf6kHe0PfUUQtzKp4iVH9OoBReFtvutJxxnweWsrrmM4u64 p5+uwHBGPIH3/eHJFux2krRhsJUX+WEDsm+w4sFnWUlXth96OLAsOjxgYBpr4rwjRonW poO+Xd8+ZjA3/TG5FF1Vh64j/kuxO09tgqD99Qnu62N7aunTX41j08aaw4tVc1Oocl8N 5D0RcubEIARvslg0CnIhUhzHXeAw0vZ/Tq+ifSw6ltgasz4CoVYm2A10Ym4MfgOycKFQ 4nPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8QCUqXr2bzGc5ddkxZAj8Vxc5oTvsGwo9juSuaK/DNc=; b=dheC7byXw/MvSTJPTGg9trmLe9gJ8fPlI206ohbPKJOYmTb+zRG+sRW3MYLFP1UU80 M/Hcmj5sYk5B+HV5h45/p5DnDO8azFYAkn2OhL9sUQuMUwvNI3ME6ZCNEhkZBmhcgUEL HRTnsAWQX+uZFUfX0QlA+MXEogN+jHL9ZKFf2C4jXuA6YwqNBJgfnpYMP5IkxJ/qpvSA 157OU2uBEp4TplpUWkBnIVkMQg2/OKH/fooayUsu/pa+xzuIH3e3JPV/mnzF7eCkG0E5 Ua6MZ5opvMSpdDrOcPKJ3E+rSK1abp5o9Ks8zFdXrRu6XmoV9bpYolYRpUiaATzOjTn6 ZD6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id d9si172346eds.129.2021.01.05.09.41.46; Tue, 05 Jan 2021 09:42:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730612AbhAERk5 (ORCPT + 99 others); Tue, 5 Jan 2021 12:40:57 -0500 Received: from mail-io1-f47.google.com ([209.85.166.47]:38559 "EHLO mail-io1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729802AbhAERk4 (ORCPT ); Tue, 5 Jan 2021 12:40:56 -0500 Received: by mail-io1-f47.google.com with SMTP id y5so121844iow.5; Tue, 05 Jan 2021 09:40:39 -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; bh=8QCUqXr2bzGc5ddkxZAj8Vxc5oTvsGwo9juSuaK/DNc=; b=dpiv0CpJakEgMYIkHp0lhaNf0d461HGJWH+aCceAtiK06rRDsTcTMmlKY49hvYeBLh 7Ty71HBKHYeiO7tR4vDt/nbyfS3So6W770LrQdh92+7tJttY7v6bNEPz9K6DyPt4FMLd PIt1LLKtkEtRi0UIF/SrTqyc8+lLr/NyjHzBXZIkwKKYOWTnsle1FsD/3tdAJzYQHLJ8 5Wa4nrxHRmF4wbzaj7iiS8vhXcoFeE1qz694yyOGkLCUx5hT7HoR59vm5/MhqoPl6WyI nwHivuhmthkX8gk5c3+LEXbUBtsKZCYBaNRO66SiQA1AkHaiy4ksJgdTlgLtAmm1z8Vq VM5g== X-Gm-Message-State: AOAM5321qcVRq9N6s7VVvE3mTC6HsP7wLE0n3Y4SZ+nWozJ+Mbu4gJm/ A2rP/pRkkVNdQnfCttBO7A== X-Received: by 2002:a02:7692:: with SMTP id z140mr666018jab.21.1609868414264; Tue, 05 Jan 2021 09:40:14 -0800 (PST) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id y15sm121208ili.65.2021.01.05.09.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 09:40:13 -0800 (PST) Received: (nullmailer pid 426116 invoked by uid 1000); Tue, 05 Jan 2021 17:40:08 -0000 Date: Tue, 5 Jan 2021 10:40:08 -0700 From: Rob Herring To: Greg Kroah-Hartman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Axboe , Stephen Boyd , Thierry Reding , MyungJoo Ham , Chanwoo Choi , Linus Walleij , Bartosz Golaszewski , 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 , linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-pm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH] dt-bindings: Add missing array size constraints Message-ID: <20210105174008.GB1875909@robh.at.kernel.org> References: <20210104230253.2805217-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 05, 2021 at 02:04:14PM +0100, Greg Kroah-Hartman wrote: > On Mon, Jan 04, 2021 at 04:02:53PM -0700, 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. > > > > Cc: Jens Axboe > > Cc: Stephen Boyd > > Cc: Thierry Reding > > Cc: MyungJoo Ham > > Cc: Chanwoo Choi > > Cc: Linus Walleij > > Cc: Bartosz Golaszewski > > Cc: Jonathan Cameron > > Cc: Dmitry Torokhov > > Cc: Thomas Gleixner > > Cc: Marc Zyngier > > Cc: Mauro Carvalho Chehab > > Cc: Chen-Yu Tsai > > Cc: Ulf Hansson > > Cc: "David S. Miller" > > Cc: Jakub Kicinski > > Cc: Sebastian Reichel > > Cc: Ohad Ben-Cohen > > Cc: Bjorn Andersson > > Cc: Greg Kroah-Hartman > > Signed-off-by: Rob Herring > > > > > diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml > > index 247ef00381ea..f76b25f7fc7a 100644 > > --- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml > > +++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml > > @@ -83,6 +83,7 @@ properties: > > Phandle of a companion. > > > > phys: > > + maxItems: 1 > > description: PHY specifier for the USB PHY > > > > phy-names: > > diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Documentation/devicetree/bindings/usb/generic-ohci.yaml > > index 2178bcc401bc..8e2bd61f2075 100644 > > --- a/Documentation/devicetree/bindings/usb/generic-ohci.yaml > > +++ b/Documentation/devicetree/bindings/usb/generic-ohci.yaml > > @@ -71,6 +71,7 @@ properties: > > Overrides the detected port count > > > > phys: > > + maxItems: 1 > > description: PHY specifier for the USB PHY > > > > phy-names: > > diff --git a/Documentation/devicetree/bindings/usb/ingenic,musb.yaml b/Documentation/devicetree/bindings/usb/ingenic,musb.yaml > > index 678396eeeb78..f506225a4d57 100644 > > --- a/Documentation/devicetree/bindings/usb/ingenic,musb.yaml > > +++ b/Documentation/devicetree/bindings/usb/ingenic,musb.yaml > > @@ -40,7 +40,7 @@ properties: > > - const: mc > > > > phys: > > - description: PHY specifier for the USB PHY > > + maxItems: 1 > > > > usb-role-switch: > > type: boolean > > Any reason you dropped the description for this entry, but not the other > ones above? No, I should have dropped those too. I dropped cases of genericish descriptions on common properties. There's nothing specific to this binding here really. > > > diff --git a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > index 388245b91a55..adce36e48bc9 100644 > > --- a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > +++ b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > @@ -15,13 +15,14 @@ properties: > > - const: ti,j721e-usb > > > > reg: > > - description: module registers > > + maxItems: 1 > > > > power-domains: > > description: > > PM domain provider node and an args specifier containing > > the USB device id value. See, > > Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt > > + maxItems: 1 > > > > clocks: > > description: Clock phandles to usb2_refclk and lpm_clk > > Same here, why remove the description? Really, the question is why keep 'description' on power-domains. Perhaps there's a little value in the reference to sci-pm-domain.txt, so I left it. Rob