From patchwork Mon Jun 19 15:59:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 694223 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09356EB64DA for ; Mon, 19 Jun 2023 16:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230307AbjFSQAJ (ORCPT ); Mon, 19 Jun 2023 12:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232145AbjFSQAD (ORCPT ); Mon, 19 Jun 2023 12:00:03 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D0A91A4 for ; Mon, 19 Jun 2023 09:00:00 -0700 (PDT) X-GND-Sasl: miquel.raynal@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1687190399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4A28831+pVH/W/Z+3qcDtegWORQEs23NaQLZPsicn+s=; b=b1cUllmJxMf4q392YQ4oDiTae6Fty/KLFCWmBmwljg/SW9hsYzXmZus86XSQZKD6p/hdqh mOllkOjbIvul2uq80PHLd6FPQ6SKDEiGPHuTbevSDKI2qQcFFy+XMjIgbcwAuKpMx0HrOd +89q1c54q4tGjI4+5F34DBxZPxR7cuwS2xj4PeFbWYVi+moGrXxa22+tv2DvOHwdOSdd58 nHMm74Pu+M4GnmU+a5uFoFBUrOEVBqT7jPWzH5aJIybCL/ikfaRfe7S5jMfawoIA/PWqUL KlSEiBliH4T8AISDB8V7HTVMavQ7a9PgZcCwKitc3W7tqkGs8/eNd/6+stYeWQ== X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id B904D1BF206; Mon, 19 Jun 2023 15:59:58 +0000 (UTC) From: Miquel Raynal To: David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Maxime Ripard , Thomas Petazzoni , Miquel Raynal Subject: [PATCH v3 0/6] drm/panel: sitronix-st7789v: Support ET028013DMA panel Date: Mon, 19 Jun 2023 17:59:52 +0200 Message-Id: <20230619155958.3119181-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello, The aim of this series is to add support for the EDT ET028013DMA panel. This panel features a Sitronix ST7789V2 LCD controller, which is already supported mainline (or very close to the ST7789V for which Maxime added support years ago). The EDT panel is slightly different on the geometry and appears not to support refresh rates higher than 30fps (above, glitches are visible, despite the incoming signals being rather clean). While I was working on this panel, I found quite inconvenient to not be able to read anything back as it is a great tool for debugging purposes. So the last patch actually adds a read helper and uses it to perform a sanity check at probe time by verifying the Sitronix controller IDs. This series applies on top of Sebastian's series which was also bringing a number of good improvements to this driver. As Sebastian started and contributed his work before me, I think his series is close to be merged so I adapted my changes on top of it. Link: https://lore.kernel.org/dri-devel/20230422205012.2464933-1-sre@kernel.org/ Thanks, Miquèl Changes in v3: * Following the exchanges with Maxime, existing devices will not stop probing if the IDs are wrong, just because old description might actually miss the Rx bus width DT parameter. * Collected tags. Changes in v2: * Rebased on top of Sebastian's series and adapted all my changes to the existing infrastructure he has already added. * Collected tags. * Prevented the ID check to fail if there is no MISO line. * Used dev_err_probe() when relevant. * Sorted the IDs in the tables. * Renamed the panel mode. * Fixed typos. Miquel Raynal (6): dt-bindings: display: st7789v: Add the edt,et028013dma panel compatible dt-bindings: display: st7789v: bound the number of Rx data lines drm/panel: sitronix-st7789v: Use 9 bits per spi word by default drm/panel: sitronix-st7789v: Clarify a definition drm/panel: sitronix-st7789v: Add EDT ET028013DMA panel support drm/panel: sitronix-st7789v: Check display ID .../display/panel/sitronix,st7789v.yaml | 5 + .../gpu/drm/panel/panel-sitronix-st7789v.c | 116 +++++++++++++++++- 2 files changed, 118 insertions(+), 3 deletions(-)