Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1368180rwb; Fri, 28 Jul 2023 08:26:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqbSFWJzQd38r3lpCV7JBJ74cHERdCZzemX8Mgrnu/wAQXWBx55BpXyPFOQQZ+jtIZOnPG X-Received: by 2002:a05:6a20:9681:b0:13a:59b1:c88b with SMTP id hp1-20020a056a20968100b0013a59b1c88bmr1587609pzc.45.1690558002617; Fri, 28 Jul 2023 08:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690558002; cv=none; d=google.com; s=arc-20160816; b=QiRLN5iuUtjjmyal6nW+ecLl2Me3sN0QAqgkMcaYaX60GDm6PRIAZIQdxcVTYUgEw8 vCYNp1IsEDE5IwrnJYC/agIzAt2xwyBFHWn1y8XlRaWfLSKFtilpAPLqLsWhyuk/5qXr 1cCdeWGQOcPbUYM481+5888barZKvwTyMbss9kY5lyp4XENN2hMeM3x32d7hOuT0DfMj xl2uN7a4Zeu3M8WIgovKmuXXCE0zsI2/kchfaDDty6h99gmACaTBTo3AkVH2IagZu0+N QpV2onHJaBlIRcdUpkMoO9xaUlych3C+yjnScwVyDveV4n4f5YPkY8aiQKxyIguFIJM8 YvSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=dBhV/bf128qIp2eHm/7BzPfhH5GjX95W1S9AknImTxM=; fh=rP9FHtW2A/h0fXZcKuUf+Qz+2VkvPWabXR/vO5n9PvE=; b=r8a6cQj1N/NsMEJ2D0SQH14mSAljRcqyCHkRHFl4mbsBZZtXMKIKERyBdKC+Ti3CqV CuNIcy2/QyhtdUG8k+BzwyVqXnTgfqKyt78teO2SRCEUMEYx0Ze1ClN3HVPSQJn/2Y5m J95XIfaZITEWenZfS4BdUKtVRTfNsmeMRxcuieu5LkM+Q6ZA6JoLeCb/DEOVfJkRlNjR xxvNai1JubeSb0VUe+OYbKgy9/M+KsgdLhf/H53MsGU5M07WASTxVQ2g90c4ZNhNgwOG lzV8HpRRgbCowdyezHwbFlASfdr+jZRQ0qJmqo6GB8TA5bdMp3dIWspZlmMz2z/tQ2cl b5mg== 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 y7-20020a056a00180700b00666acab17acsi3388031pfa.318.2023.07.28.08.26.24; Fri, 28 Jul 2023 08:26:42 -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 S236348AbjG1ORX (ORCPT + 99 others); Fri, 28 Jul 2023 10:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235261AbjG1ORV (ORCPT ); Fri, 28 Jul 2023 10:17:21 -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 81E4F3AB4 for ; Fri, 28 Jul 2023 07:17:17 -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 1qPOHC-0006G4-J8; Fri, 28 Jul 2023 16:17:06 +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 1qPOHA-002jHS-PE; Fri, 28 Jul 2023 16:17:04 +0200 Received: from localhost ([::1] helo=dude03.red.stw.pengutronix.de) by dude03.red.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qPOH9-00APcf-Tb; Fri, 28 Jul 2023 16:17:03 +0200 From: Johannes Zink Date: Fri, 28 Jul 2023 16:16:56 +0200 Subject: [PATCH v4 2/3] dt-bindings: display: simple: support non-default data-mapping MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230523-simplepanel_support_nondefault_datamapping-v4-2-e6e7011f34b5@pengutronix.de> References: <20230523-simplepanel_support_nondefault_datamapping-v4-0-e6e7011f34b5@pengutronix.de> In-Reply-To: <20230523-simplepanel_support_nondefault_datamapping-v4-0-e6e7011f34b5@pengutronix.de> To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Laurent Pinchart , Thierry Reding , Neil Armstrong , Sam Ravnborg Cc: kernel test robot , Dan Carpenter , patchwork-jzi@pengutronix.de, kernel@pengutronix.de, Laurent Pinchart , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Zink X-Mailer: b4 0.12.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 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.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 to allow overriding the default data mapping. As it does not generally apply to any display and bus, use it selectively on the innolux,g101ice-l01, which supports changing the data mapping via a strapping pin. Signed-off-by: Johannes Zink --- Changes: v3 -> v4: none v2 -> v3: - worked in Laurent's review findings (thanks for reviewing my work): fix typos in commit message 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 1d4936fc5182..e25e33f67d71 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. @@ -359,6 +359,17 @@ properties: power-supply: true no-hpd: true hpd-gpios: true + data-mapping: true + +if: + not: + properties: + compatible: + contains: + const: innolux,g101ice-l01 +then: + properties: + data-mapping: false additionalProperties: false @@ -378,3 +389,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>; + }; + }; + }; -- 2.39.2