* [PATCH v1 0/3] spidev: introduce trivial abb sensor device
@ 2025-07-19 6:33 Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors Heiko Schocher
` (3 more replies)
0 siblings, 4 replies; 15+ messages in thread
From: Heiko Schocher @ 2025-07-19 6:33 UTC (permalink / raw)
To: linux-spi
Cc: linux-kernel, Heiko Schocher, Andrei Lalaev, Chanh Nguyen,
Conor Dooley, Fabio Estevam, Grant Peltier, Guenter Roeck,
Jonathan Cameron, Krzysztof Kozlowski, Laurent Pinchart,
Mark Brown, Michal Simek, Naresh Solanki, Pengutronix Kernel Team,
Rob Herring, Rodrigo Gobbi, Sascha Hauer, Shawn Guo, devicetree,
imx, linux-arm-kernel
This series introduces the changes needed for trivial spi
based sensors from ABB, currently operated from userspace.
The last patch adds the spidevices to the DTS files, already
in mainline.
make dtbs_check showed no errors/warnings for the dts files
DTC [C] arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-adpismarc.dtb
DTC [C] arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dtb
DTC arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios-lvds.dtbo
DTC [C] arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dtb
Heiko Schocher (3):
dt-bindings: trivial-devices: Document ABB sensors
spi: spidev: Add an entry for the ABB spi sensors
arm64: dts: imx8mp: add ABB spi sensors
.../devicetree/bindings/trivial-devices.yaml | 2 ++
.../freescale/imx8mp-aristainetos3-helios.dts | 28 +++++++++++++++++++
.../imx8mp-aristainetos3-proton2s.dts | 22 +++++++++++++++
drivers/spi/spidev.c | 2 ++
4 files changed, 54 insertions(+)
--
2.20.1
base-commit: 3668990919df7a8df60ab1f39ec95f59434b68ec
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors
2025-07-19 6:33 [PATCH v1 0/3] spidev: introduce trivial abb sensor device Heiko Schocher
@ 2025-07-19 6:33 ` Heiko Schocher
2025-07-20 2:11 ` Rob Herring
2025-07-19 6:33 ` [PATCH v1 2/3] spi: spidev: Add an entry for the ABB spi sensors Heiko Schocher
` (2 subsequent siblings)
3 siblings, 1 reply; 15+ messages in thread
From: Heiko Schocher @ 2025-07-19 6:33 UTC (permalink / raw)
To: linux-spi
Cc: linux-kernel, Heiko Schocher, Andrei Lalaev, Chanh Nguyen,
Conor Dooley, Fabio Estevam, Grant Peltier, Guenter Roeck,
Jonathan Cameron, Krzysztof Kozlowski, Laurent Pinchart,
Michal Simek, Naresh Solanki, Rob Herring, Rodrigo Gobbi,
devicetree
Add documentation for spi based ABB sensors, which are
currently operated from userspace.
Signed-off-by: Heiko Schocher <hs@denx.de>
---
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 27930708ccd5..25260c2b81df 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -30,6 +30,8 @@ properties:
items:
# Entries are sorted alphanumerically by the compatible
- enum:
+ # ABB register based spi sensors
+ - abb,spi-sensor
# Acbel fsg032 power supply
- acbel,fsg032
# SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
--
2.20.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 2/3] spi: spidev: Add an entry for the ABB spi sensors
2025-07-19 6:33 [PATCH v1 0/3] spidev: introduce trivial abb sensor device Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors Heiko Schocher
@ 2025-07-19 6:33 ` Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 3/3] arm64: dts: imx8mp: add " Heiko Schocher
2025-07-21 15:56 ` (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device Mark Brown
3 siblings, 0 replies; 15+ messages in thread
From: Heiko Schocher @ 2025-07-19 6:33 UTC (permalink / raw)
To: linux-spi; +Cc: linux-kernel, Heiko Schocher, Mark Brown
This sensors are currently controlled from userspace, ideally
we will add full drivers in the future.
Signed-off-by: Heiko Schocher <hs@denx.de>
---
drivers/spi/spidev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 6108959c28d9..5300c942a2a4 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -703,6 +703,7 @@ static const struct class spidev_class = {
* spidev_dt_ids array below. Both arrays are kept in the same ordering.
*/
static const struct spi_device_id spidev_spi_ids[] = {
+ { .name = /* abb */ "spi-sensor" },
{ .name = /* cisco */ "spi-petra" },
{ .name = /* dh */ "dhcom-board" },
{ .name = /* elgin */ "jg10309-01" },
@@ -735,6 +736,7 @@ static int spidev_of_check(struct device *dev)
}
static const struct of_device_id spidev_dt_ids[] = {
+ { .compatible = "abb,spi-sensor", .data = &spidev_of_check },
{ .compatible = "cisco,spi-petra", .data = &spidev_of_check },
{ .compatible = "dh,dhcom-board", .data = &spidev_of_check },
{ .compatible = "elgin,jg10309-01", .data = &spidev_of_check },
--
2.20.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v1 3/3] arm64: dts: imx8mp: add ABB spi sensors
2025-07-19 6:33 [PATCH v1 0/3] spidev: introduce trivial abb sensor device Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 2/3] spi: spidev: Add an entry for the ABB spi sensors Heiko Schocher
@ 2025-07-19 6:33 ` Heiko Schocher
2025-07-21 15:56 ` (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device Mark Brown
3 siblings, 0 replies; 15+ messages in thread
From: Heiko Schocher @ 2025-07-19 6:33 UTC (permalink / raw)
To: linux-spi
Cc: linux-kernel, Heiko Schocher, Conor Dooley, Fabio Estevam,
Krzysztof Kozlowski, Pengutronix Kernel Team, Rob Herring,
Sascha Hauer, Shawn Guo, devicetree, imx, linux-arm-kernel
add for the spi busses the ABB sensor trivial compatible
entry, so they can be accessed from userspace.
Signed-off-by: Heiko Schocher <hs@denx.de>
---
.../freescale/imx8mp-aristainetos3-helios.dts | 28 +++++++++++++++++++
.../imx8mp-aristainetos3-proton2s.dts | 22 +++++++++++++++
2 files changed, 50 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dts b/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dts
index a4e649a8239b..b6ba6229acd7 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-helios.dts
@@ -52,6 +52,34 @@
};
};
+&ecspi1 {
+ spidev0_0: spi@0 {
+ reg = <0>;
+ compatible = "abb,spi-sensor";
+ spi-max-frequency = <54000000>;
+ };
+
+ spidev0_1: spi@1 {
+ compatible = "abb,spi-sensor";
+ reg = <1>;
+ spi-max-frequency = <54000000>;
+ };
+};
+
+&ecspi2 {
+ spidev1_0: spi@0 {
+ reg = <0>;
+ compatible = "abb,spi-sensor";
+ spi-max-frequency = <54000000>;
+ };
+
+ spidev1_1: spi@1 {
+ reg = <1>;
+ compatible = "abb,spi-sensor";
+ spi-max-frequency = <54000000>;
+ };
+};
+
ðphy1 {
status = "disabled";
};
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dts b/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dts
index 2a736dbe96b4..e804688b2e74 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dts
@@ -28,6 +28,28 @@
};
};
+&ecspi1 {
+ spidev0_0: spi@0 {
+ compatible = "abb,spi-sensor";
+ reg = <0>;
+ spi-max-frequency = <54000000>;
+ };
+
+ spidev0_1: spi@1 {
+ compatible = "abb,spi-sensor";
+ reg = <1>;
+ spi-max-frequency = <54000000>;
+ };
+};
+
+&ecspi2 {
+ spidev1_0: spi@0 {
+ compatible = "abb,spi-sensor";
+ reg = <0>;
+ spi-max-frequency = <54000000>;
+ };
+};
+
ðphy1 {
status = "disabled";
};
--
2.20.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors
2025-07-19 6:33 ` [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors Heiko Schocher
@ 2025-07-20 2:11 ` Rob Herring
2025-07-20 3:25 ` Guenter Roeck
0 siblings, 1 reply; 15+ messages in thread
From: Rob Herring @ 2025-07-20 2:11 UTC (permalink / raw)
To: Heiko Schocher
Cc: linux-spi, linux-kernel, Andrei Lalaev, Chanh Nguyen,
Conor Dooley, Fabio Estevam, Grant Peltier, Guenter Roeck,
Jonathan Cameron, Krzysztof Kozlowski, Laurent Pinchart,
Michal Simek, Naresh Solanki, Rodrigo Gobbi, devicetree
On Sat, Jul 19, 2025 at 08:33:52AM +0200, Heiko Schocher wrote:
> Add documentation for spi based ABB sensors, which are
> currently operated from userspace.
What is userspace? That has nothing to do with bindings.
Please provide some details about this h/w and convince me it is
trivial.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> ---
>
> 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 27930708ccd5..25260c2b81df 100644
> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
> @@ -30,6 +30,8 @@ properties:
> items:
> # Entries are sorted alphanumerically by the compatible
> - enum:
> + # ABB register based spi sensors
> + - abb,spi-sensor
> # Acbel fsg032 power supply
> - acbel,fsg032
> # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
> --
> 2.20.1
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors
2025-07-20 2:11 ` Rob Herring
@ 2025-07-20 3:25 ` Guenter Roeck
2025-07-21 14:22 ` Heiko Schocher
0 siblings, 1 reply; 15+ messages in thread
From: Guenter Roeck @ 2025-07-20 3:25 UTC (permalink / raw)
To: Rob Herring, Heiko Schocher
Cc: linux-spi, linux-kernel, Andrei Lalaev, Chanh Nguyen,
Conor Dooley, Fabio Estevam, Grant Peltier, Jonathan Cameron,
Krzysztof Kozlowski, Laurent Pinchart, Michal Simek,
Naresh Solanki, Rodrigo Gobbi, devicetree
On 7/19/25 19:11, Rob Herring wrote:
> On Sat, Jul 19, 2025 at 08:33:52AM +0200, Heiko Schocher wrote:
>> Add documentation for spi based ABB sensors, which are
>> currently operated from userspace.
>
> What is userspace? That has nothing to do with bindings.
>
Taking one step further back ... what are "spi based ABB sensors" ?
Guenter
> Please provide some details about this h/w and convince me it is
> trivial.
>
>>
>> Signed-off-by: Heiko Schocher <hs@denx.de>
>> ---
>>
>> 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 27930708ccd5..25260c2b81df 100644
>> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
>> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
>> @@ -30,6 +30,8 @@ properties:
>> items:
>> # Entries are sorted alphanumerically by the compatible
>> - enum:
>> + # ABB register based spi sensors
>> + - abb,spi-sensor
>> # Acbel fsg032 power supply
>> - acbel,fsg032
>> # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
>> --
>> 2.20.1
>>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors
2025-07-20 3:25 ` Guenter Roeck
@ 2025-07-21 14:22 ` Heiko Schocher
0 siblings, 0 replies; 15+ messages in thread
From: Heiko Schocher @ 2025-07-21 14:22 UTC (permalink / raw)
To: Guenter Roeck, Rob Herring
Cc: linux-spi, linux-kernel, Andrei Lalaev, Chanh Nguyen,
Conor Dooley, Fabio Estevam, Grant Peltier, Jonathan Cameron,
Krzysztof Kozlowski, Laurent Pinchart, Michal Simek,
Naresh Solanki, Rodrigo Gobbi, devicetree
Hi Guenther, Rob,
On 20.07.25 05:25, Guenter Roeck wrote:
> On 7/19/25 19:11, Rob Herring wrote:
>> On Sat, Jul 19, 2025 at 08:33:52AM +0200, Heiko Schocher wrote:
>>> Add documentation for spi based ABB sensors, which are
>>> currently operated from userspace.
>>
>> What is userspace? That has nothing to do with bindings.
>>
>
> Taking one step further back ... what are "spi based ABB sensors" ?
>
> Guenter
>
>> Please provide some details about this h/w and convince me it is
>> trivial.
This sensors are fully controlled through spidev driver, with a simple
register based interface and they have no other connections as the SPI
lines, so they only need a compatible entry.
bye,
Heiko
>>
>>>
>>> Signed-off-by: Heiko Schocher <hs@denx.de>
>>> ---
>>>
>>> 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 27930708ccd5..25260c2b81df 100644
>>> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
>>> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
>>> @@ -30,6 +30,8 @@ properties:
>>> items:
>>> # Entries are sorted alphanumerically by the compatible
>>> - enum:
>>> + # ABB register based spi sensors
>>> + - abb,spi-sensor
>>> # Acbel fsg032 power supply
>>> - acbel,fsg032
>>> # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over
>>> Temperature Pin
>>> --
>>> 2.20.1
>>>
--
DENX Software Engineering GmbH, Managing Director: Johanna Denk, Tabea Lutz
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device
2025-07-19 6:33 [PATCH v1 0/3] spidev: introduce trivial abb sensor device Heiko Schocher
` (2 preceding siblings ...)
2025-07-19 6:33 ` [PATCH v1 3/3] arm64: dts: imx8mp: add " Heiko Schocher
@ 2025-07-21 15:56 ` Mark Brown
2025-07-21 16:24 ` Krzysztof Kozlowski
3 siblings, 1 reply; 15+ messages in thread
From: Mark Brown @ 2025-07-21 15:56 UTC (permalink / raw)
To: linux-spi, Heiko Schocher
Cc: linux-kernel, Andrei Lalaev, Chanh Nguyen, Conor Dooley,
Fabio Estevam, Grant Peltier, Guenter Roeck, Jonathan Cameron,
Krzysztof Kozlowski, Laurent Pinchart, Michal Simek,
Naresh Solanki, Pengutronix Kernel Team, Rob Herring,
Rodrigo Gobbi, Sascha Hauer, Shawn Guo, devicetree, imx,
linux-arm-kernel
On Sat, 19 Jul 2025 08:33:51 +0200, Heiko Schocher wrote:
> This series introduces the changes needed for trivial spi
> based sensors from ABB, currently operated from userspace.
>
> The last patch adds the spidevices to the DTS files, already
> in mainline.
>
> make dtbs_check showed no errors/warnings for the dts files
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/3] dt-bindings: trivial-devices: Document ABB sensors
commit: aad2f87cbcab56b322109d26d7b11842a09df91f
[2/3] spi: spidev: Add an entry for the ABB spi sensors
commit: d60f7cab7c04944a79af16caa43c141e780a59c6
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device
2025-07-21 15:56 ` (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device Mark Brown
@ 2025-07-21 16:24 ` Krzysztof Kozlowski
2025-07-21 17:34 ` Mark Brown
2025-07-22 4:05 ` Heiko Schocher
0 siblings, 2 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2025-07-21 16:24 UTC (permalink / raw)
To: Mark Brown, linux-spi, Heiko Schocher
Cc: linux-kernel, Andrei Lalaev, Chanh Nguyen, Conor Dooley,
Fabio Estevam, Grant Peltier, Guenter Roeck, Jonathan Cameron,
Krzysztof Kozlowski, Laurent Pinchart, Michal Simek,
Naresh Solanki, Pengutronix Kernel Team, Rob Herring,
Rodrigo Gobbi, Sascha Hauer, Shawn Guo, devicetree, imx,
linux-arm-kernel
On 21/07/2025 17:56, Mark Brown wrote:
> On Sat, 19 Jul 2025 08:33:51 +0200, Heiko Schocher wrote:
>> This series introduces the changes needed for trivial spi
>> based sensors from ABB, currently operated from userspace.
>>
>> The last patch adds the spidevices to the DTS files, already
>> in mainline.
>>
>> make dtbs_check showed no errors/warnings for the dts files
>>
>> [...]
>
> Applied to
>
> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
>
> Thanks!
>
> [1/3] dt-bindings: trivial-devices: Document ABB sensors
> commit: aad2f87cbcab56b322109d26d7b11842a09df91f
> [2/3] spi: spidev: Add an entry for the ABB spi sensors
> commit: d60f7cab7c04944a79af16caa43c141e780a59c6
>
That's unexpected, Mark. Patches received two objections/comments and I
don't think discussion was resolved.
ABB is huge company, probably making hundreds or more of sensors. The
patchset basically claims that all of them work with spidev. It does not
providing any model names or details, so it seems really incomplete to
call them trivial devices.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device
2025-07-21 16:24 ` Krzysztof Kozlowski
@ 2025-07-21 17:34 ` Mark Brown
2025-07-22 4:05 ` Heiko Schocher
1 sibling, 0 replies; 15+ messages in thread
From: Mark Brown @ 2025-07-21 17:34 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: linux-spi, Heiko Schocher, linux-kernel, Andrei Lalaev,
Chanh Nguyen, Conor Dooley, Fabio Estevam, Grant Peltier,
Guenter Roeck, Jonathan Cameron, Krzysztof Kozlowski,
Laurent Pinchart, Michal Simek, Naresh Solanki,
Pengutronix Kernel Team, Rob Herring, Rodrigo Gobbi, Sascha Hauer,
Shawn Guo, devicetree, imx, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
On Mon, Jul 21, 2025 at 06:24:55PM +0200, Krzysztof Kozlowski wrote:
> On 21/07/2025 17:56, Mark Brown wrote:
> > [1/3] dt-bindings: trivial-devices: Document ABB sensors
> > commit: aad2f87cbcab56b322109d26d7b11842a09df91f
> > [2/3] spi: spidev: Add an entry for the ABB spi sensors
> > commit: d60f7cab7c04944a79af16caa43c141e780a59c6
> That's unexpected, Mark. Patches received two objections/comments and I
> don't think discussion was resolved.
Oh, sorry - I'd missed those (possibly due to only being CCed on part of
the series). I guess I'll drop this then.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device
2025-07-21 16:24 ` Krzysztof Kozlowski
2025-07-21 17:34 ` Mark Brown
@ 2025-07-22 4:05 ` Heiko Schocher
2025-07-22 4:58 ` Guenter Roeck
2025-07-22 11:07 ` Krzysztof Kozlowski
1 sibling, 2 replies; 15+ messages in thread
From: Heiko Schocher @ 2025-07-22 4:05 UTC (permalink / raw)
To: Krzysztof Kozlowski, Mark Brown, linux-spi
Cc: linux-kernel, Andrei Lalaev, Chanh Nguyen, Conor Dooley,
Fabio Estevam, Grant Peltier, Guenter Roeck, Jonathan Cameron,
Krzysztof Kozlowski, Laurent Pinchart, Michal Simek,
Naresh Solanki, Pengutronix Kernel Team, Rob Herring,
Rodrigo Gobbi, Sascha Hauer, Shawn Guo, devicetree, imx,
linux-arm-kernel
Hello Krzysztof,
On 21.07.25 18:24, Krzysztof Kozlowski wrote:
> On 21/07/2025 17:56, Mark Brown wrote:
>> On Sat, 19 Jul 2025 08:33:51 +0200, Heiko Schocher wrote:
>>> This series introduces the changes needed for trivial spi
>>> based sensors from ABB, currently operated from userspace.
>>>
>>> The last patch adds the spidevices to the DTS files, already
>>> in mainline.
>>>
>>> make dtbs_check showed no errors/warnings for the dts files
>>>
>>> [...]
>>
>> Applied to
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
>>
>> Thanks!
>>
>> [1/3] dt-bindings: trivial-devices: Document ABB sensors
>> commit: aad2f87cbcab56b322109d26d7b11842a09df91f
>> [2/3] spi: spidev: Add an entry for the ABB spi sensors
>> commit: d60f7cab7c04944a79af16caa43c141e780a59c6
>>
>
>
> That's unexpected, Mark. Patches received two objections/comments and I
> don't think discussion was resolved.
>
> ABB is huge company, probably making hundreds or more of sensors. The
> patchset basically claims that all of them work with spidev. It does not
> providing any model names or details, so it seems really incomplete to
> call them trivial devices.
I do not know how many different sensors they have, nor if that department can
speak for the whole company...
What I have as information is:
https://lore.kernel.org/linux-spi/2477dc64-92a0-9dc9-d168-56646d0d796e@denx.de/
and I get no more information about them currently. May I should
add some sort of trivial into compatible name? Something like
"abb,spi-trivial-sensor"
or
"abb,spidev-trivial-sensor"
which makes it clearer, that only ABB trivial sensor, controlled through spidev
driver, is connected here?
Looking into definiton of "trivial devices" in
Documentation/devicetree/bindings/trivial-devices.yaml
"""
description: |
This is a list of trivial I2C and SPI devices that have simple device tree
bindings, consisting only of a compatible field, an address and possibly an
interrupt line.
"""
which fits exactly, as they even have nothing more than the SPI lines
connected to the carrier board(s).
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Johanna Denk, Tabea Lutz
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device
2025-07-22 4:05 ` Heiko Schocher
@ 2025-07-22 4:58 ` Guenter Roeck
2025-07-22 10:20 ` Jonathan Cameron
2025-07-22 11:07 ` Krzysztof Kozlowski
1 sibling, 1 reply; 15+ messages in thread
From: Guenter Roeck @ 2025-07-22 4:58 UTC (permalink / raw)
To: hs, Krzysztof Kozlowski, Mark Brown, linux-spi
Cc: linux-kernel, Andrei Lalaev, Chanh Nguyen, Conor Dooley,
Fabio Estevam, Grant Peltier, Jonathan Cameron,
Krzysztof Kozlowski, Laurent Pinchart, Michal Simek,
Naresh Solanki, Pengutronix Kernel Team, Rob Herring,
Rodrigo Gobbi, Sascha Hauer, Shawn Guo, devicetree, imx,
linux-arm-kernel
On 7/21/25 21:05, Heiko Schocher wrote:
> Hello Krzysztof,
>
> On 21.07.25 18:24, Krzysztof Kozlowski wrote:
>> On 21/07/2025 17:56, Mark Brown wrote:
>>> On Sat, 19 Jul 2025 08:33:51 +0200, Heiko Schocher wrote:
>>>> This series introduces the changes needed for trivial spi
>>>> based sensors from ABB, currently operated from userspace.
>>>>
>>>> The last patch adds the spidevices to the DTS files, already
>>>> in mainline.
>>>>
>>>> make dtbs_check showed no errors/warnings for the dts files
>>>>
>>>> [...]
>>>
>>> Applied to
>>>
>>> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
>>>
>>> Thanks!
>>>
>>> [1/3] dt-bindings: trivial-devices: Document ABB sensors
>>> commit: aad2f87cbcab56b322109d26d7b11842a09df91f
>>> [2/3] spi: spidev: Add an entry for the ABB spi sensors
>>> commit: d60f7cab7c04944a79af16caa43c141e780a59c6
>>>
>>
>>
>> That's unexpected, Mark. Patches received two objections/comments and I
>> don't think discussion was resolved.
>>
>> ABB is huge company, probably making hundreds or more of sensors. The
>> patchset basically claims that all of them work with spidev. It does not
>> providing any model names or details, so it seems really incomplete to
>> call them trivial devices.
>
> I do not know how many different sensors they have, nor if that department can
> speak for the whole company...
>
> What I have as information is:
> https://lore.kernel.org/linux-spi/2477dc64-92a0-9dc9-d168-56646d0d796e@denx.de/
>
> and I get no more information about them currently. May I should
> add some sort of trivial into compatible name? Something like
>
> "abb,spi-trivial-sensor"
> or
> "abb,spidev-trivial-sensor"
>
> which makes it clearer, that only ABB trivial sensor, controlled through spidev
> driver, is connected here?
>
FWIW, I always thought that devicetree is not supposed to contain such generic
information. Is it even appropriate to list something like this in devicetree
in the first place ?
If so, what prevents anyone from submitting hundreds of
"<company>,spidev-trivial-<device-type>" entries, using the same line of argument ?
Guenter
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device
2025-07-22 4:58 ` Guenter Roeck
@ 2025-07-22 10:20 ` Jonathan Cameron
2025-08-01 4:45 ` Heiko Schocher
0 siblings, 1 reply; 15+ messages in thread
From: Jonathan Cameron @ 2025-07-22 10:20 UTC (permalink / raw)
To: Guenter Roeck
Cc: hs, Krzysztof Kozlowski, Mark Brown, linux-spi, linux-kernel,
Andrei Lalaev, Chanh Nguyen, Conor Dooley, Fabio Estevam,
Grant Peltier, Krzysztof Kozlowski, Laurent Pinchart,
Michal Simek, Naresh Solanki, Pengutronix Kernel Team,
Rob Herring, Rodrigo Gobbi, Sascha Hauer, Shawn Guo, devicetree,
imx, linux-arm-kernel
On Mon, 21 Jul 2025 21:58:10 -0700
Guenter Roeck <linux@roeck-us.net> wrote:
> On 7/21/25 21:05, Heiko Schocher wrote:
> > Hello Krzysztof,
> >
> > On 21.07.25 18:24, Krzysztof Kozlowski wrote:
> >> On 21/07/2025 17:56, Mark Brown wrote:
> >>> On Sat, 19 Jul 2025 08:33:51 +0200, Heiko Schocher wrote:
> >>>> This series introduces the changes needed for trivial spi
> >>>> based sensors from ABB, currently operated from userspace.
> >>>>
> >>>> The last patch adds the spidevices to the DTS files, already
> >>>> in mainline.
> >>>>
> >>>> make dtbs_check showed no errors/warnings for the dts files
> >>>>
> >>>> [...]
> >>>
> >>> Applied to
> >>>
> >>> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
> >>>
> >>> Thanks!
> >>>
> >>> [1/3] dt-bindings: trivial-devices: Document ABB sensors
> >>> commit: aad2f87cbcab56b322109d26d7b11842a09df91f
> >>> [2/3] spi: spidev: Add an entry for the ABB spi sensors
> >>> commit: d60f7cab7c04944a79af16caa43c141e780a59c6
> >>>
> >>
> >>
> >> That's unexpected, Mark. Patches received two objections/comments and I
> >> don't think discussion was resolved.
> >>
> >> ABB is huge company, probably making hundreds or more of sensors. The
> >> patchset basically claims that all of them work with spidev. It does not
> >> providing any model names or details, so it seems really incomplete to
> >> call them trivial devices.
> >
> > I do not know how many different sensors they have, nor if that department can
> > speak for the whole company...
> >
> > What I have as information is:
> > https://lore.kernel.org/linux-spi/2477dc64-92a0-9dc9-d168-56646d0d796e@denx.de/
> >
> > and I get no more information about them currently. May I should
> > add some sort of trivial into compatible name? Something like
> >
> > "abb,spi-trivial-sensor"
> > or
> > "abb,spidev-trivial-sensor"
> >
> > which makes it clearer, that only ABB trivial sensor, controlled through spidev
> > driver, is connected here?
> >
>
> FWIW, I always thought that devicetree is not supposed to contain such generic
> information. Is it even appropriate to list something like this in devicetree
> in the first place ?
>
> If so, what prevents anyone from submitting hundreds of
> "<company>,spidev-trivial-<device-type>" entries, using the same line of argument ?
Agreed. These should have separate compatibles based on what any OS etc
might want to bind to them. Just because their model in Linux is spidev etc
that shouldn't mean a generic ID is appropriate.
Can we at least have some examples to motivate the discussion?
Jonathan
>
> Guenter
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device
2025-07-22 4:05 ` Heiko Schocher
2025-07-22 4:58 ` Guenter Roeck
@ 2025-07-22 11:07 ` Krzysztof Kozlowski
1 sibling, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2025-07-22 11:07 UTC (permalink / raw)
To: hs, Mark Brown, linux-spi
Cc: linux-kernel, Andrei Lalaev, Chanh Nguyen, Conor Dooley,
Fabio Estevam, Grant Peltier, Guenter Roeck, Jonathan Cameron,
Krzysztof Kozlowski, Laurent Pinchart, Michal Simek,
Naresh Solanki, Pengutronix Kernel Team, Rob Herring,
Rodrigo Gobbi, Sascha Hauer, Shawn Guo, devicetree, imx,
linux-arm-kernel
On 22/07/2025 06:05, Heiko Schocher wrote:
> Hello Krzysztof,
>
> On 21.07.25 18:24, Krzysztof Kozlowski wrote:
>> On 21/07/2025 17:56, Mark Brown wrote:
>>> On Sat, 19 Jul 2025 08:33:51 +0200, Heiko Schocher wrote:
>>>> This series introduces the changes needed for trivial spi
>>>> based sensors from ABB, currently operated from userspace.
>>>>
>>>> The last patch adds the spidevices to the DTS files, already
>>>> in mainline.
>>>>
>>>> make dtbs_check showed no errors/warnings for the dts files
>>>>
>>>> [...]
>>>
>>> Applied to
>>>
>>> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
>>>
>>> Thanks!
>>>
>>> [1/3] dt-bindings: trivial-devices: Document ABB sensors
>>> commit: aad2f87cbcab56b322109d26d7b11842a09df91f
>>> [2/3] spi: spidev: Add an entry for the ABB spi sensors
>>> commit: d60f7cab7c04944a79af16caa43c141e780a59c6
>>>
>>
>>
>> That's unexpected, Mark. Patches received two objections/comments and I
>> don't think discussion was resolved.
>>
>> ABB is huge company, probably making hundreds or more of sensors. The
>> patchset basically claims that all of them work with spidev. It does not
>> providing any model names or details, so it seems really incomplete to
>> call them trivial devices.
>
> I do not know how many different sensors they have, nor if that department can
> speak for the whole company...
Considering how big company is, they could have 1 or 1000 sensors.
>
> What I have as information is:
> https://lore.kernel.org/linux-spi/2477dc64-92a0-9dc9-d168-56646d0d796e@denx.de/
>
> and I get no more information about them currently. May I should
> add some sort of trivial into compatible name? Something like
>
> "abb,spi-trivial-sensor"
> or
> "abb,spidev-trivial-sensor"
No, you need model numbers.
>
> which makes it clearer, that only ABB trivial sensor, controlled through spidev
> driver, is connected here?
No, what is trivial? Which one is trivial and which one is not? How one
judges that one sensor should go here and other should not?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device
2025-07-22 10:20 ` Jonathan Cameron
@ 2025-08-01 4:45 ` Heiko Schocher
0 siblings, 0 replies; 15+ messages in thread
From: Heiko Schocher @ 2025-08-01 4:45 UTC (permalink / raw)
To: Jonathan Cameron, Guenter Roeck
Cc: Krzysztof Kozlowski, Mark Brown, linux-spi, linux-kernel,
Andrei Lalaev, Chanh Nguyen, Conor Dooley, Fabio Estevam,
Grant Peltier, Krzysztof Kozlowski, Laurent Pinchart,
Michal Simek, Naresh Solanki, Pengutronix Kernel Team,
Rob Herring, Rodrigo Gobbi, Sascha Hauer, Shawn Guo, devicetree,
imx, linux-arm-kernel
Hello Jonathan,
On 22.07.25 12:20, Jonathan Cameron wrote:
> On Mon, 21 Jul 2025 21:58:10 -0700
> Guenter Roeck <linux@roeck-us.net> wrote:
>
>> On 7/21/25 21:05, Heiko Schocher wrote:
>>> Hello Krzysztof,
>>>
>>> On 21.07.25 18:24, Krzysztof Kozlowski wrote:
>>>> On 21/07/2025 17:56, Mark Brown wrote:
>>>>> On Sat, 19 Jul 2025 08:33:51 +0200, Heiko Schocher wrote:
>>>>>> This series introduces the changes needed for trivial spi
>>>>>> based sensors from ABB, currently operated from userspace.
>>>>>>
>>>>>> The last patch adds the spidevices to the DTS files, already
>>>>>> in mainline.
>>>>>>
>>>>>> make dtbs_check showed no errors/warnings for the dts files
>>>>>>
>>>>>> [...]
>>>>>
>>>>> Applied to
>>>>>
>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
>>>>>
>>>>> Thanks!
>>>>>
>>>>> [1/3] dt-bindings: trivial-devices: Document ABB sensors
>>>>> commit: aad2f87cbcab56b322109d26d7b11842a09df91f
>>>>> [2/3] spi: spidev: Add an entry for the ABB spi sensors
>>>>> commit: d60f7cab7c04944a79af16caa43c141e780a59c6
>>>>>
>>>>
>>>>
>>>> That's unexpected, Mark. Patches received two objections/comments and I
>>>> don't think discussion was resolved.
>>>>
>>>> ABB is huge company, probably making hundreds or more of sensors. The
>>>> patchset basically claims that all of them work with spidev. It does not
>>>> providing any model names or details, so it seems really incomplete to
>>>> call them trivial devices.
>>>
>>> I do not know how many different sensors they have, nor if that department can
>>> speak for the whole company...
>>>
>>> What I have as information is:
>>> https://lore.kernel.org/linux-spi/2477dc64-92a0-9dc9-d168-56646d0d796e@denx.de/
>>>
>>> and I get no more information about them currently. May I should
>>> add some sort of trivial into compatible name? Something like
>>>
>>> "abb,spi-trivial-sensor"
>>> or
>>> "abb,spidev-trivial-sensor"
>>>
>>> which makes it clearer, that only ABB trivial sensor, controlled through spidev
>>> driver, is connected here?
>>>
>>
>> FWIW, I always thought that devicetree is not supposed to contain such generic
>> information. Is it even appropriate to list something like this in devicetree
>> in the first place ?
>>
>> If so, what prevents anyone from submitting hundreds of
>> "<company>,spidev-trivial-<device-type>" entries, using the same line of argument ?
>
> Agreed. These should have separate compatibles based on what any OS etc
> might want to bind to them. Just because their model in Linux is spidev etc
> that shouldn't mean a generic ID is appropriate.
>
> Can we at least have some examples to motivate the discussion?
I am sorry, I get no more information about the sensors... even I do
not know the count of variants. What I can say is, that this sensors
measure gases, and are only used "internal" on the aristainetos3 carriers.
So a proposal would be:
# ABB gas sensor on aristainetos3 carriers
compatible "abb,aristainetos-gas-sensor"
bye,
Heiko
> Jonathan
>
>>
>> Guenter
>>
--
DENX Software Engineering GmbH, Managing Director: Johanna Denk, Tabea Lutz
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2025-08-01 4:45 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-19 6:33 [PATCH v1 0/3] spidev: introduce trivial abb sensor device Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors Heiko Schocher
2025-07-20 2:11 ` Rob Herring
2025-07-20 3:25 ` Guenter Roeck
2025-07-21 14:22 ` Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 2/3] spi: spidev: Add an entry for the ABB spi sensors Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 3/3] arm64: dts: imx8mp: add " Heiko Schocher
2025-07-21 15:56 ` (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device Mark Brown
2025-07-21 16:24 ` Krzysztof Kozlowski
2025-07-21 17:34 ` Mark Brown
2025-07-22 4:05 ` Heiko Schocher
2025-07-22 4:58 ` Guenter Roeck
2025-07-22 10:20 ` Jonathan Cameron
2025-08-01 4:45 ` Heiko Schocher
2025-07-22 11:07 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).