From: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Vincent Mailhol <mailhol@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
linux-can@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
NXP S32 Linux Team <s32@nxp.com>,
Christophe Lizzi <clizzi@redhat.com>,
Alberto Ruiz <aruizrui@redhat.com>,
Enric Balletbo <eballetb@redhat.com>,
Eric Chanudet <echanude@redhat.com>,
Andra-Teodora Ilie <andra.ilie@nxp.com>,
Larisa Grigore <larisa.grigore@nxp.com>
Subject: Re: [PATCH 1/5] dt-bindings: can: fsl,flexcan: add NXP S32N79 SoC support
Date: Wed, 18 Mar 2026 13:52:24 +0200 [thread overview]
Message-ID: <f26faf51-dc73-4aa6-b519-3359b2a16a44@oss.nxp.com> (raw)
In-Reply-To: <20260318-unyielding-piquant-buzzard-ec69fb-mkl@pengutronix.de>
On 3/18/2026 12:47 PM, Marc Kleine-Budde wrote:
> On 18.03.2026 10:22:11, Ciprian Costea wrote:
>> From: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com>
>>
>> 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
>> errors and bus state changes.
>
Hello Marc,
Thank you for your review.
Correct, I will update the commit message in V2 to clearly state the two
different CAN concepts (bus error vs device state changes -- not bus
state changes).
> Comment from patch#2 applies here, too:
>
> Usually it's "bus error" and "state changes", as the errors happen
> visible for everyone on the bus, while the state change is local to the
> controller (every controller has it's own state).
>
>> Co-developed-by: Andra-Teodora Ilie <andra.ilie@nxp.com>
>> Signed-off-by: Andra-Teodora Ilie <andra.ilie@nxp.com>
>> Co-developed-by: Larisa Grigore <larisa.grigore@nxp.com>
>> Signed-off-by: Larisa Grigore <larisa.grigore@nxp.com>
>> Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com>
>> ---
>> .../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..131fae2739fa 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 interrupt
>
> It's a combined Device state change and Bus Error detection interrupt?
>
I will update the description in V2 to: 'Bus Error detection 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
>
> Is there else if or something like that in YAML?
>
AFAIK, dt-schema YAML doesn't have else if.
The negated if (not/contains/enum) seems to be the standard approach
used elsewhere in the dt-bindings tree, e.g., in [1], [2], [3].
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/thermal/rcar-thermal.yaml#n70
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/phy/realtek,usb2phy.yaml#n151
[3]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml#n148
Best Regards,
Ciprian
>> + then:
>> properties:
>> interrupts:
>> maxItems: 1
>> interrupt-names: false
>> +
>> - if:
>> required:
>> - xceiver-supply
>> --
>> 2.43.0
>>
>>
>>
>
> regards,
> Marc
>
> --
> Pengutronix e.K. | Marc Kleine-Budde |
> Embedded Linux | https://www.pengutronix.de |
> Vertretung Nürnberg | Phone: +49-5121-206917-129 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
next prev parent reply other threads:[~2026-03-18 11:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-18 9:22 [PATCH 0/5] can: flexcan: Add NXP S32N79 SoC support Ciprian Costea
2026-03-18 9:22 ` [PATCH 1/5] dt-bindings: can: fsl,flexcan: add " Ciprian Costea
2026-03-18 10:47 ` Marc Kleine-Budde
2026-03-18 11:52 ` Ciprian Marian Costea [this message]
2026-03-18 9:22 ` [PATCH 2/5] can: flexcan: add FLEXCAN_QUIRK_NR_IRQ_2 quirk for two interrupt lines Ciprian Costea
2026-03-18 10:42 ` Marc Kleine-Budde
2026-03-18 12:11 ` Ciprian Marian Costea
2026-03-18 9:22 ` [PATCH 3/5] can: flexcan: add NXP S32N79 SoC support Ciprian Costea
2026-03-18 9:22 ` [PATCH 4/5] arm64: dts: s32n79: add FlexCAN nodes Ciprian Costea
2026-03-18 9:22 ` [PATCH 5/5] arm64: dts: s32n79: enable FlexCAN devices Ciprian Costea
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f26faf51-dc73-4aa6-b519-3359b2a16a44@oss.nxp.com \
--to=ciprianmarian.costea@oss.nxp.com \
--cc=Frank.Li@nxp.com \
--cc=andra.ilie@nxp.com \
--cc=aruizrui@redhat.com \
--cc=clizzi@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eballetb@redhat.com \
--cc=echanude@redhat.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=larisa.grigore@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mailhol@kernel.org \
--cc=mkl@pengutronix.de \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=s32@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox