Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2383426rwd; Fri, 2 Jun 2023 08:40:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5R36axAou3XPlBS26jxKRgl5gPs2QPESG+FJdCk1zXAtI3hxM7AJZdVCqllRMOksABgPc+ X-Received: by 2002:a05:6358:710:b0:121:4897:5406 with SMTP id e16-20020a056358071000b0012148975406mr10061770rwj.20.1685720452726; Fri, 02 Jun 2023 08:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685720452; cv=none; d=google.com; s=arc-20160816; b=rf2ANAq7d8vCJiBEV3ytdD0WGE9cRRy1CnPmXiFJM57Bt5SoBuElJKjuV19lA/Omqu kqDKqYHe3/gJSc13B7REB/u8ETzTpGE1ex1pQxxbJFNvjoi3p2qbXve24qLgoyRhdp/M qFMsa7TIsKPSMDwpC9NUAdPFLhx6iSfJZeJhMA7G8LQnDBde7AgoufVKxkOST0ffAe1I 92U6SmMwpgXXY6A97dSFgVFguDdXHY04vpLiqw3e16X22TV4NoT7ZJJ0LlbcSz8HuqIX 8JtL+EGMDV61nc/dNVd8o9sG3I+IQmKne0S4sI6QIrZFYtwSf+OJZOwfznx4PLXeQrtK KfEA== 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:dkim-signature; bh=YMhX82W917xUklx3wmjoERdwRSCP6O6r7fnKOO07mZw=; b=saCq6hTxi/fOXBMcblH5HIO3dTuRjBLq3AG3sH4LIRVbSdM9AK1lbFJG82Ml/53KFm bd6i8OUQaz4AQrJH42yn2Vv6fXxwJ+4mTqdS5rzh9yF13mgGiLJ9GHsJiPPpcaOUYFbm Gbv5+sp4A3f4NFVByElZBb4JqjDGMAedXiGMkRpXUfeDgV83P1XXPaXvtQ0BU/+Hbm1x zmb5cl0Dy4JS2zDOiIxgwjhB1fNLW0gW83gU5gRN2lJIyHqb0hKyk9On8duQtIEMfOpa JCj5utJmzlYqKKabJpyfc9b7ilp6breAyhUaWpCbl5LuiMKObR3GB/Uw6V4DWtalwnxq mi1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=frY4gMuz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j29-20020a633c1d000000b00530b3b5ec08si325557pga.886.2023.06.02.08.40.39; Fri, 02 Jun 2023 08:40:52 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=frY4gMuz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236709AbjFBPfc (ORCPT + 99 others); Fri, 2 Jun 2023 11:35:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236259AbjFBPf3 (ORCPT ); Fri, 2 Jun 2023 11:35:29 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BADED18C; Fri, 2 Jun 2023 08:35:28 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126156168104.26.openmobile.ne.jp [126.156.168.104]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D3045844; Fri, 2 Jun 2023 17:35:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685720104; bh=uB3WP31ffH7A09eCveznwqPXwuQ+cxBuRjaB5eMZBZs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=frY4gMuzuEy76b+mEaxaEns1gKsRTzYS7Xh3hZQmEH/kxfkfUfSjiQ6nfkWTIqHfN iFHH9dw1cwdvbtawixXyVRP/rfOlpHnNEC7g8TkWyIGM1rm5d7cR2RsYef4WZs1CEV pfuo4b3yxz8Q7wuXl2GyXlSW2aA7GKam433F3Ar8= Date: Fri, 2 Jun 2023 18:35:25 +0300 From: Laurent Pinchart To: Johannes Zink Cc: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Neil Armstrong , Sam Ravnborg , kernel test robot , Dan Carpenter , patchwork-jzi@pengutronix.de, kernel@pengutronix.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] dt-bindings: display: simple: support non-default data-mapping Message-ID: <20230602153525.GB3343@pendragon.ideasonboard.com> References: <20230523-simplepanel_support_nondefault_datamapping-v2-0-87196f0d0b64@pengutronix.de> <20230523-simplepanel_support_nondefault_datamapping-v2-2-87196f0d0b64@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230523-simplepanel_support_nondefault_datamapping-v2-2-87196f0d0b64@pengutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 Hi Johannes, Thank you for the patch. On Tue, May 23, 2023 at 10:19:42AM +0200, Johannes Zink wrote: > Some Displays support more than just a single default lvds data mapping, s/lvds/LVDS/ > which can be used to run displays on only 3 LVDS lanes in the jeida-18 > data-mapping mode. > > Add an optional data-mapping property to allow overriding the default > data mapping. As it does not generally apply to any display and bus: use s/bus:/bus,/ > it selectively on the innolux,g101ice-l01, which supports changing the > data mapping via a strapping pin. > > Signed-off-by: Johannes Zink > --- > > Changes: > > v1 -> v2: - worked in Rob's review findings (thanks for reviewing my > work): use extracted common property instead of duplicating > the property > - refined commit message > - add an example dts for automated checking > --- > .../bindings/display/panel/panel-simple.yaml | 26 +++++++++++++++++++++- > 1 file changed, 25 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > index ec50dd268314..698301c8c920 100644 > --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > @@ -21,9 +21,9 @@ description: | > > allOf: > - $ref: panel-common.yaml# > + - $ref: ../lvds-data-mapping.yaml# > > properties: > - > compatible: > enum: > # compatible must be listed in alphabetical order, ordered by compatible. > @@ -353,6 +353,17 @@ properties: > power-supply: true > no-hpd: true > hpd-gpios: true > + data-mapping: true As the property is optional, don't you need a default value ? > + > +if: > + not: > + properties: > + compatible: > + contains: > + const: innolux,g101ice-l01 > +then: > + properties: > + data-mapping: false > > additionalProperties: false > > @@ -372,3 +383,16 @@ examples: > }; > }; > }; > + - | > + panel_lvds: panel-lvds { > + compatible = "innolux,g101ice-l01"; > + power-supply = <&vcc_lcd_reg>; > + > + data-mapping = "jeida-24"; > + > + port { > + panel_in_lvds: endpoint { > + remote-endpoint = <<dc_out_lvds>; > + }; > + }; > + }; > -- Regards, Laurent Pinchart