From patchwork Mon Jul 31 08:29:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13334013 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 C3B7FC001DE for ; Mon, 31 Jul 2023 08:30:14 +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=QqX5CVjBB2VtkO3EQRCzn64CVv6wMEkaRfAUc/McESE=; b=EGg6Sg1ynFLpwV Yz83YlYeEXt9Wji2oM8gblzgpRHCyc3xDK7/DfqSbqdoENYTp35WoVxzP7GDAJ5j8WIzrXPZ6xZs9 Of9IjfCuGOgC6D9owH07nQ74FWS/ytOYwG+cW2WRfuO9ycPngTAKPNdrY3r31pNqJ9Gljvj3gSb4L VAJybh7Q3v1rE4DssSdI2FvxqH2z76OtjVByae/uS9w7PJ4zLDGnibcHkEdT13RLubaQMHG/ERkh2 cOafrhMYBGXh9scISCcZPuS09IGSMXG3tjc3HRmcfDXY+1KyBwJhhzie6mpWahWFs7C4GmQXocZc1 Qw84zwrQRHYp2cWFAbNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQOHm-00EX8G-2c; Mon, 31 Jul 2023 08:29:50 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQOHg-00EX1J-13 for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2023 08:29:48 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36V8TZGJ054905; Mon, 31 Jul 2023 03:29:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690792175; bh=Cnn6hunqmq7f5Jr25+l7OAAvN0DPDyacQ6yS43vdOIA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZUy90lNtqe34ErMbzIE7UJxD9xDFffqbjZSz3Pw2kJiaGWPdnfAv/aAQufmBEZgq/ /BVjv3d/8mGRkYcc82WZ07ryZ63d0DcePco5Udvke6EH2oqfA8TFePGQaKu79QvRjG VPL8ZRlFYkwj66xrxCVvoFtPgHI5r5pLr5ecG5FY= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36V8TZEm087078 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 03:29:35 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 31 Jul 2023 03:29:35 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.23) 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; Mon, 31 Jul 2023 03:29:35 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36V8TY3O083974; Mon, 31 Jul 2023 03:29:34 -0500 From: Jai Luthra To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Laurent Pinchart , Tomi Valkeinen CC: , , , , Mauro Carvalho Chehab , Maxime Ripard , , Benoit Parrot , Vaishnav Achath , Vignesh Raghavendra , , , Subject: [PATCH v8 02/16] media: dt-bindings: Make sure items in data-lanes are unique Date: Mon, 31 Jul 2023 13:59:20 +0530 Message-ID: <20230731-upstream_csi-v8-2-fb7d3661c2c9@ti.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230731-upstream_csi-v8-0-fb7d3661c2c9@ti.com> References: <20230731-upstream_csi-v8-0-fb7d3661c2c9@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1241; i=j-luthra@ti.com; h=from:subject:message-id; bh=UfBX2IjR7BMRvLrfIY6UfQ6cNhv74+fundjxLXZnoOE=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkx2xkMRHlCZr+X1x8TI+E434+bj6RdzsmM8YD4 E86YzsTy1GJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZMdsZAAKCRBD3pH5JJpx RdAdD/9hBBvwIg6o7ngR/hLbmpVHPiC2ERWcvLyy3NPacNjGcnpv00rml6TmlxkIDM7UyUjXdKu rA/VqIyKUIu/fKqCVBerT2rkJd5mtk2TIQF9QglQhXpu9zdX/t3Yr4SF55YFFeZrSLPO3QVeyMa zxVvRYSeF3IBAvXCeHVvKqOqesFXZp+QMTAnp1s+G4E6iY3wbCOikv9VR1RxoC6E55s2LXEulO6 OI+kzYuOvn5wp0S1cbLhcFPLhgscxHEeq5cU/LCp/LsNviU+VyUhM+ycDr2l2wWxlLud5SiKUcm rIVxdoOoG2kVxI+fGInIzERyHpTZSzqF5/NpvjteYdha+Bc14paruc+WY/XlVBiUhRDlIHjIbYA yPH3MMMsYaJLL2m0s80lJgQdVsbOUxxNFq0qtBbt7FP6KcOxYufAKUni3NjL6/J2h+EzlQ54Oqt 68xkY61zBoEZ2+WkU4i00ZKZ2JDSDPrwOn0AwYN06/Vmxx6zj1To/l8kwd9h7eKajwoWgO1pckg ePI0rKXY/GqhceXCLY0Ldz6WkBNzkaqpzP0XdP8YA5k4ceIlIGraRozxX9G6bV2dPmkC+z6c2CS 7FzJ9yEZV/OLt1/lDPw8bXFQKjWJnE5N33ffycG7czkwswv38CfAyEO1Vwi0do5CVrz4ft8BB5h I5DUJqHwynvwMmw== 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-20230731_012944_454416_1950FAE5 X-CRM114-Status: GOOD ( 11.88 ) 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 Signed-off-by: Jai Luthra Reviewed-by: Laurent Pinchart Acked-by: Rob Herring Reviewed-by: Tomi Valkeinen --- v7->v8: No change 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