Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4004248rwd; Tue, 23 May 2023 01:27:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50rLpdKTLfL/riXLnwrVuAdlrSsvugstcsDtoWpeTHz60ou6wGQ7J7HdA8AwghCVQUPOWm X-Received: by 2002:a05:6a20:7286:b0:105:66d3:8572 with SMTP id o6-20020a056a20728600b0010566d38572mr15275624pzk.24.1684830440212; Tue, 23 May 2023 01:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684830440; cv=none; d=google.com; s=arc-20160816; b=hkEU0fo3I1+gFLJRXyKzWE4QIZmG4LqdprAqQRXdi4c4lTc580oBiNOWCCQ5NJXyFY rL88pmn7E6mwpO3BRFcysuPOCQy/RPjWrM4qElz0lH2TCaMdwWnuL5g3B0SNvSzq7TGV xQlmBT4q7xZJbLfDDQasO14kQ/hxb494es2khMGftrXFeYvyplakbHydIi5CgLQt6FjH nhp19WJ/smYr5oBMRuRzd1SQzoS/oBzygFTOoWOeqTCDGLLVhPo8gH2XpiZGEESoAUGJ NJSELX94DJDU8+ykoG17kAFPKnpou6/yVckA2rsmYmTji8SaZjwD5s1qkrg0J768AFia vX2g== 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=C8uMaiLSrLNtvTQfFwrNyHpjC+SqO7trSGNxwMqSRy4=; b=dH3/cfM+sU1hzDgOwtua7cf3Ka5bXnV4GgAQc8+qKAS7n0eNc1iEQIuXKQ5PQQxiOj cdduEzDHJ3zj6/RlQkg41/y1w23UEc2cH8clZrcA3XJF6U01V/+tC+u91+EmnEYuLsKX PRTqsGXUlRuCkd21+/quuqLHs6wxRX+s9vNxLkD6G/coiusJgPZdyJtF/gnPci/P0Bzq VBgYLnPESctiwGN71r0Hh+6FDCwmRhJwcZ8mYMuIyu2KJoveUmx0njwipO8KiJ6CEPDP JAWLV6qqxrRKQpRVb8LmdQeiaYzakn46CiJTkxpG0LPdKItlCFdTxRy9swBCK/8xVSpQ m3Dw== 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 i66-20020a625445000000b0064d545c8466si4197911pfb.287.2023.05.23.01.27.08; Tue, 23 May 2023 01:27:20 -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 S235540AbjEWIXX (ORCPT + 99 others); Tue, 23 May 2023 04:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236181AbjEWIWl (ORCPT ); Tue, 23 May 2023 04:22:41 -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 910ED199E for ; Tue, 23 May 2023 01:19:54 -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 1q1NFB-00042m-Vo; Tue, 23 May 2023 10:19:46 +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 1q1NFA-002CaT-VV; Tue, 23 May 2023 10:19:44 +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 1q1NF9-006uEf-PF; Tue, 23 May 2023 10:19:43 +0200 From: Johannes Zink Date: Tue, 23 May 2023 10:19:42 +0200 Subject: [PATCH v2 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-v2-2-87196f0d0b64@pengutronix.de> References: <20230523-simplepanel_support_nondefault_datamapping-v2-0-87196f0d0b64@pengutronix.de> In-Reply-To: <20230523-simplepanel_support_nondefault_datamapping-v2-0-87196f0d0b64@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: 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 ec50dd268314..698301c8c920 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. @@ -353,6 +353,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 @@ -372,3 +383,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