* [PATCH 0/2] Add FD-Only mode support for R-Car CANFD
@ 2025-11-18 14:18 Biju
2025-11-18 14:18 ` [PATCH 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property Biju
0 siblings, 1 reply; 4+ messages in thread
From: Biju @ 2025-11-18 14:18 UTC (permalink / raw)
To: Marc Kleine-Budde, Vincent Mailhol, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
Magnus Damm
Cc: Biju Das, Fabrizio Castro, linux-can, devicetree,
linux-renesas-soc, linux-kernel, Prabhakar Mahadev Lad, Biju Das
From: Biju Das <biju.das.jz@bp.renesas.com>
The RZ/{G2L,G3E} and R-Car Gen4 SoCs support additional CAN FD mode called
FD-only mode. In this mode, communication in Classical CAN frame format is
disabled. Update binding/driver to support this mode.
This patch series depend upon[1]
[1] https://lore.kernel.org/all/20251118123926.193445-1-biju.das.jz@bp.renesas.com/
Biju Das (2):
dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only
property
can: rcar_canfd: Add support for FD-Only mode
.../bindings/net/can/renesas,rcar-canfd.yaml | 14 ++++++++---
drivers/net/can/rcar/rcar_canfd.c | 24 ++++++++++++++++++-
2 files changed, 34 insertions(+), 4 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property 2025-11-18 14:18 [PATCH 0/2] Add FD-Only mode support for R-Car CANFD Biju @ 2025-11-18 14:18 ` Biju 2025-11-20 8:09 ` Krzysztof Kozlowski 0 siblings, 1 reply; 4+ messages in thread From: Biju @ 2025-11-18 14:18 UTC (permalink / raw) To: Marc Kleine-Budde, Vincent Mailhol, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven, Magnus Damm Cc: Biju Das, Fabrizio Castro, linux-can, devicetree, linux-renesas-soc, linux-kernel, Prabhakar Mahadev Lad, Biju Das From: Biju Das <biju.das.jz@bp.renesas.com> The CANFD on RZ/{G2L,G3E} and R-Car Gen4 support 3 modes FD-Only mode, Classical CAN mode and CAN-FD mode. In FD-Only mode, communication in Classical CAN frame format is disabled. Document renesas,fd-only to handle this mode. As these SoCs support 3 modes, update the description of renesas,no-can-fd property. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> --- .../bindings/net/can/renesas,rcar-canfd.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml index f4ac21c68427..bf9a7d5288d3 100644 --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml @@ -125,9 +125,17 @@ properties: renesas,no-can-fd: $ref: /schemas/types.yaml#/definitions/flag description: - The controller can operate in either CAN FD only mode (default) or - Classical CAN only mode. The mode is global to all channels. - Specify this property to put the controller in Classical CAN only mode. + The controller can operate in either CAN-FD mode (default) or FD-Only + mode (RZ/{G2L,G3E} and R-Car Gen4) or Classical CAN mode. Specify this + property to put the controller in Classical CAN mode. + + renesas,fd-only: + $ref: /schemas/types.yaml#/definitions/flag + description: + The CANFD on RZ/{G2L,G3E} and R-Car Gen4 SoCs support 3 modes FD-Only + mode, Classical CAN mode and CAN-FD mode (default). In FD-Only mode, + communication in Classical CAN frame format is disabled. Specify this + property to put the controller in FD-Only mode. assigned-clocks: description: -- 2.43.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property 2025-11-18 14:18 ` [PATCH 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property Biju @ 2025-11-20 8:09 ` Krzysztof Kozlowski 2025-11-23 10:49 ` Biju Das 0 siblings, 1 reply; 4+ messages in thread From: Krzysztof Kozlowski @ 2025-11-20 8:09 UTC (permalink / raw) To: Biju Cc: Marc Kleine-Budde, Vincent Mailhol, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven, Magnus Damm, Biju Das, Fabrizio Castro, linux-can, devicetree, linux-renesas-soc, linux-kernel, Prabhakar Mahadev Lad On Tue, Nov 18, 2025 at 02:18:34PM +0000, Biju wrote: > From: Biju Das <biju.das.jz@bp.renesas.com> > > The CANFD on RZ/{G2L,G3E} and R-Car Gen4 support 3 modes FD-Only mode, > Classical CAN mode and CAN-FD mode. In FD-Only mode, communication in > Classical CAN frame format is disabled. Document renesas,fd-only to handle > this mode. As these SoCs support 3 modes, update the description of > renesas,no-can-fd property. > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > --- > .../bindings/net/can/renesas,rcar-canfd.yaml | 14 +++++++++++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml > index f4ac21c68427..bf9a7d5288d3 100644 > --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml > +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml > @@ -125,9 +125,17 @@ properties: > renesas,no-can-fd: > $ref: /schemas/types.yaml#/definitions/flag > description: > - The controller can operate in either CAN FD only mode (default) or > - Classical CAN only mode. The mode is global to all channels. > - Specify this property to put the controller in Classical CAN only mode. > + The controller can operate in either CAN-FD mode (default) or FD-Only > + mode (RZ/{G2L,G3E} and R-Car Gen4) or Classical CAN mode. Specify this > + property to put the controller in Classical CAN mode. > + > + renesas,fd-only: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + The CANFD on RZ/{G2L,G3E} and R-Car Gen4 SoCs support 3 modes FD-Only > + mode, Classical CAN mode and CAN-FD mode (default). In FD-Only mode, > + communication in Classical CAN frame format is disabled. Specify this > + property to put the controller in FD-Only mode. It should really be just an enum since the beginning - representing the mode of operation. Now you need to complex oneOf to disallow usage of both. You also claim not all devices support this, so you need to disallow it per variant. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property 2025-11-20 8:09 ` Krzysztof Kozlowski @ 2025-11-23 10:49 ` Biju Das 0 siblings, 0 replies; 4+ messages in thread From: Biju Das @ 2025-11-23 10:49 UTC (permalink / raw) To: Krzysztof Kozlowski, biju.das.au Cc: Marc Kleine-Budde, Vincent Mailhol, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven, magnus.damm, Fabrizio Castro, linux-can@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar Mahadev Lad Hi Krzysztof Kozlowski, Thanks for the feedback. > -----Original Message----- > From: Krzysztof Kozlowski <krzk@kernel.org> > Sent: 20 November 2025 08:09 > Subject: Re: [PATCH 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property > > On Tue, Nov 18, 2025 at 02:18:34PM +0000, Biju wrote: > > From: Biju Das <biju.das.jz@bp.renesas.com> > > > > The CANFD on RZ/{G2L,G3E} and R-Car Gen4 support 3 modes FD-Only mode, > > Classical CAN mode and CAN-FD mode. In FD-Only mode, communication in > > Classical CAN frame format is disabled. Document renesas,fd-only to > > handle this mode. As these SoCs support 3 modes, update the > > description of renesas,no-can-fd property. > > > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > > --- > > .../bindings/net/can/renesas,rcar-canfd.yaml | 14 +++++++++++--- > > 1 file changed, 11 insertions(+), 3 deletions(-) > > > > diff --git > > a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml > > b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml > > index f4ac21c68427..bf9a7d5288d3 100644 > > --- > > a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml > > +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yam > > +++ l > > @@ -125,9 +125,17 @@ properties: > > renesas,no-can-fd: > > $ref: /schemas/types.yaml#/definitions/flag > > description: > > - The controller can operate in either CAN FD only mode (default) or > > - Classical CAN only mode. The mode is global to all channels. > > - Specify this property to put the controller in Classical CAN only mode. > > + The controller can operate in either CAN-FD mode (default) or FD-Only > > + mode (RZ/{G2L,G3E} and R-Car Gen4) or Classical CAN mode. Specify this > > + property to put the controller in Classical CAN mode. > > + > > + renesas,fd-only: > > + $ref: /schemas/types.yaml#/definitions/flag > > + description: > > + The CANFD on RZ/{G2L,G3E} and R-Car Gen4 SoCs support 3 modes FD-Only > > + mode, Classical CAN mode and CAN-FD mode (default). In FD-Only mode, > > + communication in Classical CAN frame format is disabled. Specify this > > + property to put the controller in FD-Only mode. > > It should really be just an enum since the beginning - representing the mode of operation. Now you > need to complex oneOf to disallow usage of both. > > You also claim not all devices support this, so you need to disallow it per variant. OK, I will disallow renesas,fd-only for R-Car Gen3. Cheers, Biju ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-11-23 10:49 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-11-18 14:18 [PATCH 0/2] Add FD-Only mode support for R-Car CANFD Biju 2025-11-18 14:18 ` [PATCH 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property Biju 2025-11-20 8:09 ` Krzysztof Kozlowski 2025-11-23 10:49 ` Biju Das
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox