Skip to content

Commit e2bafe4

Browse files
AngeloGioacchino Del Regnorobherring
authored andcommitted
dt-bindings: crypto: inside-secure,safexcel: Mandate only ring IRQs
Not all IP implementations of EIP97 and EIP197 have the EIP and MEM interrupts hooked up to the SoC, and those are not required for functionality as status for both can be polled (and anyway there's even no real need to poll, but that's another story). As an example of this, the MediaTek MT7986A and MT7986B SoCs do not have those two interrupts hooked up to their irq controlller. For this reason, make the EIP and MEM interrupt optional on the mediatek,mt7986-crypto. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260112145558.54644-3-angelogioacchino.delregno@collabora.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent ad0cfd9 commit e2bafe4

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Documentation/devicetree/bindings/crypto/inside-secure,safexcel.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ properties:
3434
maxItems: 1
3535

3636
interrupts:
37+
minItems: 4
3738
maxItems: 6
3839

3940
interrupt-names:
41+
minItems: 4
4042
items:
4143
- const: ring0
4244
- const: ring1
@@ -73,6 +75,18 @@ allOf:
7375
minItems: 2
7476
required:
7577
- clock-names
78+
- if:
79+
properties:
80+
compatible:
81+
not:
82+
contains:
83+
const: mediatek,mt7986-crypto
84+
then:
85+
properties:
86+
interrupts:
87+
minItems: 6
88+
interrupt-names:
89+
minItems: 6
7690

7791
additionalProperties: false
7892

0 commit comments

Comments
 (0)