From patchwork Fri Aug 11 10:47:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13350571 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E9962C001DB for ; Fri, 11 Aug 2023 10:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tChych5oIFO+oOM/lUp/Z88Vqb43PHD2cpi4LDjeGJ4=; b=YvFrADVov3iQUu C+2EE2wWIYDxnqVE69mXn93PRuQA1njiq9s79lPtYRl1KH2HlnJ0CbgK9musZwM6rrA6JV9hZOZQ1 pKSWydJCTaHPHxlBh/rwPe4hprPu1L2EX6uPLkh067HobcX53jZ25UILC1eTtmYJ2Mg2l4mU0Juqi rgNFKrRVjdx3jWCFGMa2mXNRg5q4hy/khWS54diroGXQwgadouWZQPfkXej+6WXKaBBe2XKccN5bx w96Wy6MFsIJEqoqNOYg4CnWPpr6rTSLjlpHspBuk4QQN2Ev9d4oOCsTKzJ23WiI5aKu6Wud3+/S1F gHLQYTSmrZ11N9NsxGAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUPgk-00AKAW-12; Fri, 11 Aug 2023 10:48:14 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUPgh-00AK71-0h for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2023 10:48:12 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37BAlfU8088887; Fri, 11 Aug 2023 05:47:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691750861; bh=1J1aJsRAXsLEDQPqmI72aowBUBRI9NH3702tUKywtXg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mQn38KzWQV206KPfucGd8C4SXhs1xb5OwBinfI/AQgnJWINEDnpdPqvsjkatwCg4/ rRjCTNL6sTWLQ3+A3BQiONm06PG2yZ8z22kL7Gg5jaLg+St1wjfEJnzuYRQKjOMCxb JkkaB7JXnXl18Q0PHk9KBrAbFla6MOwXA7gjpuhU= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37BAlfhB041854 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Aug 2023 05:47:41 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 11 Aug 2023 05:47:41 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 11 Aug 2023 05:47:41 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37BAlesn008170; Fri, 11 Aug 2023 05:47:41 -0500 From: Jai Luthra To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Tomi Valkeinen CC: , , , , Laurent Pinchart , Mauro Carvalho Chehab , Maxime Ripard , , Benoit Parrot , Vaishnav Achath , Vignesh Raghavendra , , , , , Martyn Welch , Julien Massot Subject: [PATCH v9 01/13] media: dt-bindings: Make sure items in data-lanes are unique Date: Fri, 11 Aug 2023 16:17:23 +0530 Message-ID: <20230811-upstream_csi-v9-1-8943f7a68a81@ti.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811-upstream_csi-v9-0-8943f7a68a81@ti.com> References: <20230811-upstream_csi-v9-0-8943f7a68a81@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1332; i=j-luthra@ti.com; h=from:subject:message-id; bh=WA7zGtIdlvtprz5AyQp96UlSV5/LK+FjhhkDxdUUFaY=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBk1g7znUXcD9mZQ3v6I5B8Fl416WfqtaywB+S86 oHZeeMXkb+JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZNYO8wAKCRBD3pH5JJpx RTY6EAClKOOm8DH9uuwJonuvJ7vJvY/hbLvSaT2BCeZXOv2JjYdiVWVEN9itu5FauDSBykBuBts x/YGG/iULD7xhMj0dOZukQAlPDAozrhCRU27aet/N+Op7WWa3311/mhuH1CxgNMJilHedYr5D4w Xy0z9tvAfLUwkk5OwhWx9fKG8s1rk61rCySZ4a2kn5vHH6p5muWcxdgwrfRxnP/cyHJx424sYRC jltpQMmb+fZhTZ2FfuifZIbOZGx7+bGsehEw+F8pcVziMzse+EyjDol81miHVxDsvWF2zsByFsu e6KNVmM3yChBiMSv6UBhdGpgvruS+JDc120gpuFcgmuZT3pVtKYRdRFMWb6KSMiKm91ty9C/Eyz MCn1NL/+aIAPuzHy7GTx0ZDmaOn8DibiBeHelys+Gm9EBJWPoRhXE5+MALfhXU6Ab0iwc6rcNhn 8DSS0tCe2xEPxQJqt49oMINhBh+GfCVjpLrIMsjkuTah3xZHLWHzV3DQyCghAVAr2WevgwKouzC FqPRp012BjN0Eh36NNEXjDoYdfwUVX2dchXpeY7/R/zOgZ/JekYlSocLqg6YcxIbQWuz3jPdyuN pe5Fvc+I3ZCqekjm/LevxZC0d06Mzgz9FUyWgGZd/m7Ihp1ep15QOgnoqz18jm3GXxTnObFzS0+ umezmD/SGCnopDQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230811_034811_351177_5E828033 X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Pratyush Yadav The data-lanes property maps the logical lane numbers to the physical lane numbers. The position of an entry is the logical lane number and its value is the physical lane number. Since one physical lane can only map to one logical lane, no number in the list should repeat. Add the uniqueItems constraint on the property to enforce this. Signed-off-by: Pratyush Yadav Reviewed-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Maxime Ripard Acked-by: Rob Herring Signed-off-by: Jai Luthra --- Documentation/devicetree/bindings/media/video-interfaces.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/video-interfaces.yaml b/Documentation/devicetree/bindings/media/video-interfaces.yaml index a211d49dc2ac..26e3e7d7c67b 100644 --- a/Documentation/devicetree/bindings/media/video-interfaces.yaml +++ b/Documentation/devicetree/bindings/media/video-interfaces.yaml @@ -160,6 +160,7 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 1 maxItems: 8 + uniqueItems: true items: # Assume up to 9 physical lane indices maximum: 8