Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3912329rdh; Fri, 29 Sep 2023 06:12:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUuBnfWEGBvVSYJF5XZoFCaNWfw5eXdutY2c8A3g+9CdtkR+yVIxBGj7tqk5fNSRJEJixO X-Received: by 2002:a05:6e02:1d1e:b0:351:5d70:b255 with SMTP id i30-20020a056e021d1e00b003515d70b255mr4896361ila.29.1695993125253; Fri, 29 Sep 2023 06:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695993125; cv=none; d=google.com; s=arc-20160816; b=d6SLKzlKMHIArYthggIaEFk5XubCGcm4uynVtbGY4t5yR0WC8jtFtTdtJ9FVWxXNy0 7lpQjl5UyKaq9DpDqmNKOLMv3UUHA47uH3su9FBhgCW9k4YsUhrJ7+qAMGUikrVd50LJ ScQlFFCfQux1cmRx2CBB6n1F4jD3eeIOPS4UCZjlXe0J3eUGZwAr7VVPLP7YDScHIg8/ TfJEB1eOK/zrsslt4ErLpsNoLf3spUdrAPyj9yAtYIzfSSvRI4Afl3beaQ4sOTsMZzS0 2N6dhY+v/4/6eA29fZGw/X12tliEQSjDx3vT42A9OPEj5HGXijuNJerNLTpNya97tIW7 RCjg== 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=13jWVKV38EDKraRo280acAAopoL77fOcs9A8zkaUg90=; fh=TXb4sxSpirnToU4aNF6zdhiupTyrFxReKgxrxv7rACA=; b=hk8a99QXldomdMPxliKwI8qKZp9J6VHNdj8838dZ/p0mwzS3YvUVwR5D+lUZw8gGTt ohieE+d9Ewo1RSq4JlBEHfIXtPtEMe1x1gfMMBhpqpBbACJF13mGeybhNixIRtvdIb5p XoOWMcc5T4DsmihMnXq/cil8KYkVC+cWO8lUJ9njoGv/IV6f1gBqcVUfbJAl0UOaDkVY E4JdOMjWSbxx5H51FiqGnS9V1qylcDkY40nzCkUyWEvW+pUc+vP/mgYZ3xsWMRK9KtJ6 hSzysADsEosQWXOIEEMeIvaG7MJZGseuH6rxt8o1HERTT9UgCTJV7NySOB6GPIt/92Hc vdDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ca10-20020a056a02068a00b005694a4640afsi25037278pgb.95.2023.09.29.06.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 06:12:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C1C9E8051B6A; Fri, 29 Sep 2023 05:34:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233190AbjI2MeG (ORCPT + 99 others); Fri, 29 Sep 2023 08:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbjI2MeE (ORCPT ); Fri, 29 Sep 2023 08:34:04 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C23C31AC for ; Fri, 29 Sep 2023 05:34:02 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qmCgq-0008Se-Fe; Fri, 29 Sep 2023 14:33:52 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qmCgp-009oFS-H5; Fri, 29 Sep 2023 14:33:51 +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 1qmCgp-009S7x-7e; Fri, 29 Sep 2023 14:33:51 +0200 From: Johannes Zink Date: Fri, 29 Sep 2023 14:33:32 +0200 Subject: [PATCH v5 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-v5-2-0d7928edafab@pengutronix.de> References: <20230523-simplepanel_support_nondefault_datamapping-v5-0-0d7928edafab@pengutronix.de> In-Reply-To: <20230523-simplepanel_support_nondefault_datamapping-v5-0-0d7928edafab@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 , Conor Dooley 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 05:34:14 -0700 (PDT) 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. Reviewed-by: Conor Dooley Signed-off-by: Johannes Zink --- Changes: v4 -> v5: none, re-added lost reviewed-by tag 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 50143fe67471..81ac402ceed1 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