Skip to contentSkip to conversation

spi: spidev: Add compatible for LWE's btt device

PATCH Superseded Lukasz Majewski 2 participants 9 messages Feb 21, 2025 – Mar 26, 2025 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: spidev: Add compatible for LWE's btt device

The Liebherr's BTT devices are using spidev to communicate via SPI to monitoring devices. Extend compatibles to allow proper DTS description.

---
 drivers/spi/spidev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/spi/spidev.c +2 -0
index 58ae4304fdab..ceaccc5cf8f5 100644
@@ -707,6 +707,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
 	{ .name = /* dh */ "dhcom-board" },
 	{ .name = /* elgin */ "jg10309-01" },
 	{ .name = /* lineartechnology */ "ltc2488" },
+	{ .name = /* lwe */ "btt" },
 	{ .name = /* lwn */ "bk4" },
 	{ .name = /* lwn */ "bk4-spi" },
 	{ .name = /* menlo */ "m53cpld" },
@@ -738,6 +739,7 @@ static const struct of_device_id spidev_dt_ids[] = {
 	{ .compatible = "dh,dhcom-board", .data = &spidev_of_check },
 	{ .compatible = "elgin,jg10309-01", .data = &spidev_of_check },
 	{ .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
+	{ .compatible = "lwe,btt", .data = &spidev_of_check },
 	{ .compatible = "lwn,bk4", .data = &spidev_of_check },
 	{ .compatible = "lwn,bk4-spi", .data = &spidev_of_check },
 	{ .compatible = "menlo,m53cpld", .data = &spidev_of_check },
Signature · 1 line
2.39.5
maintainer
#1 lore raw
Quoted 3 lines · Lukasz Majewski

The Liebherr's BTT devices are using spidev to communicate via SPI to monitoring devices. Extend compatibles to allow proper DTS description.

This is fine but we need a bindings document update too (trivial-devices.yaml should be fine I think).

#2 lore raw

Hi Mark,

Quoted 7 lines · Lukasz Majewski
Quoted 3 lines

The Liebherr's BTT devices are using spidev to communicate via SPI to monitoring devices. Extend compatibles to allow proper DTS description.

This is fine but we need a bindings document update too (trivial-devices.yaml should be fine I think).

I've just resend the update for trival-devices.yaml.
https://lore.kernel.org/linux-devicetree/[email protected]/T/#u

Hopefully you can pull it soon.

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]

maintainer
#3 lore raw
Quoted 9 lines · Lukasz Majewski
Quoted 4 lines · Lukasz Majewski

This is fine but we need a bindings document update too (trivial-devices.yaml should be fine I think).

I've just resend the update for trival-devices.yaml.
https://lore.kernel.org/linux-devicetree/[email protected]/T/#u

Hopefully you can pull it soon.

I would have expected the two updates to go together...

#4 lore raw

PATCH v2 1/1 spi: spidev: Add compatible for LWE's btt device

In reply to Lukasz Majewski

The Liebherr's BTT devices are using spidev to communicate via SPI to monitoring devices. Extend compatibles to allow proper DTS description.

---
Changes for v2:
- Use 'lwn' vendor prefix instead of 'lwe' (as the former one is already well used in Linux sources).

---
 drivers/spi/spidev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/spi/spidev.c +2 -0
index 6108959c28d9..2568240490fa 100644
@@ -708,6 +708,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
 	{ .name = /* elgin */ "jg10309-01" },
 	{ .name = /* gocontroll */ "moduline-module-slot"},
 	{ .name = /* lineartechnology */ "ltc2488" },
+	{ .name = /* lwn */ "btt" },
 	{ .name = /* lwn */ "bk4" },
 	{ .name = /* lwn */ "bk4-spi" },
 	{ .name = /* menlo */ "m53cpld" },
@@ -740,6 +741,7 @@ static const struct of_device_id spidev_dt_ids[] = {
 	{ .compatible = "elgin,jg10309-01", .data = &spidev_of_check },
 	{ .compatible = "gocontroll,moduline-module-slot", .data = &spidev_of_check},
 	{ .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
+	{ .compatible = "lwn,btt", .data = &spidev_of_check },
 	{ .compatible = "lwn,bk4", .data = &spidev_of_check },
 	{ .compatible = "lwn,bk4-spi", .data = &spidev_of_check },
 	{ .compatible = "menlo,m53cpld", .data = &spidev_of_check },
Signature · 1 line
2.39.5
maintainer
#5 lore raw
Quoted 3 lines · Lukasz Majewski

Changes for v2:
- Use 'lwn' vendor prefix instead of 'lwe' (as the former one is already well used in Linux sources).

Are you sure?

Note also that as previously mentioned I expect to see a binding document update too which doesn't appear to be here.

Please don't send new patches in reply to old patches or serieses, this makes it harder for both people and tools to understand what is going on - it can bury things in mailboxes and make it difficult to keep track of what current patches are, both for the new patches and the old ones.

#6 lore raw

Hi Mark,

Quoted 7 lines · Lukasz Majewski
Quoted 4 lines

Changes for v2:
- Use 'lwn' vendor prefix instead of 'lwe' (as the former one is already well used in Linux sources).

Are you sure?

Yes, the lwn is already present for a quite few years for this company. The lwe is just the different branch.

Quoted 4 lines

Note also that as previously mentioned I expect to see a binding document update too which doesn't appear to be here.

I've just send it to be accepted to trivial-devices.yaml

Quoted 5 lines

Please don't send new patches in reply to old patches or serieses, this makes it harder for both people and tools to understand what is going on - it can bury things in mailboxes and make it difficult to keep track of what current patches are, both for the new patches and the old ones.

Ok, I thought that it would be the opposite - that you would see v2 as the reply to the old one - especially that the change is just a single letter.

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]

maintainer
#7 lore raw
Quoted 6 lines · Lukasz Majewski
Quoted 4 lines · Lukasz Majewski

Note also that as previously mentioned I expect to see a binding document update too which doesn't appear to be here.

I've just send it to be accepted to trivial-devices.yaml

As previously mentioned you should send the bindings update along with the driver code.

Quoted 9 lines
Quoted 5 lines

Please don't send new patches in reply to old patches or serieses, this makes it harder for both people and tools to understand what is going on - it can bury things in mailboxes and make it difficult to keep track of what current patches are, both for the new patches and the old ones.

Ok, I thought that it would be the opposite - that you would see v2 as the reply to the old one - especially that the change is just a single letter.

That's exactly the problem.

#8 lore raw

Hi Mark,

Quoted 10 lines · Lukasz Majewski
Quoted 6 lines
Quoted 4 lines · Lukasz Majewski

Note also that as previously mentioned I expect to see a binding document update too which doesn't appear to be here.

I've just send it to be accepted to trivial-devices.yaml

As previously mentioned you should send the bindings update along with the driver code.

Ok, so first shall be the patch 0001, which updates trivial-devices.yaml and then 0002, with changes for spidev (this patch).

Quoted 7 lines
Quoted 6 lines
Quoted 6 lines

Please don't send new patches in reply to old patches or serieses, this makes it harder for both people and tools to understand what is going on - it can bury things in mailboxes and make it difficult to keep track of what current patches are, both for the new patches and the old ones.

Quoted 5 lines
Quoted 3 lines

Ok, I thought that it would be the opposite - that you would see v2 as the reply to the old one - especially that the change is just a single letter.

That's exactly the problem.

Ok. I will not use --in-reply-to= switch.

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]