Received: by 2002:ac8:6714:0:b0:405:464a:c27a with SMTP id e20csp394883qtp; Fri, 28 Jul 2023 05:22:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7zVJzKupiFAQ5dsJoDremRItQIb3wfA1LUy9GFfzBbsVJk/GaPN5bfHWf0QLsG5BJEGK8 X-Received: by 2002:a05:6a20:729b:b0:125:4d74:cd6a with SMTP id o27-20020a056a20729b00b001254d74cd6amr2352896pzk.3.1690546948056; Fri, 28 Jul 2023 05:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690546948; cv=none; d=google.com; s=arc-20160816; b=iIQQVgco8HkwmSj5QnOMy5mUuKrQjQ9wR4dmb/ncMIIQY+uY0A/Ake2qfnFWElIU8X 2Qw16stGF2Rc3X61LoAcKHRLJamzUUl0S10JUVHkq1lx0G/EqqzpX8t8x+nanFFdYueE H+hCCAybymP4sKSBK4mesBFbhAd8xFhdbY/mVTevgIugVzbwzFD73ZyHInavCWUVWUYN hzIdLuE/f99ZK66jY1M9gW7i/fg5Dzv8QBfK2Pl4O7v6w0F7t9GBd/ADrCF4MB17TQyD fpjUy8wyKzcj7LaOl7o+iYhjyP9VY8udJf1kxEuCQAfvgX6RFsu0y2QKZEkDW/iKLxWZ ucfA== 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=m8Z8c30YZHukMyzsVysd2qf5X4lplSA9lllx3uM/t/E=; fh=rP9FHtW2A/h0fXZcKuUf+Qz+2VkvPWabXR/vO5n9PvE=; b=uNQiqfcOeuG/Fm+c9YuCQ/iUnWrK4QCjZeyDatTxBRdbfNiHWKaoLvKXJZVYjcORJh 693WprB4BK9+GQzFAJhf/fn71tJRJgYBBaowgwQuZfoc5IEfJPCmhnY+5gAHxYDXVkw8 YNsQTuArglarfN85zuQAqWicPlmAaE08fi7GrUEN1/yFxSVsd5hDuepy/q/vCkZzT0OX 5/LBG6h2IGqy4PzSLgr7sgRNKENeH4iutZ8CBVtmXTqsFNda9qu/ksme5qL9xXTLpi+c KuSlmchA0P/hKmOQLJWI2tOedvjqHy0kXZBFG8SYNPd8L+1WpiGR1bM5PGfscTXRmeoZ MI7Q== 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 z66-20020a633345000000b0056345699503si2969935pgz.2.2023.07.28.05.22.14; Fri, 28 Jul 2023 05:22:28 -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 S236339AbjG1LzK (ORCPT + 99 others); Fri, 28 Jul 2023 07:55:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234775AbjG1LzJ (ORCPT ); Fri, 28 Jul 2023 07:55:09 -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 A74AF3C3B for ; Fri, 28 Jul 2023 04:55:04 -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 1qPM3Y-0002Lu-RN; Fri, 28 Jul 2023 13:54:52 +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 1qPM3X-002hCv-NK; Fri, 28 Jul 2023 13:54: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 1qPM3W-008twe-Bf; Fri, 28 Jul 2023 13:54:50 +0200 From: Johannes Zink Date: Fri, 28 Jul 2023 13:54:39 +0200 Subject: [PATCH v3 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-v3-2-78ede374d3d9@pengutronix.de> References: <20230523-simplepanel_support_nondefault_datamapping-v3-0-78ede374d3d9@pengutronix.de> In-Reply-To: <20230523-simplepanel_support_nondefault_datamapping-v3-0-78ede374d3d9@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=ham 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: 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