Received: by 2002:ac8:6714:0:b0:405:464a:c27a with SMTP id e20csp390435qtp; Fri, 28 Jul 2023 05:14:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlHgaWbRPOW1bsp7o50tCFv3FqPnwEkT1TGrKZniFfjzFkb8DFFxzRNrQyFsO0jinBbhlH+F X-Received: by 2002:a05:6a20:7293:b0:134:30a8:9df5 with SMTP id o19-20020a056a20729300b0013430a89df5mr1848509pzk.43.1690546499180; Fri, 28 Jul 2023 05:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690546499; cv=none; d=google.com; s=arc-20160816; b=mDBZghkfj6GqTLeXwf+d3IGc2cCsQrpN0SWM1/yz6k0xcCDpL0uIrtKcZH00gI8Wtb wHTtE/NX5ec6bSdR26r8Vlbz0t6rd8OKTBbONUpklbVDnaR6xXT9oBNKIzwOAujC5BoG x4bfL8ZSqnzJJ1gDx0MJ8w3dlCMqeNi+iJOrm3OMJby5sOHedbY20He5t3q0jX0ZbZpi 6n335T6aHUlSfiqL6JdT3SvHJr5KXeFNuszpBoXoQ3u5ckjO8qPP69t5IBwsJZ7FXilZ frksdBZcvb1VOd+KU8iDovtahdYp67OJ+c5MS95RoixMlmxJUdgUQ4m3HHuiKkyGtikj o6Gg== 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=8eEQkV8HdUyW2TM3PU90XJyje1LsmBkL96GT883ivpE=; fh=rP9FHtW2A/h0fXZcKuUf+Qz+2VkvPWabXR/vO5n9PvE=; b=vKCgXfFVOmgdYdjorbmD6dXzAFv647nPrXetuwOWROmZ66lPH5LPxr8icIpC090ANB MckfXJ1GDSw9wbSEx4sMTTqOE0FAQPbUkAiRJRzNz177mcMvwO1P5C90u+V91juPaN9L 0gsVWdpL7yofrWtQSgibwmrpp3VKEMDfBoQd7/GeDvQnmNqa3rc4++cGbQcMjBEhEsxa s1Th4QaK8Q8TvfKR3EdtsBPI8qy0W/iIXASBsY6rXEdqcBRHwP5wMiHYtJakIpoFNxFn YBl2ePAJJnqyFd18C+cictSq0+BJYkVrgd2zEfNmc8vLpL1AIVjTeQj+rbpy0chO9NwG INpA== 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 y70-20020a638a49000000b0053fb354c194si2892651pgd.659.2023.07.28.05.14.46; Fri, 28 Jul 2023 05:14:59 -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 S236359AbjG1LzQ (ORCPT + 99 others); Fri, 28 Jul 2023 07:55:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236344AbjG1LzL (ORCPT ); Fri, 28 Jul 2023 07:55:11 -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 66CD14204 for ; Fri, 28 Jul 2023 04:55:06 -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-0002Lt-RH; 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-002hCs-Gs; 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-BD; Fri, 28 Jul 2023 13:54:50 +0200 From: Johannes Zink Subject: [PATCH v3 0/3] Support non-default LVDS data mapping for simple panel Date: Fri, 28 Jul 2023 13:54:37 +0200 Message-Id: <20230523-simplepanel_support_nondefault_datamapping-v3-0-78ede374d3d9@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAH2sw2QC/52OQW6DMBBFrxJ5HSeOnRLaVe9RRWjAYxgJxiPbo FQRdy9klXWX70v/6T1VxkSY1dfhqRIulCnyBu54UN0A3KMmv7GyxjrzYZ3ONMmIAoxjk2eRmEr DkT0GmMfSeCgwgQhxry+uc8Ei2DrUahO2kFG3CbgbduVSndy5RKHu/CbV7Zx1iGmCsn8kYaDHK /DnvvFAucT0++pd7L7+K22x2uj6dvmsgvGmra7fgtzPJUWmx8mjuq/r+geFgOAaHQEAAA== 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: 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 | 55 +++++++++++++- 4 files changed, 172 insertions(+), 70 deletions(-) --- base-commit: 52920704df878050123dfeb469aa6ab8022547c1 change-id: 20230523-simplepanel_support_nondefault_datamapping-13c3f2ea28f8 Best regards, -- Johannes Zink