Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 124C1C433ED for ; Mon, 17 May 2021 23:03:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E51E861059 for ; Mon, 17 May 2021 23:03:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240531AbhEQXEx (ORCPT ); Mon, 17 May 2021 19:04:53 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:41340 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233727AbhEQXEw (ORCPT ); Mon, 17 May 2021 19:04:52 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DB4383EE; Tue, 18 May 2021 01:03:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1621292614; bh=q4yY3n9hZ2VxETa7/eH4aDzwXNWvvrz8wQ7+sxGHyzI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PnFCxGoe//B5kCoVPr7Tu9YHf2ruUd+PILzIuvjYMiqOsfeEyUp2DWiA7mCLq99i/ WGpbifIiZir4tDpsiiL68puJDlE1pQAEf3WMpkLaUA5NP0NUMCV8tuEEwOz4s0FkPa fc5XcqfggeyVRqxWWcw8um/5v/VkIm2UhbF97zE0= Date: Tue, 18 May 2021 02:03:32 +0300 From: Laurent Pinchart To: Marek Vasut Cc: dri-devel@lists.freedesktop.org, ch@denx.de, Rob Herring , Sam Ravnborg , devicetree@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: display: bridge: lvds-codec: Document LVDS data mapping select Message-ID: References: <20210515204656.367442-1-marex@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org And another thing: On Tue, May 18, 2021 at 02:02:24AM +0300, Laurent Pinchart wrote: > On Sat, May 15, 2021 at 10:46:55PM +0200, Marek Vasut wrote: > > Decoder input LVDS format is a property of the decoder chip or even > > its strapping. Add DT property data-mapping the same way lvds-panel > > does, to define the LVDS data mapping. > > The information could also be derived by the driver from the compatible > string in the case when this is an intrinsic property of the device (or > when it's configurable by software), but the fact that it can also be > controlled by strapping makes a DT property needed. We may want to limit > the usage of the DT property to the strapping case though, but I don't > have a real preference here, so I'm fine with this approach. > > > Signed-off-by: Marek Vasut > > Cc: Laurent Pinchart > > Cc: Rob Herring > > Cc: Sam Ravnborg > > Cc: devicetree@vger.kernel.org > > To: dri-devel@lists.freedesktop.org > > --- > > .../bindings/display/bridge/lvds-codec.yaml | 19 +++++++++++++++++++ > > 1 file changed, 19 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml b/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml > > index f4dd16bd69d2..f0abb94f8f2e 100644 > > --- a/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml > > +++ b/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml > > @@ -64,6 +64,15 @@ properties: > > - port@0 > > - port@1 > > > > + data-mapping: > > + enum: > > + - jeida-18 > > + - jeida-24 > > + - vesa-24 > > + description: | > > + The color signals mapping order. See details in > > + Documentation/devicetree/bindings/display/panel/lvds.yaml > > + > > pclk-sample: > > description: > > Data sampling on rising or falling edge. > > @@ -79,6 +88,16 @@ properties: > > > > power-supply: true > > > > +if: > > + not: > > + properties: > > + compatible: > > + contains: > > + const: lvds-decoder > > +then: > > + properties: > > + data-mapping: false Should we make the property required for lvds-decoder ? We need to support backward compatibility in the driver, but from a DT bindings point of view, should all new DTs require the property ? > > + > > if: > > not: > > properties: > > Unless I'm mistaken, you can't have identically named properties at the > same level (multiple 'if' at the root level). You can group them in a > 'allOf' property. -- Regards, Laurent Pinchart