Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2956734pxb; Mon, 17 Jan 2022 08:59:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCPY4cmVUS8YiJzzaOQyhqYKbFeKZx/1nPeM2MTyeLvXDGmM3oU0Qo5jfa5NzGBUOISnrZ X-Received: by 2002:a17:90a:4f0d:: with SMTP id p13mr10476004pjh.57.1642438784840; Mon, 17 Jan 2022 08:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642438784; cv=none; d=google.com; s=arc-20160816; b=ihNguqm2xn7r3FQyY2eZ1b94SmgzoGzECocL2m5VlqpvhC9Nws0fmBqMAvYa1xQg7q nw8Ysidb+6WFltM2rn/RJwNUg0TU4y7JCxKa7Ru4ZFgmR12t0Dl4ol6OkpVjca1AJg9T WuhcNP0BBUjwRLc5YGkwP4m8+8aFrDxJjbxTRt2fxhKt6pXrUpCf8Mb0VPnSDHorfSz1 h5gz/F3ZaqSxEn+SuCdeUSKa89+6pJVosyHrk36CqOWxsfl4K7dOJGNzBSaQMlJYhGMM avMtk/vERf70mbNhvnZ4yb9upQ2xZYKaHptLlj+HLhDBsiRSWTwsTwWEEF3ij/eGbw5r ImzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=V+VXf4/lNmi1EIv6ZzVr9VRmmQ4IdwkVMHQ+HrNqphE=; b=pS8prDE5Wh30p9x+iOesnBNatEtCE7yhAO89q3amHkKzuVCxWdgD1tPGMrgYQTbF42 4vFTNZDmWelAn9OuRWertVbE4N1AMzR7h2rI9uuy19m4nuvQF55N4vWkdusHcy3Ep+nu G7N2ZgUvOJ3zX5cRysgNA+iXBDy6qDIoLiZApVBdG/1LV42aCh11Oor0heElg4T55NqG MjHnMpxnt6uU7axopuHA1lDvhbmdqCK0B8ltsp59hrfNtaecHqVZrmBoUUgq/vkuhycM 0eorPAwnbYuNR4C0YUTxOvriHjmC88ccBOJkWxQUZkASC9jQrN7LdMuUhoiHquJgq3Mv CpIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k22si4296152pls.433.2022.01.17.08.59.33; Mon, 17 Jan 2022 08:59:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237929AbiAQILV (ORCPT + 99 others); Mon, 17 Jan 2022 03:11:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbiAQILU (ORCPT ); Mon, 17 Jan 2022 03:11:20 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7F1AC061574; Mon, 17 Jan 2022 00:11:19 -0800 (PST) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id E8675240033; Mon, 17 Jan 2022 08:10:08 +0000 (UTC) Date: Mon, 17 Jan 2022 09:11:10 +0100 From: Jacopo Mondi To: Lad Prabhakar Cc: Niklas =?utf-8?Q?S=C3=B6derlund?= , Mauro Carvalho Chehab , Rob Herring , Geert Uytterhoeven , Prabhakar , Biju Das , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: dt-bindings: media: renesas,csi2: Update data-lanes property Message-ID: <20220117081110.bkwr3ttoexgr2wjt@uno.localdomain> References: <20220113103215.27080-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220113103215.27080-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Prabhakar, On Thu, Jan 13, 2022 at 10:32:14AM +0000, Lad Prabhakar wrote: > CSI-2 (CSI4LNK0) on R-Car and RZ/G2 supports 4-lane mode which is already > handled by rcar-csi2.c driver. This patch updates the data-lanes property > to describe the same. > > Signed-off-by: Lad Prabhakar > --- > .../devicetree/bindings/media/renesas,csi2.yaml | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/media/renesas,csi2.yaml b/Documentation/devicetree/bindings/media/renesas,csi2.yaml > index e6a036721082..064a0a4c5737 100644 > --- a/Documentation/devicetree/bindings/media/renesas,csi2.yaml > +++ b/Documentation/devicetree/bindings/media/renesas,csi2.yaml > @@ -67,7 +67,14 @@ properties: > maxItems: 1 > > data-lanes: > - maxItems: 1 > + items: > + minItems: 1 > + maxItems: 4 > + items: > + - const: 1 > + - const: 2 > + - const: 3 > + - const: 4 Seeing "maxItems: 1" there confuses me too, as the property is an array of data-lanes, but I'm afraid your change does not what you intend as it would allow you to specify the number of data lanes as an integer rather than as an array. I think it would probably be correct to set data-lanes: true (maybe maxItems: 1 is correct already) And restrict the number of valid combinations in the board DTS file with a construct like: data-lanes: oneOf: - items: - const: 1 - const: 2 - const: 3 - const: 4 - items: - const: 1 - const: 2 Thanks j > > required: > - clock-lanes > -- > 2.17.1 >