Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4026058rwd; Tue, 23 May 2023 01:52:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/jKpm08c+dkv4MbvbUdwM6LE+0CnLq4PZz4a4LMeeLCEGM9M13m0olITnullM6+mmJCuT X-Received: by 2002:a05:6a00:2405:b0:640:f313:efba with SMTP id z5-20020a056a00240500b00640f313efbamr15903919pfh.19.1684831956062; Tue, 23 May 2023 01:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684831956; cv=none; d=google.com; s=arc-20160816; b=oLnZR3N/a8JGg1EkwBuTHaIBrYLEU5lpCbNqFiw8AhBFaEQtkBeBrXfqLk1dbJMiOn ehaAeSFRK4+FuxVwf4quruIyHGtXUuKKKt8MpmuJu3vvF1nC0AfKxl9oNDXv6hU3Aixx rujEI0CZQ78e7/EtkvAb4SQx0pLYdBAhPlfznwwdYsz3Z4GgihZVVfrSFrYH8/K8mnDD uaHURJrhHyvKNEp79Orhdt7W3Vv9n6gtnxqkVH9DAYsRBjk+EcaC/BK5B4QmSAMhKkEV dbdisQ244djkUGKcNBJnhWBLEpgMXvNur6X9DJBFZ7MfRjpeuOy+uOxvDDr/0LM2POJG AJ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=gYWpN8fhb8gQbs9K5a57TBVpzqRBc/oTHyRwFv/6Bp8=; b=mvpQ+MAo23FvSnNUBxrBQkZ/pBfHbWNOXtkjrz1Db4RRAr3nxSzT1qw6mKnIetbbr2 OAqu6E3rYAEiYyx+F17LuXpDJek6NOTj1N0hbrO8q0wyevctVYONdqSVKvynkw7/o0kx oEXOMlCKAG8DVwS2q+Lq5nPKDijf1phcc4lLPl0XjW+TJhynlI71hTap7ta62N+Xg9Iw INfZnF4NtdfoWSVJzCu1aUbAnyNbhl7OzKc/9eXNIvl5iMmt5r2Wc0Qi8MI50amTHSRR ECt2NoDgBdQVXqVa7Vx2HPZDWvJ9pQN7SICqq7QqZpH7AlEJQdJ23eZjwZjWQNMe8uB4 hK9Q== 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 u8-20020a637908000000b00535a6ef4139si4902580pgc.503.2023.05.23.01.52.21; Tue, 23 May 2023 01:52:36 -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 S235675AbjEWIX0 (ORCPT + 99 others); Tue, 23 May 2023 04:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236182AbjEWIWl (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 8B92110E3 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-00042k-Vn; 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-002CaN-MA; 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-M8; Tue, 23 May 2023 10:19:43 +0200 From: Johannes Zink Subject: [PATCH v2 0/3] Support non-default LVDS data mapping for simple panel Date: Tue, 23 May 2023 10:19:40 +0200 Message-Id: <20230523-simplepanel_support_nondefault_datamapping-v2-0-87196f0d0b64@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABx3bGQC/03OQQqDMBCF4atI1k21CS3Sq5QSxjjRAU2GTJSCe PdqV13+i/fxNiWYCUU9q01lXEkoxSPMpVJ+hDigpv5oZRpjm7uxWmjmCRkiTk4W5pSLiyn2GGC ZiuuhwAzMFAd9s94Gg2Da0KoD7EBQdxmiH09yfVxtXRKTr/9Q3S2iQ8ozlHPDGQN9fgdf733/A uWrwz+wAAAA 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 LVDS panels, such as the innolux,g101ice-l01 support multiple LVDS data mapping modes, which can be configured by strapping a dataformat pin on the display to a specific voltage. This can be particularly useful for using the jeida-18 format, which requires only 3 instead of 4 LVDS lanes. This series moves the data-mapping property for LVDS panels in a separate file and optionally adds it to simple-panel when matching to the innolux,g101ice-l01 compatible. This property allows to override the default data mapping set in the panel description in simple-panel. The last patch in this series actually adds the driver support for parsing the data format override device tree property and modifying the corresponding values for bit per color and media bus format in the panel descriptor. Best regards Johannes --- Changelog: v1 -> v2: - dt bindings: Worked in Rob's review findings (thanks for your review), refactored to use common include instead of duplication - driver: added missing error unwinding goto, as found by Dan Carpenter's test robot: Reported-by: kernel test robot Reported-by: Dan Carpenter Link: https://lore.kernel.org/r/202304160359.4LHmFOlU-lkp@intel.com/ To: David Airlie To: Daniel Vetter To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Laurent Pinchart To: Thierry Reding To: Neil Armstrong To: Sam Ravnborg Cc: patchwork-jzi@pengutronix.de Cc: kernel@pengutronix.de Cc: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Johannes Zink --- Johannes Zink (3): dt-bindings: display: move LVDS data-mapping definition to separate file dt-bindings: display: simple: support non-default data-mapping drm/panel-simple: allow LVDS format override .../bindings/display/lvds-data-mapping.yaml | 84 ++++++++++++++++++++++ .../devicetree/bindings/display/lvds.yaml | 75 +++---------------- .../bindings/display/panel/panel-simple.yaml | 26 ++++++- drivers/gpu/drm/panel/panel-simple.c | 39 +++++++++- 4 files changed, 155 insertions(+), 69 deletions(-) --- base-commit: 33a86170888b7e4aa0cea94ebb9c67180139cea9 change-id: 20230523-simplepanel_support_nondefault_datamapping-13c3f2ea28f8 Best regards, -- Johannes Zink