Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp759335rwe; Fri, 14 Apr 2023 09:19:58 -0700 (PDT) X-Google-Smtp-Source: AKy350bgNttq2bj1Pl+x74H6TT1ndMmk6sfJ2/aBBilylbEoaGnr2HYFy6K2WhJDfgPNbQVO/Psx X-Received: by 2002:a17:902:e846:b0:1a6:9f09:866d with SMTP id t6-20020a170902e84600b001a69f09866dmr3801667plg.61.1681489197995; Fri, 14 Apr 2023 09:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681489197; cv=none; d=google.com; s=arc-20160816; b=kvYX1otZJPVWIYHSG5LlB9BekBI/ArzAdAETABTO3r2agfRCS13qCkoGVQ15UJLhOm Kog275gf1DbHEF44pd8JasrKvfJ36ZJFkny5d7qCI3h0pY+jWOLo+fL9Tj0CUfusH0NB Qa/ZoVt2vo/G2pJqbqAHJvk0KHEEl7JpsRklv/QK7cxdfPAFOmvDOGasbh28RX54FlZ/ ZZh5P1H7vROfn4UF5uu8pgUbjjDpZbLgKU8ZLVJArMHyiaQTaOnIgF8TB22Yi5pr/Wkl jxoxutcJmfkuJ/PZcNnQsKnSiJCj1fopv0ZB1rmTLb3s+jVyGLucrrvTxXc+NL4rZ8G5 S7Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nJMVzKquDzphpWiWOJI5I3AMH3HbHqJYYrJiNc9uhAY=; b=ML5qltlRgJa0/08o3Gu38XtApyvkMUjQr3a/39RHbyqMZnzal0WluKsIHgdgovYuYE nyZvqflZYG1P4N74jcH9g0A20j6+uH4zVE8mcm1x4LFpcuNk9Ic7Vg3SmGGRmFgUm3mn wLfzNJbEriizTJPzNhD0xVOaS73BnUXCD/pF/sa4kq4gUWJITcoX4w3z/veSauE7MAxz qu8q08eZPfrKWnn7QN4BhZsD20Xh38iYTMTO+prK9Fog/qbEvMnxn0IrhZBv16h9IEIq 79dVnzckyA1B/SETRfQyWBPZtgzA68uSMyOJ0T9cUM+cOtt7g1KB/kQ90mVCZpS+yOMP S5kA== 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 k1-20020a170902c40100b001a1e237060fsi5357614plk.344.2023.04.14.09.19.44; Fri, 14 Apr 2023 09:19:57 -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 S230040AbjDNQLg (ORCPT + 99 others); Fri, 14 Apr 2023 12:11:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjDNQLb (ORCPT ); Fri, 14 Apr 2023 12:11:31 -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 E5A2D8A65 for ; Fri, 14 Apr 2023 09:11:30 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pnM1A-00049Q-QS; Fri, 14 Apr 2023 18:11:21 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pnM19-00BErb-Dh; Fri, 14 Apr 2023 18:11:19 +0200 Received: from jzi by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pnM18-00FQvl-Hu; Fri, 14 Apr 2023 18:11:18 +0200 From: Johannes Zink To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Cc: Johannes Zink Subject: [PATCH 1/2] dt-bindings: display: simple: support non-default data-mapping Date: Fri, 14 Apr 2023 18:11:15 +0200 Message-Id: <20230414161116.3673911-2-j.zink@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230414161116.3673911-1-j.zink@pengutronix.de> References: <20230414161116.3673911-1-j.zink@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: jzi@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.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 additionalProperties: false -- 2.39.2