Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp936619rwb; Fri, 28 Jul 2023 02:03:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVVJm6ccIkqqWlKySJZaNH1wGKU3LXuxbqfKiwG5RlqnVzmyX1PjZPL5s6uzS+WVvqXECu X-Received: by 2002:a17:906:11:b0:993:fe68:569c with SMTP id 17-20020a170906001100b00993fe68569cmr1356205eja.6.1690535004459; Fri, 28 Jul 2023 02:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690535004; cv=none; d=google.com; s=arc-20160816; b=pRwOWUDloY0Kf8l7+HdSXaZ9LoXYiVwZdLiJIEnfWKoGPa8MKH1dPUbsb8izoAcfpZ ouHRNC8oyMOMheFBVelHKUEalgYGXGPUY59vq8AIDRNF/wGqK6I5eAyd5WXEsnvXlTh2 h8GAjqVO9PWvY6iScQSi2yEoSu6hDQeru2LVGiDLhp+9cQrvIrXSTUKg9qvoWBTYrCwm IKo/wxjRoYU7HEaD5UlQzgiPXfTzUKsrSrWFcM2xzzm/nBogRJvzIpjCOkDJHqkAOETA 1Ljf3WCrlgcChABG5I7vNtD3wNnRK4QV31/R4wTntdcOIC4oN/epuEVpBAnDM5S600x3 SD0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=4pFAWBCh1yR7JjllA1s7HlKGZM1H/rY70pUxMJh1Ob4=; fh=Jw6Iki0fmrQp/7DF1mr7BYtx6y7RYdpXauBwkzgynLM=; b=Atqo3326kvzW/4eTMcInqW9K4snr//hW0elOgHM+RCpPmbj0hpClR1iG83G7uXmgzt HcedE27ZOvRaJF7tzOqBsXO4Fickj4hb4hEltynrOH6+dFIpF67GK1gk3QRiX93rNmYb CACz+L4bThg8JPbYvYzbe5bdalmqSDolcImZaruxZJD7UgtIHdo74Yd00TwkDjVAoWf2 MRdSOtyX8oeRvMW2G/Smn3iJeoWHkb7+QUOOtMvk5Y2feOHHzxiPajJTU9eLPrMH8PgL 0Jegnl8MtJsJ10b3he6OU7FKt6FBXp4SvhO1RPPbRXiVB4WAEl7lVNajsyisiARQeefq 3Hpw== ARC-Authentication-Results: i=1; mx.google.com; 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 a2-20020a1709065f8200b00991f9f3b83bsi2396555eju.228.2023.07.28.02.02.58; Fri, 28 Jul 2023 02:03:24 -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; 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 S233298AbjG1IiQ (ORCPT + 99 others); Fri, 28 Jul 2023 04:38:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234978AbjG1Iha (ORCPT ); Fri, 28 Jul 2023 04:37:30 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E480A49CC for ; Fri, 28 Jul 2023 01:36:34 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qPIxC-0000R9-1O; Fri, 28 Jul 2023 10:36:06 +0200 Message-ID: <06a726ec-5423-c2e9-5b98-4eb36607a16e@pengutronix.de> Date: Fri, 28 Jul 2023 10:36:02 +0200 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 v2 2/3] dt-bindings: display: simple: support non-default data-mapping Content-Language: en-US, de-DE To: Laurent Pinchart 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 References: <20230523-simplepanel_support_nondefault_datamapping-v2-0-87196f0d0b64@pengutronix.de> <20230523-simplepanel_support_nondefault_datamapping-v2-2-87196f0d0b64@pengutronix.de> <20230602153525.GB3343@pendragon.ideasonboard.com> From: Johannes Zink In-Reply-To: <20230602153525.GB3343@pendragon.ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: j.zink@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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 Laurent, thank you for your review. On 6/2/23 17:35, Laurent Pinchart wrote: > 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/ ack, gonna fix in V3 > >> 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,/ ack, gonna fix in V3 > >> 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 ? as the simple-bus implicitely assumes default data mappings for LVDS panels, I think this is not necessary. If the property is not used in a DT, the default data mapping is used. Best regards Johannes > >> + >> +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>; >> + }; >> + }; >> + }; >> > -- Pengutronix e.K. | Johannes Zink | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |