From patchwork Tue Mar 14 11:55:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 69530 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1716342wrd; Tue, 14 Mar 2023 05:07:49 -0700 (PDT) X-Google-Smtp-Source: AK7set+ZxIOsmtbfHhzLpZZ0CfonpfJUt0qQbL6CidmEI2rTWzfxhs3FlLPyRYci/FM5dZtvHv8R X-Received: by 2002:a17:902:740c:b0:19f:2dff:2199 with SMTP id g12-20020a170902740c00b0019f2dff2199mr9166677pll.68.1678795669272; Tue, 14 Mar 2023 05:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678795669; cv=none; d=google.com; s=arc-20160816; b=KBTCbNr+7Jz+62GBMNq8BhFXEpecOubEWXx0z8d0lAit7/HvCPF1SdjXvuDni6ztMu v5SCMMEQfvHlfufj8NZm/ZwkCcrqyc/qmFz6dNdsWmE85i6l//kHVj4uuHhJSeFK5K60 gvZFlMYF6tvPoDjKtIyM2BRGtITDKMY+lJocovT4aVN8EMUUlsB0wT8PXxWvH1mVUbVE BBtYOD954emesD8IhgwE+rVJ3rM+NFnpzN4EeWTjpQjL/ZDDmSF5TF1d9vYHLVWh/3JH mdfGqXT9zYNCtaz4kNbYSPHH9XH52Gemaomv6ZPePYSvF9OsfBSYWtkdWhmR8dcM9aig 6qiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=VDtUJrgTjd2rb4VAXloCWsnsEJXWfY/RvZ3NEQMYfyw=; b=z83esFS2OSFurHLhPcnjOO3X6FoMeqeJv9/U3QdMfvdqQTp/quNfZZ9cao938Uzxxr 6kbNCR+owC0A104xZYZRTq3HD+iEktNi1W/Z+7n5vq+zD3TtJBZOElnrr3m+reWkM1aZ B2iqdJTwl1473MJBS+A/xviVhYyYCJ0oDqetvHlwljIYOYVX//9KWkdNzTF/jkLRAiKC 59OAulr32nTKVT6ZLzoiTQ1NdHpP4pBXkjUoH0vGzCBQNy/RKwg2nyn+/QUj/6eMPuu3 cZ4zDnN/Opt3hwPobcRBUIH2G3Jsqr8WGgAW8amA/tSWTU3KkgPRzabSCSelzbXomm8d mNNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=P4AkvQHC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a1709028ec100b0019f31a90472si2254446plo.636.2023.03.14.05.07.36; Tue, 14 Mar 2023 05:07:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=P4AkvQHC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231597AbjCNL4l (ORCPT + 99 others); Tue, 14 Mar 2023 07:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231553AbjCNL4V (ORCPT ); Tue, 14 Mar 2023 07:56:21 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C2A29FE6C; Tue, 14 Mar 2023 04:56:05 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32EBtekY051556; Tue, 14 Mar 2023 06:55:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678794940; bh=VDtUJrgTjd2rb4VAXloCWsnsEJXWfY/RvZ3NEQMYfyw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=P4AkvQHC6WXuDCZ0e1/TCz1DOMfrlFQpHOtxIrt8tWehBUPi08wGMEsD5GEifn8s+ OSr82bt32m0nsZmALI53ZWfzKxNZuR7YaiztMMwqb2Re1+uM/EXoOQGVUfkktuQjoF 7xU2DAPARS3UkrE12961HY9BplZS1OzTHg3scu4s= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32EBteUS114865 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 14 Mar 2023 06:55:40 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 14 Mar 2023 06:55:39 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 14 Mar 2023 06:55:39 -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 32EBtcI4057373; Tue, 14 Mar 2023 06:55:39 -0500 From: Vaishnav Achath To: , , , , , , , , CC: , , , , , , , , , , Subject: [PATCH v7 11/13] media: dt-bindings: Make sure items in data-lanes are unique Date: Tue, 14 Mar 2023 17:25:14 +0530 Message-ID: <20230314115516.667-12-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230314115516.667-1-vaishnav.a@ti.com> References: <20230314115516.667-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760344847776023119?= X-GMAIL-MSGID: =?utf-8?q?1760344847776023119?= 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: Vaishnav Achath Reviewed-by: Laurent Pinchart Acked-by: Rob Herring --- (no changes since v5) Changes in v5: - Add Laurent's R-by and Rob's Ack. Changes in v4: - New in v4. 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