From patchwork Fri Jul 14 01:37:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13312821 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E20B0C04A94 for ; Fri, 14 Jul 2023 01:38:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AB28010E0DF; Fri, 14 Jul 2023 01:38:05 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2C49F10E0AD for ; Fri, 14 Jul 2023 01:38:04 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 04ADE61B96; Fri, 14 Jul 2023 01:38:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF2F5C433CC; Fri, 14 Jul 2023 01:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689298681; bh=9TI9J6mC1lCJpPc8yugRRuczYXnteaBnSfpK07oP/rw=; h=From:To:Cc:Subject:Date:From; b=iBXhPgcriMJ1+XItROFvnpDxNjY1K+s4THIVfK4o36kH1expG9OZZ+RQMu0ZVMj7n XHOhNIvHHsRas+cnh0my5HI0IfnuuRNH6CYaMa9A6J20I7JThbvU3W//+IgxVXibOY 6Kd4G1xAoma53alLiT6jIYw+OKzpBrHMiTvIBEV+r859L+UCwqhTJXPn1Ob5MUAlXF zIf3oUR8N5Rl7t/1QZKKC/70m6WY2Pc729Dy5TUR0zovKYd2+cxLFxBjfSvmszeOD2 dfpYGMEraP9W1feXMVfyypVUjTudO3JvPhP97zMZemX7af7feuhNOMXuL/TiCD0fPm eIw+QTEWuGQXw== Received: by mercury (Postfix, from userid 1000) id C9628106766D; Fri, 14 Jul 2023 03:37:58 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel Subject: [PATCH v3 00/19] Sitronix ST7789V improvements Date: Fri, 14 Jul 2023 03:37:37 +0200 Message-Id: <20230714013756.1546769-1-sre@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Gerald Loacker , Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Rob Herring , Thierry Reding , Michael Riesch , Miquel Raynal Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, This adds panel support for Inanbo T28CP45TN89, which I found inside of a handheld thermal camera. The panel is based on the st7789v controller. All information is based on reverse engineering. I also appended the series from Miquel Raynal adding EDT ET028013DMA panel support, so that I could easily test it with my SPI_NO_RX setup. They are slightly different due to rebasing. Changes since PATCHv2: * https://lore.kernel.org/all/20230422205012.2464933-1-sre@kernel.org/ * https://lore.kernel.org/all/20230616163255.2804163-1-miquel.raynal@bootlin.com/ * Add Rob Herring's R-b for the DT binding * Make panel info "static const" * Add Michael Riesch's R-b to all my patches * Rebase to 6.5-rc1 * Append Miquel's series Changes since PATCHv1: * https://lore.kernel.org/all/20230317232355.1554980-1-sre@kernel.org/ * Apply DT binding changes requested by Krzysztof Kozlowski and his Ack * I changed the driver patches to avoid code duplication and splitted the code a bit more Greetings, -- Sebastian 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 Sebastian Reichel (13): dt-bindings: vendor-prefixes: add Inanbo dt-bindings: display: st7789v: add Inanbo T28CP45TN89 drm/panel: sitronix-st7789v: add SPI ID table drm/panel: sitronix-st7789v: remove unused constants drm/panel: sitronix-st7789v: make reset GPIO optional drm/panel: sitronix-st7789v: simplify st7789v_spi_write drm/panel: sitronix-st7789v: improve error handling drm/panel: sitronix-st7789v: avoid hardcoding mode info drm/panel: sitronix-st7789v: avoid hardcoding panel size drm/panel: sitronix-st7789v: add media bus format drm/panel: sitronix-st7789v: avoid hardcoding invert mode drm/panel: sitronix-st7789v: avoid hardcoding polarity info drm/panel: sitronix-st7789v: add Inanbo T28CP45TN89 support .../display/panel/sitronix,st7789v.yaml | 10 +- .../devicetree/bindings/vendor-prefixes.yaml | 2 + .../gpu/drm/panel/panel-sitronix-st7789v.c | 262 +++++++++++++++--- 3 files changed, 237 insertions(+), 37 deletions(-)