[PATCH net-next v3 6/7] dt-bindings: net: adi,adin1110: Add adi,spi-oa-tc6
From: Iustin Stolniceanu
Date: Mon Nov 23 2026 - 07:00:13 EST
From: Ciprian Regus <ciprian.regus@xxxxxxxxxx>
The ADIN1110 and ADIN2111 support two SPI host interface protocols:
the generic SPI protocol and the OPEN Alliance TC6 protocol. The
protocol is selected by the state of the SPI_CFG1 pin, which the device
latches when it comes out of reset, together with SPI_CFG0, which
selects CRC (generic SPI) or protection (OPEN Alliance) mode.
The protocol is set by the board hardware, so the driver must know it
in advance. Add a boolean property to describe a device configured for
the OPEN Alliance TC6 protocol. Without it, the generic SPI protocol is
assumed, as before.
adi,spi-crc enables the CRC of the generic SPI protocol, so it is not
allowed together with adi,spi-oa-tc6. The OPEN Alliance protection mode
needs no property, as the driver reads it from the PROTE bit in CONFIG0.
Signed-off-by: Ciprian Regus <ciprian.regus@xxxxxxxxxx>
Signed-off-by: Iustin Stolniceanu <iustin.stolniceanu@xxxxxxxxxx>
---
.../devicetree/bindings/net/adi,adin1110.yaml | 20 +++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/adi,adin1110.yaml b/Documentation/devicetree/bindings/net/adi,adin1110.yaml
index 0a73e01d7f97..f9efa0e614d6 100644
--- a/Documentation/devicetree/bindings/net/adi,adin1110.yaml
+++ b/Documentation/devicetree/bindings/net/adi,adin1110.yaml
@@ -25,10 +25,6 @@ description: |
The device has a 4-wire SPI interface for communication
between the MAC and host processor.
-allOf:
- - $ref: ethernet-controller.yaml#
- - $ref: /schemas/spi/spi-peripheral-props.yaml#
-
properties:
compatible:
enum:
@@ -43,6 +39,12 @@ properties:
Enable CRC8 checks on SPI read/writes.
type: boolean
+ adi,spi-oa-tc6:
+ description:
+ The device is configured, through the SPI_CFG1 pin, for the
+ OPEN Alliance TC6 protocol instead of the generic SPI one.
+ type: boolean
+
interrupts:
maxItems: 1
@@ -55,6 +57,16 @@ required:
- reg
- interrupts
+allOf:
+ - $ref: ethernet-controller.yaml#
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+ - if:
+ required:
+ - adi,spi-oa-tc6
+ then:
+ properties:
+ adi,spi-crc: false
+
unevaluatedProperties: false
examples:
--
2.43.0