Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp2003184ybj; Wed, 6 May 2020 08:58:54 -0700 (PDT) X-Google-Smtp-Source: APiQypI5qknzuCUJQuzg1eKOmJxP2ZQJbuUSXZ0X0NH6Bpah7NzS4AMSIsVjYWS1XhtvZl/W3uFU X-Received: by 2002:a17:906:b2c4:: with SMTP id cf4mr8414085ejb.340.1588780734526; Wed, 06 May 2020 08:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588780734; cv=none; d=google.com; s=arc-20160816; b=vLEpPLmQwQAEDwuuygymwdHDN4IaVMpBBwlQOqAkmZTVIu9i3Z2xSIc5M4im0kwU0g M7inekCLQ9x0h6yCHwI/71LFSnScEkiItxb/eQ32RRstCXZbKx5T2QT/LMhUu8D84SdO B1DprmGAZqQWbcgeLkZX4cBjwFrp3+T/fXYbGkGZQq2i5fdYGHMZz8KWbeJhuA4DtpMT tCp/sxPWwv/pe+vTg+q9FlEYLGrge1/NiP+20gO1yM+V6yqc66I/ZWFh7mL0W8unm81W 8oYjk9RdcFc/I4BYkoto6Pxw17czyBypZJUXsYVijvEAKRNJgZIETlUXYqdCEmdHZmGA CLDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1ceQEPh6O3T0x9lW76aGMJJkRoSOzXMWUN/PU/5OJlc=; b=J7XHuX3A9hKLCKAP7oW/W7CTZFE7DUJk+VZkZ8nYShjU0stW+bIk1pY+kjEeNjbGpR N/GJI/zKWKRIGm+Pm0JB4sQIkHMCz/V0Ce5zMdXgMYPj1EbMEq1kzgtJVoo4mJZpXHXd T2D5N6ITtmHFbLno5HgGzZ8vCM1TnbTBdp3VjMruL+6vxQhEWzVPNDP0gnaTTrU3/MXJ QUFYfEnUbXkolsC1ygQOVDcZODp+rm/VTv645hvmKQLrWOeirE7Yn5cxR/DwMN2auun7 dwlrmn2hroiUnW4kGipWZaoxtDbT5g9ArXndpmiF8bUFU5WyiJpENHbrMVJMU7VVkuLP jR8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JSCJRr1Y; 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 z9si1525242ejr.264.2020.05.06.08.58.30; Wed, 06 May 2020 08:58:54 -0700 (PDT) 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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JSCJRr1Y; 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 S1729855AbgEFP4z (ORCPT + 99 others); Wed, 6 May 2020 11:56:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728991AbgEFP4y (ORCPT ); Wed, 6 May 2020 11:56:54 -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 8C539C061A0F; Wed, 6 May 2020 08:56:54 -0700 (PDT) Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E30A9542; Wed, 6 May 2020 17:56:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1588780613; bh=JqP+SOCphmyvR7LY5kOsdyerYHIGqof5vTW6QMlbE0I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JSCJRr1YjHYhNJEGPipbcitzN44oikeZK4tjqwRcMKFUE4bUrDOMma8NIzvzBgk0S 5gJAR9gGYZ7ytOiUKewbJSais47zFkOxx0YnkZW8MXmf+cT8rRSO/PxqG9mwqEQD+v AjYuBY3gGFlLCdse5mLMf21yRvmsRIJ/EgkXX6ME= Date: Wed, 6 May 2020 18:56:47 +0300 From: Laurent Pinchart To: Doug Anderson Cc: Andrzej Hajda , Neil Armstrong , Rob Clark , Sean Paul , linux-arm-msm , Daniel Vetter , David Airlie , Jernej Skrabec , Jonas Karlman , dri-devel , LKML Subject: Re: [PATCH] drm/bridge: ti-sn65dsi86: Implement lane reordering + polarity Message-ID: <20200506155647.GD15206@pendragon.ideasonboard.com> References: <20200504213624.1.Ibc8eeddcee94984a608d6900b46f9ffde4045da4@changeid> <20200505082436.GD9658@pendragon.ideasonboard.com> <20200505210609.GA6094@pendragon.ideasonboard.com> <20200505211401.GC6094@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Doug, On Tue, May 05, 2020 at 05:18:48PM -0700, Doug Anderson wrote: > On Tue, May 5, 2020 at 2:24 PM Doug Anderson wrote: > > On Tue, May 5, 2020 at 2:14 PM Laurent Pinchart wrote: > > > > > > > I'll add this documentation into the comments of the yaml, but I'm not > > > > going to try to implement enforcement at the yaml level. > > > > > > Why not ? :-) > > > > Because trying to describe anything in the yaml bindings that doesn't > > fit in the exact pattern of things that the yaml bindings are designed > > to check is like constructing the empire state building with only > > toothpicks. > > > > If you want to suggest some syntax that would actually make this > > doable without blowing out the yaml bindings then I'm happy to add it. > > Me being naive would assume that we'd need to do an exhaustive list of > > the OK combinations. That would be fine for the 1-land and 2-lane > > cases, but for 4 lanes that means adding 256 entries to the bindings. > > > > I think the correct way to do this would require adding code in the > > project but that's > > really only done for generic subsystem-level concepts and not for a > > single driver. > > OK. Looked at your review of the .yaml and the "uniqueItems" is > probably the bit I didn't think of. With that I can limit this but > it's still a little awkward. I still haven't figured out how to force > data-lanes and lane-polarities to have the same number of items, too. > I'll add this as an add-on patch to my v2 and folks can decide if they > like it or hate it. Thanks for looking into it. Looks good to me. Regarding the same number of items I would assume it should be possible, I would be surprised if the schemas allowed a different number of items for clocks and clock-names for instance, but maybe that's not implemented yet. In any case, no big deal. > # See ../../media/video-interface.txt for details. > data-lanes: > oneOf: > - minItems: 1 > maxItems: 1 > uniqueItems: true > items: > enum: > - 0 > - 1 > description: > If you have 1 logical lane it can go to either physical > port 0 or port 1. Port 0 is suggested. > > - minItems: 2 > maxItems: 2 > uniqueItems: true > items: > enum: > - 0 > - 1 > description: > If you have 2 logical lanes they can be reordered on > physical ports 0 and 1. > > - minItems: 4 > maxItems: 4 > uniqueItems: true > items: > enum: > - 0 > - 1 > - 2 > - 3 > description: > If you have 4 logical lanes they can be reordered on > in any way. -- Regards, Laurent Pinchart