* [PATCH v1 0/2] spi: spidev: Add Toradex LAVA HAT
@ 2026-04-20 11:45 Francesco Dolcini
2026-04-20 11:45 ` [PATCH v1 1/2] dt-bindings: trivial-devices: add toradex,lava-hat-spi Francesco Dolcini
2026-04-20 11:45 ` [PATCH v1 2/2] spi: spidev: Add Toradex LAVA HAT OF compatible Francesco Dolcini
0 siblings, 2 replies; 6+ messages in thread
From: Francesco Dolcini @ 2026-04-20 11:45 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Mark Brown
Cc: Francesco Dolcini, devicetree, linux-kernel, linux-spi
From: Francesco Dolcini <francesco.dolcini@toradex.com>
Add a compatible string for the SPI loopback device present on the
Toradex LAVA HAT test fixture and add it to the spidev driver.
The Toradex LAVA HAT is a board used for automated hardware-in-the-loop
(HIL) testing, it provides several test-related functionalities, and
exists in multiple variants depending on the board it is mated with. The
SPI function is implemented with a loopback on the MISO/MOSI signals.
Link: https://lore.kernel.org/all/20260310133254.GA51497@francesco-nb/
Link: https://lore.kernel.org/all/20260316073547.11437-3-francesco@dolcini.it/
Francesco Dolcini (2):
dt-bindings: trivial-devices: add toradex,lava-hat-spi
spi: spidev: Add Toradex LAVA HAT OF compatible
Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
drivers/spi/spidev.c | 2 ++
2 files changed, 4 insertions(+)
--
2.47.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 1/2] dt-bindings: trivial-devices: add toradex,lava-hat-spi
2026-04-20 11:45 [PATCH v1 0/2] spi: spidev: Add Toradex LAVA HAT Francesco Dolcini
@ 2026-04-20 11:45 ` Francesco Dolcini
2026-04-20 16:02 ` Conor Dooley
2026-04-20 11:45 ` [PATCH v1 2/2] spi: spidev: Add Toradex LAVA HAT OF compatible Francesco Dolcini
1 sibling, 1 reply; 6+ messages in thread
From: Francesco Dolcini @ 2026-04-20 11:45 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Mark Brown
Cc: Francesco Dolcini, devicetree, linux-kernel, linux-spi
From: Francesco Dolcini <francesco.dolcini@toradex.com>
Add a compatible string for the SPI loopback device present on the
Toradex LAVA HAT test fixture.
The Toradex LAVA HAT is a board used for automated hardware-in-the-loop
(HIL) testing, it provides several test-related functionalities, and
exists in multiple variants depending on the board it is mated with. The
SPI function is implemented with a loopback on the MISO/MOSI signals.
As the device can be fully described using only "compatible" and "reg",
it is appropriate to list it under trivial-devices.yaml rather than
introducing a dedicated binding.
The SPI implementation is identical across all Toradex LAVA HAT
variants, so a single compatible string is sufficient.
Link: https://lore.kernel.org/all/20260310133254.GA51497@francesco-nb/
Link: https://lore.kernel.org/all/20260316073547.11437-3-francesco@dolcini.it/
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 23fd4513933a..95e78ff804af 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -519,6 +519,8 @@ properties:
- ti,tps546d24
# I2C Touch-Screen Controller
- ti,tsc2003
+ # Toradex Lava Hat SPI
+ - toradex,lava-hat-spi
# Winbond/Nuvoton H/W Monitor
- winbond,w83793
--
2.47.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 2/2] spi: spidev: Add Toradex LAVA HAT OF compatible
2026-04-20 11:45 [PATCH v1 0/2] spi: spidev: Add Toradex LAVA HAT Francesco Dolcini
2026-04-20 11:45 ` [PATCH v1 1/2] dt-bindings: trivial-devices: add toradex,lava-hat-spi Francesco Dolcini
@ 2026-04-20 11:45 ` Francesco Dolcini
1 sibling, 0 replies; 6+ messages in thread
From: Francesco Dolcini @ 2026-04-20 11:45 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Mark Brown
Cc: Francesco Dolcini, devicetree, linux-kernel, linux-spi
From: Francesco Dolcini <francesco.dolcini@toradex.com>
Add "toradex,lava-hat-spi" OF compatible, that describes the SPI
interface implemented in the Toradex LAVA HAT. The Toradex
LAVA HAT is a test fixture used in Toradex automated testing lab, it
provides various functionality, including SPI MISO-MOSI loopback on
various SPI interface.
Link: https://lore.kernel.org/all/20260310133254.GA51497@francesco-nb/
Link: https://lore.kernel.org/all/20260316073547.11437-3-francesco@dolcini.it/
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
drivers/spi/spidev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 638221178384..2a92dfdc5331 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -701,6 +701,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
{ .name = /* semtech */ "sx1301" },
{ .name = /* silabs */ "em3581" },
{ .name = /* silabs */ "si3210" },
+ { .name = /* toradex */ "lava-hat-spi" },
{},
};
MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
@@ -735,6 +736,7 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "semtech,sx1301", .data = &spidev_of_check },
{ .compatible = "silabs,em3581", .data = &spidev_of_check },
{ .compatible = "silabs,si3210", .data = &spidev_of_check },
+ { .compatible = "toradex,lava-hat-spi", .data = &spidev_of_check },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
--
2.47.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/2] dt-bindings: trivial-devices: add toradex,lava-hat-spi
2026-04-20 11:45 ` [PATCH v1 1/2] dt-bindings: trivial-devices: add toradex,lava-hat-spi Francesco Dolcini
@ 2026-04-20 16:02 ` Conor Dooley
2026-04-20 16:10 ` Krzysztof Kozlowski
0 siblings, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2026-04-20 16:02 UTC (permalink / raw)
To: Francesco Dolcini
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Mark Brown,
Francesco Dolcini, devicetree, linux-kernel, linux-spi
[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]
On Mon, Apr 20, 2026 at 01:45:35PM +0200, Francesco Dolcini wrote:
> From: Francesco Dolcini <francesco.dolcini@toradex.com>
>
> Add a compatible string for the SPI loopback device present on the
> Toradex LAVA HAT test fixture.
>
> The Toradex LAVA HAT is a board used for automated hardware-in-the-loop
> (HIL) testing, it provides several test-related functionalities, and
> exists in multiple variants depending on the board it is mated with. The
> SPI function is implemented with a loopback on the MISO/MOSI signals.
>
> As the device can be fully described using only "compatible" and "reg",
> it is appropriate to list it under trivial-devices.yaml rather than
> introducing a dedicated binding.
>
> The SPI implementation is identical across all Toradex LAVA HAT
> variants, so a single compatible string is sufficient.
>
> Link: https://lore.kernel.org/all/20260310133254.GA51497@francesco-nb/
> Link: https://lore.kernel.org/all/20260316073547.11437-3-francesco@dolcini.it/
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/2] dt-bindings: trivial-devices: add toradex,lava-hat-spi
2026-04-20 16:02 ` Conor Dooley
@ 2026-04-20 16:10 ` Krzysztof Kozlowski
2026-04-20 16:26 ` Conor Dooley
0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-04-20 16:10 UTC (permalink / raw)
To: Conor Dooley, Francesco Dolcini
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Mark Brown,
Francesco Dolcini, devicetree, linux-kernel, linux-spi
On 20/04/2026 18:02, Conor Dooley wrote:
> On Mon, Apr 20, 2026 at 01:45:35PM +0200, Francesco Dolcini wrote:
>> From: Francesco Dolcini <francesco.dolcini@toradex.com>
>>
>> Add a compatible string for the SPI loopback device present on the
>> Toradex LAVA HAT test fixture.
>>
>> The Toradex LAVA HAT is a board used for automated hardware-in-the-loop
>> (HIL) testing, it provides several test-related functionalities, and
>> exists in multiple variants depending on the board it is mated with. The
>> SPI function is implemented with a loopback on the MISO/MOSI signals.
>>
>> As the device can be fully described using only "compatible" and "reg",
>> it is appropriate to list it under trivial-devices.yaml rather than
>> introducing a dedicated binding.
>>
>> The SPI implementation is identical across all Toradex LAVA HAT
>> variants, so a single compatible string is sufficient.
>>
>> Link: https://lore.kernel.org/all/20260310133254.GA51497@francesco-nb/
>> Link: https://lore.kernel.org/all/20260316073547.11437-3-francesco@dolcini.it/
>> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> pw-bot: not-applicable
Heh, let's wait. That's a test device, so it won't be ever used in any
final product, right? So not in final DTS?
Then why it's here? I think I directed previously to document it with
the rest of test devices - in incomplete-devices schema?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/2] dt-bindings: trivial-devices: add toradex,lava-hat-spi
2026-04-20 16:10 ` Krzysztof Kozlowski
@ 2026-04-20 16:26 ` Conor Dooley
0 siblings, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2026-04-20 16:26 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Francesco Dolcini, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Mark Brown, Francesco Dolcini, devicetree, linux-kernel,
linux-spi
[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]
On Mon, Apr 20, 2026 at 06:10:08PM +0200, Krzysztof Kozlowski wrote:
> On 20/04/2026 18:02, Conor Dooley wrote:
> > On Mon, Apr 20, 2026 at 01:45:35PM +0200, Francesco Dolcini wrote:
> >> From: Francesco Dolcini <francesco.dolcini@toradex.com>
> >>
> >> Add a compatible string for the SPI loopback device present on the
> >> Toradex LAVA HAT test fixture.
> >>
> >> The Toradex LAVA HAT is a board used for automated hardware-in-the-loop
> >> (HIL) testing, it provides several test-related functionalities, and
> >> exists in multiple variants depending on the board it is mated with. The
> >> SPI function is implemented with a loopback on the MISO/MOSI signals.
> >>
> >> As the device can be fully described using only "compatible" and "reg",
> >> it is appropriate to list it under trivial-devices.yaml rather than
> >> introducing a dedicated binding.
> >>
> >> The SPI implementation is identical across all Toradex LAVA HAT
> >> variants, so a single compatible string is sufficient.
> >>
> >> Link: https://lore.kernel.org/all/20260310133254.GA51497@francesco-nb/
> >> Link: https://lore.kernel.org/all/20260316073547.11437-3-francesco@dolcini.it/
> >> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> >
> > Acked-by: Conor Dooley <conor.dooley@microchip.com>
> > pw-bot: not-applicable
>
>
> Heh, let's wait. That's a test device, so it won't be ever used in any
> final product, right? So not in final DTS?
>
> Then why it's here? I think I directed previously to document it with
> the rest of test devices - in incomplete-devices schema?
Oh it's that, I forgot about this discussion, sorry!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-04-20 16:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20 11:45 [PATCH v1 0/2] spi: spidev: Add Toradex LAVA HAT Francesco Dolcini
2026-04-20 11:45 ` [PATCH v1 1/2] dt-bindings: trivial-devices: add toradex,lava-hat-spi Francesco Dolcini
2026-04-20 16:02 ` Conor Dooley
2026-04-20 16:10 ` Krzysztof Kozlowski
2026-04-20 16:26 ` Conor Dooley
2026-04-20 11:45 ` [PATCH v1 2/2] spi: spidev: Add Toradex LAVA HAT OF compatible Francesco Dolcini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox