Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp378663rwe; Tue, 18 Apr 2023 23:43:36 -0700 (PDT) X-Google-Smtp-Source: AKy350Yg6QWMp5UkmTEHkR+htItmKkiuEYukrfygezAQxPxm+erW+tKhd061jv6vnfabwleaM2co X-Received: by 2002:a05:6a20:2451:b0:f0:a27:2f96 with SMTP id t17-20020a056a20245100b000f00a272f96mr2743989pzc.50.1681886615972; Tue, 18 Apr 2023 23:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681886615; cv=none; d=google.com; s=arc-20160816; b=EJqgtxmKkEdi9Uw7Y64fU1L1PAIUQj2uvZkLWAxQm2XGvkV01Yz+d3vuQ6xZWIT7YV SvOTVVNXYL+zWk9taf+5oVx4USEFBxq1OdzFZEjFPOobEy6j6fxgOdgZX3ez1ZLSQPRf YYGmOQa79+ugmAv6jsHCWpl/WWusWcw6iKF7Dmk3LPRfk4EvNorJGqXm3GDfdsDEVATE ls5YvZN/QLP6gu+IGpmn8h1/jSgfPDTkbJ0nvKEXYyfaUaL3ZvI73hEFI+AbKunargZD gNnsTaBSrlAiG0ZaZ3+efsZLyty7NLs13nRGaWXP7R/uw+8PioTgMsMLSDO1pOq3feUA NaJg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=TQGuLXFYQnYujpAf24wshtWdEE/+rU5AH0VGI0JkTgk=; b=U2GDy4QHIV1Vqe1/fQedC0mg+Un8kCdCA8cRWZlrmLF5lDxNFhUXL+ZGpcQ83Lmvow L3DeDGESElOkaOGualis5A+bc4xMCZdczFh1sodPlru+rghXfy2sWea6Tpktyh3wuvvz I8Opquq158Ifnf7KheZE+r5BRPXEUYOkpsxvWgPLs5GgPIdSfiX//2ybW8e0CAe84vjP 0Mk5ofu1efRPKzRpMjYMqVu7/aheOtVn5CLSqNI6H6rX+TtOA3bQ56RJnYlvv8AbxgxE 9YnqphmMAT+jh4UTQx0gcGsi7u5SWFGPocDD9MlVdK8o9uUF1xlUyogU65hQXQ9lSJiD j1gA== 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 141-20020a630093000000b0051f32c847a7si3163979pga.449.2023.04.18.23.43.24; Tue, 18 Apr 2023 23:43:35 -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 S231578AbjDSGbN (ORCPT + 99 others); Wed, 19 Apr 2023 02:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231719AbjDSGbL (ORCPT ); Wed, 19 Apr 2023 02:31:11 -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 C9D42659D for ; Tue, 18 Apr 2023 23:30:46 -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 1pp1Ki-0001LL-6R; Wed, 19 Apr 2023 08:30:24 +0200 Message-ID: Date: Wed, 19 Apr 2023 08:29:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 1/2] dt-bindings: display: simple: support non-default data-mapping To: Rob Herring Cc: thierry.reding@gmail.com, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, krzysztof.kozlowski+dt@linaro.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de References: <20230414161116.3673911-1-j.zink@pengutronix.de> <20230414161116.3673911-2-j.zink@pengutronix.de> <20230418212058.GA2351633-robh@kernel.org> Content-Language: en-US, de-DE From: Johannes Zink In-Reply-To: <20230418212058.GA2351633-robh@kernel.org> 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=-6.8 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 Rob, On 4/18/23 23:20, Rob Herring wrote: > On Fri, Apr 14, 2023 at 06:11:15PM +0200, Johannes Zink wrote: >> Some Displays support more than just a single default lvds data mapping, >> 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, analogously to panel-lvds, to >> allow overriding the default data mapping. >> >> Signed-off-by: Johannes Zink >> --- >> .../bindings/display/panel/panel-simple.yaml | 51 +++++++++++++++++++ >> 1 file changed, 51 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml >> index 18241f4051d2..6e219f67dd67 100644 >> --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml >> +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml >> @@ -349,6 +349,57 @@ properties: >> power-supply: true >> no-hpd: true >> hpd-gpios: true >> + data-mapping: >> + enum: >> + - jeida-18 >> + - jeida-24 >> + - vesa-24 >> + description: | >> + The color signals mapping order. >> + >> + LVDS data mappings are defined as follows. >> + >> + - "jeida-18" - 18-bit data mapping compatible with the [JEIDA], [LDI] and >> + [VESA] specifications. Data are transferred as follows on 3 LVDS lanes. >> + >> + Slot 0 1 2 3 4 5 6 >> + ________________ _________________ >> + Clock \_______________________/ >> + ______ ______ ______ ______ ______ ______ ______ >> + DATA0 ><__G0__><__R5__><__R4__><__R3__><__R2__><__R1__><__R0__>< >> + DATA1 ><__B1__><__B0__><__G5__><__G4__><__G3__><__G2__><__G1__>< >> + DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B5__><__B4__><__B3__><__B2__>< >> + >> + - "jeida-24" - 24-bit data mapping compatible with the [DSIM] and [LDI] >> + specifications. Data are transferred as follows on 4 LVDS lanes. >> + >> + Slot 0 1 2 3 4 5 6 >> + ________________ _________________ >> + Clock \_______________________/ >> + ______ ______ ______ ______ ______ ______ ______ >> + DATA0 ><__G2__><__R7__><__R6__><__R5__><__R4__><__R3__><__R2__>< >> + DATA1 ><__B3__><__B2__><__G7__><__G6__><__G5__><__G4__><__G3__>< >> + DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B7__><__B6__><__B5__><__B4__>< >> + DATA3 ><_CTL3_><__B1__><__B0__><__G1__><__G0__><__R1__><__R0__>< >> + >> + - "vesa-24" - 24-bit data mapping compatible with the [VESA] specification. >> + Data are transferred as follows on 4 LVDS lanes. >> + >> + Slot 0 1 2 3 4 5 6 >> + ________________ _________________ >> + Clock \_______________________/ >> + ______ ______ ______ ______ ______ ______ ______ >> + DATA0 ><__G0__><__R5__><__R4__><__R3__><__R2__><__R1__><__R0__>< >> + DATA1 ><__B1__><__B0__><__G5__><__G4__><__G3__><__G2__><__G1__>< >> + DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B5__><__B4__><__B3__><__B2__>< >> + DATA3 ><_CTL3_><__B7__><__B6__><__G7__><__G6__><__R7__><__R6__>< >> + >> + Control signals are mapped as follows. >> + >> + CTL0: HSync >> + CTL1: VSync >> + CTL2: Data Enable >> + CTL3: 0 > > Why do you duplicate what's in display/lvds.yaml? I don't think any of the other properties from display/lvds.yaml currently make any sense to be put into simple-panel, thus I selectively picked this one. If there is a way to selectively pick only the data_mapping, please let me know and I send a V2 > > This also just made 'data-mapping' valid on non-LVDS panels. what is the canonical way of restricting the data-mapping property to LVDS panels only? Or ist the proper way to go to move the panel I use (innolux,g101ice-l01) to its own yaml file, include panel-simple.yaml and leave the others alone? I think other LVDS panels might benefit from this series though, which is why I think it makes sense to add the property to all LVDS panels. Best regards Johannes > > Rob > -- 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 |