Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1368114rwb; Fri, 28 Jul 2023 08:26:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlH+xvmOCpl1WZNrIOEsqmRd+pfChuWN+vHCPpx+QjqVaI6R1YmEG4Ek42hjV6LFqKPD+ak0 X-Received: by 2002:a05:6a21:3b44:b0:134:11c9:46bd with SMTP id zy4-20020a056a213b4400b0013411c946bdmr1762264pzb.3.1690557997930; Fri, 28 Jul 2023 08:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690557997; cv=none; d=google.com; s=arc-20160816; b=YnOXg18HsPTpKfUAb6NWEzQv96FnV3fMrFp4d7TDsdd3VRoyQ8bYb2QISLCFQgM+MF GMEMlutj51r0KpcCGq2RZAq0xQZsq9toONvdPGaSTN4Ux05WkWS27VMdvxfbbMIO64wf cKyiTpg+58xfMqut1cKUq+JcggUqZmEHKn8+mvkMqQdBbMjqh8HLbRbQcqpkjTBclQgl VPzfR79BzCzw+lAwnFVj8B1tnBn9x+eqiPo8U996jyvNdpDe1roppSmxvTPu+eSdoD07 Nk0hu9dZ9V5KmJtWGrzs9SEHAakNmrX32Dr1HlS3RG0n+A1LEkqyF3ql/KFgOrM2vuPH Vwag== 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=gX7pFUd6Aa3dcJeol5GFXSroWOXS/GQwUlzZ2F9Ut3E=; fh=rP9FHtW2A/h0fXZcKuUf+Qz+2VkvPWabXR/vO5n9PvE=; b=AesYT1r4x6TrlVw+7LfBBxym0FDAooVhpBir2IHk6cOdw51lhBw4ywMg6TPdKjLGJf 0VZV5bBoXLtN8Ga7Nz3jWnuykmOO8U4NpU2Dje4EnPEN5e5rXawBUtQmGIUzsW3XzNpS 1rwDM2XDte2PUTUgWtdw/bu2REM8tsJjz0U9Zafga4DUEm4xQkEXP9xh+Byyihu9ivvT jVsyKYm5yGspu10Y/yM3zLKpKP881+Bwgc5fK4r37OIaJUWNvPlyFkbWlrLOgpq6WraE j9Ev3Nx6DkyTzCQxct3ckWEjRmEtU+mjvxyb4Or3DYf/ULTVKMZ9baDOt7siIuZcEg7L lCKw== 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 t36-20020a634624000000b0051b65f4d94asi3112737pga.484.2023.07.28.08.26.25; Fri, 28 Jul 2023 08:26:37 -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 S236980AbjG1ORZ (ORCPT + 99 others); Fri, 28 Jul 2023 10:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236280AbjG1ORV (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 891993ABA 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-0006G2-J4; 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-002jHM-Dn; 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-RF; Fri, 28 Jul 2023 16:17:03 +0200 From: Johannes Zink Subject: [PATCH v4 0/3] Support non-default LVDS data mapping for simple panel Date: Fri, 28 Jul 2023 16:16:54 +0200 Message-Id: <20230523-simplepanel_support_nondefault_datamapping-v4-0-e6e7011f34b5@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANbNw2QC/52OwYrDIBCGX6V4Xlur2STtqe+xLGESx2QgUVEjX UrefU1Phd56/Abm+78HixgII7seHixgpkjOFqi+DmyYwI7ISRdmUkglvqXikRY/oweLcxdX711 InXVWo4F1Tp2GBAt4T3bkZzUoIxFka1pWhD1E5H0AO0y7MtdHdUrO03B6kfJ+jdy4sEDaf3xAQ /dn4M9v4YlicuHv2Zvlfv0oLUsueNucL7URWvR1dfNoxzUFZ+l+1Mj2raw+96vib1rUqJpKK31 582/b9g8m2cWKfQEAAA== 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: v3 -> v4: - driver: worked in Dan's Feedback: - return with proper error in case the call into panel_simple_override_nondefault_lvds_datamapping() failed - drop the unneeded and ambiguous ret local value - Link to v3: https://lore.kernel.org/r/20230523-simplepanel_support_nondefault_datamapping-v3-0-78ede374d3d9@pengutronix.de v2 -> v3: - dt bindings: Worked in Conor's and Laurent's Feedback (thanks for your review): Drop the chomping indicator - dt bindings: Worked in Laurent's Feedback: fix typos - driver: worked in Laurent's review findings: - extract function for fixing up the bus format - only call this function on LVDS panels - fix typo - Link to v2: https://lore.kernel.org/r/20230523-simplepanel_support_nondefault_datamapping-v2-0-87196f0d0b64@pengutronix.de 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 | 77 +++----------------- .../bindings/display/panel/panel-simple.yaml | 26 ++++++- drivers/gpu/drm/panel/panel-simple.c | 53 ++++++++++++++ 4 files changed, 171 insertions(+), 69 deletions(-) --- base-commit: 52920704df878050123dfeb469aa6ab8022547c1 change-id: 20230523-simplepanel_support_nondefault_datamapping-13c3f2ea28f8 Best regards, -- Johannes Zink