| Message ID | 20260219175130.2839234-1-dario.binacchi@amarulasolutions.com |
|---|---|
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBM433XGAMGQEHWM765I@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com
[209.85.128.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 381D53F150
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 19 Feb 2026 18:51:48 +0100 (CET)
Received: by mail-wm1-f71.google.com with SMTP id
5b1f17b1804b1-48372facfedsf16836025e9.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 19 Feb 2026 09:51:48 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1771523508; cv=pass;
d=google.com; s=arc-20240605;
b=DY39NaeBWNU4FHT9AWJ/O1Jfq/KK62U6gWQ/kAGayETNeUPayvG2Nv/TVoNtiR8KZh
IkMfDYq7uCmdPCespVSotMCvqQhuXhiY107+kntnSFpgOvtO2mF2dFnk3w8ZxB6ADqXm
P5L3x747xNuq1vr1Gm716bMrE4KS+gAb4l4LP/7lC6jODjYi7q8Nis4KkockQfqV0E+y
kPJmSFs0rCED4U/8ulGxndis/dsrpmBLvtjZfTMuzNNEumDb7kCnPA/p5dArE7RWO2gg
nzjM5dkE7s8CN+nMPDKSiLSaZlB+CIf/t9DsjXOQlaeNIcF+XPWkubsnnRHAzcbGtoTV
wpjg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=hc/JP6vaBaV0IeFlziWofaYYBK8mXIIaM5UcFJQ8l0g=;
fh=11CsngfUbxa3DWwi5zI7nsvyjaBmTuVZnyrFnQSu+go=;
b=afukPyJD0uJcwHmfJHZytDbyd9tHKyKs7fz3L6AlIOPiRQTY19AR9qasSDqMyoeOmL
Dv7DneecJBZzfXJtx2NCuYmEOXCtvd8dA773wiDsyCX3HYE0yCO0IUDPaEainjHxJ/Mk
rLg1VmTLNrHoOIJat7j0t168frRspKHRM6Z3l9wDkGsWASQN56n7V/vEUI8+9Q5O42vm
lBdf9t4VFiZ/1u/9f0bzIwaJwdwK2Gs4IzTQd+jMs2FmzHArhDJ02Zca8375MpkzChq4
ozA834I0YkipIT+2k5OywsWSqxqpxFyZ6459CXCQN2wQsXOedzGmMcQ6WIEUEtYuezzy
u7yQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=q5+YKUmq;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1771523508; x=1772128308;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=hc/JP6vaBaV0IeFlziWofaYYBK8mXIIaM5UcFJQ8l0g=;
b=d2Ai1Ywqa6YyqS25iq98Liz/VDZVnAYVhrrzqFp9SeLYlsYhK8MVIf12I3TT3eG5ms
AK2OFAA5Uf8/A3vP5uFXTjmWHXIybHvwL9TfgHH22gPUsk5VAHLchk1tbcglPJiAfjKu
cT1trWUxusC/zq1D+lMHfDhTO/Gy3ozXtGYFg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1771523508; x=1772128308;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:x-gm-gg:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=hc/JP6vaBaV0IeFlziWofaYYBK8mXIIaM5UcFJQ8l0g=;
b=wsdHSyZwESJoDwBFVmhDaC0Mg2H5JysmIerISVVGlsiQvEP9CQoaq/JmcEtuI4mdSb
PakJg/s4NHKD9uQBCqeQXC9mlTNdF0ttHKElsSFx54N/5MZrVtrdhWHsM/3mmp/D9lwz
bVLI+H1AcuMPC/4u8wteHh6R8N+JpyuwQKIqKaPv7fpEieBXwEqwGqePou+bm7PL8Zrg
NvGJqTiBagFJ4UuszbimFYgYpTXTPu3JjnDjE4aHPK9BZowb/sI/a+TyC5c4gAeQ+IA3
7QD7f/naQ6IUS9y2t7dOpo2GYVP3rS7fyzq0jJCgH1xndqeDzHBAZaHNCi23KDtAR2S1
K3gw==
X-Forwarded-Encrypted: i=2;
AJvYcCWOJBe7nBrY4+6VHdHVqyoYYgZM+KDAi8BDIOZKaeNzRrA+0xlfG6GXXsx+71ZRBeAR+XbC8uTkO0eAHp0n@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yzir0p8CpXT4iyHJ5mchapylUYgdio9KXYul1YiZcH+Pwt8RkjT
txdkUY5uUdTqOPmlsFBwxWNXjeZZD0UFIXncg8D1WLtn3n4EmCVQbt2Nk15rZupn5Pk1LfKAx7/
buQ==
X-Received: by 2002:a05:600c:1d0b:b0:483:7b99:131d with SMTP id
5b1f17b1804b1-483a009b770mr47104335e9.16.1771523507554;
Thu, 19 Feb 2026 09:51:47 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AV1CL+H7TvxU+pSO2bThaB/7gi4nIHEA3gbvhaE+s0+HOVp1og=="
Received: by 2002:a05:600c:4e44:b0:477:9600:cba2 with SMTP id
5b1f17b1804b1-483970a59adls8443875e9.2.-pod-prod-00-eu-canary; Thu, 19 Feb
2026 09:51:45 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCV33F6F2bZ08j/HP1S99Pd4//1kTZpIcKMA0ZWbx7uZR6kVRULHrupNC1dRxtca1d/nJDU+oUAsQy7eELlX@amarulasolutions.com
X-Received: by 2002:a05:600c:19c7:b0:483:6fe3:bb49 with SMTP id
5b1f17b1804b1-4839fe60b29mr38341385e9.0.1771523505411;
Thu, 19 Feb 2026 09:51:45 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1771523505; cv=none;
d=google.com; s=arc-20240605;
b=lat/GQne/wRFNg4WiQKJvHsX/1FjoHmRzYzGT+6RgMoLVCP9H9DdPclwoSJ+vkSFEN
xh7DK22Si93msNlgq0CSozUqcQpzwudHSHXh+7FRhl4Sw5FCTX5KIYNqVWG7EL3bQghu
7aX56nOfUtP2/15XpOEvCvIQniz1taYvfq14L/ORwMFi4jMvw1jRtgBkip/DuIyGzjLd
Q8kPQJ3gL11pqXWpTVozVb1JVyzGI6rEqRu6UKwZYFjpR24zkCV/B9wW5vWnijnD0Pfh
Rgn25t/5dQc59tI3Ol5GxBNFFCEQzV0N4R7P/TO7uhTdimioNtqr8Gx83Kql/8A1cht0
n1Rw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=cy4KkJttvJ9loTxMFwuXAS6gYR0rkuPozqGdtP6/ELg=;
fh=HOyFbIVMJWFss+yttdNom9NrimGh5+WFZB3smH7xP+8=;
b=VCeeD1GnzcJ066wNuIYSm5MeVMw4ZqH+EYTJV57SdcI/ZUOhDtdIgcxg0zuQHSGqUf
gTKyvTWCS/4mvwglA2vzsrLVQJJTEm5p6aK5UDR+ZiU/GCTbmy8y7JbQPlj8PUtfRSVM
WYvq5GT8cWX3VT3zpdYCY1mt57ZEsjzmImLEoqMHyeV8Y642IFGczPbfiwitQgB0e+e3
42KFxgQxVYv5muixFiCYsYK+u8ma+ud4lrXaYL4V6Z/7PXUhmpJXy7xHno0N685jYldx
Yg2iqmf03F57fKfxZP4U7VRD529FDKTOM1SRvZNwS+JAqQ7Nafr5ReQAtzHHkc5S0i2/
7LSg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=q5+YKUmq;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-483a319904fsor1062975e9.2.2026.02.19.09.51.45
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 19 Feb 2026 09:51:45 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AJvYcCVW0B0g77IlVNCXgei41MB16o5Z+CtyM/rFuOmpG8uphO0xU63v1JBZR7p+y3q077kzcJXFAEHbiM+rFXs3@amarulasolutions.com
X-Gm-Gg: AZuq6aIKZ2rQpHKd9dIr9wklJNK+aFSaYgIW7fqJntsRMT1AOIqhfjIZiXUtiLXvldB
IXhW9IHVx2ZpP4yCnjXOpRvDCuPcNxojv+Sc1b6Wv9FTPNzz/WQWkV0/JA6HwLqetpEMoqhzesK
EyazgMKx/d55xl8lbRDVtJs2cQQkuEBNFliGUb+gUgfiaDaxdoKf3l3t1bBFWXNhKE1EhPKmpiU
WEWDqbXLUMoRwywPWckK8HQdOKIbhLHUPdwvKIB3EhIpRYOVybbR2HIHS8Bm6HhsVhME8HsfCmj
gQXw6JHRP/svSGFflP4yXAA5xD9YdyTN0PZsckJS0vZWqQO35c65ezCOpegbon7ljjEXdf1pMnN
Zd4TtJRBFKozcekW+iMaMu3WPX+cFZ1+GityZuwv2N3avwuugH6BWLcFVW2f9V+VX9gw+OGJynZ
m3dNAR6D6QeMRCvkFyRGmipvV1iooomBb0xiaQMB1RRyRGjXLRC/fkaXOWTip6QzE3GlOUZO9b8
LtPjI61paNI1ws6rAxbnxuec4x/LNGF0/HnxlNBPPpj6JLu6XiodOSqeHRfmBtIjijSmdopTr7O
GrcICb4rxeiiXklKrqV83TML
X-Received: by 2002:a05:600c:4e16:b0:47e:e981:78b4 with SMTP id
5b1f17b1804b1-483a008dcc2mr46366975e9.12.1771523504939;
Thu, 19 Feb 2026 09:51:44 -0800 (PST)
Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it
(host-95-248-31-95.retail.telecomitalia.it. [95.248.31.95])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-483a31b0e63sm35485005e9.2.2026.02.19.09.51.35
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 19 Feb 2026 09:51:44 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: Patrice Chotard <patrice.chotard@foss.st.com>,
linux-amarula@amarulasolutions.com,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Alexander Graf <agraf@csgraf.de>,
Alper Nebi Yasak <alpernebiyasak@gmail.com>,
Anatolij Gustschin <ag.dev.uboot@gmail.com>,
Andrew Goodbody <andrew.goodbody@linaro.org>,
Christian Marangi <ansuelsmth@gmail.com>,
Dragan Simic <dsimic@manjaro.org>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ion Agorria <ion@agorria.com>,
Jagan Teki <jagan@amarulasolutions.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Peter Robinson <pbrobinson@gmail.com>,
Simon Glass <simon.glass@canonical.com>,
Simon Glass <sjg@chromium.org>,
Svyatoslav Ryhel <clamor95@gmail.com>,
Tom Rini <trini@konsulko.com>,
uboot-stm32@st-md-mailman.stormreply.com
Subject: [PATCH 0/8] video: support Rocktech RK050HR345-CT106A panel
Date: Thu, 19 Feb 2026 18:51:11 +0100
Message-ID: <20260219175130.2839234-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=q5+YKUmq;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
video: support Rocktech RK050HR345-CT106A panel
|
|
Message
Dario Binacchi
Feb. 19, 2026, 5:51 p.m. UTC
This series adds support for the Rocktech RK050HR345-CT106A panel. The initialization of this panel requires a 9-bit word length configuration. To support this, I have extended the STM32 SPI driver (including support for the STM32MP25 SoC) to implement the set_wordlen operation. To properly validate these changes and ensure the SPI uclass correctly handles the word length propagation, I have also implemented the corresponding logic in the sandbox driver and added a dedicated unit test. I have grouped these patches together to provide a complete overview of the implementation and its verification. Dario Binacchi (8): spi: add support for bits-per-word setting spi: sandbox_spi: support wordlen setup test: spi: add sandbox_spi_get_wordlen interface test: dm: spi: add testcase for spi_set_wordlen() spi: stm32: clean up buffer length assignment spi: stm32: add support for bits-per-word setting spi: stm32: extend support to STM32MP25 video: support Rocktech RK050HR345-CT106A panel arch/sandbox/include/asm/test.h | 8 + drivers/spi/sandbox_spi.c | 21 ++ drivers/spi/spi-uclass.c | 19 ++ drivers/spi/stm32_spi.c | 67 +++++- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers/video/ilitek-ili9806e.c | 354 ++++++++++++++++++++++++++++++++ include/spi.h | 12 ++ test/dm/spi.c | 16 ++ 9 files changed, 499 insertions(+), 7 deletions(-) create mode 100644 drivers/video/ilitek-ili9806e.c
Comments
чт, 19 лют. 2026 р. о 19:51 Dario Binacchi <dario.binacchi@amarulasolutions.com> пише: > > This series adds support for the Rocktech RK050HR345-CT106A panel. > The initialization of this panel requires a 9-bit word length > configuration. To support this, I have extended the STM32 SPI driver > (including support for the STM32MP25 SoC) to implement the set_wordlen > operation. > > To properly validate these changes and ensure the SPI uclass correctly > handles the word length propagation, I have also implemented the > corresponding logic in the sandbox driver and added a dedicated unit > test. > > I have grouped these patches together to provide a complete overview of > the implementation and its verification. > > > Dario Binacchi (8): > spi: add support for bits-per-word setting > spi: sandbox_spi: support wordlen setup > test: spi: add sandbox_spi_get_wordlen interface > test: dm: spi: add testcase for spi_set_wordlen() Hello Dario! You should not need to modify spi framework to support 9 bit len xfer. dm_spi_xfer supports this already, you need only stm32 support for non-aligned xfers. You can refer to ssd2825 bridge as an example of 9-bit spi communication for write and 16 bit reads. > spi: stm32: clean up buffer length assignment > spi: stm32: add support for bits-per-word setting > spi: stm32: extend support to STM32MP25 > video: support Rocktech RK050HR345-CT106A panel > > arch/sandbox/include/asm/test.h | 8 + > drivers/spi/sandbox_spi.c | 21 ++ > drivers/spi/spi-uclass.c | 19 ++ > drivers/spi/stm32_spi.c | 67 +++++- > drivers/video/Kconfig | 8 + > drivers/video/Makefile | 1 + > drivers/video/ilitek-ili9806e.c | 354 ++++++++++++++++++++++++++++++++ > include/spi.h | 12 ++ > test/dm/spi.c | 16 ++ > 9 files changed, 499 insertions(+), 7 deletions(-) > create mode 100644 drivers/video/ilitek-ili9806e.c > > -- > 2.43.0 > > base-commit: 7dca54ef4c44c82bdc6716ac6cdc84c22c66e9ed > branch: RK050HR345-CT106A-ON-SPI To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hello Svyatoslav, On Thu, Feb 19, 2026 at 7:44 PM Svyatoslav Ryhel <clamor95@gmail.com> wrote: > > чт, 19 лют. 2026 р. о 19:51 Dario Binacchi > <dario.binacchi@amarulasolutions.com> пише: > > > > This series adds support for the Rocktech RK050HR345-CT106A panel. > > The initialization of this panel requires a 9-bit word length > > configuration. To support this, I have extended the STM32 SPI driver > > (including support for the STM32MP25 SoC) to implement the set_wordlen > > operation. > > > > To properly validate these changes and ensure the SPI uclass correctly > > handles the word length propagation, I have also implemented the > > corresponding logic in the sandbox driver and added a dedicated unit > > test. > > > > I have grouped these patches together to provide a complete overview of > > the implementation and its verification. > > > > > > Dario Binacchi (8): > > spi: add support for bits-per-word setting > > spi: sandbox_spi: support wordlen setup > > test: spi: add sandbox_spi_get_wordlen interface > > test: dm: spi: add testcase for spi_set_wordlen() > > Hello Dario! > > You should not need to modify spi framework to support 9 bit len xfer. > dm_spi_xfer supports this already, you need only stm32 support for > non-aligned xfers. Thank you for the feedback. I initially explored the approach you suggested. However, following the STM32 driver implementation in the Linux kernel, I found that explicitly managing the bits-per-word parameter was necessary. In the current STM32MP2 driver, the word length is effectively hardcoded to 8 bits. To address this, I needed to implement the set_wordlen ops, which is already declared among the available SPI framework ops but had not yet been implemented or used. The proof of this approach is that the driver now correctly handles multi-word 16-bit transfers of any buffer size, using 9-bit words as required. This is a significant improvement over the common implementations that often only support single 16-bit data transfers. I believe this provides the necessary flexibility that dm_spi_xfer alone couldn't achieve without a way to redefine the word boundaries. Thanks and regards, Dario > > You can refer to ssd2825 bridge as an example of 9-bit spi > communication for write and 16 bit reads. > > > spi: stm32: clean up buffer length assignment > > spi: stm32: add support for bits-per-word setting > > spi: stm32: extend support to STM32MP25 > > video: support Rocktech RK050HR345-CT106A panel > > > > arch/sandbox/include/asm/test.h | 8 + > > drivers/spi/sandbox_spi.c | 21 ++ > > drivers/spi/spi-uclass.c | 19 ++ > > drivers/spi/stm32_spi.c | 67 +++++- > > drivers/video/Kconfig | 8 + > > drivers/video/Makefile | 1 + > > drivers/video/ilitek-ili9806e.c | 354 ++++++++++++++++++++++++++++++++ > > include/spi.h | 12 ++ > > test/dm/spi.c | 16 ++ > > 9 files changed, 499 insertions(+), 7 deletions(-) > > create mode 100644 drivers/video/ilitek-ili9806e.c > > > > -- > > 2.43.0 > > > > base-commit: 7dca54ef4c44c82bdc6716ac6cdc84c22c66e9ed > > branch: RK050HR345-CT106A-ON-SPI