[RESEND PATCH v6 4/6] dt-bindings: can: fsl,flexcan: add NXP S32N79 SoC support
Ciprian Costea <[email protected]>
| Newsgroups | org.kernel.vger.linux-can,dev.linux.lists.imx,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Ciprian Marian Costea <[email protected]> Add NXP S32N79 SoC compatible string and interrupt properties. On S32N79, FlexCAN IP is integrated with two interrupt lines: one for the mailbox interrupts (0-127) and one for signaling bus errors and device state changes. Co-developed-by: Andra-Teodora Ilie <[email protected]> Signed-off-by: Andra-Teodora Ilie <[email protected]> Co-developed-by: Larisa Grigore <[email protected]> Signed-off-by: Larisa Grigore <[email protected]> Signed-off-by: Ciprian Marian Costea <[email protected]> Acked-by: Conor Dooley <[email protected]> Reviewed-and-tested-by: Haibo Chen <[email protected]> --- .../bindings/net/can/fsl,flexcan.yaml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml index f81d56f7c12a..d098a44c2b9c 100644 --- a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml +++ b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml @@ -26,6 +26,7 @@ properties: - fsl,ls1021ar2-flexcan - fsl,lx2160ar1-flexcan - nxp,s32g2-flexcan + - nxp,s32n79-flexcan - items: - enum: - fsl,imx53-flexcan @@ -173,11 +174,38 @@ allOf: - const: mb-1 required: - interrupt-names - else: + - if: + properties: + compatible: + contains: + const: nxp,s32n79-flexcan + then: + properties: + interrupts: + items: + - description: Message Buffer interrupt for mailboxes 0-127 + - description: Bus Error and Device state change interrupt + interrupt-names: + items: + - const: mb-0 + - const: berr + required: + - interrupt-names + + - if: + not: + properties: + compatible: + contains: + enum: + - nxp,s32g2-flexcan + - nxp,s32n79-flexcan + then: properties: interrupts: maxItems: 1 interrupt-names: false + - if: required: - xceiver-supply -- 2.43.0