Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4751625pxu; Mon, 21 Dec 2020 23:04:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEBMaBvWr133S+z6aHujGoZJTAC2pjDffSKDYblc0e6RmQRGdowVtrPoYV3leJf0IFcXeW X-Received: by 2002:a05:6402:4c1:: with SMTP id n1mr5059470edw.66.1608620674403; Mon, 21 Dec 2020 23:04:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608620674; cv=none; d=google.com; s=arc-20160816; b=xGO5xcaikaXgtZCCQ+aOF5lCgo1J1gKNKk2L89Nd0rFhV0umUfCPdICW7VDoVX2bHp FTqBC1eudSJUY991yfOXLwrJHo52HJD1L9alf/9DGJYi2ngD1LCs8GeXiXUpJ9hpQzI8 3qphG8JCTHiqTwBieSoPIJcTnZBO4sFwMmKPQNz3GK/spvULfFiKkKpHpN30LT6lWWNv rALCGBvBotDg9UX4FTYJUGXMpNopIp5WndOZrWaGdiRzOEZ9xj6niyBfpP1aCCQoJpao vUXM0VAhK5T+qtBzSXXLzziN4kUnkzhetKmWw8oBT734JB5s+B7PxH7OIogmr4P2whcd r/sw== 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:dkim-signature; bh=CJaTf180NVZrY06QmkOkMgn9xUSzM/iyN/BXoxQEVAU=; b=R0Xz9aDugckyfzu8E3O+kGcHwUVp08dYDz/HnAIVeSLKHy6iV+HytKLdmM7RkYz5Me BRVlB4K5lY3ggKuI/BSN2Hh787yJFaIV7Yl6N4h2hlnf73HqETPlcKLqLlp5+txDO4En TK+tQyr/NUa1U1A2myJDZnBNKXabIp19SFp5JyRv5RIKytdbYgY4Mc9LOzwAC/KiXxQ5 MBwrayyIL1ZJfC/vfL2XWYA1MMxQnUzW6rTFTLFau4vBCtl9G9WCLynx/xdA20WDQ1F8 9VTOuZ9wxkrTDZv5nJ6w1AIFDGirYgP1L54pV43aE/i907313hkBiL+QrhoS9yUNGak5 BAKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pfp8CWZg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si11930618eda.110.2020.12.21.23.04.12; Mon, 21 Dec 2020 23:04:34 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pfp8CWZg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725953AbgLVHAx (ORCPT + 99 others); Tue, 22 Dec 2020 02:00:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbgLVHAx (ORCPT ); Tue, 22 Dec 2020 02:00:53 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9367C0613D3; Mon, 21 Dec 2020 23:00:12 -0800 (PST) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 822B49E6; Tue, 22 Dec 2020 08:00:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1608620409; bh=lYWlNG3hg5EQEMRIv3R8A9ky7wtOsmqZ+PHWm7X2Dq4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pfp8CWZg+6dOyHxREN3KNVBN7r6rKmyStNsacuZHCJLAI5P7xcR9s5TrQHfwJ7CBL 3KbXfs9uiI4JVcD/+sJSHpGbafw+Rc3KoOOs1B3LfpTRPxFUHIZdST11k86YeCG/MB 2UqjimU33MsYT1PN2ZVsgIsOCsnGih/LXnPWBJt4= Date: Tue, 22 Dec 2020 09:00:01 +0200 From: Laurent Pinchart To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul , Mark Brown , Greg Kroah-Hartman , Jassi Brar , dri-devel@lists.freedesktop.org, dmaengine@vger.kernel.org, alsa-devel@alsa-project.org, linux-usb@vger.kernel.org Subject: Re: [PATCH] dt-bindings: Drop redundant maxItems/items Message-ID: References: <20201222040645.1323611-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201222040645.1323611-1-robh@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thank you for the patch. On Mon, Dec 21, 2020 at 09:06:45PM -0700, Rob Herring wrote: > 'maxItems' equal to the 'items' list length is redundant. 'maxItems' is > preferred for a single entry while greater than 1 should have an 'items' > list. > > A meta-schema check for this is pending once these existing cases are > fixed. > > Cc: Laurent Pinchart > Cc: Vinod Koul > Cc: Mark Brown > Cc: Greg Kroah-Hartman > Cc: Jassi Brar > Cc: dri-devel@lists.freedesktop.org > Cc: dmaengine@vger.kernel.org > Cc: alsa-devel@alsa-project.org > Cc: linux-usb@vger.kernel.org > Signed-off-by: Rob Herring Reviewed-by: Laurent Pinchart > --- > .../devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml | 1 - > Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml | 1 - > Documentation/devicetree/bindings/mailbox/arm,mhu.yaml | 1 - > .../devicetree/bindings/sound/nvidia,tegra30-hda.yaml | 2 -- > Documentation/devicetree/bindings/usb/renesas,usb-xhci.yaml | 1 - > Documentation/devicetree/bindings/usb/renesas,usbhs.yaml | 3 --- > 6 files changed, 9 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml > index 7b9d468c3e52..403d57977ee7 100644 > --- a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml > +++ b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml > @@ -98,7 +98,6 @@ properties: > maxItems: 1 > > dmas: > - maxItems: 4 > items: > - description: Video layer, plane 0 (RGB or luma) > - description: Video layer, plane 1 (U/V or U) > diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml > index b548e4723936..c07eb6f2fc8d 100644 > --- a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml > +++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml > @@ -73,7 +73,6 @@ properties: > maxItems: 1 > > clock-names: > - maxItems: 1 > items: > - const: fck > > diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml > index d43791a2dde7..d07eb00b97c8 100644 > --- a/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml > +++ b/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml > @@ -61,7 +61,6 @@ properties: > - description: low-priority non-secure > - description: high-priority non-secure > - description: Secure > - maxItems: 3 > > clocks: > maxItems: 1 > diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml > index e543a6123792..b55775e21de6 100644 > --- a/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml > +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml > @@ -44,7 +44,6 @@ properties: > maxItems: 3 > > clock-names: > - maxItems: 3 > items: > - const: hda > - const: hda2hdmi > @@ -54,7 +53,6 @@ properties: > maxItems: 3 > > reset-names: > - maxItems: 3 > items: > - const: hda > - const: hda2hdmi > diff --git a/Documentation/devicetree/bindings/usb/renesas,usb-xhci.yaml b/Documentation/devicetree/bindings/usb/renesas,usb-xhci.yaml > index 0f078bd0a3e5..22603256ddf8 100644 > --- a/Documentation/devicetree/bindings/usb/renesas,usb-xhci.yaml > +++ b/Documentation/devicetree/bindings/usb/renesas,usb-xhci.yaml > @@ -51,7 +51,6 @@ properties: > maxItems: 1 > > phy-names: > - maxItems: 1 > items: > - const: usb > > diff --git a/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml b/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml > index 737c1f47b7de..54c361d4a7af 100644 > --- a/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml > +++ b/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml > @@ -74,11 +74,8 @@ properties: > > phys: > maxItems: 1 > - items: > - - description: phandle + phy specifier pair. > > phy-names: > - maxItems: 1 > items: > - const: usb > -- Regards, Laurent Pinchart