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 AABED27F4E7 for ; Tue, 17 Feb 2026 06:37:05 +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=1771310225; cv=none; b=klaJVWQ++e0amO4KYtEyF+Xs1sVD/Riv3S7vK7p/8xNWCZ6luzTiyOGF1LcdaMKIOR6qek0LwMtR0K5CUARkLk3jO7Wffx6N/yNsN/u0/blhTlfnRhr4FZoxpVYoqdsqdEtFZnKSfzTXiXRb1IPleVapeo6oOQ2PgtCtTYOWdFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771310225; c=relaxed/simple; bh=dTSMhCoTawp87AU7Cy0n0WfT/muvtx6IV9W5sVlbD54=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oeW/rG7OafR2Vck4VUckfpvWWjdg7yisn2DpUeACDMLNiY+KvUTAoZdy+PqH/UIEUXu/qF4kIIGuPe4M2mdYVjbKRsT1AFiIMcRdXfcYLQ1lIZB4Gb8M6btS8RLtsIrbCVay1esaYAcTDR/Kb7DRWA67YGJr4Zl2U4X7gAU0DkY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eSktyi9z; 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="eSktyi9z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25383C4CEF7; Tue, 17 Feb 2026 06:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771310225; bh=dTSMhCoTawp87AU7Cy0n0WfT/muvtx6IV9W5sVlbD54=; h=From:To:Cc:Subject:Date:From; b=eSktyi9ziG7E5UMcEtHpT7GSZYKUPrNhHikQNmwm3pyNrGk6fMC58P+85WFLM85MJ /AXK9BTXI68W25Gax/9c58YsE7NVNQb/5qCsxKKOwfjDaOf8gnp1n63WYgr8ayPrVc ClK3L8QxDjmV5GeJvFhjizTJaosw9Mk6akRpRtBmFzL1p4EEG+JDlxqpNNn3sNw2yc FBXRQivfp5lmABFAAokvMRZdqJg7aYOtgmrLzVYeRrEhHnzI/RHS8oXIL67W2oQH82 0rY4eUQQReemJr63wA7K119yUc2XC0Y79IFR7yS5UnoP65LtTZbagnZBVdkGNjGhMO EQH2fD4ObIC3A== Received: by wens.tw (Postfix, from userid 1000) id 86F075FDFB; Tue, 17 Feb 2026 14:37:02 +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 0/2] drm/panel: sitronix-st7789v: Convert to mipi_dbi Date: Tue, 17 Feb 2026 14:36:42 +0800 Message-ID: <20260217063647.3160826-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. 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 | 304 +++++++----------- include/drm/drm_mipi_dbi.h | 9 + 4 files changed, 120 insertions(+), 198 deletions(-) -- 2.47.3