[PATCH 1/5] dt-binding: trivial-devices: add arduino spi mcu interface

Riccardo Mereu posted 5 patches 1 month, 1 week ago
There is a newer version of this series
[PATCH 1/5] dt-binding: trivial-devices: add arduino spi mcu interface
Posted by Riccardo Mereu 1 month, 1 week ago
Add spidev item in order to describe in Arduino boards one of the
interfaces between microprocessor and microcontroller.

Signed-off-by: Riccardo Mereu <r.mereu@arduino.cc>
---
 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 2eff6f274302..c44fff4ce2e2 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -59,6 +59,8 @@ properties:
           - adi,lt7182s
             # AMS iAQ-Core VOC Sensor
           - ams,iaq-core
+            # Arduino microcontroller interface over SPI, e.g. on UnoQ board
+          - arduino,mcu
             # Temperature monitoring of Astera Labs PT5161L PCIe retimer
           - asteralabs,pt5161l
             # i2c h/w elliptic curve crypto module
-- 
2.51.2
Re: [PATCH 1/5] dt-binding: trivial-devices: add arduino spi mcu interface
Posted by Krzysztof Kozlowski 1 month, 1 week ago
On Thu, Nov 06, 2025 at 04:31:15PM +0100, Riccardo Mereu wrote:
> Add spidev item in order to describe in Arduino boards one of the
> interfaces between microprocessor and microcontroller.
> 
> Signed-off-by: Riccardo Mereu <r.mereu@arduino.cc>

Also, now I see warnings, so standard message:

Please run scripts/checkpatch.pl on the patches and fix reported
warnings. After that, run also 'scripts/checkpatch.pl --strict' on the
patches and (probably) fix more warnings. Some warnings can be ignored,
especially from --strict run, but the code here looks like it needs a
fix. Feel free to get in touch if the warning is not clear.

Best regards,
Krzysztof
Re: [PATCH 1/5] dt-binding: trivial-devices: add arduino spi mcu interface
Posted by Krzysztof Kozlowski 1 month, 1 week ago
On 06/11/2025 16:31, Riccardo Mereu wrote:
> Add spidev item in order to describe in Arduino boards one of the
> interfaces between microprocessor and microcontroller.
> 
> Signed-off-by: Riccardo Mereu <r.mereu@arduino.cc>
> ---
>  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 2eff6f274302..c44fff4ce2e2 100644
> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
> @@ -59,6 +59,8 @@ properties:
>            - adi,lt7182s
>              # AMS iAQ-Core VOC Sensor
>            - ams,iaq-core
> +            # Arduino microcontroller interface over SPI, e.g. on UnoQ board
> +          - arduino,mcu

MCU is so broad it can cover everything, so for sure this is not a
trivial device. It also can be connected over serial, which would not be
covered here. Or can have additional GPIOs connected or supplies - also
not covered here.

Best regards,
Krzysztof