From patchwork Tue Dec 17 05:31:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 13911130 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A863E7717F for ; Tue, 17 Dec 2024 05:32:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8067110E4DC; Tue, 17 Dec 2024 05:32:32 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="c9MuJnbw"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7C2F410E18F for ; Tue, 17 Dec 2024 05:32:29 +0000 (UTC) Received: from [127.0.1.1] (91-157-155-49.elisa-laajakaista.fi [91.157.155.49]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0DFCB75A; Tue, 17 Dec 2024 06:31:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1734413511; bh=Hus/T97HgEgFTqyUE8sStdGYE5byY6Tb6X0trmbmS5I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=c9MuJnbwp1vXW17BJb5iosvmbremHmGEBEo9Jca6wzkuvv30jHrm2FDljhgr9IBkq 9iI7ijjaz2Nos+ED1RM+ZTtB7XwA/sXgwod4q+DwbqLaL+2kT7BKt0bodvyBmx5HoV 4XkchFCkkuxdTVgzNGqaHVWSC1k3ztlCqzThU5pQ= From: Tomi Valkeinen Date: Tue, 17 Dec 2024 07:31:37 +0200 Subject: [PATCH v5 3/7] dt-bindings: display: renesas,du: Add missing constraints MIME-Version: 1.0 Message-Id: <20241217-rcar-gh-dsi-v5-3-e77421093c05@ideasonboard.com> References: <20241217-rcar-gh-dsi-v5-0-e77421093c05@ideasonboard.com> In-Reply-To: <20241217-rcar-gh-dsi-v5-0-e77421093c05@ideasonboard.com> To: Laurent Pinchart , Kieran Bingham , Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Michael Turquette , Stephen Boyd , LUU HOAI , Jagan Teki , Sam Ravnborg , Biju Das Cc: Laurent Pinchart , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart , linux-clk@vger.kernel.org, Tomi Valkeinen X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2444; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=0F0zzA1pJtSNqVdCbuXR3kSh++mHWPjwSztFEJXr+DI=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBnYQzj7yBoF9yowGgXRC6lpUDVWJUcpA/Z5V2zW Q5kDQcM6CCJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCZ2EM4wAKCRD6PaqMvJYe 9VvgD/9RsRP9qC1mJi4au24oLpqT+W9zYIPdCrn30xOMsPahjO9CHK86aThFpcYh6S2Gnt/fope kEzLP8AJAf0FwZFtgKOkqpKcKdzQwZ2j/P2WFBAMAi3CiHMf4LquKRhWGXY+LEHwhZvYg1gpNE4 yn7kxGuXUQaI1wkzrstsuR9uW85kryLZ6G50Roewgj2mt10498IoFqdqAHu2PDkkFLFI/t6tOXn ubhqUYXsv46KDZh+O3Hs/ANbr1BoP3nrnsMq3I7aHwxiLCY2F0HZbS+q5XL88IB4fP4OqGRhiQg DcdAve9sPmiHpYgqeRwq3/caGzTHoV/E7M5yrDOqymS8hBRVl0lrmGI35+h1eOKVfCXDUm+Nu16 r3lYtjwBRjjrCEwlbr1SP9G2g+WOd5671zPRNJdlYrLTKUSmAE0c2qtNFpSOoKgIvf7tKQXwCCD O7pSZbIjDF5tBohJh5AyByxtHna/Ek0YiVj92ma7M3a5MbYivGnsYwq7M4OPF7aNSWiXedagWh1 l5H7EzcLxi5PKJo0VA7x6OSdbngy/j4mPDFLMdtEBz1rnlvZFYy85WdbBUb/hw22L1kUqXhoR0z cv5ULkentJO0nwMqjMqt417URhOi9SUrkJ4BmGvoIlWrwUPwLFhFUx4yNkaJPzeVxeJpFCkAsLi p45GaMl1J61QdLw== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Tomi Valkeinen The binding is missing maxItems for all renesas,cmms and renesas,vsps properties. As the amount of cmms or vsps is always a fixed amount, set the maxItems to match the minItems. Also add the minItems and maxItems to the top level properties. Signed-off-by: Tomi Valkeinen Reviewed-by: Krzysztof Kozlowski Reviewed-by: Laurent Pinchart --- Documentation/devicetree/bindings/display/renesas,du.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/renesas,du.yaml b/Documentation/devicetree/bindings/display/renesas,du.yaml index c5b9e6812bce..ef4568118e94 100644 --- a/Documentation/devicetree/bindings/display/renesas,du.yaml +++ b/Documentation/devicetree/bindings/display/renesas,du.yaml @@ -77,6 +77,8 @@ properties: renesas,cmms: $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 1 + maxItems: 4 items: maxItems: 1 description: @@ -85,6 +87,8 @@ properties: renesas,vsps: $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 1 + maxItems: 4 items: items: - description: phandle to VSP instance that serves the DU channel @@ -489,9 +493,11 @@ allOf: renesas,cmms: minItems: 4 + maxItems: 4 renesas,vsps: minItems: 4 + maxItems: 4 required: - clock-names @@ -558,9 +564,11 @@ allOf: renesas,cmms: minItems: 3 + maxItems: 3 renesas,vsps: minItems: 3 + maxItems: 3 required: - clock-names @@ -627,9 +635,11 @@ allOf: renesas,cmms: minItems: 3 + maxItems: 3 renesas,vsps: minItems: 3 + maxItems: 3 required: - clock-names @@ -683,7 +693,7 @@ allOf: - port@1 renesas,vsps: - minItems: 1 + maxItems: 1 required: - clock-names @@ -746,9 +756,11 @@ allOf: renesas,cmms: minItems: 2 + maxItems: 2 renesas,vsps: minItems: 2 + maxItems: 2 required: - clock-names @@ -799,6 +811,7 @@ allOf: renesas,vsps: minItems: 2 + maxItems: 2 required: - clock-names