From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DDE4C0015E for ; Tue, 1 Aug 2023 14:10:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233314AbjHAOKL (ORCPT ); Tue, 1 Aug 2023 10:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232681AbjHAOKI (ORCPT ); Tue, 1 Aug 2023 10:10:08 -0400 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 E0D821B2; Tue, 1 Aug 2023 07:10:04 -0700 (PDT) Received: from [192.168.88.20] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4C5983D4; Tue, 1 Aug 2023 16:08:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1690898940; bh=u2NEHRX1VvMSmCOwwkokJqfq2GoVR2BGYJfYsplZ4Ek=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=p4JUshElOC5nKtlaGnmKYar7bxg7WEqV6Ripk7F59Ko4WKH5KVJgj9hdE6UNNcE/q b/pT9QE2Dr+7bBX9trBJwBSYMRnd9yJyD/VaykKzQNsEtt5BFqA7QCcOl4x5/SUHIb 5Ds4nAsY3bpngd8ulpMOaC9BVlk1ymCmS+qukeYA= Message-ID: Date: Tue, 1 Aug 2023 17:09:59 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v8 02/16] media: dt-bindings: Make sure items in data-lanes are unique Content-Language: en-US To: Jai Luthra , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mauro Carvalho Chehab , Maxime Ripard , niklas.soderlund+renesas@ragnatech.se, Benoit Parrot , Vaishnav Achath , Vignesh Raghavendra , nm@ti.com, devarsht@ti.com References: <20230731-upstream_csi-v8-0-fb7d3661c2c9@ti.com> <20230731-upstream_csi-v8-2-fb7d3661c2c9@ti.com> From: Tomi Valkeinen In-Reply-To: <20230731-upstream_csi-v8-2-fb7d3661c2c9@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/07/2023 11:29, Jai Luthra wrote: > 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 > --- > 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 > Reviewed-by: Tomi Valkeinen Tomi