From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 407E5308F39 for ; Tue, 17 Feb 2026 09:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771320472; cv=none; b=Uqjq9irNsCt1wNxOnCbSt0pjSDeyHxTI80/01Bekbqo33icWjXZlZgH/tWk4XlJiR4T7sI8TIGaiD6YEhB7N7vOj4qMI+hZ4piF4VT4BcIMIxEO/V1eyigdDfiIpZ0GyqQiRabw9Cn2zO7kWnuHAgnEksEHgTzDHhnC+5WIbhpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771320472; c=relaxed/simple; bh=UOrhMiqO/vmRsPaQIImuSNAWuHNiFVe04FA8sTvQPpo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WntuZrhe4YiuJfIUYbsj5FtT7ecDTFoMmuQlKDINT6AfAcIBTIYmTzImouLYk1D7rOtlsRxCeJg5IxKQTZ7YaO+04XxsG33ovvBdKIxa231gdBbnuec9lYy4b8q/OTGdb+oQ15rD6eZVKyXYbdODgRQMXiLL0dTeQfV9bU/nJFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SfWPPIb4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SfWPPIb4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE95BC19423; Tue, 17 Feb 2026 09:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771320471; bh=UOrhMiqO/vmRsPaQIImuSNAWuHNiFVe04FA8sTvQPpo=; h=From:To:Cc:Subject:Date:From; b=SfWPPIb41J40NkOvjjQ45GCsOCkw82WipvgutyIfk3jdXl+GjPjykZLF0ZiUa2GU2 SGGok8BXc5yN2Ycjfx5TEoLFr1lvEDPiSthgNCf1N7Lgp/g4PDXrtceSTIr45BQ7ix H+89LqIgIZ7oaw0vWj2q37WC3ZJzhdaVDgJgOqOSmUJ/mI39xgeWrmdDhy25iCtKYd wrIzJdg/ZzWC0kYRjqcjqO7TF3xqrRPQ5Me/GzriYnZ+y+DiEKiRFWnefmCNDFbZZy VocUI4wOUpKqk1JXzlUGy7lzz4fmb1h4QU6h7HoZUzQJPZ3omLFLtjgyWrSh4q4s/A txow6Fv3aZlUw== Received: by wens.tw (Postfix, from userid 1000) id 84E745FDFB; Tue, 17 Feb 2026 17:27:49 +0800 (CST) From: Chen-Yu Tsai To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: Sebastian Reichel , Gerald Loacker , Michael Riesch , Miquel Raynal , Chen-Yu Tsai , David Airlie , Simona Vetter , Archit Anant , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [RFT PATCH v2 0/2] drm/panel: sitronix-st7789v: Convert to mipi_dbi Date: Tue, 17 Feb 2026 17:27:35 +0800 Message-ID: <20260217092738.3238016-1-wens@kernel.org> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi folks, This small series converts the st7789v panel to use the mipi-dbi helpers for register access. Originally I intended to also add tinydrm support. My purpose was just to test a TFT module that is on the Avaota A1 board. Archit is interested in working on this driver, and I already used his/her previous patch to check that my TFT was sort of working, albeit probably with the wrong internal parameters. So this series will serve as a base for that work. Patch 1 adds an option to invert the reset GPIO logic in the mipi-dbi helpers. The reset logic originally assumes "high" is out of reset, so an "enable" GPIO rather than a "reset" GPIO. However the st7789v drivers assumes the proper "reset" GPIO logic. Patch 2 converts all SPI register accesses in the st7789v to use the mipi_dbi helpers. This actually reduces the number of function calls, as the command and data portions of each message are combined. This conversion also lets the driver support 8-bit plus D/C GPIO transfers. This series is unfortunately only compile tested, as I do not have an st7789v panel that is wired up for RGB input. So please help test the changes. Thanks ChenYu Changes since v1: - Fix compile error from half changed reset GPIO handling Chen-Yu Tsai (2): drm/mipi-dbi: Provide option to invert reset GPIO logic drm/panel: sitronix-st7789v: Convert to mipi_dbi drivers/gpu/drm/drm_mipi_dbi.c | 4 +- drivers/gpu/drm/panel/Kconfig | 1 + .../gpu/drm/panel/panel-sitronix-st7789v.c | 306 +++++++----------- include/drm/drm_mipi_dbi.h | 9 + 4 files changed, 121 insertions(+), 199 deletions(-) -- 2.47.3